* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2010 InspIRCd Development Team
* See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
modes.push_back(c->name);
modes.push_back("-P");
- ServerInstance->SendMode(modes, ServerInstance->FakeClient);
- ServerInstance->PI->SendMode(c->name, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate());
+ ServerInstance->SendGlobalMode(modes, ServerInstance->FakeClient);
}
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;
}
while (0 != (allowno = allowrange.GetToken()))
allowedmap[(unsigned char)(allowno)] = true;
- allowedmap[7] = false;
- allowedmap[' '] = false;
- allowedmap[','] = false;
+ allowedmap[0x07] = false; // BEL
+ allowedmap[0x20] = false; // ' '
+ allowedmap[0x2C] = false; // ','
ValidateChans();
}
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);
}
};