diff --git a/src/irc/irc-commands.c b/src/irc/irc-commands.c index 3d87a4794..307b18263 100644 --- a/src/irc/irc-commands.c +++ b/src/irc/irc-commands.c @@ -1993,7 +1993,7 @@ irc_cmd_recv_topic (t_irc_server *server, char *host, char *arguments) if (pos) pos[0] = '\0'; - if (string_is_channel (arguments)) + if (!string_is_channel (arguments)) { gui_printf (server->window, _("%s \"topic\" command received without channel\n"), diff --git a/weechat/src/irc/irc-commands.c b/weechat/src/irc/irc-commands.c index 3d87a4794..307b18263 100644 --- a/weechat/src/irc/irc-commands.c +++ b/weechat/src/irc/irc-commands.c @@ -1993,7 +1993,7 @@ irc_cmd_recv_topic (t_irc_server *server, char *host, char *arguments) if (pos) pos[0] = '\0'; - if (string_is_channel (arguments)) + if (!string_is_channel (arguments)) { gui_printf (server->window, _("%s \"topic\" command received without channel\n"),