Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / m_pong.c
index d5fee344db2da01457476f1960c076ee5e2e5284..bfe558cec2ab6b3d18374d4e467dfbf5f2b59b4a 100644 (file)
@@ -156,6 +156,7 @@ int mr_pong(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   assert(!IsRegistered(sptr));
 
   cptr->flags &= ~FLAGS_PINGSENT;
+  cptr->lasttime = CurrentTime;
   /*
    * Check to see if this is a PONG :cookie reply from an
    * unregistered user.  If so, process it. -record
@@ -189,6 +190,7 @@ int m_pong(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   assert(0 != cptr);
   assert(cptr == sptr);
   cptr->flags &= ~FLAGS_PINGSENT;
+  cptr->lasttime = CurrentTime;
   return 0;
 }