class NoKicks : public SimpleChannelModeHandler
{
public:
- NoKicks(InspIRCd* Instance, Module* Creator) : SimpleChannelModeHandler(Instance, Creator, 'Q') { }
+ NoKicks(Module* Creator) : SimpleChannelModeHandler(Creator, "nokick", 'Q') { }
};
class ModuleNoKicks : public Module
NoKicks nk;
public:
- ModuleNoKicks(InspIRCd* Me)
- : Module(Me), nk(Me, this)
+ ModuleNoKicks()
+ : nk(this)
{
if (!ServerInstance->Modes->AddMode(&nk))
throw ModuleException("Could not add new modes!");
{
if (!memb->chan->GetExtBanStatus(source, 'Q').check(!memb->chan->IsModeSet('Q')))
{
- if ((ServerInstance->ULine(source->nick.c_str())) || (ServerInstance->ULine(source->server)) || (!*source->server))
+ if ((ServerInstance->ULine(source->nick.c_str())) || ServerInstance->ULine(source->server))
{
// ulines can still kick with +Q in place
return MOD_RES_PASSTHRU;
~ModuleNoKicks()
{
- ServerInstance->Modes->DelMode(&nk);
}
Version GetVersion()