Skip to content

Commit

Permalink
helpserv/ticket: better integration of close reason
Browse files Browse the repository at this point in the history
(cherry picked from commit 9ebde91)
  • Loading branch information
Janik Kleinhoff authored and maxteufel committed Sep 24, 2016
1 parent 96f882d commit 477cbe9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions help/default/helpserv/close
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Help for CLOSE:
Close the help request from the given nick.
The user will be notified that their request was closed.

Syntax: CLOSE <nick>
Syntax: CLOSE <nick> [reason]

Examples:
/msg &nick& CLOSE Grue
/msg &nick& CLOSE Grue It is now no longer pitch dark.
5 changes: 4 additions & 1 deletion modules/helpserv/ticket.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ static void helpserv_cmd_close(sourceinfo_t *si, int parc, char *parv[])
}
}

logcommand(si, CMDLOG_REQUEST, "CLOSE: Help for \2%s\2 about \2%s\2", nick, l->topic);
if (parv[1] != NULL)
logcommand(si, CMDLOG_REQUEST, "CLOSE: Help for \2%s\2 about \2%s\2 (\2%s\2)", nick, l->topic, parv[1]);
else
logcommand(si, CMDLOG_REQUEST, "CLOSE: Help for \2%s\2 about \2%s\2", nick, l->topic);

mowgli_node_delete(n, &helpserv_reqlist);

Expand Down

0 comments on commit 477cbe9

Please sign in to comment.