summaryrefslogtreecommitdiff
path: root/plugins/Irc/extlib/phergie/Phergie/Plugin/NickServ.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Irc/extlib/phergie/Phergie/Plugin/NickServ.php')
-rw-r--r--plugins/Irc/extlib/phergie/Phergie/Plugin/NickServ.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/Irc/extlib/phergie/Phergie/Plugin/NickServ.php b/plugins/Irc/extlib/phergie/Phergie/Plugin/NickServ.php
index f873c753b..e97abecf7 100644
--- a/plugins/Irc/extlib/phergie/Phergie/Plugin/NickServ.php
+++ b/plugins/Irc/extlib/phergie/Phergie/Plugin/NickServ.php
@@ -57,16 +57,13 @@ class Phergie_Plugin_NickServ extends Phergie_Plugin_Abstract
$this->getPluginHandler()->getPlugin('Command');
// Get the name of the NickServ bot, defaults to NickServ
- $this->botNick = $this->config['nickserv.botnick'];
- if (!$this->botNick) {
- $this->botNick = 'NickServ';
- }
+ $this->botNick = $this->getConfig('nickserv.botnick', 'NickServ');
// Get the identify message
- $this->identifyMessage = $this->config['nickserv.identify_message'];
- if (!$this->identifyMessage) {
- $this->identifyMessage = '/This nickname is registered./';
- }
+ $this->identifyMessage = $this->getConfig(
+ 'nickserv.identify_message',
+ '/This nickname is registered./'
+ );
}
/**