Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 8476:082d12728645 0.9.13
MUC: Rename variable to make it clearer that it is the room JID and not the MUC host
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 10 Dec 2017 17:52:47 +0100 |
parent | 8475:eb85b10e1fea |
child | 8477:597c23e1c38e |
child | 8588:54b60a1eea2d |
comparison
equal
deleted
inserted
replaced
8475:eb85b10e1fea | 8476:082d12728645 |
---|---|
120 self:_route_stanza(stanza); | 120 self:_route_stanza(stanza); |
121 end | 121 end |
122 end | 122 end |
123 function room_mt:broadcast_message(stanza, historic) | 123 function room_mt:broadcast_message(stanza, historic) |
124 local to = stanza.attr.to; | 124 local to = stanza.attr.to; |
125 local muc_jid = self.jid; | 125 local room_jid = self.jid; |
126 | 126 |
127 stanza:maptags(function (child) | 127 stanza:maptags(function (child) |
128 if child.name == "delay" and child.attr["xmlns"] == "urn:xmpp:delay" then | 128 if child.name == "delay" and child.attr["xmlns"] == "urn:xmpp:delay" then |
129 if child.attr["from"] == muc_jid then | 129 if child.attr["from"] == room_jid then |
130 return nil; | 130 return nil; |
131 end | 131 end |
132 end | 132 end |
133 if child.name == "x" and child.attr["xmlns"] == "jabber:x:delay" then | 133 if child.name == "x" and child.attr["xmlns"] == "jabber:x:delay" then |
134 if child.attr["from"] == muc_jid then | 134 if child.attr["from"] == room_jid then |
135 return nil; | 135 return nil; |
136 end | 136 end |
137 end | 137 end |
138 return child; | 138 return child; |
139 end) | 139 end) |