mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Don't bother aborting /OP, /VOICE, etc. just because we're not chanop/ircop.
That check was just broken with some servers where opping would be possible without either. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2960 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d20c8238b7
commit
5c6bbf6cc4
@ -447,15 +447,6 @@ void channel_set_singlemode(IRC_CHANNEL_REC *channel, const char *nicks,
|
||||
g_return_if_fail(nicks != NULL && mode != NULL);
|
||||
if (*nicks == '\0') return;
|
||||
|
||||
if (!channel->chanop && !channel->server->server_operator) {
|
||||
/* not op - can we do anything? */
|
||||
if (channel->ownnick == NULL || !channel->ownnick->halfop)
|
||||
return; /* not even halfop, abort */
|
||||
|
||||
if (mode[0] != '\0' && mode[1] == 'o')
|
||||
return; /* halfops can't op/deop */
|
||||
}
|
||||
|
||||
num = modepos = 0;
|
||||
str = g_string_new(NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user