Skip to content
Snippets Groups Projects
Commit d63a661b authored by mcmlxxix's avatar mcmlxxix
Browse files

added 'DEBUG' command. (caution: spam)

parent f1ca0b11
No related branches found
No related tags found
No related merge requests found
......@@ -577,4 +577,13 @@ this.Bot_Commands["FORCE"].command = function (target,onick,ouh,srv,lvl,cmd) {
return;
}
srv.check_bot_command(target,onick,srv.users[onick.toUpperCase()].uh,cmd.join(" "));
}
\ No newline at end of file
}
this.Bot_Commands["DEBUG"] = new Bot_Command(90,true,true);
this.Bot_Commands["DEBUG"].command = function (target,onick,ouh,srv,lvl,cmd) {
cmd.shift();
var data=eval(cmd.join(" "));
var str=debug_trace(data,1).split("\r\n");
while(str.length) srv.o(target,str.shift());
return;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment