1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 15:03:12 +02:00

Fixed compile

This commit is contained in:
Adam
2011-03-14 20:16:38 -04:00
parent 2555d0d637
commit ddfb16de1a
32 changed files with 122 additions and 158 deletions
+6 -8
View File
@@ -593,11 +593,10 @@ XLine *SNLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
{
Anope::string rreason = "G-Lined: " + reason;
patricia_tree<User *, ci::ci_char_traits>::iterator uit(UserListByNick);
for (bool next = uit.next(); next;)
for (Anope::insensitive_map<User *>::const_iterator it = UserListByNick.begin(); it != UserListByNick.end();)
{
User *user = *uit;
next = uit.next();
User *user = it->second;
++it;
if (!user->HasMode(UMODE_OPER) && user->server != Me && Anope::Match(user->realname, x->Mask))
kill_user(Config->ServerName, user, rreason);
@@ -727,11 +726,10 @@ XLine *SQLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
}
else
{
patricia_tree<User *, ci::ci_char_traits>::iterator uit(UserListByNick);
for (bool next = uit.next(); next;)
for (Anope::insensitive_map<User *>::const_iterator it = UserListByNick.begin(); it != UserListByNick.end();)
{
User *user = *uit;
next = uit.next();
User *user = it->second;
++it;
if (!user->HasMode(UMODE_OPER) && user->server != Me && Anope::Match(user->nick, x->Mask))
kill_user(Config->ServerName, user, rreason);