projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treat G-line-related times as network times, rather than local times.
[ircu2.10.12-pk.git]
/
ircd
/
m_ping.c
diff --git
a/ircd/m_ping.c
b/ircd/m_ping.c
index 435b7c68d1006b89ef0f1674c9390946832b6f82..c1393d44b95e10d6e72675c65caebfddf65446b1 100644
(file)
--- a/
ircd/m_ping.c
+++ b/
ircd/m_ping.c
@@
-134,6
+134,7
@@
#include "client.h"
#include "hash.h"
#include "client.h"
#include "hash.h"
+#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_string.h"
#include "ircd.h"
#include "ircd_reply.h"
#include "ircd_string.h"
#include "ircd.h"
@@
-144,7
+145,7
@@
#include "s_debug.h"
#include "send.h"
#include "s_debug.h"
#include "send.h"
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
@@
-187,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!!) */
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);
if (!EmptyString(destination) && 0 != ircd_strcmp(destination, cli_name(&me))) {
if ((acptr = FindServer(destination)))
sendcmdto_one(sptr, CMD_PING, acptr, "%C :%s", sptr, destination);
@@
-230,7
+223,7
@@
int mo_ping(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
*/
/*
*/
/*
- * ms_ping - server message handler
template
+ * ms_ping - server message handler
*/
int ms_ping(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
*/
int ms_ping(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
@@
-251,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!!) */
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))) {
/*
if (!EmptyString(destination) && 0 != ircd_strcmp(destination, cli_name(&me))) {
if ((acptr = FindServer(destination))) {
/*