summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-14 22:22:04 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit52cc1165c4b018b9880d9abac3b0513ef80fa66a (patch)
treef4b8adea75b6ba3641b42ca0ab2889c08cae2236 /src
parent0be96b7c6638e02dc1b662ce9b2f19318115bba7 (diff)
downloadweechat-52cc1165c4b018b9880d9abac3b0513ef80fa66a.zip
irc: ensure the nick is not empty when the nick is required in a command callback
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-protocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-protocol.h b/src/plugins/irc/irc-protocol.h
index b8f1a9629..6551b90d0 100644
--- a/src/plugins/irc/irc-protocol.h
+++ b/src/plugins/irc/irc-protocol.h
@@ -104,7 +104,7 @@
}
#define IRC_PROTOCOL_CHECK_NICK \
- if (!nick) \
+ if (!nick || !nick[0]) \
{ \
weechat_printf (server->buffer, \
_("%s%s: command \"%s\" received without " \