Author: Isomer <perry@coders.net>
[ircu2.10.12-pk.git] / ircd / m_silence.c
index 25867e9fb44d3f0457435841ad027f05b59b4ee0..6451d981c72bfb3582ece667338d2db7338d79a5 100644 (file)
@@ -170,12 +170,9 @@ int ms_silence(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   struct Client* acptr;
 
   if (IsServer(sptr)) {
-    /* PROTOCOL WARNING */
-    /* bail, don't core */
-    return 0;
+    return protocol_violation(sptr,"Server trying to silence a user");
   }
   if (parc < 3 || EmptyString(parv[2])) {
-    /* PROTOCOL WARNING */
     return need_more_params(sptr, "SILENCE");
   }