1
0
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:
Bram Matthys
2020-02-08 08:09:53 +01:00
parent de44549996
commit febc4a45f3
4 changed files with 32 additions and 50 deletions
+11 -4
View File
@@ -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