Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / s_user.c
index 3af97a6d5e7fb30e34044e334a316e3d01fe5b86..b0ecdf76f63abc8cdbb8b1ca77296afe4744a6c6 100644 (file)
@@ -1218,7 +1218,8 @@ int set_user_mode(struct Client *cptr, struct Client *sptr, int parc, char *parv
        set_snomask(sptr, tmpmask, SNO_SET);
       if (cli_snomask(sptr) && snomask_given)
        send_reply(sptr, RPL_SNOMASK, cli_snomask(sptr), cli_snomask(sptr));
-    }
+    } else
+      set_snomask(sptr, 0, SNO_SET);
   }
   /*
    * Compare new flags with old flags and send string which