Mercurial > prosody-hg
comparison plugins/muc/subject.lib.lua @ 6277:f2c9c36979b3
plugins/muc: Fix use of incorrect event on occupant join
| author | daurnimator <quae@daurnimator.com> |
|---|---|
| date | Tue, 17 Jun 2014 15:18:43 -0400 |
| parents | 4968d18e2c1e |
| children | 675aea867574 |
comparison
equal
deleted
inserted
replaced
| 6276:9290a2906feb | 6277:f2c9c36979b3 |
|---|---|
| 64 room:broadcast_message(msg); | 64 room:broadcast_message(msg); |
| 65 return true; | 65 return true; |
| 66 end | 66 end |
| 67 | 67 |
| 68 -- Send subject to joining user | 68 -- Send subject to joining user |
| 69 module:hook("muc-occupant-joined", function(event) | 69 module:hook("muc-occupant-session-new", function(event) |
| 70 send_subject(event.room, event.stanza.attr.from); | 70 send_subject(event.room, event.stanza.attr.from); |
| 71 end, 20); | 71 end, 20); |
| 72 | 72 |
| 73 -- Role check for subject changes | 73 -- Role check for subject changes |
| 74 module:hook("muc-subject-change", function(event) | 74 module:hook("muc-subject-change", function(event) |
