if (it != whowas.end())
{
WhoWas::Nick* set = it->second;
- stdalgo::delete_all(set->entries);
-
delete set;
whowas.erase(it);
}
}
WhoWas::Nick* nick = iter->second;
- stdalgo::delete_all(nick->entries);
-
delete nick;
whowas.erase(iter);
whowas_fifo.pop_front();
for (whowas_users::iterator i = whowas.begin(); i != whowas.end(); ++i)
{
WhoWas::Nick* nick = i->second;
- whowas_set* set = &nick->entries;
- for (whowas_set::iterator j = set->begin(); j != set->end(); ++j)
- delete *j;
-
delete nick;
}
}
{
}
+WhoWas::Nick::~Nick()
+{
+ stdalgo::delete_all(entries);
+}
+
class ModuleWhoWas : public Module
{
CommandWhowas cmd;