소스 검색

beaty fixes

tBKwtWS 7 년 전
부모
커밋
258f61f883
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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)