コード例 #1
0
 def log_channel(self, sender, cmd, rcpt, rest):
     if cmd not in ('NOTICE', 'PRIVMSG'):
         self.logger.debug('IGN: %s %s %s %s', sender, cmd, rcpt, rest)
         return
     if cmd == 'NOTICE':
         text = '--' + rest
     else:
         text = rest
     CM.ChatMessage(sender='!'.join(sender), channel=rcpt, text=text)
     ThreadLocalORMSession.flush_all()
     ThreadLocalORMSession.close_all()
コード例 #2
0
 def notice(self, out, message):
     self.say('NOTICE %s :%s' % (out, message))
     CM.ChatMessage(sender=self.nick, channel=out, text=message)
     ThreadLocalORMSession.flush_all()