+/**
+ * Send a message to all marked connections using a specific prefix.
+ *
+ * @param Prefix The prefix to use.
+ * @param Buffer The message to send.
+ */
+static void
+Send_Marked_Connections(CLIENT *Prefix, const char *Buffer)
+{
+ CONN_ID conn;
+
+ assert(Prefix != NULL);
+ assert(Buffer != NULL);
+
+ conn = Conn_First();
+ while (conn != NONE) {
+ if (Conn_Flag(conn) == SEND_TO_SERVER)
+ Conn_WriteStr(conn, ":%s %s",
+ Client_ID(Prefix), Buffer);
+ else if (Conn_Flag(conn) == SEND_TO_USER)
+ Conn_WriteStr(conn, ":%s %s",
+ Client_MaskCloaked(Prefix), Buffer);
+ conn = Conn_Next(conn);
+ }
+}