aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-05-21 13:21:30 +0100
committerMatthew Wild <mwild1@gmail.com>2013-05-21 13:21:30 +0100
commite09c12782cfe310c0456b758ea879ff7cb0af565 (patch)
treeb5deaeb756289787de1c404613a7730a2047d1b4
parentb0c86fe0553fdd69b150ee50e6265313f8b08f01 (diff)
downloadprosody-e09c12782cfe310c0456b758ea879ff7cb0af565.tar.gz
prosody-e09c12782cfe310c0456b758ea879ff7cb0af565.zip
mod_muc: Remove some old TODO comments
-rw-r--r--plugins/muc/muc.lib.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index e1deab99..483b0812 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -215,7 +215,6 @@ function room_mt:get_disco_items(stanza)
return reply;
end
function room_mt:set_subject(current_nick, subject)
- -- TODO check nick's authority
if subject == "" then subject = nil; end
self._data['subject'] = subject;
self._data['subject_from'] = current_nick;
@@ -848,7 +847,7 @@ function room_mt:handle_to_room(origin, stanza) -- presence changes and groupcha
if subject then
if occupant.role == "moderator" or
( self._data.changesubject and occupant.role == "participant" ) then -- and participant
- self:set_subject(current_nick, subject); -- TODO use broadcast_message_stanza
+ self:set_subject(current_nick, subject);
else
stanza.attr.from = from;
origin.send(st.error_reply(stanza, "auth", "forbidden"));