X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/c9db2d7ede0848cf876ee4613d0b4f804b374d88..fb20be7c5c80f13474786337d69005f3497d21c6:/erebus.py diff --git a/erebus.py b/erebus.py index 6bc5246..b237347 100644 --- a/erebus.py +++ b/erebus.py @@ -26,6 +26,9 @@ class Erebus(object): self.chans = [] + def msg(self, *args, **kwargs): + main.randbot.msg(self, *args, **kwargs) + def isauthed(self): return self.auth is not None @@ -56,6 +59,8 @@ class Erebus(object): def quit(self): for chan in self.chans: self.chans.remove(chan) + def nickchange(self, newnick): + self.nick = newnick def __str__(self): return self.nick def __repr__(self): return "" % (self.nick,self.glevel) @@ -252,8 +257,14 @@ def setup(): autoloads = [mod for mod, yes in cfg.items('autoloads') if int(yes) == 1] for mod in autoloads: - print "Loading %s" % (mod) - ctlmod.load(main, mod) + print "Loading %s ... " % (mod), + modstatus = ctlmod.load(main, mod) + if not modstatus: + print str(modstatus) + elif modstatus == True: + print "OK" + else: + print modstatus dbsetup() c = main.db.cursor()