summaryrefslogtreecommitdiff
path: root/src/irc/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-17 09:13:18 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-17 09:13:18 +0000
commit091095fff3df38b8574d952f154da55dbb7ae917 (patch)
tree7a90318f5ad589787a2c50c01b60c9897c455688 /src/irc/core
parent500ae5773e3088d7b7c37f6404a5964744ab75af (diff)
downloadirssi-091095fff3df38b8574d952f154da55dbb7ae917.zip
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
Diffstat (limited to 'src/irc/core')
-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 */