aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/subject.lib.lua
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-06-17 15:18:43 -0400
committerdaurnimator <quae@daurnimator.com>2014-06-17 15:18:43 -0400
commit1694d8908a486fdc1fcee99b98cf5a8df65be13b (patch)
treecbc89142bea59e6fbe4308d3e653a65a9bb1594c /plugins/muc/subject.lib.lua
parent75d78ae9e40c0d0b972842d30a35387f161823d5 (diff)
downloadprosody-1694d8908a486fdc1fcee99b98cf5a8df65be13b.tar.gz
prosody-1694d8908a486fdc1fcee99b98cf5a8df65be13b.zip
plugins/muc: Fix use of incorrect event on occupant join
Diffstat (limited to 'plugins/muc/subject.lib.lua')
-rw-r--r--plugins/muc/subject.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/subject.lib.lua b/plugins/muc/subject.lib.lua
index 44fc915c..34f9a5d4 100644
--- a/plugins/muc/subject.lib.lua
+++ b/plugins/muc/subject.lib.lua
@@ -66,7 +66,7 @@ local function set_subject(room, from, subject)
end
-- Send subject to joining user
-module:hook("muc-occupant-joined", function(event)
+module:hook("muc-occupant-session-new", function(event)
send_subject(event.room, event.stanza.attr.from);
end, 20);