felixms / arma-rcon-class-php

A lightweight client for sending commands easily to a BattlEye server.
MIT License
46 stars 22 forks source link

`getBans()` RegEx not working correctly #11

Closed felixms closed 8 years ago

nerdalertdk commented 8 years ago

What's not working ?

nerdalertdk commented 8 years ago

My getBans func work just fine on arma 3 1.58 using the old framework

$return = $this->rcon->get_bans();
if($return)
{
    $return = $this->cleanList($return);
    preg_match_all('#(\d+)\s+([0-9a-fA-F]+)\s([perm|\d]+)\s([\S ]+)$#im',$return, $matches);
    return $this->formatList($matches);
}

Ahh can see you where using the wrong regex in your code :)

felixms commented 8 years ago

Alright, thanks! :D