]> jfr.im git - irc/quakenet/snircd-patchqueue.git/commitdiff
killalwaysshowvictimuip: show nick[user@ip] in kill messages for remote users.
authorwiebe <redacted>
Thu, 18 Mar 2010 12:25:22 +0000 (13:25 +0100)
committerwiebe <redacted>
Thu, 18 Mar 2010 12:25:22 +0000 (13:25 +0100)
killalwaysshowvictimuip.patch [new file with mode: 0644]
series

diff --git a/killalwaysshowvictimuip.patch b/killalwaysshowvictimuip.patch
new file mode 100644 (file)
index 0000000..3cd44a2
--- /dev/null
@@ -0,0 +1,24 @@
+show nick[user@host] in kills for remote users
+
+diff -r 8273a0f68e66 ircd/m_kill.c
+--- a/ircd/m_kill.c    Thu Mar 18 12:44:52 2010 +0100
++++ b/ircd/m_kill.c    Thu Mar 18 13:23:51 2010 +0100
+@@ -125,10 +125,17 @@
+    * Note: "victim->name" is used instead of "user" because we may
+    *       have changed the target because of the nickname change.
+    */
+-  sendto_opmask_butone(0, snomask,
++  if (MyUser(victim))
++    sendto_opmask_butone(0, snomask,
+                        "Received KILL message for %s from %s Path: %s!%s %s",
+                        get_client_name(victim, SHOW_IP), get_client_name_and_opername(sptr),
+                        inpath, path, msg);
++  else
++    sendto_opmask_butone(0, snomask,
++                       "Received KILL message for %s[%s@%s] from %s Path: %s!%s %s",
++                       cli_name(victim), cli_username(victim), ircd_ntoa(&cli_ip(victim)),
++                       get_client_name_and_opername(sptr),
++                       inpath, path, msg);
+   log_write_kill(victim, sptr, inpath, path, msg);
+   /*
diff --git a/series b/series
index 0960d6645238bf827ec153f3e4b098396ed1d4da..077482251030ad36d91331b6ad836f21c0a26505 100644 (file)
--- a/series
+++ b/series
@@ -12,6 +12,7 @@ opername.patch
 noticepluschan.patch
 autosethost.patch
 netriderkickoutsideburst.patch
+killalwaysshowvictimuip.patch
 whomatch.patch
 chanopaccountabilityforkickdelayedjoin.patch
 ulined.patch