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

Support for +draft/typing

This is the work from May 3rd.. need to commit it so i can merge the
flood protection that is related to this...
The final implementation will still need tweaking before pushed.
[skip ci]
This commit is contained in:
Bram Matthys
2020-05-05 20:16:56 +02:00
parent 331134649f
commit 57f524cbed
26 changed files with 275 additions and 131 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ ModuleHeader MOD_HEADER
long UMODE_SECUREONLYMSG = 0L;
/* Forward declarations */
int secureonlymsg_can_send_to_user(Client *client, Client *target, char **text, char **errmsg, int notice);
int secureonlymsg_can_send_to_user(Client *client, Client *target, char **text, char **errmsg, SendType sendtype);
MOD_INIT()
{
@@ -58,7 +58,7 @@ MOD_UNLOAD()
return MOD_SUCCESS;
}
int secureonlymsg_can_send_to_user(Client *client, Client *target, char **text, char **errmsg, int notice)
int secureonlymsg_can_send_to_user(Client *client, Client *target, char **text, char **errmsg, SendType sendtype)
{
if (IsSecureOnlyMsg(target) && !IsServer(client) && !IsULine(client) && !IsSecureConnect(client))
{