summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-03-02 14:06:47 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-03-02 14:06:47 +0100
commit619babb45776b4fb09461408723cfb1979065216 (patch)
tree1a2b7ac613b6253fbd6c96400811f2c85f01488e /src/plugins/irc/irc-command.c
parent8ffd58b4a85998a65a638d5cd7fc31f18590a16a (diff)
downloadweechat-619babb45776b4fb09461408723cfb1979065216.zip
Fix bug with detection of channel name in command /mode
Diffstat (limited to 'src/plugins/irc/irc-command.c')
-rw-r--r--src/plugins/irc/irc-command.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index 44a19a968..520aff92c 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -1932,8 +1932,7 @@ irc_command_mode (void *data, struct t_gui_buffer *buffer, int argc,
if (argc > 1)
{
- if ((argv[1][0] == '+') || (argv[1][0] == '-')
- || !irc_channel_is_channel (argv[1]))
+ if ((argv[1][0] == '+') || (argv[1][0] == '-'))
{
/* channel not specified, check we are on channel and use it */
if (!ptr_channel)