if ((pcnt == 1) && (*parameters[0] == '<'))
pcnt = 0;
- for (chan_hash::const_iterator i = ServerInstance->chanlist.begin(); i != ServerInstance->chanlist.end(); i++)
+ for (chan_hash::const_iterator i = ServerInstance->chanlist->begin(); i != ServerInstance->chanlist->end(); i++)
{
// attempt to match a glob pattern
if (pcnt && !match(i->second->name, parameters[0]))