X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/60f00eaac7b585fc98618e2e794b034dcc4dcbd3..4b5f28dde311d1f8cc5cce200329207e95f4d8f0:/modules/chanops.py diff --git a/modules/chanops.py b/modules/chanops.py index 2e7c586..bf73449 100644 --- a/modules/chanops.py +++ b/modules/chanops.py @@ -1,12 +1,12 @@ # Erebus IRC bot - Author: Erebus Team -# !EVAL and !EXEC commands +# chanop commands # This file is released into the public domain; see http://unlicense.org/ # module info modinfo = { 'author': 'Erebus Team', 'license': 'public domain', - 'compatible': [1,2], + 'compatible': [2], 'depends': [], 'softdeps': ['help'], } @@ -27,7 +27,7 @@ def module(name): def _kick(bot, user, chan, realtarget, *args): people = [] - if args[0][0] == "#": + if args[0].startswith("#"): people = bot.parent.getuserbyauth(args[0][1:]) else: people = [args[0]]