simple adminonly filtering

This commit is contained in:
Ryan Hitchman 2010-10-25 23:13:27 -05:00
parent df75a425d5
commit 7c171959c3
1 changed files with 6 additions and 0 deletions

View File

@ -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