+ std::deque<std::string> n;
+ irc::spacesepstream spaced(ServerInstance->Modes->GetLastParse());
+ std::string one;
+ while (spaced.GetToken(one))
+ n.push_back(one);
+
+ std::string channel = n[0];
+ n.pop_front();
+ ServerInstance->PI->SendMode(channel, 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;