X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/861f83ef8b0eabf05d39070f27f1c3c71fb81fef..e659feb5010053f05070be17ecfef36e9ee138ba:/modules/eval.py diff --git a/modules/eval.py b/modules/eval.py index 5ac60fd..7536198 100644 --- a/modules/eval.py +++ b/modules/eval.py @@ -1,9 +1,10 @@ -# Erebus IRC bot - Author: John Runyon +# Erebus IRC bot - Author: Erebus Team # !EVAL and !EXEC commands +# This file is released into the public domain; see http://unlicense.org/ # module info modinfo = { - 'author': 'John Runyon (DimeCadmium)', + 'author': 'Erebus Team', 'license': 'public domain', 'compatible': [1], 'depends': [], @@ -18,8 +19,8 @@ modstop = lib.modstop # module code import sys - @lib.hook('eval', needchan=False, glevel=lib.MANAGER) +@lib.argsGE(1) def cmd_eval(bot, user, chan, realtarget, *args): if chan is not None: replyto = chan else: replyto = user @@ -30,6 +31,7 @@ def cmd_eval(bot, user, chan, realtarget, *args): @lib.hook('exec', needchan=False, glevel=lib.MANAGER) +@lib.argsGE(1) def cmd_exec(bot, user, chan, realtarget, *args): if chan is not None: replyto = chan else: replyto = user