prefix = '!'
def __init__(self, jid, password, room, nick, log_file=None,
prefix = '!'
def __init__(self, jid, password, room, nick, log_file=None,
super(MUCBot, self).__init__(jid, password)
self.log = logging.getLogger(__package__)
super(MUCBot, self).__init__(jid, password)
self.log = logging.getLogger(__package__)
if msg['type'] not in ('groupchat', 'chat'):
self.log.warning('Unhandled message')
return
if msg['type'] not in ('groupchat', 'chat'):
self.log.warning('Unhandled message')
return
nick = pres['from']
status = (pres['type'], pres['status'])
self.__seen.update({nick: status})
nick = pres['from']
status = (pres['type'], pres['status'])
self.__seen.update({nick: status})