m.reply "no such config key #{key}"\r
return\r
end\r
- unless @bot.config.items[key].class <= BotConfigArrayValue\r
+ unless @bot.config.items[key].kind_of?(BotConfigArrayValue)\r
m.reply "config key #{key} is not an array"\r
return\r
end\r
m.reply "no such config key #{key}"\r
return\r
end\r
- unless @bot.config.items[key].class <= BotConfigArrayValue\r
+ unless @bot.config.items[key].kind_of?(BotConfigArrayValue)\r
m.reply "config key #{key} is not an array"\r
return\r
end\r