Author: Alex Badea <vamposdecampos@gmail.com>
authorAlex Badea <vamposdecampos@gmail.com>
Sun, 11 Sep 2005 17:40:21 +0000 (17:40 +0000)
committerAlex Badea <vamposdecampos@gmail.com>
Sun, 11 Sep 2005 17:40:21 +0000 (17:40 +0000)
Log message:

Fixed AsLL code misplacement in m_ping.c, now it works again.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1477 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_ping.c

index a2ee1133b6de847281a04a18904003c339671f17..5ba9007eef21d51dfce03a5cef9fbfdeb5a6aad5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-11  Alex Badea <vamposdecampos@gmail.com>
+
+       * ircd/m_ping.c (ms_ping, mo_ping): misplaced chunk of code
+       (probably during the forward port) which broke AsLL; fixed.
+
 2005-09-01  Michael Poole <mdpoole@troilus.org>
 
        * ircd/gline.c (make_gline): Remove debug output from when IPv6
index 6766b60797b66683e2ecf8dd9aad614116fcf87f..c1393d44b95e10d6e72675c65caebfddf65446b1 100644 (file)
@@ -188,14 +188,6 @@ int mo_ping(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   origin = parv[1];
   destination = parv[2];        /* Will get NULL or pointer (parc >= 2!!) */
 
-  if (parc > 3)
-  {
-    /* AsLL ping, send reply back */
-    int diff = atoi(militime_float(parv[3]));
-    sendcmdto_one(&me, CMD_PONG, sptr, "%C %s %s %i %s", &me, origin,
-                  parv[3], diff, militime_float(NULL));
-    return 0;
-  }
   if (!EmptyString(destination) && 0 != ircd_strcmp(destination, cli_name(&me))) {
     if ((acptr = FindServer(destination)))
       sendcmdto_one(sptr, CMD_PING, acptr, "%C :%s", sptr, destination);
@@ -252,6 +244,14 @@ int ms_ping(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   origin      = parv[1];
   destination = parv[2];        /* Will get NULL or pointer (parc >= 2!!) */
 
+  if (parc > 3)
+  {
+    /* AsLL ping, send reply back */
+    int diff = atoi(militime_float(parv[3]));
+    sendcmdto_one(&me, CMD_PONG, sptr, "%C %s %s %i %s", &me, origin,
+                  parv[3], diff, militime_float(NULL));
+    return 0;
+  }
   if (!EmptyString(destination) && 0 != ircd_strcmp(destination, cli_name(&me))) {
     if ((acptr = FindServer(destination))) {
       /*