1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 23:43:13 +02:00

Change (or delete) old sendto_ops() calls. Function is now gone.

This commit is contained in:
Bram Matthys
2021-09-23 19:14:10 +02:00
parent e36c85e4ce
commit b94707a51b
10 changed files with 37 additions and 69 deletions
+8 -9
View File
@@ -310,11 +310,6 @@ CMD_FUNC(cmd_sjoin)
sj3_parabuf[0] = '\0';
for (i = 2; i <= (parc - 2); i++)
{
if (!parv[i])
{
sendto_ops("Got null parv in SJ3 code");
continue;
}
strlcat(sj3_parabuf, parv[i], sizeof sj3_parabuf);
if (((i + 1) <= (parc - 2)))
strlcat(sj3_parabuf, " ", sizeof sj3_parabuf);
@@ -348,8 +343,10 @@ CMD_FUNC(cmd_sjoin)
if (!end)
{
/* this obviously should never happen */
sendto_ops("Malformed SJOIN piece from %s for channel %s: %s",
client->name, channel->name, tp);
unreal_log(ULOG_WARNING, "sjoin", "SJOIN_INVALID_SJSBY", NULL,
"SJOIN for channel $channel has invalid SJSBY in item '$item' (from $client)",
log_data_channel("channel", channel),
log_data_string("item", s));
continue;
}
*end++ = '\0';
@@ -358,8 +355,10 @@ CMD_FUNC(cmd_sjoin)
if (!p)
{
/* missing setby parameter */
sendto_ops("Malformed SJOIN piece from %s for channel %s: %s",
client->name, channel->name, tp);
unreal_log(ULOG_WARNING, "sjoin", "SJOIN_INVALID_SJSBY", NULL,
"SJOIN for channel $channel has invalid SJSBY in item '$item' (from $client)",
log_data_channel("channel", channel),
log_data_string("item", s));
continue;
}
*p++ = '\0';