# Erebus IRC bot - Author: Erebus Team
-# !EVAL and !EXEC commands
+# vim: fileencoding=utf-8
+# 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'],
}
def module(name):
return lib.mod(name)
-@lib.hook(None, clevel=lib.OP)
-@lib.help("<nick|#auth> [<reason>]", "kick <nick>, or all using <#auth>")
-@lib.argsGE(1)
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]]
bot.msg(user, "Deopped.")
@lib.hook(None, clevel=lib.OP)
-@lib.help("[<nick>] [...]", "")
+@lib.help("[<nick>] [...]", "voices yourself or <nick>s")
def voice(bot, user, chan, realtarget, *args):
if len(args) == 0: args = (user.nick,)
_mode(bot, chan, "+", "v", args)
bot.msg(user, "Voiced.")
@lib.hook(None, clevel=lib.OP)
-@lib.help("[<nick>] [...]", "")
+@lib.help("[<nick>] [...]", "devoices yourself or <nick>s")
def devoice(bot, user, chan, realtarget, *args):
if len(args) == 0: args = (user.nick,)
_mode(bot, chan, "-", "v", args)