tBKwtWS преди 7 години
родител
ревизия
ac9da6aa30
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      irc/bot.py

+ 4 - 1
irc/bot.py

@@ -122,7 +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)
-        Inform.owners(self, connection, "PM from " + red + red + event.source.nick + grey + ": " + reset + event.arguments[0] + ".")
+        if not event.source == connection.get_nickname():
+            if event.arguemnts[0] == "Password authentication required for that command.":
+                return
+            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)