]> jfr.im git - erebus.git/blobdiff - bot.py
add !AUTH command to do another WHO
[erebus.git] / bot.py
diff --git a/bot.py b/bot.py
index 60b2e50db4b4d0141c96b55c52d8f18ed911cab2..3d34641f11295ae5bb9a14305dc897445a2e58c9 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -94,6 +94,8 @@ class Bot(object):
        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])