mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix database link for IRC
This commit is contained in:
8
irc.php
8
irc.php
@@ -38,10 +38,10 @@ class ircbot {
|
||||
private $tick = 62500;
|
||||
|
||||
public function __construct() {
|
||||
global $config, $observium_link;
|
||||
global $config, $database_link;
|
||||
$this->log("Setting up IRC-Bot..");
|
||||
if( is_resource($observium_link) ) {
|
||||
$this->sql = $observium_link;
|
||||
if( is_resource($database_link) ) {
|
||||
$this->sql = $database_link;
|
||||
}
|
||||
$this->j = 2;
|
||||
$this->config = $config;
|
||||
@@ -519,4 +519,4 @@ class ircbot {
|
||||
}
|
||||
}
|
||||
$irc = new ircbot();
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user