X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/60f00eaac7b585fc98618e2e794b034dcc4dcbd3..0ce8eacc0e06bd3ab29fdf5d9dc8f958abd1a2a6:/modules/chanops.py diff --git a/modules/chanops.py b/modules/chanops.py index 2e7c586..654c45c 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': [0], '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]]