# Erebus IRC bot - Author: Erebus Team
+# vim: fileencoding=utf-8
# 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'],
}
# module code
import time
-@lib.hook(clevel=lib.OP)
+@lib.hook(('say','cmsg'), clevel=lib.OP)
@lib.help('<message>', 'sends message to channel')
@lib.argsGE(1)
-def cmsg(bot, user, chan, realtarget, *args):
+def say(bot, user, chan, realtarget, *args):
chan.msg(' '.join(args))
target = None
if args[0].startswith("#"):
target = bot.parent.channel(args[0])
- if target is not None:
sendbot = target.bot
else:
target = args[0]