summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNei <ailin.nemui@gmail.com>2018-02-06 06:45:32 +0000
committerNei <ailin.nemui@gmail.com>2018-02-06 06:45:32 +0000
commit41e2b535ef13d23f71d7e99c19afa913e9c257c3 (patch)
tree5dbd4e56e07191c8b0846fd2eaf0ea7910e29140
parentc25e1221494e20cb96b4a541b9027dbfd8836711 (diff)
parente91da9e4098e449dc36eaa15354aff67650e7703 (diff)
downloadirssi-41e2b535ef13d23f71d7e99c19afa913e9c257c3.zip
Merge branch 'nonick' into 'security'
please give us nicks See merge request irssi/irssi!31
-rw-r--r--src/fe-common/core/chat-completion.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c
index 7ecdd4a2..d610008f 100644
--- a/src/fe-common/core/chat-completion.c
+++ b/src/fe-common/core/chat-completion.c
@@ -173,6 +173,7 @@ static void sig_message_public(SERVER_REC *server, const char *msg,
{
CHANNEL_REC *channel;
int own;
+ g_return_if_fail(nick != NULL);
channel = channel_find(server, target);
if (channel != NULL) {
@@ -185,6 +186,7 @@ static void sig_message_join(SERVER_REC *server, const char *channel,
const char *nick, const char *address)
{
CHANNEL_REC *chanrec;
+ g_return_if_fail(nick != NULL);
chanrec = channel_find(server, channel);
if (chanrec != NULL)