diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-14 22:22:04 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 52cc1165c4b018b9880d9abac3b0513ef80fa66a (patch) | |
tree | f4b8adea75b6ba3641b42ca0ab2889c08cae2236 /src | |
parent | 0be96b7c6638e02dc1b662ce9b2f19318115bba7 (diff) | |
download | weechat-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.h | 2 |
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 " \ |