Mercurial > prosody-hg
comparison plugins/mod_bookmarks.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 24 Mar 2023 13:15:28 +0100 |
| parents | 1832b6c9c6ed |
| children | 84ee435f284e |
comparison
equal
deleted
inserted
replaced
| 12976:a187600ec7d6 | 12977:74b9e05af71e |
|---|---|
| 1 local mm = require "core.modulemanager"; | 1 local mm = require "prosody.core.modulemanager"; |
| 2 if mm.get_modules_for_host(module.host):contains("bookmarks2") then | 2 if mm.get_modules_for_host(module.host):contains("bookmarks2") then |
| 3 error("mod_bookmarks and mod_bookmarks2 are conflicting, please disable one of them.", 0); | 3 error("mod_bookmarks and mod_bookmarks2 are conflicting, please disable one of them.", 0); |
| 4 end | 4 end |
| 5 | 5 |
| 6 local st = require "util.stanza"; | 6 local st = require "prosody.util.stanza"; |
| 7 local jid_split = require "util.jid".split; | 7 local jid_split = require "prosody.util.jid".split; |
| 8 | 8 |
| 9 local mod_pep = module:depends "pep"; | 9 local mod_pep = module:depends "pep"; |
| 10 local private_storage = module:open_store("private", "map"); | 10 local private_storage = module:open_store("private", "map"); |
| 11 | 11 |
| 12 local namespace = "urn:xmpp:bookmarks:1"; | 12 local namespace = "urn:xmpp:bookmarks:1"; |
