Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / m_wallops.c
index 8e6dfae7b6fd071d397fcf7764c8c386e01bf8eb..5c98a2400a6dd18c54371a83194b2fb6c4b0a6a3 100644 (file)
@@ -103,8 +103,7 @@ int ms_wallops(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   if (EmptyString(message))
     return need_more_params(sptr, "WALLOPS");
 
-  sendcmdto_flag_butone(sptr, CMD_WALLOPS, cptr, FLAGS_WALLOP | FLAGS_OPER,
-                       ":%s", message);
+  sendwallto_group_butone(sptr, WALL_WALLOPS, cptr, "%s", message);
   return 0;
 }
 
@@ -120,7 +119,6 @@ int mo_wallops(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   if (EmptyString(message))
     return need_more_params(sptr, "WALLOPS");
 
-  sendcmdto_flag_butone(sptr, CMD_WALLOPS, 0, FLAGS_WALLOP | FLAGS_OPER,
-                       ":* %s", message);
+  sendwallto_group_butone(sptr, WALL_WALLOPS, 0, "%s", message);
   return 0;
 }