Ejemplo n.º 1
0
 def outnocb(self, printto, what, how='msg', *args, **kwargs):
     what = fix_format(what)
     what = self.normalize(what)
     if 'socket' in repr(printto) and self.sock:
         printto.send(unicode(what) + u"\n")
         return True
     if not printto: self._raw(what)
     elif how == 'notice': self.notice(printto, what)
     elif how == 'ctcp': self.ctcp(printto, what)
     else: self.privmsg(printto, what)
Ejemplo n.º 2
0
 def outnocb(self, printto, what, how='msg', *args, **kwargs):
     what = fix_format(what)
     what = self.normalize(what)
     if 'socket' in repr(printto) and self.sock:
         printto.send(unicode(what) + u"\n")
         return True
     if not printto: self._raw(what)
     elif how == 'notice': self.notice(printto, what)
     elif how == 'ctcp': self.ctcp(printto, what)
     else: self.privmsg(printto, what)
Ejemplo n.º 3
0
Archivo: irc.py Proyecto: code2u/jsb
 def outnocb(self, printto, what, how='msg', *args, **kwargs):
     #if printto in self.nicks401:
     #     logging.warn("%s - blocking %s" % (self.cfg.name, printto))
     #     return
     what = fix_format(what)
     what = self.normalize(what)
     if 'socket' in repr(printto) and self.sock:
         printto.send(unicode(what) + u"\n")
         return True
     if not printto: self._raw(what)
     elif how == 'notice': self.notice(printto, what)
     elif how == 'ctcp': self.ctcp(printto, what)
     else: self.privmsg(printto, what)