@@ -39,6 +39,36 @@ class CommandChanFix final
3939 }
4040};
4141
42+ class CommandCSChanFix final
43+ : public Command
44+ {
45+ ChanFixCore& cf;
46+
47+ public:
48+ CommandCSChanFix (Module* creator, ChanFixCore& core)
49+ : Command(creator, " chanserv/chanfix" , 1 , 1 )
50+ , cf(core)
51+ {
52+ this ->SetDesc (" Request ChanFix for an unregistered channel." );
53+ this ->SetSyntax (" <#channel>" );
54+ this ->AllowUnregistered (true );
55+ }
56+
57+ void Execute (CommandSource& source, const std::vector<Anope::string>& params) override
58+ {
59+ cf.RequestFixFromChanServ (source, params[0 ]);
60+ }
61+
62+ bool OnHelp (CommandSource& source, const Anope::string&) override
63+ {
64+ source.Reply (" " );
65+ source.Reply (" Requests a fix for an unregistered channel." );
66+ source.Reply (" You must be opped in the channel or have chanfix/admin." );
67+ source.Reply (" Example: CHANFIX #channel" );
68+ return true ;
69+ }
70+ };
71+
4272class CommandChanFixScores final
4373 : public Command
4474{
@@ -236,6 +266,7 @@ class ChanFix final
236266 ChanFixCore core;
237267
238268 CommandChanFix cmd_chanfix;
269+ CommandCSChanFix cmd_cs_chanfix;
239270 CommandChanFixScores cmd_scores;
240271 CommandChanFixInfo cmd_info;
241272 CommandChanFixList cmd_list;
@@ -269,6 +300,7 @@ class ChanFix final
269300 : Module(modname, creator, VENDOR)
270301 , core(this )
271302 , cmd_chanfix(this , core)
303+ , cmd_cs_chanfix(this , core)
272304 , cmd_scores(this , core)
273305 , cmd_info(this , core)
274306 , cmd_list(this , core)
0 commit comments