mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12142)
This commit is contained in:
@@ -75,7 +75,6 @@ class IRCBot
|
|||||||
|
|
||||||
private $floodcount = 0;
|
private $floodcount = 0;
|
||||||
|
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->log('Setting up IRC-Bot..');
|
$this->log('Setting up IRC-Bot..');
|
||||||
@@ -662,6 +661,7 @@ class IRCBot
|
|||||||
if ($this->user['level'] == 10) {
|
if ($this->user['level'] == 10) {
|
||||||
if ($params == 'external') {
|
if ($params == 'external') {
|
||||||
$this->respond('Reloading external scripts.');
|
$this->respond('Reloading external scripts.');
|
||||||
|
|
||||||
return $this->loadExternal();
|
return $this->loadExternal();
|
||||||
}
|
}
|
||||||
$new_config = Config::load();
|
$new_config = Config::load();
|
||||||
@@ -704,7 +704,7 @@ class IRCBot
|
|||||||
{
|
{
|
||||||
$msg = join(', ', $this->commands);
|
$msg = join(', ', $this->commands);
|
||||||
if (count($this->external) > 0) {
|
if (count($this->external) > 0) {
|
||||||
$msg .= ', '. join(', ', array_keys($this->external));
|
$msg .= ', ' . join(', ', array_keys($this->external));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->respond("Available commands: $msg");
|
return $this->respond("Available commands: $msg");
|
||||||
|
Reference in New Issue
Block a user