mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 18:30:53 +02:00
Fixes #3612 - user_ban_flood notification now shows IP in IPv4 format if possible
This commit is contained in:
@@ -296,6 +296,7 @@ class e_online
|
|||||||
|
|
||||||
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('flood', $ip); //BC
|
||||||
e107::getEvent()->trigger('user_ban_flood', $ip);
|
e107::getEvent()->trigger('user_ban_flood', $ip);
|
||||||
exit;
|
exit;
|
||||||
|
Reference in New Issue
Block a user