Add tests for WHOWAS. (#138)

This commit is contained in:
2022-03-19 20:20:50 +01:00
committed by GitHub
parent c47b057546
commit 7b38c2be8a
11 changed files with 241 additions and 8 deletions

View File

@ -0,0 +1,19 @@
ngIRCd skips WHOWAS entries for users that were connected for less
than 30 seconds.
To avoid waiting 30s in every WHOWAS test, we need to remove this.
diff --git a/src/ngircd/client.c b/src/ngircd/client.c
index 67c02604..66e8e540 100644
--- a/src/ngircd/client.c
+++ b/src/ngircd/client.c
@@ -1490,9 +1490,6 @@ Client_RegisterWhowas( CLIENT *Client )
return;
now = time(NULL);
- /* Don't register clients that were connected less than 30 seconds. */
- if( now - Client->starttime < 30 )
- return;
slot = Last_Whowas + 1;
if( slot >= MAX_WHOWAS || slot < 0 ) slot = 0;