Mercurial > prosody-modules
comparison mod_adhoc/adhoc/mod_adhoc.lua @ 245:84d03c44bdb9
mod_adhoc: Fix typo introduced during refactoring
| author | Florian Zeitz <florob@babelmonkeys.de> |
|---|---|
| date | Sun, 22 Aug 2010 12:02:41 +0200 |
| parents | e0802b2716c3 |
| children | 5a389f9f2ec7 |
comparison
equal
deleted
inserted
replaced
| 244:e0802b2716c3 | 245:84d03c44bdb9 |
|---|---|
| 35 origin.send(reply); | 35 origin.send(reply); |
| 36 return true; | 36 return true; |
| 37 end | 37 end |
| 38 end, 500); | 38 end, 500); |
| 39 | 39 |
| 40 module:hook("iq/host"..xmlns_cmd..":command", function (event) | 40 module:hook("iq/host/"..xmlns_cmd..":command", function (event) |
| 41 local origin, stanza = event.origin, event.stanza; | 41 local origin, stanza = event.origin, event.stanza; |
| 42 if stanza.attr.type == "set" then | 42 if stanza.attr.type == "set" then |
| 43 local node = stanza.tags[1].attr.node | 43 local node = stanza.tags[1].attr.node |
| 44 if commands[node] then | 44 if commands[node] then |
| 45 -- Required for Prosody <= 0.7 | 45 -- Required for Prosody <= 0.7 |
