3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

Unit module fix

This commit is contained in:
thoso 2014-02-20 20:25:50 +01:00
parent c6fdd3bdbc
commit 408707157a

View File

@ -13,11 +13,11 @@ var units = function(dbot) {
'~convert': function(event) {
var query = event.input[1];
try {
var result = unit.convert(query);
event.reply(dbot.t('result', {
'input': query,
'output': result
}));
var result = unit.convert(query);
}
catch (e) {
event.reply(dbot.t('error'));