-void handle_samode(char **parameters, int pcnt, userrec *user)
-{
- /*
- * 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)
- {
- result=result + std::string(" ") + std::string(parameters[n]);
- n++;
+ /* XXX: Yes, this is right. We dont want to propagate the
+ * actual SAMODE command, just the MODE command generated
+ * by the Protocol Interface
+ */
+ return CMD_LOCALONLY;
+ }
+ else
+ {
+ user->WriteServ("NOTICE %s :*** Invalid SAMODE sequence.", user->nick.c_str());
+ }
+
+ return CMD_FAILURE;