Mercurial > xib
comparison bridge.py @ 187:594f570f4657
handle IRC mode event
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sat, 20 Feb 2010 18:35:23 +0100 |
parents | 60ee2b914616 |
children | e04410e7e527 |
comparison
equal
deleted
inserted
replaced
186:70a54da14e63 | 187:594f570f4657 |
---|---|
41 self.irc_server = irc_server | 41 self.irc_server = irc_server |
42 self.irc_port = irc_port | 42 self.irc_port = irc_port |
43 self.irc_room = irc_room.lower() | 43 self.irc_room = irc_room.lower() |
44 self.irc_connection_interval = irc_connection_interval | 44 self.irc_connection_interval = irc_connection_interval |
45 self.irc_charsets = irc_charsets | 45 self.irc_charsets = irc_charsets |
46 self.irc_op = False | |
46 self.xmpp_room_jid = xmpp_room_jid | 47 self.xmpp_room_jid = xmpp_room_jid |
47 self.say_level = say_level | 48 self.say_level = say_level |
48 self.participants = [] | 49 self.participants = [] |
49 if mode not in self.__class__.modes: | 50 if mode not in self.__class__.modes: |
50 raise Exception('[Error] "'+mode+'" is not a correct value for a bridge\'s "mode" attribute') | 51 raise Exception('[Error] "'+mode+'" is not a correct value for a bridge\'s "mode" attribute') |