# HG changeset patch # User Karol Topolski # Date 1589988359 -7200 # Node ID 0d7293c37e1a03c337eaf2889c01d10032345942 # Parent b9bd5679028671ea4cd94c34c0b574fe8767dee6 mod_adhoc_groups: Fix responding with "You are already in this group." (was never sent before) diff -r b9bd56790286 -r 0d7293c37e1a mod_adhoc_groups/mod_adhoc_groups.lua --- 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