summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-08 18:40:43 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-08 18:40:43 +0000
commita6f4afab2d9613db4fc3aa5dccfaa72aa4b69582 (patch)
tree8778950869c9eed389f3a37f2feddadd0efe8466
parentb7a81e1539f1731d9c27b6fca43c111e59b1ed62 (diff)
downloadirssi-a6f4afab2d9613db4fc3aa5dccfaa72aa4b69582.zip
/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
-rw-r--r--src/irc/core/modes.c2
1 files changed, 1 insertions, 1 deletions
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')