From 56ba12aa4bcdf03ba9827327125ba64ed1bbd13b Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 23 Oct 2009 19:20:02 -0400 Subject: [PATCH] Add support for UltimateIRCd's ! (protected) user mode. Signed-off-by: James Vega --- src/irclib.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/irclib.py b/src/irclib.py index 6085e79df..bf5b57f45 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -251,15 +251,16 @@ class ChannelState(utils.python.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 # & is used to denote protected users in UnrealIRCd # ~ is used to denote channel owner in UnrealIRCd - while user and user[0] in '@%+&~': + # ! is used to denote protected users in UltimateIRCd + 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 in '@&~': + if marker in '@&~!': self.ops.add(nick) elif marker == '%': self.halfops.add(nick)