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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user