Fix /invite command broken by lodash update

Broken by #38 / 19bc4f3
This commit is contained in:
Jocelyn Delande 2016-02-25 12:43:32 +01:00
parent 8996d58535
commit 05ae17328d

View File

@ -9,7 +9,7 @@ module.exports = function(irc, network) {
target = "you";
}
var chan = _.findWhere(network.channels, {name: data.channel});
var chan = _.find(network.channels, {name: data.channel});
if (typeof chan === "undefined") {
chan = network.channels[0];
}