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:
parent
b7a81e1539
commit
a6f4afab2d
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user