Skip to content
Snippets Groups Projects
Commit fc959b0d authored by Kenneth K. Sham's avatar Kenneth K. Sham Committed by Svetlana Tkachenko
Browse files

blockbot: exempt owners from blockbot's effects. Closes #7.

parent 6cc6acfe
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,10 @@ class Blockbot(object): ...@@ -32,6 +32,10 @@ class Blockbot(object):
#self.lastnot = ('BBot', time.time(), 'sdkljfls') #self.lastnot = ('BBot', time.time(), 'sdkljfls')
def handle_message(self, channel, nick, message): def handle_message(self, channel, nick, message):
# if the user is an owner, do nothing
if self.server.getPlugin('auth').isOwner(nick):
return
""" Called when a message is received """ """ Called when a message is received """
self.msglist.insert(0, (nick, channel, message, self.msglist.insert(0, (nick, channel, message,
time.time())) time.time()))
......
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