Merge pull request #106 from thelounge/jd-fix-invite

Fix /invite command broken by lodash update
This commit is contained in:
JocelynDelalande 2016-02-25 13:28:01 +01:00
commit 5a317a8bc2

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];
}