- if (channel->IsModeSet('K'))
- {
- channel->SetMode('K',false);
- return MODEACTION_ALLOW;
- }
- }
-
- return MODEACTION_DENY;
- }
-};
-
-class ModuleKnock : public Module
-{
- cmd_knock* mycommand;
- Knock* kn;
- public:
- ModuleKnock(InspIRCd* Me) : Module::Module(Me)
- {
-
- kn = new Knock(ServerInstance);
- ServerInstance->AddMode(kn, 'K');
- mycommand = new cmd_knock();
- ServerInstance->AddCommand(mycommand);
- }
-
- void Implements(char* List)
- {
- List[I_On005Numeric] = 1;
- }
+ Numeric::Numeric numeric(710);
+ numeric.push(c->name).push(user->GetFullHost()).push("is KNOCKing: " + parameters[1]);