Explorar o código

Touch the key timestamp when receiving messages in FiSH from users (#23)

Bryan Drewery %!s(int64=14) %!d(string=hai) anos
pai
achega
ecfb9fff53
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/mod/server.mod/servmsg.c

+ 1 - 0
src/mod/server.mod/servmsg.c

@@ -167,6 +167,7 @@ static int check_bind_raw(char *from, char *code, char *msg)
 
         if (FishKeys.contains(nick)) {
           sharedKey = FishKeys[nick]->sharedKey;
+          FishKeys[nick]->timestamp = now;
         } else {
           struct userrec *u = get_user_by_host(from);
           if (u) {