Mercurial > prosody-modules
diff mod_http_roster_admin/mod_http_roster_admin.lua @ 2631:2bfa7d476092
mod_http_roster_admin: Don't call callback if it's nil
author | JC Brand <jc@opkode.com> |
---|---|
date | Tue, 21 Mar 2017 09:43:03 +0000 |
parents | ac3ca6233ded |
children | 9d8098f4b652 |
line wrap: on
line diff
--- a/mod_http_roster_admin/mod_http_roster_admin.lua Tue Mar 21 09:31:13 2017 +0000 +++ b/mod_http_roster_admin/mod_http_roster_admin.lua Tue Mar 21 09:43:03 2017 +0000 @@ -118,7 +118,9 @@ removed = removed + 1; end module:log("debug", "User %s: added %d new contacts, removed %d contacts", username, added, removed); - cb(true); + if cb ~= nil then + cb(true); + end end); end