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"] = []
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()
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'] = []