summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8ffc8df13..32896282d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -557,6 +557,15 @@ int main(int ac, char **av, char **envp)
{
FOREACH_MOD(I_OnServerDisconnect, OnServerDisconnect());
+ /* Clear all of our users */
+ User *u = firstuser();
+ while (u)
+ {
+ User *unext = nextuser();
+ delete u;
+ u = unext;
+ }
+
unsigned j = 0;
for (; j < (Config.MaxRetries ? Config.MaxRetries : j + 1); ++j)
{