changeset 4030:0d7293c37e1a

mod_adhoc_groups: Fix responding with "You are already in this group." (was never sent before)
author Karol Topolski <ktopolski.it@gmail.com>
date Wed, 20 May 2020 17:25:59 +0200
parents b9bd56790286
children b2a6e163a6b4
files mod_adhoc_groups/mod_adhoc_groups.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_adhoc_groups/mod_adhoc_groups.lua	Wed May 20 17:24:15 2020 +0200
+++ b/mod_adhoc_groups/mod_adhoc_groups.lua	Wed May 20 17:25:59 2020 +0200
@@ -131,7 +131,7 @@
 						return false, "No such group";
 					end
 				end
-				if group[data.from] then
+				if group[user] then
 					return false, "You are already in this group.";
 				end