summaryrefslogtreecommitdiff
path: root/src/operserv.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-11-21 00:20:36 -0500
committerAdam <Adam@anope.org>2010-12-12 19:35:30 -0500
commit7790a7f98c56a16e6fed2bf51168881902880c62 (patch)
tree1c1854ec1ef603385c7c85fb967e0500fbc55315 /src/operserv.cpp
parent246f44b9888161aecefc81f0ff17ddd893287e3c (diff)
Allow the patricia tree to store non-pointers
Diffstat (limited to 'src/operserv.cpp')
-rw-r--r--src/operserv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operserv.cpp b/src/operserv.cpp
index 727432585..e7de407bd 100644
--- a/src/operserv.cpp
+++ b/src/operserv.cpp
@@ -582,7 +582,7 @@ XLine *SNLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
{
Anope::string rreason = "G-Lined: " + reason;
- 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 *user = *it;
++it;
@@ -683,7 +683,7 @@ XLine *SQLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
}
else
{
- 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 *user = *it;
++it;