Skip to content

Commit

Permalink
add hacky ignore that nobody is happy with
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Mar 28, 2016
1 parent d266cc3 commit 7ff8529
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bot.py
Expand Up @@ -22,6 +22,10 @@ def on_pubmsg(self, c, e):
self.message(e, e.arguments[0])

def message(self, e, msg):
user = e.source.split('!')[0]
ignore = config('ignore').split(' ')
if (user in ignore):
return
for mod in os.listdir('mods'):
try:
result = subprocess.check_output(['mods/' + mod, msg])
Expand Down

0 comments on commit 7ff8529

Please sign in to comment.