mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
fix error on "showconfig" with no paremeters (now shows root config)
This commit is contained in:
parent
8d8cf2bd9a
commit
ded2f09e87
@ -23,10 +23,10 @@ var commands = function(dbot) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var currentOption;
|
||||
if(configKey.length != 1) {
|
||||
if(configKey && configKey.length != 1) {
|
||||
configKey = _.last(configKey);
|
||||
if(_.has(userConfigPath, configKey) && !_.isUndefined(userConfigPath[configKey])) {
|
||||
currentOption = userConfigPath[configKey];
|
||||
|
Loading…
Reference in New Issue
Block a user