- self.log.exception('An error occurred processing: {0}: {1}'.format(body, reply))
- self.log.info(self.log.level)
- if self.log.level >= 20 or not reply:
- return
- self.send_message(mto=msg['from'].bare, mbody=reply, mtype='groupchat')
+ self.log.exception('An error occurred processing: %s: %s', body, reply)
+ if self.log.level < 10 and reply:
+ self.send_message(mto=msg['from'].bare, mbody=reply, mtype='groupchat')
+
+ def _view(self, pres):
+ """Track known nick"""
+ nick = pres['from']
+ status = (pres['type'], pres['status'])
+ self.__seen.update({nick: status})