diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-07-10 23:21:04 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-07-10 23:21:04 +0200 |
commit | 201ee104e75e0578c63b27c3a4f4b147924891fc (patch) | |
tree | b0afbae7eb977ba6db13a8b7e17cf1322a4b1539 /src/plugins/irc | |
parent | cb4e0d007676df297cd50524292cad4aa0754a8c (diff) | |
download | weechat-201ee104e75e0578c63b27c3a4f4b147924891fc.zip |
irc: fix crash when /join command is executed on a non-irc buffer (bug #33742)
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index b9216d9ce..50f95fed1 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -1868,13 +1868,13 @@ irc_command_join (void *data, struct t_gui_buffer *buffer, int argc, } else { - if (!ptr_server) - return WEECHAT_RC_ERROR; + IRC_COMMAND_CHECK_SERVER("join", 1); irc_command_join_server (ptr_server, argv_eol[1], 1); } } else { + IRC_COMMAND_CHECK_SERVER("join", 1); if (ptr_channel && (ptr_channel->type == IRC_CHANNEL_TYPE_CHANNEL) && !ptr_channel->nicks) { |