]> jfr.im git - irc/quakenet/snircd-patchqueue.git/commitdiff
checkendof: make RPL_ENDOFCHECK consistent with other end of replies, changed text...
authorwiebe <redacted>
Tue, 23 Mar 2010 13:04:36 +0000 (14:04 +0100)
committerwiebe <redacted>
Tue, 23 Mar 2010 13:04:36 +0000 (14:04 +0100)
checkendof.patch [new file with mode: 0644]
series

diff --git a/checkendof.patch b/checkendof.patch
new file mode 100644 (file)
index 0000000..5c4a2bc
--- /dev/null
@@ -0,0 +1,53 @@
+make RPL_ENDOFCHECK consistent with other end of replies, changed text and feed back the input from the client
+
+diff -r cb747bd739fe ircd/m_check.c
+--- a/ircd/m_check.c   Tue Mar 23 13:58:42 2010 +0100
++++ b/ircd/m_check.c   Tue Mar 23 14:03:15 2010 +0100
+@@ -356,7 +356,7 @@
+       send_reply(sptr, RPL_DATASTR, ":<none>");
+   }
+-  send_reply(sptr, RPL_ENDOFCHECK, " ");
++  send_reply(sptr, RPL_ENDOFCHECK, chptr->chname);
+ }
+ void checkChannel(struct Client *sptr, struct Channel *chptr) {
+@@ -532,7 +532,7 @@
+   }
+   /* Send 'END OF CHECK' message */
+-  send_reply(sptr, RPL_ENDOFCHECK, " ");
++  send_reply(sptr, RPL_ENDOFCHECK, cli_name(acptr));
+ }
+ void checkServer(struct Client *sptr, struct Client *acptr) {
+@@ -583,7 +583,7 @@
+   }
+   /* Send 'END OF CHECK' message */
+-  send_reply(sptr, RPL_ENDOFCHECK, " ");
++  send_reply(sptr, RPL_ENDOFCHECK, acptr->cli_name);
+ }
+ signed int checkHostmask(struct Client *sptr, char *orighoststr, int flags) {
+@@ -772,7 +772,7 @@
+   if (count > 0) {
+     send_reply(sptr, RPL_DATASTR, ": ");
+     send_reply(sptr, SND_EXPLICIT | RPL_DATASTR, ":Matching records found:: %d", count);
+-    send_reply(sptr, RPL_ENDOFCHECK, " ");
++    send_reply(sptr, RPL_ENDOFCHECK, orighoststr);
+   }
+   return count;
+diff -r cb747bd739fe ircd/s_err.c
+--- a/ircd/s_err.c     Tue Mar 23 13:58:42 2010 +0100
++++ b/ircd/s_err.c     Tue Mar 23 14:03:15 2010 +0100
+@@ -614,7 +614,7 @@
+ /* 290 */
+   { RPL_DATASTR, "%s", "290" },
+ /* 291 */
+-  { RPL_ENDOFCHECK, ":%s", "291" },
++  { RPL_ENDOFCHECK, "%s :End of /CHECK list.", "291" },
+ /* 292 */
+   { 0 },
+ /* 293 */
diff --git a/series b/series
index d21f20cff3573574e361c7d23f7170fcde55a955..7201244a6fb5d59459ee3eff7000960675e7a9f1 100644 (file)
--- a/series
+++ b/series
@@ -9,6 +9,7 @@ invalidatebanssethost.patch
 localoperkill.patch
 freetargetcheckaftermodechecks.patch
 checkoutput.patch
+checkendof.patch
 commonchansumode.patch
 who-accountid.patch
 centralizemodecccheck.patch