1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

/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
This commit is contained in:
Timo Sirainen 2002-03-08 18:40:43 +00:00 committed by cras
parent b7a81e1539
commit a6f4afab2d

View File

@ -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')