diff options
Diffstat (limited to 'protocols/nogaim.c')
| -rw-r--r-- | protocols/nogaim.c | 24 | 
1 files changed, 14 insertions, 10 deletions
| diff --git a/protocols/nogaim.c b/protocols/nogaim.c index 3fed2728..fad6976f 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -349,18 +349,22 @@ static void serv_got_crap(struct im_connection *ic, char *format, ...)  		strip_html(text);  	} -	/* Try to find a different connection on the same protocol. */ -	for (a = ic->bee->accounts; a; a = a->next) { -		if (a->prpl == ic->acc->prpl && a->ic != ic) { -			break; -		} -	} - -	/* If we found one, include the screenname in the message. */ -	if (a) { +	if (set_getbool(&ic->bee->set, "only_log_tags")) {  		ic->bee->ui->log(ic->bee, ic->acc->tag, text);  	} else { -		ic->bee->ui->log(ic->bee, ic->acc->prpl->name, text); +		/* Try to find a different connection on the same protocol. */ +		for (a = ic->bee->accounts; a; a = a->next) { +			if (a->prpl == ic->acc->prpl && a->ic != ic) { +				break; +			} +		} + +		/* If we found one, include the screenname in the message. */ +		if (a) { +			ic->bee->ui->log(ic->bee, ic->acc->tag, text); +		} else { +			ic->bee->ui->log(ic->bee, ic->acc->prpl->name, text); +		}  	}  	g_free(text); | 
