From 904a4fa8301ab31e199f2b142795e49245e830c8 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 29 Apr 2002 00:11:18 +0000 Subject: make sure nick changes in query don't print warning if query->address is null git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2738 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-queries.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fe-common/core/fe-queries.c b/src/fe-common/core/fe-queries.c index 65fef3ef..c6bfaef2 100644 --- a/src/fe-common/core/fe-queries.c +++ b/src/fe-common/core/fe-queries.c @@ -127,7 +127,8 @@ static void signal_query_nick_changed(QUERY_REC *query, const char *oldnick) /* don't print the nick change message if only the case was changed */ if (g_strcasecmp(query->name, oldnick) != 0) { printformat_dest(&dest, TXT_NICK_CHANGED, oldnick, - query->name, query->name, query->address); + query->name, query->name, + query->address == NULL ? "" : query->address); } signal_emit("window item changed", 2, -- cgit v1.2.3