Mercurial > xib
diff bridge.py @ 62:61491895c607
Added bridge.hasParticipant() and fixed participant.changeNickname()
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sat, 29 Aug 2009 14:52:11 +0200 |
parents | d8941159fd44 |
children | 71508f22edb4 |
line wrap: on
line diff
--- a/bridge.py +++ b/bridge.py @@ -161,6 +161,14 @@ class bridge: return participants_nicknames + def hasParticipant(self, nickname): + try: + self.getParticipant(nickname) + return True + except NoSuchParticipantException: + return False + + def removeParticipant(self, left_protocol, nickname, leave_message): """Remove the participant using nickname from the bridge. Raises a NoSuchParticipantException if nickname is not used in the bridge."""