0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

override: Send notice when overriding can_send.

Also ensure no session deadline is maintained for a remote client.
This commit is contained in:
Jilles Tjoelker 2011-08-07 22:10:12 +02:00
parent 2a483a807d
commit b4cdedaa2a

View file

@ -191,13 +191,14 @@ hack_can_send(void *vdata)
if (data->client->umodes & user_modes['p'])
{
update_session_deadline(data->client, NULL);
data->approved = CAN_SEND_NONOP;
#ifdef XXX_UNSURE_IF_WANT
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is using oper-override on %s (banwalking)",
get_oper_name(data->client), data->chptr->chname);
#endif
if (MyClient(data->client))
{
update_session_deadline(data->client, NULL);
sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is using oper-override on %s (forcing message)",
get_oper_name(data->client), data->chptr->chname);
}
}
}