Skip to content

Commit

Permalink
simple adminonly filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmh committed Oct 26, 2010
1 parent df75a42 commit 7c17195
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/sieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ def sieve_suite(bot, input, func, kind, args):
if input.chan.lower() in denied_channels:
return None

if args.get('adminonly', False):
admins = bot.config.get('admins', [])

if input.host not in admins and input.nick not in admins:
return None

return input

0 comments on commit 7c17195

Please sign in to comment.