Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #75 from stopspazzing/patch-1
Browse files Browse the repository at this point in the history
fixed where checks for admins
  • Loading branch information
dgw authored Mar 25, 2019
2 parents 7eb97ef + c8a6b9b commit 64dc71f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slap.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def slap(sopel, trigger):
except KeyError:
pass
if text[1] == sopel.nick:
if (trigger.nick not in sopel.config.admins):
if (not trigger.admin):
text[1] = trigger.nick
else:
text[1] = 'itself'
if text[1] in sopel.config.admins:
if (trigger.nick not in sopel.config.admins):
if text[1] in sopel.config.core.admins:
if (not trigger.admin):
text[1] = trigger.nick
verb = random.choice(('slaps', 'kicks', 'destroys', 'annihilates', 'punches', 'roundhouse kicks', 'pwns', 'owns'))
sopel.write(['PRIVMSG', trigger.sender, ' :\x01ACTION', verb, text[1], '\x01'])

0 comments on commit 64dc71f

Please sign in to comment.