riddim.plugins.groupchat: Change numeric stanza attribute to string to comply with util.stanza strict mode

Sun, 27 May 2018 17:30:37 +0200

author
Kim Alvefur <zash@zash.se>
date
Sun, 27 May 2018 17:30:37 +0200
changeset 143
bad1be5e4674
parent 142
211fa13c7ca2
child 144
68dc84e72bef

riddim.plugins.groupchat: Change numeric stanza attribute to string to comply with util.stanza strict mode

plugins/groupchat.lua file | annotate | diff | comparison | revisions
--- a/plugins/groupchat.lua	Sun May 20 03:14:32 2018 +0200
+++ b/plugins/groupchat.lua	Sun May 27 17:30:37 2018 +0200
@@ -60,7 +60,7 @@
 	bot.stream:hook("pre-groupchat/joining", function(presence)
 		local muc_x = presence:get_child("x", xmlns_muc);
 		if muc_x then
-			muc_x:tag("history",{maxstanzas = 0});
+			muc_x:tag("history",{maxstanzas = "0"});
 		end
 	end);
 end

mercurial