Mercurial > prosody-hg
comparison plugins/mod_watchregistrations.lua @ 7269:cde4ef90cf3d
Merge 0.10->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 11 Mar 2016 13:41:10 +0100 |
| parents | 29861845e0e0 |
| children | 49ff363f3a3d |
comparison
equal
deleted
inserted
replaced
| 7263:015a711a8ccf | 7269:cde4ef90cf3d |
|---|---|
| 9 | 9 |
| 10 local host = module:get_host(); | 10 local host = module:get_host(); |
| 11 local jid_prep = require "util.jid".prep; | 11 local jid_prep = require "util.jid".prep; |
| 12 | 12 |
| 13 local registration_watchers = module:get_option_set("registration_watchers", module:get_option("admins", {})) / jid_prep; | 13 local registration_watchers = module:get_option_set("registration_watchers", module:get_option("admins", {})) / jid_prep; |
| 14 local registration_notification = module:get_option("registration_notification", "User $username just registered on $host from $ip"); | 14 local registration_notification = module:get_option_string("registration_notification", "User $username just registered on $host from $ip"); |
| 15 | 15 |
| 16 local st = require "util.stanza"; | 16 local st = require "util.stanza"; |
| 17 | 17 |
| 18 module:hook("user-registered", function (user) | 18 module:hook("user-registered", function (user) |
| 19 module:log("debug", "Notifying of new registration"); | 19 module:log("debug", "Notifying of new registration"); |
