Merge pull request #106 from thelounge/jd-fix-invite
Fix /invite command broken by lodash update
This commit is contained in:
commit
5a317a8bc2
@ -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];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user