]> jfr.im git - erebus.git/blobdiff - modules/chanops.py
bugfixes
[erebus.git] / modules / chanops.py
index 2e7c586a1b50a18ecdc0356614ddfd7380803a27..bf73449e1ed02a2973a3c35763aba56cd5901311 100644 (file)
@@ -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]]