Software /
code /
prosody-modules
Changeset
3322:682b05b4017e
mod_profile: Fix PEP event handler to detach on unload
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 16 Sep 2018 13:23:09 +0200 |
parents | 3321:628659e2e6b0 |
children | 3323:2cf82cad1910 |
files | mod_profile/mod_profile.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_profile/mod_profile.lua Sun Sep 16 13:08:04 2018 +0200 +++ b/mod_profile/mod_profile.lua Sun Sep 16 13:23:09 2018 +0200 @@ -192,7 +192,7 @@ local function pep_service_added(event) local item = event.item; local service, username = item.service, jid_split(item.jid); - service.events.add_handler("item-published", on_publish); + module:hook_object_event(service.events, "item-published", on_publish); local data = storage:get(username); if data then update_pep(username, data, service);