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
1 changed files with 1 additions and 1 deletions

View File

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