From cbb5b7aaa28ae650e854898e5fc6fc193cf8bfac Mon Sep 17 00:00:00 2001 From: Marius Rieder Date: Tue, 1 Nov 2005 04:49:23 +0000 Subject: [PATCH] protect_and_chanowner_in_unrealircd Add protectet users (&) und the channelowner (~) used in unrealircd to the ops list. --- src/irclib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/irclib.py b/src/irclib.py index 5f2695f5e..4d5c173a9 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -248,13 +248,13 @@ class ChannelState(object): def addUser(self, user): "Adds a given user to the ChannelState. Power prefixes are handled." - nick = user.lstrip('@%+') + nick = user.lstrip('@%+&~') if not nick: return - while user and user[0] in '@%+': + while user and user[0] in '@%+&~': (marker, user) = (user[0], user[1:]) assert user, 'Looks like my caller is passing chars, not nicks.' - if marker == '@': + if marker in '@&~': self.ops.add(nick) elif marker == '%': self.halfops.add(nick)