}
const UserMembList* users = c->GetUsers();
for(UserMembCIter j = users->begin(); j != users->end(); ++j)
- if (IS_LOCAL(j->first) && !c->ServerKickUser(j->first, "Channel name no longer valid", NULL))
- delete c;
+ if (IS_LOCAL(j->first))
+ c->KickUser(ServerInstance->FakeClient, j->first, "Channel name no longer valid");
}
badchan = false;
}
virtual Version GetVersion()
{
- return Version("Implements config tags which allow changing characters allowed in channel names", VF_VENDOR,API_VERSION);
+ return Version("Implements config tags which allow changing characters allowed in channel names", VF_VENDOR);
}
};