From 05ae17328d1f9a435fa2c10e37dc1767ab247ef2 Mon Sep 17 00:00:00 2001 From: Jocelyn Delande Date: Thu, 25 Feb 2016 12:43:32 +0100 Subject: [PATCH] Fix /invite command broken by lodash update Broken by #38 / 19bc4f3 --- src/plugins/irc-events/invite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/irc-events/invite.js b/src/plugins/irc-events/invite.js index 012da8cc..3ff3ac5b 100644 --- a/src/plugins/irc-events/invite.js +++ b/src/plugins/irc-events/invite.js @@ -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]; }