]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - killalwaysshowvictimuip.patch
whonoidle: hide idle time of users with mode +I in non-HIS setup in WHO
[irc/quakenet/snircd-patchqueue.git] / killalwaysshowvictimuip.patch
CommitLineData
af6e0bfe 1show nick[user@host] in kills for remote users (user part is not shown in case the user did not have an ident reply)
3bf5cd42 2
af6e0bfe 3diff -r 2139c147d1ab ircd/m_kill.c
4--- a/ircd/m_kill.c Tue Mar 23 23:04:59 2010 +0100
5+++ b/ircd/m_kill.c Tue Mar 23 23:15:21 2010 +0100
3bf5cd42 6@@ -125,10 +125,17 @@
7 * Note: "victim->name" is used instead of "user" because we may
8 * have changed the target because of the nickname change.
9 */
10- sendto_opmask_butone(0, snomask,
11+ if (MyUser(victim))
12+ sendto_opmask_butone(0, snomask,
13 "Received KILL message for %s from %s Path: %s!%s %s",
14 get_client_name(victim, SHOW_IP), get_client_name_and_opername(sptr),
15 inpath, path, msg);
16+ else
17+ sendto_opmask_butone(0, snomask,
18+ "Received KILL message for %s[%s@%s] from %s Path: %s!%s %s",
af6e0bfe 19+ cli_name(victim), cli_user(victim)->realusername[0] != '~' ? cli_user(victim)->realusername : "", ircd_ntoa(&cli_ip(victim)),
3bf5cd42 20+ get_client_name_and_opername(sptr),
21+ inpath, path, msg);
22 log_write_kill(victim, sptr, inpath, path, msg);
23
24 /*