From c32bc12d8ea9429197419f2877ec678deb0beec1 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 27 Sep 2003 19:20:48 +0000 Subject: [PATCH] Fixed /topic command bug --- src/irc/irc-commands.c | 2 +- weechat/src/irc/irc-commands.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"),