From ddfb16de1a61a9b80ece0ba6e5fd34326abf5f18 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 14 Mar 2011 20:16:38 -0400 Subject: Fixed compile --- modules/protocol/ngircd.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/protocol/ngircd.cpp') diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp index 94b253a58..6e1f21feb 100644 --- a/modules/protocol/ngircd.cpp +++ b/modules/protocol/ngircd.cpp @@ -46,9 +46,13 @@ class ngIRCdProto : public IRCDProto void SendAkill(User *u, const XLine *x) { if (SGLine && u == NULL) - for (patricia_tree::iterator it(UserListByNick); it.next();) - if (SGLine->Check(*it) != NULL) + for (Anope::insensitive_map::iterator it = UserListByNick.begin(); it != UserListByNick.end();) + { + u = it->second; + ++it; + if (SGLine->Check(u) != NULL) break; + } } void SendAkillDel(const XLine*) { } -- cgit