mod_muc: s/broadcast_history/send_history/ - since the cast isn't broad

Fri, 08 May 2009 01:29:43 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 08 May 2009 01:29:43 +0500
changeset 1140
76bd1bd14234
parent 1139
ed4d43c3eaf2
child 1141
9d9570516ce8

mod_muc: s/broadcast_history/send_history/ - since the cast isn't broad

plugins/mod_muc.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_muc.lua	Fri May 08 01:27:22 2009 +0500
+++ b/plugins/mod_muc.lua	Fri May 08 01:29:43 2009 +0500
@@ -205,7 +205,7 @@
 		end
 	end
 end
-function broadcast_history(room, to)
+function send_history(room, to)
 	local history = rooms_info:get(room, 'history'); -- send discussion history
 	if history then
 		for _, msg in ipairs(history) do
@@ -315,7 +315,7 @@
 					send_occupant_list(room, from);
 					pr.attr.from = to;
 					broadcast_presence_stanza(room, pr);
-					broadcast_history(room, from);
+					send_history(room, from);
 				end
 			end
 		elseif type ~= 'result' then -- bad type

mercurial