From 05727b8b52e98893b70d0086adaabbacb619d95d Mon Sep 17 00:00:00 2001 From: Moc Date: Thu, 30 Nov 2023 20:56:51 +0100 Subject: [PATCH] Fixes #3612 - user_ban_flood notification now shows IP in IPv4 format if possible --- e107_handlers/online_class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_handlers/online_class.php b/e107_handlers/online_class.php index 0cd3b5b48..76206f657 100755 --- a/e107_handlers/online_class.php +++ b/e107_handlers/online_class.php @@ -294,8 +294,9 @@ class e_online e107::lan('core','banlist',true);//e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_banlist.php' $reason = e107::getParser()->lanVars(BANLAN_78,$row['online_pagecount']); // str_replace('--HITS--',$row['online_pagecount'], BANLAN_78) - if (true === e107::getIPHandler()->add_ban(2, $reason, $ip,0)) + if (true === e107::getIPHandler()->add_ban(2, $reason, $ip, 0)) { + $ip = e107::getIPHandler()->ipDecode($ip); e107::getEvent()->trigger('flood', $ip); //BC e107::getEvent()->trigger('user_ban_flood', $ip); exit;