From d99ee2d9a41fa74cb444cd46e215a8575fedad6b Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 28 Jun 2010 13:27:14 -0400 Subject: [PATCH] This was in the wrong place, better now. --- src/main.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f5eb3c915..7634a0e15 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -548,19 +548,19 @@ int main(int ac, char **av, char **envp) { FOREACH_MOD(I_OnServerDisconnect, OnServerDisconnect()); + /* Clear all of our users, but not our bots */ + for (user_map::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ) + { + User *u = it->second; + ++it; + + if (!findbot(u->nick)) + delete u; + } + unsigned j = 0; for (; j < (Config.MaxRetries ? Config.MaxRetries : j + 1); ++j) { - /* Clear all of our users, but not our bots */ - for (user_map::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ) - { - User *u = it->second; - ++it; - - if (!findbot(u->nick)) - delete u; - } - Alog() << "Disconnected from the server, retrying in " << Config.RetryWait << " seconds"; sleep(Config.RetryWait);