mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 10:43:13 +02:00
Updated labeled-response: drop the draft/ prefix now that the specification
is ratified and also fix a serious flood bug in the implementation. Oh, and move the loadmodule line to the correct place in modules.default.conf.
This commit is contained in:
+11
-4
@@ -93,10 +93,17 @@ CMD_FUNC(cmd_batch)
|
||||
if (MyConnect(target) && !IsServer(target) && !HasCapability(target, "batch"))
|
||||
return;
|
||||
|
||||
/* Relay the batch message to the client (or server) */
|
||||
parv[1] = "BATCH";
|
||||
concat_params(buf, sizeof(buf), parc, parv);
|
||||
sendto_prefix_one(target, client, recv_mtags, "%s", buf);
|
||||
if (MyUser(target))
|
||||
{
|
||||
/* Send the batch message to the client */
|
||||
parv[1] = "BATCH";
|
||||
concat_params(buf, sizeof(buf), parc, parv);
|
||||
sendto_prefix_one(target, client, recv_mtags, ":%s %s", client->name, buf);
|
||||
} else {
|
||||
/* Relay the batch message to the server */
|
||||
concat_params(buf, sizeof(buf), parc, parv);
|
||||
sendto_prefix_one(target, client, recv_mtags, ":%s BATCH %s", client->name, buf);
|
||||
}
|
||||
}
|
||||
|
||||
/** This function verifies if the client sending
|
||||
|
||||
Reference in New Issue
Block a user