src/irclib.py: Document the protected/channel owner patch

This commit is contained in:
James Vega 2005-11-30 16:02:09 +00:00
parent cbb5b7aaa2
commit 0b83f017d9

View File

@ -251,6 +251,8 @@ class ChannelState(object):
nick = user.lstrip('@%+&~') nick = user.lstrip('@%+&~')
if not nick: if not nick:
return return
# & is used to denote protected users in UnrealIRCd
# ~ is used to denote channel owner in UnrealIRCd
while user and user[0] in '@%+&~': while user and user[0] in '@%+&~':
(marker, user) = (user[0], user[1:]) (marker, user) = (user[0], user[1:])
assert user, 'Looks like my caller is passing chars, not nicks.' assert user, 'Looks like my caller is passing chars, not nicks.'