class Erebus(object):
bots = {}
fds = {}
- mods = {}
numhandlers = {}
msghandlers = {}
chanhandlers = {}
self.users[nick] = user
if justjoined:
- self.randbot().conn.send("WHO %s %%ant,2" % (nick))
+ self.randbot().conn.send("WHO %s n%%ant,2" % (nick))
return user
def channel(self, name): #get Channel() by name
if bot.conn.state == 0:
bot.connect()
+ def module(self, name):
+ return ctlmod.modules[name]
+
#bind functions
def hook(self, word, handler):
try: