Author: Isomer <perry@coders.net>
[ircu2.10.12-pk.git] / ircd / m_away.c
index db726ffce8c45998e0546db758ab8df2dc24ebcb..959508429cc80424f917605a9e254793285ab563 100644 (file)
@@ -141,7 +141,7 @@ int ms_away(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
    * servers can't set away
    */
   if (IsServer(sptr))
-    return 0;
+    return protocol_violation(sptr,"Server trying to set itself away");
 
   if (user_set_away(sptr->user, away_message))
     sendcmdto_serv_butone(sptr, CMD_AWAY, cptr, ":%s", away_message);