Пример #1
0
Файл: bot.py Проект: code2u/jsb
 def __init__(self, cfg={}, users=None, plugs=None, *args, **kwargs):
     Irc.__init__(self, cfg, users, plugs, *args, **kwargs)
     if self.state:
         if not self.state.has_key("opchan"):
             self.state["opchan"] = []
     if not self.state.has_key("joinedchannels"):
         self.state["joinedchannels"] = []
Пример #2
0
 def __init__(self, cfg):
     Irc.__init__(self, cfg)
     # object used to wait for PRIVMSG
     self.privwait = Privwait()
     # channels where we are op
     if not self.state.has_key('opchan'):
         self.state['opchan'] = []
     self.userchannels = Dol()
     outmonitor.start()
Пример #3
0
 def __init__(self, cfg):
     Irc.__init__(self, cfg)
     # object used to wait for PRIVMSG
     self.privwait = Privwait()
     # channels where we are op
     if not self.state.has_key('opchan'):
         self.state['opchan'] = []
     self.userchannels = Dol()
     outmonitor.start()
Пример #4
0
 def __init__(self, cfg={}, users=None, plugs=None, *args, **kwargs):
     Irc.__init__(self, cfg, users, plugs, *args, **kwargs)
     self.privwait = Privwait()
     if self.state:
         if not self.state.has_key('opchan'): self.state['opchan'] = []
     if not self.state.has_key('joinedchannels'): self.state['joinedchannels'] = []