summaryrefslogtreecommitdiff
path: root/src/irc/core/modes.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-10-15 22:11:26 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-10-15 22:11:26 +0000
commit5c6bbf6cc4304f0d4110eccab5d78bbdc7577f2d (patch)
treee527b4c3273ca5efa4e716c49b42c4e330867e1c /src/irc/core/modes.c
parentd20c8238b7d843a83088c3dc41012c8b06f8ce7a (diff)
downloadirssi-5c6bbf6cc4304f0d4110eccab5d78bbdc7577f2d.zip
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
Diffstat (limited to 'src/irc/core/modes.c')
-rw-r--r--src/irc/core/modes.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c
index fb7fbb6c..7048cdb1 100644
--- a/src/irc/core/modes.c
+++ b/src/irc/core/modes.c
@@ -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);