def _got354(self, pieces):
qt, nick, auth = pieces[3:6]
self.parent.user(nick).authed(auth)
+ if qt == "2":
+ self.msg(nick, "You are now known as #%s (access level: %s)" % (auth, self.parent.user(nick).glevel))
def _gotjoin(self, pieces):
nick = pieces[0].split('!')[0][1:]
chan = self.parent.channel(pieces[2])
def modlist(bot, user, chan, realtarget, *args):
mods = ctlmod.modules
for mod in mods.itervalues():
- bot.msg(user, "- %s %r" % (mod.__name__, mod))
+ bot.msg(user, "- %s (%s)" % (mod.__name__, mod.__file__))
bot.msg(user, "Done.")
def _whois(user, chan, showglevel=True, showclevel=True):
def whoami(bot, user, chan, realtarget, *args):
bot.msg(user, "You are %s" % (_whois(user, chan)))
+@lib.hook(needchan=False)
+@lib.help(None, "tries to read your auth and access level again")
+def auth(bot, user, chan, realtarget, *args):
+ bot.msg(user, "Okay, give me a second.")
+ bot.conn.send("WHO %s n%%ant,2" % (user))
+
@lib.hook(needchan=False, glevel=1)
@lib.help(None, "displays length of each msgqueue")
def qstat(bot, user, chan, realtarget, *args):