From 56dd4d0d93eeb69f3364ed58eb96b1139465e2cb Mon Sep 17 00:00:00 2001 From: Ilkka Oksanen Date: Sun, 26 Apr 2015 14:49:04 +0200 Subject: [PATCH] Fix remaining ircchannelsubscriptions channel name case problems --- server/backends/irc/controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/backends/irc/controller.js b/server/backends/irc/controller.js index 862b95246..91a7535b0 100755 --- a/server/backends/irc/controller.js +++ b/server/backends/irc/controller.js @@ -662,7 +662,7 @@ function *handleJoin(userId, msg) { let subscriptionsKey = `ircchannelsubscriptions:${userId}:${network}`; if (userId === targetUserId) { - let password = yield redis.hget(subscriptionsKey, channel); + let password = yield redis.hget(subscriptionsKey, channel.toLowerCase()); if (password === null) { // ircchannelsubscriptions entry is missing. This means IRC server has added the user @@ -670,7 +670,7 @@ function *handleJoin(userId, msg) { // ircchannelsubscriptions must be updated as it's used to rejoin channels after a // server restart. password = ''; - yield redis.hset(subscriptionsKey, channel, password); + yield redis.hset(subscriptionsKey, channel.toLowerCase(), password); } if (!conversation) {