- fmt += " (not a channel user)"
- bot.msg(user, fmt % fillers)
+ bot.msg(user, "%s is %s" % (args[0], _whois(target, chan, (user.glevel >= 1), (chan is not None and chan.levelof(user.auth) >= 1))))
+
+@lib.hook(needchan=False, wantchan=True)
+@lib.help(None, "shows who you are")
+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))