changed no modes <none> to just + same as /MODE shows
added zombie and delayedjoin prefix to header for check channel
changed all (timestamp) output to [timestamp] seems more consistent with other places (e.g. snomask HACK MODEs)
+added [<remote server>] param to syntax of command in the comments
-diff -r 8b5e0c204825 ircd/m_check.c
---- a/ircd/m_check.c Tue Mar 23 14:12:09 2010 +0100
-+++ b/ircd/m_check.c Tue Mar 23 14:13:56 2010 +0100
+diff -r a698927b198f ircd/m_check.c
+--- a/ircd/m_check.c
++++ b/ircd/m_check.c
+@@ -71,7 +71,7 @@
+ */
+
+ /*
+- * Syntax: CHECK <channel|nick|server|hostmask> [-flags]
++ * Syntax: CHECK [<remote server>] <channel|nick|server|hostmask> [-flags]
+ *
+ * Where valid flags are:
+ * -c: Show channels when checking a hostmask.
@@ -238,7 +238,7 @@
char *zombie, *showlevel;
/* Header */
- send_reply(sptr, RPL_DATASTR, " ");
-- send_reply(sptr, RPL_CHKHEAD, "channel", chptr->chname);
-- send_reply(sptr, RPL_DATASTR, " ");
+ send_reply(sptr, RPL_DATASTR, ": ");
-+ send_reply(sptr, RPL_CHKHEAD, ":channel", chptr->chname);
+ send_reply(sptr, RPL_CHKHEAD, "channel", chptr->chname);
+- send_reply(sptr, RPL_DATASTR, " ");
+ send_reply(sptr, RPL_DATASTR, ": ");
/* Creation Time */
/* Header */
- send_reply(sptr, RPL_DATASTR, " ");
-- send_reply(sptr, RPL_CHKHEAD, "user", cli_name(acptr));
-- send_reply(sptr, RPL_DATASTR, " ");
+ send_reply(sptr, RPL_DATASTR, ": ");
-+ send_reply(sptr, RPL_CHKHEAD, ":user", cli_name(acptr));
+ send_reply(sptr, RPL_CHKHEAD, "user", cli_name(acptr));
+- send_reply(sptr, RPL_DATASTR, " ");
+ send_reply(sptr, RPL_DATASTR, ": ");
- ircd_snprintf(0, outbuf, sizeof(outbuf), " Nick:: %s (%s%s)", cli_name(acptr), NumNick(acptr));
if (MyUser(acptr)) {
os_get_peername(con_fd(cli_connect(sptr)), &sin);
- send_reply(sptr, RPL_DATASTR, " ");
+- send_reply(sptr, RPL_DATASTR, " ");
- ircd_snprintf(0, outbuf, sizeof(outbuf), " Ports:: %d -> %d (client -> server)",
- sin.port, cli_listener(acptr)->addr.port);
- send_reply(sptr, RPL_DATASTR, outbuf);
++ send_reply(sptr, RPL_DATASTR, ": ");
+ send_reply(sptr, SND_EXPLICIT | RPL_DATASTR, ": Ports:: %d -> %d (client -> server)",
+ sin.port, cli_listener(acptr)->addr.port);
if (feature_bool(FEAT_EXTENDED_CHECKCMD)) {
/* Header */
- send_reply(sptr, RPL_DATASTR, " ");
-- send_reply(sptr, RPL_CHKHEAD, "server", acptr->cli_name);
-- send_reply(sptr, RPL_DATASTR, " ");
+ send_reply(sptr, RPL_DATASTR, ": ");
-+ send_reply(sptr, RPL_CHKHEAD, ":server", acptr->cli_name);
+ send_reply(sptr, RPL_CHKHEAD, "server", acptr->cli_name);
+- send_reply(sptr, RPL_DATASTR, " ");
+ send_reply(sptr, RPL_DATASTR, ": ");
- ircd_snprintf(0, outbuf, sizeof(outbuf), " Connected at:: %s (%Tu)", myctime(acptr->cli_serv->timestamp), acptr->cli_serv->timestamp);
if (count == 0) {
/* Output header */
- send_reply(sptr, RPL_DATASTR, " ");
-- send_reply(sptr, RPL_CHKHEAD, "host", targhost);
+ send_reply(sptr, RPL_DATASTR, ": ");
-+ send_reply(sptr, RPL_CHKHEAD, ":host", targhost);
+ send_reply(sptr, RPL_CHKHEAD, "host", targhost);
- send_reply(sptr, RPL_DATASTR, " ");
+ send_reply(sptr, RPL_DATASTR, ": ");
send_reply(sptr, RPL_ENDOFCHECK, " ");
}
-diff -r 8b5e0c204825 ircd/s_err.c
---- a/ircd/s_err.c Tue Mar 23 14:12:09 2010 +0100
-+++ b/ircd/s_err.c Tue Mar 23 14:13:56 2010 +0100
+diff -r a698927b198f ircd/s_err.c
+--- a/ircd/s_err.c
++++ b/ircd/s_err.c
@@ -612,7 +612,7 @@
/* 289 */
{ 0 },