1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

irc: fix crash when /join command is executed on a non-irc buffer (bug #33742)

This commit is contained in:
Sebastien Helleu
2011-07-10 23:21:04 +02:00
parent cb4e0d0076
commit 201ee104e7
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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)
{