diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-26 16:40:16 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-26 16:40:16 +0100 |
commit | 62e4f7241a99e5102fbe0ec52dc0ab6c00a4bf1b (patch) | |
tree | 19ed8d2278d0d2f5f028f0aff60d0fd019dcf632 /src | |
parent | c1fc320025179f81038cbe4d4bdc4c1e188b139c (diff) | |
download | weechat-62e4f7241a99e5102fbe0ec52dc0ab6c00a4bf1b.zip |
Fix crash when switching server with alt+s
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index a8892592f..00ab0e635 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -3111,6 +3111,8 @@ irc_command_server (void *data, struct t_gui_buffer *buffer, int argc, if (irc_current_server) { ptr_server = irc_current_server->next_server; + if (!ptr_server) + ptr_server = irc_servers; while (ptr_server != irc_current_server) { if (ptr_server->buffer) |