]> jfr.im git - irc/ircd-hybrid/bopm.git/commitdiff
src/opercmd.c:
authorandy <redacted>
Sat, 10 Aug 2002 19:07:39 +0000 (19:07 +0000)
committerandy <redacted>
Sat, 10 Aug 2002 19:07:39 +0000 (19:07 +0000)
Stupidly missed a parameter off the format, which causes segfault
when a command expires (virtually never, in practice).  Also got
the args to dissect_time wrong!

src/opercmd.c

index 11a8002505577cfa5089bf3f5663e31ceccae745..48cc7db514a162936e024d2157a0f3931af68f67 100644 (file)
@@ -162,9 +162,9 @@ void reap_commands(time_t present)
                    (present - cmd_stack[c].added >= 120)) {
                        irc_send("PRIVMSG %s :Reaping dead command from "
                            "%s of type %u with param '%s', added %s ago.",
-                           cmd_stack[c].nick, cmd_stack[c].type,
-                           cmd_stack[c].param,
-                           dissect_time(present - cmd_stack[c].added));
+                           cmd_stack[c].target, cmd_stack[c].nick,
+                           cmd_stack[c].type, cmd_stack[c].param,
+                           dissect_time(cmd_stack[c].added));
                        delete_command(c);
                }
        }