summaryrefslogtreecommitdiff
path: root/src/irc/core/modes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core/modes.c')
-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 affecc34..3f60dd9b 100644
--- a/src/irc/core/modes.c
+++ b/src/irc/core/modes.c
@@ -445,7 +445,7 @@ 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) {
+ 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 */