Mercurial > prosody-modules
comparison mod_smacks/mod_smacks.lua @ 994:487cd02aada0
mod_smacks: Complain a little louder about clients trying to resume after resource binding
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 05 May 2013 11:23:50 +0200 |
| parents | c15cea87036f |
| children | d7655e634c30 |
comparison
equal
deleted
inserted
replaced
| 993:8b14cdfe0213 | 994:487cd02aada0 |
|---|---|
| 259 end | 259 end |
| 260 end); | 260 end); |
| 261 | 261 |
| 262 module:hook_stanza(xmlns_sm, "resume", function (session, stanza) | 262 module:hook_stanza(xmlns_sm, "resume", function (session, stanza) |
| 263 if session.full_jid then | 263 if session.full_jid then |
| 264 session.log("debug", "Tried to resume after resource binding"); | 264 session.log("warn", "Tried to resume after resource binding"); |
| 265 session.send(st.stanza("failed", sm_attr) | 265 session.send(st.stanza("failed", sm_attr) |
| 266 :tag("unexpected-request", { xmlns = xmlns_errors }) | 266 :tag("unexpected-request", { xmlns = xmlns_errors }) |
| 267 ); | 267 ); |
| 268 return true; | 268 return true; |
| 269 end | 269 end |
