Add a quit reason to the log messages printed by !log.

This commit is contained in:
Jan Vidar Krey
2009-08-02 22:53:25 +02:00
parent 1f24bd6812
commit 4666311516
7 changed files with 32 additions and 30 deletions

View File

@@ -459,7 +459,7 @@ static int command_log(struct hub_info* hub, struct hub_user* user, struct hub_c
if (show)
{
sprintf(tmp, "* %s %s, %s (%s)", get_timestamp(log->time), log->cid, log->nick, ip_convert_to_string(&log->addr));
sprintf(tmp, "* %s %s, %s [%s] - %s", get_timestamp(log->time), log->cid, log->nick, ip_convert_to_string(&log->addr), user_get_quit_reason_string(log->reason));
send_message(hub, user, tmp);
}
log = (struct hub_logout_info*) list_get_next(messages);