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

moved SEVAL to main bot commands

parent abb3754b
No related branches found
No related tags found
No related merge requests found
......@@ -340,18 +340,6 @@ Bot_Commands["EVAL"].command = function (target,onick,ouh,srv,lvl,cmd) {
return;
}
Bot_Commands["SEVAL"] = new Bot_Command(99,true,true);
Bot_Commands["SEVAL"].command = function (target,onick,ouh,srv,lvl,cmd) {
cmd.shift();
var query = cmd.join(" ");
try {
srv.o(target,eval(query));
} catch(e) {
srv.o(target,"ERROR: "+e);
}
return;
}
Bot_Commands["GROUPS"] = new Bot_Command(50,true,false);
Bot_Commands["GROUPS"].command = function (target,onick,ouh,srv,lvl,cmd) {
for (g in msg_area.grp_list) {
......
......@@ -145,6 +145,18 @@ Bot_Commands["HELP"].command = function (target,onick,ouh,srv,lvl,cmd) {
}
Bot_Commands["?"] = Bot_Commands["HELP"];
Bot_Commands["SEVAL"] = new Bot_Command(99,true,true);
Bot_Commands["SEVAL"].command = function (target,onick,ouh,srv,lvl,cmd) {
cmd.shift();
var query = cmd.join(" ");
try {
srv.o(target,eval(query));
} catch(e) {
srv.o(target,"ERROR: "+e);
}
return;
}
Bot_Commands["GREET"] = new Bot_Command(50,false,false);
Bot_Commands["GREET"].usage =
get_cmd_prefix() + "GREET <greeting> or " +
......
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