Skip to content
Snippets Groups Projects
Commit 4a82e024 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Fix up STATS m and EVAL

parent b626a64c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -1237,9 +1237,9 @@ function Server_Work(cmdline) { ...@@ -1237,9 +1237,9 @@ function Server_Work(cmdline) {
/* This part only executed if the command was legal. */ /* This part only executed if the command was legal. */
if (!Profile[cmd.verb]) if (!Profile[cmd.verb])
Profile[cmd.verb] = new StatsM; Profile[cmd.verb] = new StatsM();
Profile[cmd.verb].executions++; Profile[cmd.verb].executions++;
Profile.ticks += system.timer - clockticks; Profile[cmd.verb].ticks += system.timer - clockticks;
} }
////////// Functions ////////// ////////// Functions //////////
......
...@@ -244,7 +244,7 @@ function Unregistered_Commands(cmdline) { ...@@ -244,7 +244,7 @@ function Unregistered_Commands(cmdline) {
/* This part only executed if the command was legal. */ /* This part only executed if the command was legal. */
if (!Profile[cmd.verb]) if (!Profile[cmd.verb])
Profile[cmd.verb] = new StatsM; Profile[cmd.verb] = new StatsM();
Profile[cmd.verb].executions++; Profile[cmd.verb].executions++;
Profile[cmd.verb].ticks += system.timer - clockticks; Profile[cmd.verb].ticks += system.timer - clockticks;
} }
......
...@@ -592,7 +592,6 @@ function User_Work(cmdline) { ...@@ -592,7 +592,6 @@ function User_Work(cmdline) {
this.server_notice("No expression provided to evaluate."); this.server_notice("No expression provided to evaluate.");
break; break;
} }
p.shift();
tmp = p.join(" "); tmp = p.join(" ");
umode_notice(USERMODE_DEBUG,"Debug",format( umode_notice(USERMODE_DEBUG,"Debug",format(
"Oper %s is using EVAL: %s", "Oper %s is using EVAL: %s",
...@@ -1484,7 +1483,7 @@ function User_Work(cmdline) { ...@@ -1484,7 +1483,7 @@ function User_Work(cmdline) {
/* This part only executed if the command was legal. */ /* This part only executed if the command was legal. */
if (!Profile[cmd.verb]) if (!Profile[cmd.verb])
Profile[cmd.verb] = new StatsM; Profile[cmd.verb] = new StatsM();
Profile[cmd.verb].executions++; Profile[cmd.verb].executions++;
Profile[cmd.verb].ticks += system.timer - clockticks; Profile[cmd.verb].ticks += system.timer - clockticks;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment