mirror of
https://github.com/anope/anope.git
synced 2026-07-09 07:23:14 +02:00
Allow the patricia tree to store non-pointers
This commit is contained in:
@@ -30,7 +30,7 @@ class CommandBSBotList : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
@@ -47,7 +47,7 @@ class CommandBSBotList : public Command
|
||||
{
|
||||
u->SendMessage(BotServ, BOT_BOTLIST_PRIVATE_HEADER);
|
||||
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user