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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user