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

Add message tags (such as server-time) to PONG.

Requested by GaMbiTo- and KiwiIRC authors in
https://bugs.unrealircd.org/view.php?id=5758
This commit is contained in:
Bram Matthys
2020-09-27 16:49:40 +02:00
parent 42da15bb6e
commit b01cbff3e1
2 changed files with 11 additions and 2 deletions
+1
View File
@@ -7,6 +7,7 @@ Enhancements:
* Add support for ```estonian-utf8```, ```latvian-utf8``` and
```lithuanian-utf8``` in
[set::allowed-nickchars](https://www.unrealircd.org/docs/Nick_Character_Sets)
* Add message tags to ```PONG``` to help fix KiwiIRC timestamp issues.
Fixes:
* When having multiple text bans (```+b ~T:censor```) these caused an empty
+10 -2
View File
@@ -93,8 +93,13 @@ CMD_FUNC(cmd_ping)
}
}
else
sendto_one(client, NULL, ":%s PONG %s :%s", me.name,
{
MessageTag *mtags = NULL;
new_message(&me, recv_mtags, &mtags);
sendto_one(client, mtags, ":%s PONG %s :%s", me.name,
(destination) ? destination : me.name, origin);
free_message_tags(mtags);
}
}
/*
@@ -188,7 +193,10 @@ CMD_FUNC(cmd_pong)
return;
} else
{
sendto_one(target, NULL, ":%s PONG %s %s", client->name, origin, destination);
MessageTag *mtags = NULL;
new_message(client, recv_mtags, &mtags);
sendto_one(target, mtags, ":%s PONG %s %s", client->name, origin, destination);
free_message_tags(mtags);
}
}
else