projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6858896
)
Don't count IDLE as a command
author
Ari Johnson
<ari@theari.com>
Mon, 15 Dec 2008 15:53:07 +0000
(15:53 +0000)
committer
Ari Johnson
<ari@theari.com>
Mon, 15 Dec 2008 15:53:07 +0000
(15:53 +0000)
src/bsd.c
patch
|
blob
|
history
src/prog.c
patch
|
blob
|
history
diff --git
a/src/bsd.c
b/src/bsd.c
index e85a4eaa0a6a6224b76d850d72f7442b4d8352e0..c59e9ba9914b881513f44e65b17a6f7930c765f1 100644
(file)
--- a/
src/bsd.c
+++ b/
src/bsd.c
@@
-2748,10
+2748,11
@@
do_command(DESC *d, char *command)
depth = 0;
- (d->cmds)++;
-
if (!strcmp(command, IDLE_COMMAND))
return 1;
+
+ (d->cmds)++;
+
if(difftime(mudtime, d->last_time) >= 300) {
d->idle_total += difftime(mudtime, d->last_time);
d->unidle_times++;
diff --git
a/src/prog.c
b/src/prog.c
index 613fdd423c0a44d6a22a86256a32bdda02a98a6c..11602c50ecd04579523f6c44c7e7992003e7dd67 100644
(file)
--- a/
src/prog.c
+++ b/
src/prog.c
@@
-461,10
+461,9
@@
prog_handler(DESC * d, char *input)
char *p_buf[NUMQ];
int rcnt, i;
- if (!strcmp(input, "IDLE")) {
- (d->cmds)++;
+ if (!strcmp(input, "IDLE"))
return 1;
- }
+
/* handle escaped commandz */
if (d->pinfo.lock) {
if (!strcmp(input, "|QUIT")) {