From 52cc1165c4b018b9880d9abac3b0513ef80fa66a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 14 Oct 2021 22:22:04 +0200 Subject: [PATCH] irc: ensure the nick is not empty when the nick is required in a command callback --- src/plugins/irc/irc-protocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " \