From b4cdedaa2a400bfdaaa4740966befdb16260e83e Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 7 Aug 2011 22:10:12 +0200 Subject: [PATCH] override: Send notice when overriding can_send. Also ensure no session deadline is maintained for a remote client. --- extensions/override.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/extensions/override.c b/extensions/override.c index 7c4fdf17a..bd31590dd 100644 --- a/extensions/override.c +++ b/extensions/override.c @@ -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); + } } }