|
@@ -122,10 +122,10 @@ class PyRot(irc.bot.SingleServerIRCBot):
|
|
|
commands.admin.do_command(self, connection, event)
|
|
commands.admin.do_command(self, connection, event)
|
|
|
commands.statistics.do_command(self, connection, event)
|
|
commands.statistics.do_command(self, connection, event)
|
|
|
commands.games.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
|
|
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):
|
|
def on_pubnotice(self, connection, event):
|
|
|
log.info(event)
|
|
log.info(event)
|