summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-irc-commands.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-09-19 12:55:49 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-09-19 12:55:49 +0000
commit0790ad02f6a2f734538828e6966323e4da5d0c8c (patch)
treec2ecca8f2bf3fbf3f5b2263589643520a16b81f4 /src/fe-common/irc/fe-irc-commands.c
parent6d4f2b680208c99f6ce39d12f411eb7e4440abb2 (diff)
downloadirssi-0790ad02f6a2f734538828e6966323e4da5d0c8c.zip
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
Diffstat (limited to 'src/fe-common/irc/fe-irc-commands.c')
-rw-r--r--src/fe-common/irc/fe-irc-commands.c2
1 files changed, 1 insertions, 1 deletions
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();
}