diff options
author | Adam <Adam@anope.org> | 2010-11-21 00:20:36 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:35:30 -0500 |
commit | 7790a7f98c56a16e6fed2bf51168881902880c62 (patch) | |
tree | 1c1854ec1ef603385c7c85fb967e0500fbc55315 /src/main.cpp | |
parent | 246f44b9888161aecefc81f0ff17ddd893287e3c (diff) |
Allow the patricia tree to store non-pointers
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index a18d19a56..180af0729 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -172,7 +172,7 @@ void do_restart_services() if (quitmsg.empty()) quitmsg = "Restarting"; /* Send a quit for all of our bots */ - for (patricia_tree<BotInfo>::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) + for (patricia_tree<BotInfo *>::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) { BotInfo *bi = *it; @@ -214,7 +214,7 @@ static void services_shutdown() if (started && UplinkSock) { /* Send a quit for all of our bots */ - for (patricia_tree<BotInfo>::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) + for (patricia_tree<BotInfo *>::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it) { BotInfo *bi = *it; @@ -495,7 +495,7 @@ int main(int ac, char **av, char **envp) FOREACH_MOD(I_OnServerDisconnect, OnServerDisconnect()); /* Clear all of our users, but not our bots */ - for (patricia_tree<User>::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end;) + for (patricia_tree<User *>::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end;) { User *u = *it; ++it; |