Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 4a82e024 authored by Randy Sommerfeld's avatar Randy Sommerfeld

Fix up STATS m and EVAL

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