From 0790ad02f6a2f734538828e6966323e4da5d0c8c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 19 Sep 2000 12:55:49 +0000 Subject: Irssi crashed if you used "/JOIN" or "/JOIN -invite" without connected to server. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@662 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-irc-commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fe-common') diff --git a/src/fe-common/irc/fe-irc-commands.c b/src/fe-common/irc/fe-irc-commands.c index 7a522f89..852e2ecc 100644 --- a/src/fe-common/irc/fe-irc-commands.c +++ b/src/fe-common/irc/fe-irc-commands.c @@ -375,7 +375,7 @@ static void cmd_invitelist(const char *data, IRC_SERVER_REC *server, WI_ITEM_REC static void cmd_join(const char *data, IRC_SERVER_REC *server) { if ((*data == '\0' || g_strncasecmp(data, "-invite", 7) == 0) && - server->last_invite == NULL) { + server != NULL && server->last_invite == NULL) { printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_NOT_INVITED); signal_stop(); } -- cgit v1.2.3