summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-04-29 00:11:18 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-04-29 00:11:18 +0000
commit904a4fa8301ab31e199f2b142795e49245e830c8 (patch)
treeed59e83e77d86915eac5bdb1b1227cb156e2e3a7
parent17d5b644f49713db77f6f678dfe3da4db89978cb (diff)
downloadirssi-904a4fa8301ab31e199f2b142795e49245e830c8.zip
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
-rw-r--r--src/fe-common/core/fe-queries.c3
1 files changed, 2 insertions, 1 deletions
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,