@ -2662,9 +2663,14 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
@@ -2662,9 +2663,14 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
@cmd("eval",owner_only=True)
@pmcmd("eval",owner_only=True)
defpyeval(cli,nick,chan,rest):
defpyeval(cli,nick,*rest):
rest=list(rest)
iflen(rest)==2:
chan=rest.pop(0)
else:
chan=nick
try:
a=str(eval(rest))
a=str(eval(rest[0]))
iflen(a)<500:
cli.msg(chan,a)
else:
@ -2676,9 +2682,14 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
@@ -2676,9 +2682,14 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS: