Ver Fonte

beaty fixes

tBKwtWS há 7 anos atrás
pai
commit
258f61f883
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      irc/bot.py

+ 3 - 3
irc/bot.py

@@ -122,10 +122,10 @@ class PyRot(irc.bot.SingleServerIRCBot):
         commands.admin.do_command(self, connection, event)
         commands.statistics.do_command(self, connection, event)
         commands.games.do_command(self, connection, event)
-        if not event.source == connection.get_nickname():
-            if event.arguments[0] == "Password authentication required for that command.":
+        if not event.source.nick == connection.get_nickname():
+            if event.arguments[0] == "Password authentication required for that command." or event.arguments[0] == "You are already identified." or event.arguments[0].startswith("You have been unbanned from"):
                 return
-            Inform.owners(self, connection, "PM from " + red + red + event.source.nick + grey + ": " + reset + event.arguments[0] + ".")
+            Inform.owners(self, connection, "PM from " + red + red + event.source.nick + grey + ": " + reset + event.arguments[0])
     
     def on_pubnotice(self, connection, event):
         log.info(event)