mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -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:
parent
d589ac85ce
commit
6197339b8d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user