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
added basic ssl support to ircu
[ircu2.10.12-pk.git]
/
ircd
/
m_pong.c
diff --git
a/ircd/m_pong.c
b/ircd/m_pong.c
index 60c22fbeff364e92f0ff16147ef5848b3ebe9a78..df29b9f6714ace850041b1f669e08094c62e2226 100644
(file)
--- a/
ircd/m_pong.c
+++ b/
ircd/m_pong.c
@@
-119,8
+119,8
@@
int ms_pong(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
}
origin = parv[1];
destination = parv[2];
}
origin = parv[1];
destination = parv[2];
- Cl
rFlag(cptr, FLAG_PINGSENT
);
- Cl
rFlag(sptr, FLAG_PINGSENT
);
+ Cl
earPingSent(cptr
);
+ Cl
earPingSent(sptr
);
cli_lasttime(cptr) = CurrentTime;
if (parc > 5)
cli_lasttime(cptr) = CurrentTime;
if (parc > 5)
@@
-129,6
+129,7
@@
int ms_pong(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
cli_serv(cptr)->asll_rtt = atoi(militime_float(parv[3]));
cli_serv(cptr)->asll_to = atoi(parv[4]);
cli_serv(cptr)->asll_from = atoi(militime_float(parv[5]));
cli_serv(cptr)->asll_rtt = atoi(militime_float(parv[3]));
cli_serv(cptr)->asll_to = atoi(parv[4]);
cli_serv(cptr)->asll_from = atoi(militime_float(parv[5]));
+ cli_serv(cptr)->asll_last = CurrentTime;
return 0;
}
return 0;
}
@@
-162,10
+163,7
@@
int mr_pong(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
assert(cptr == sptr);
assert(!IsRegistered(sptr));
assert(cptr == sptr);
assert(!IsRegistered(sptr));
- if (!HasFlag(cptr, FLAG_PINGSENT))
- return 0;
- ClrFlag(cptr, FLAG_PINGSENT);
- cli_lasttime(cptr) = CurrentTime;
+ ClearPingSent(cptr);
return (parc > 1) ? auth_set_pong(cli_auth(sptr), strtoul(parv[parc - 1], NULL, 10)) : 0;
}
return (parc > 1) ? auth_set_pong(cli_auth(sptr), strtoul(parv[parc - 1], NULL, 10)) : 0;
}
@@
-181,7
+179,7
@@
int m_pong(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
assert(0 != cptr);
assert(cptr == sptr);
assert(0 != cptr);
assert(cptr == sptr);
- Cl
rFlag(cptr, FLAG_PINGSENT
);
+ Cl
earPingSent(cptr
);
cli_lasttime(cptr) = CurrentTime;
return 0;
}
cli_lasttime(cptr) = CurrentTime;
return 0;
}