summaryrefslogtreecommitdiff
path: root/src/whowas.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/whowas.c')
-rw-r--r--src/whowas.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/whowas.c b/src/whowas.c
index 0a19446..2df8933 100644
--- a/src/whowas.c
+++ b/src/whowas.c
@@ -36,6 +36,15 @@ dlink_list WHOWASHASH[HASHSIZE];
void
+whowas_init(void)
+{
+ unsigned int idx;
+
+ for (idx = 0; idx < NICKNAMEHISTORYLENGTH; ++idx)
+ WHOWAS[idx].hashv = -1;
+}
+
+void
add_history(struct Client *client_p, const int online)
{
static unsigned int whowas_next = 0;
@@ -131,12 +140,3 @@ count_whowas_memory(unsigned int *wwu, uint64_t *wwum)
*wwu = u;
*wwum = um;
}
-
-void
-whowas_init(void)
-{
- unsigned int idx;
-
- for (idx = 0; idx < NICKNAMEHISTORYLENGTH; ++idx)
- WHOWAS[idx].hashv = -1;
-}