]> jfr.im git - erebus.git/blobdiff - modules/eval.py
Added !MODLOAD, !MODUNLOAD, !MODRELOAD
[erebus.git] / modules / eval.py
index 5ac60fd9814a534c8e077130ef5f43fda20af894..159635fb3f99eb248c4f43eff1330af424e455ed 100644 (file)
@@ -20,6 +20,7 @@ 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