Add some variables to the init of the class (#12134)

This commit is contained in:
Olen
2020-09-22 14:30:54 +02:00
committed by GitHub
parent ac30c78039
commit 19aaf43605

View File

@@ -26,7 +26,7 @@ use LibreNMS\Enum\AlertState;
class IRCBot class IRCBot
{ {
private $last_activity = ''; private $last_activity = 0;
private $data = ''; private $data = '';
@@ -44,6 +44,8 @@ class IRCBot
private $nick = 'LibreNMS'; private $nick = 'LibreNMS';
private $tempnick = null;
private $chan = []; private $chan = [];
private $commands = [ private $commands = [
@@ -61,10 +63,19 @@ class IRCBot
'join', 'join',
]; ];
private $command = '';
private $external = []; private $external = [];
private $tick = 62500; private $tick = 62500;
private $j = 0;
private $socket = [];
private $floodcount = 0;
public function __construct() public function __construct()
{ {
$this->log('Setting up IRC-Bot..'); $this->log('Setting up IRC-Bot..');