summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-06-28 13:27:14 -0400
committerAdam <Adam@anope.org>2010-06-28 13:27:14 -0400
commitd99ee2d9a41fa74cb444cd46e215a8575fedad6b (patch)
tree936b1fd7b3d4125e1d3e0ccc85b63cd2cbd517ba /src/main.cpp
parentf1cb4b86b7b89430ee87cfb301f143e1e57c1b2d (diff)
This was in the wrong place, better now.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp20
1 files 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());
- 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; )
{
- /* 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;
+ User *u = it->second;
+ ++it;
- if (!findbot(u->nick))
- delete u;
- }
+ if (!findbot(u->nick))
+ delete u;
+ }
+ unsigned j = 0;
+ for (; j < (Config.MaxRetries ? Config.MaxRetries : j + 1); ++j)
+ {
Alog() << "Disconnected from the server, retrying in " << Config.RetryWait << " seconds";
sleep(Config.RetryWait);