mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add some variables to the init of the class (#12134)
This commit is contained in:
@@ -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..');
|
||||||
|
Reference in New Issue
Block a user