Changeset

2274:43e647b8dd9f

mod_track_muc_joins: Fix saving the room nick (was using the room node)
author Kim Alvefur <zash@zash.se>
date Thu, 18 Aug 2016 20:39:14 +0200
parents 2273:677fc0203da0
children 2275:7f228bf82fe5
files mod_track_muc_joins/mod_track_muc_joins.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_track_muc_joins/mod_track_muc_joins.lua	Thu Aug 18 10:25:29 2016 +0100
+++ b/mod_track_muc_joins/mod_track_muc_joins.lua	Thu Aug 18 20:39:14 2016 +0200
@@ -13,7 +13,7 @@
 
 	local from_jid = stanza.attr.from;
 	local room = jid_bare(from_jid);
-	local nick = jid_split(from_jid);
+	local _,_,nick = jid_split(from_jid);
 	local joined = stanza.attr.type;
 	if joined == nil then
 		joined = nick;