1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

/CHANNEL xxx - don't crash if not connected to server.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1973 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-05 11:47:52 +00:00 committed by cras
parent d589ac85ce
commit 6197339b8d

View File

@ -236,7 +236,7 @@ static void cmd_channel(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
{ {
if (*data == '\0') if (*data == '\0')
cmd_channel_list_joined(); cmd_channel_list_joined();
else if (server_ischannel(server, data)) { else if (server != NULL && server_ischannel(server, data)) {
signal_emit("command join", 3, data, server, item); signal_emit("command join", 3, data, server, item);
} else { } else {
command_runsub("channel", data, server, item); command_runsub("channel", data, server, item);