1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

Fix crash with IRC server switch (alt-s) when no server buffer is opened

This commit is contained in:
Sebastien Helleu
2009-04-07 18:12:46 +02:00
parent 564afdc75d
commit 3aeb24cf1d
+2 -1
View File
@@ -3148,7 +3148,8 @@ irc_command_server (void *data, struct t_gui_buffer *buffer, int argc,
}
}
}
irc_server_set_current_server (irc_current_server);
if (irc_current_server)
irc_server_set_current_server (irc_current_server);
}
return WEECHAT_RC_OK;
}