mirror of
https://github.com/thelounge/thelounge
synced 2024-11-15 00:37:13 +00:00
Merge pull request #106 from thelounge/jd-fix-invite
Fix /invite command broken by lodash update
This commit is contained in:
commit
5a317a8bc2
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue