mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Allow /OP, etc. commands for server operators as well. They may not work
everywhere, but the whole point of the check was to avoid accidental /OP * or something while not opped in some huge channel. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2628 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
500ae5773e
commit
091095fff3
@ -445,7 +445,7 @@ void channel_set_singlemode(IRC_CHANNEL_REC *channel, const char *nicks,
|
|||||||
g_return_if_fail(nicks != NULL && mode != NULL);
|
g_return_if_fail(nicks != NULL && mode != NULL);
|
||||||
if (*nicks == '\0') return;
|
if (*nicks == '\0') return;
|
||||||
|
|
||||||
if (!channel->chanop) {
|
if (!channel->chanop && !channel->server->server_operator) {
|
||||||
/* not op - can we do anything? */
|
/* not op - can we do anything? */
|
||||||
if (channel->ownnick == NULL || !channel->ownnick->halfop)
|
if (channel->ownnick == NULL || !channel->ownnick->halfop)
|
||||||
return; /* not even halfop, abort */
|
return; /* not even halfop, abort */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user