- /*
- * Handles an SAMODE request. Notifies all +s users.
- */
- int n=0;
- std::string result;
- Srv->Log(DEBUG,"SAMODE: Being handled");
- Srv->SendMode(parameters,pcnt,user);
- Srv->Log(DEBUG,"SAMODE: Modechange handled");
- result = std::string(user->nick) + std::string(" used SAMODE ");
- while (n<pcnt)
+ public:
+ bool active;
+ CommandSamode(Module* Creator) : Command(Creator,"SAMODE", 2)
+ {
+ allow_empty_last_param = false;
+ flags_needed = 'o'; Penalty = 0; syntax = "<target> <modes> {<mode-parameters>}";
+ active = false;
+ }
+
+ CmdResult Handle (const std::vector<std::string>& parameters, User *user)