mirror of
https://github.com/anope/anope.git
synced 2026-07-04 23:53:13 +02:00
Added patricia_tree::iterator
This commit is contained in:
+4
-3
@@ -85,10 +85,11 @@ Server::~Server()
|
||||
|
||||
if (Capab.HasFlag(CAPAB_NOQUIT) || Capab.HasFlag(CAPAB_QS))
|
||||
{
|
||||
for (patricia_tree<User *>::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end;)
|
||||
patricia_tree<User *, ci::ci_char_traits>::iterator uit(UserListByNick);
|
||||
for (bool next = uit.next(); next;)
|
||||
{
|
||||
User *u = *it;
|
||||
++it;
|
||||
User *u = *uit;
|
||||
next = uit.next();
|
||||
|
||||
if (u->server == this)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user