X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/b4dee2f65a6b502a2cf0d912cc42d114660b8384..adbee2daa637e03213cda1f13f263d1a49e994a2:/modules/msg.py diff --git a/modules/msg.py b/modules/msg.py index 5d1756a..6f6b95c 100644 --- a/modules/msg.py +++ b/modules/msg.py @@ -19,10 +19,10 @@ modstop = lib.modstop # module code import time -@lib.hook(clevel=lib.OP) +@lib.hook(('say','cmsg'), clevel=lib.OP) @lib.help('', '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)) @@ -30,7 +30,6 @@ def _getbot(bot, user, chan, realtarget, *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]