mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
Merge pull request #320 from JohnMaguire2013/admin
fix error on "showconfig" with no paremeters (now shows root config)
This commit is contained in:
commit
0f2c77187c
@ -23,10 +23,10 @@ var commands = function(dbot) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var currentOption;
|
var currentOption;
|
||||||
if(configKey.length != 1) {
|
if(configKey && configKey.length != 1) {
|
||||||
configKey = _.last(configKey);
|
configKey = _.last(configKey);
|
||||||
if(_.has(userConfigPath, configKey) && !_.isUndefined(userConfigPath[configKey])) {
|
if(_.has(userConfigPath, configKey) && !_.isUndefined(userConfigPath[configKey])) {
|
||||||
currentOption = userConfigPath[configKey];
|
currentOption = userConfigPath[configKey];
|
||||||
|
Loading…
Reference in New Issue
Block a user