Skip to content
Snippets Groups Projects
Commit bc004cf4 authored by Bruce Cowan's avatar Bruce Cowan
Browse files

Use nick property of the identifier, rather than string splitting

parent fe97115b
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ class Justforfun(BotPlugin): ...@@ -30,7 +30,7 @@ class Justforfun(BotPlugin):
def callback_message(self, message): def callback_message(self, message):
""" Listens for rude or nice things about the bot """ """ Listens for rude or nice things about the bot """
if str(self.bot_identifier).split('!')[0] not in message.body: if self.bot_identifier.nick not in message.body:
return return
if self.good.search(message.body): if self.good.search(message.body):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment