From a6f4afab2d9613db4fc3aa5dccfaa72aa4b69582 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 8 Mar 2002 18:40:43 +0000 Subject: [PATCH] /OP etc. shouldn't crash if channel hadn't received /NAMES list yet. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2538 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index 3ad8abd2..c91e5809 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -447,7 +447,7 @@ void channel_set_singlemode(IRC_CHANNEL_REC *channel, const char *nicks, if (!channel->chanop) { /* not op - can we do anything? */ - if (!channel->ownnick->halfop) + if (channel->ownnick == NULL || !channel->ownnick->halfop) return; /* not even halfop, abort */ if (mode[0] != '\0' && mode[1] == 'o')