Software / code / verse
Comparison
plugins/register.lua @ 342:7aed4bc4949c
plugins.register: Fix event name (failure vs. failed)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 08 Jun 2013 17:43:41 +0100 |
| parent | 250:a5ac643a7fd6 |
| child | 343:0d8fb22404c3 |
comparison
equal
deleted
inserted
replaced
| 341:a95890d86fe4 | 342:7aed4bc4949c |
|---|---|
| 18 stream:event("registration-failure", { type = type, condition = condition, text = text }); | 18 stream:event("registration-failure", { type = type, condition = condition, text = text }); |
| 19 end | 19 end |
| 20 end); | 20 end); |
| 21 else | 21 else |
| 22 stream:debug("In-band registration not offered by server"); | 22 stream:debug("In-band registration not offered by server"); |
| 23 stream:event("registration-failed", { condition = "service-unavailable" }); | 23 stream:event("registration-failure", { condition = "service-unavailable" }); |
| 24 end | 24 end |
| 25 stream:unhook("stream-features", handle_features); | 25 stream:unhook("stream-features", handle_features); |
| 26 return true; | 26 return true; |
| 27 end | 27 end |
| 28 stream:hook("stream-features", handle_features, 310); | 28 stream:hook("stream-features", handle_features, 310); |