Skip to content

Commit

Permalink
Fixes #3612 - user_ban_flood notification now shows IP in IPv4 format…
Browse files Browse the repository at this point in the history
… if possible
  • Loading branch information
Moc committed Nov 30, 2023
1 parent ea8d808 commit 05727b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e107_handlers/online_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,9 @@ public function goOnline($online_tracking = false, $flood_control = false)
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;
Expand Down

0 comments on commit 05727b8

Please sign in to comment.