diff --git a/mod_archive/src/mod_archive.erl b/mod_archive/src/mod_archive.erl index f4c8dcf..d71c760 100644 --- a/mod_archive/src/mod_archive.erl +++ b/mod_archive/src/mod_archive.erl @@ -37,14 +37,10 @@ -record(state, {host, storages, save_default, session_duration}). -define(PROCNAME, ejabberd_mod_archive). --define(NS_ARCHIVE, - "http://www.xmpp.org/extensions/xep-0136.html#ns"). --define(NS_ARCHIVE_MANAGE, - "http://www.xmpp.org/extensions/xep-0136.html#ns-manage"). --define(NS_ARCHIVE_PREF, - "http://www.xmpp.org/extensions/xep-0136.html#ns-pref"). --define(NS_ARCHIVE_MANUAL, - "http://www.xmpp.org/extensions/xep-0136.html#ns-manual"). +-define(NS_ARCHIVE, "urn:xmpp:archive"). +-define(NS_ARCHIVE_MANAGE, "urn:xmpp:archive:manage"). +-define(NS_ARCHIVE_PREF, "urn:xmpp:archive:pref"). +-define(NS_ARCHIVE_MANUAL, "urn:xmpp:archive:manual"). -define(INFINITY, calendar:datetime_to_gregorian_seconds({{2038,1,19},{0,0,0}})). -define(MYDEBUG(Format, Args), diff --git a/mod_archive/src/mod_archive_odbc.erl b/mod_archive/src/mod_archive_odbc.erl index d25ab19..6bab5f3 100644 --- a/mod_archive/src/mod_archive_odbc.erl +++ b/mod_archive/src/mod_archive_odbc.erl @@ -90,16 +90,11 @@ session_duration}). -define(PROCNAME, ejabberd_mod_archive_odbc). --define(NS_ARCHIVE, - "http://www.xmpp.org/extensions/xep-0136.html#ns"). --define(NS_ARCHIVE_AUTO, - "http://www.xmpp.org/extensions/xep-0136.html#ns-auto"). --define(NS_ARCHIVE_MANAGE, - "http://www.xmpp.org/extensions/xep-0136.html#ns-manage"). --define(NS_ARCHIVE_PREF, - "http://www.xmpp.org/extensions/xep-0136.html#ns-pref"). --define(NS_ARCHIVE_MANUAL, - "http://www.xmpp.org/extensions/xep-0136.html#ns-manual"). +-define(NS_ARCHIVE, "urn:xmpp:archive"). +-define(NS_ARCHIVE_AUTO, "urn:xmpp:archive:auto"). +-define(NS_ARCHIVE_MANAGE, "urn:xmpp:archive:manage"). +-define(NS_ARCHIVE_PREF, "urn:xmpp:archive:pref"). +-define(NS_ARCHIVE_MANUAL, "urn:xmpp:archive:manual"). -define(INFINITY, calendar:datetime_to_gregorian_seconds({{2038,1,19},{0,0,0}})). %% Should be OK for most of modern DBs, I hope ... diff --git a/mod_archive/src/mod_archive_sql.erl b/mod_archive/src/mod_archive_sql.erl index 27f8150..52a9564 100644 --- a/mod_archive/src/mod_archive_sql.erl +++ b/mod_archive/src/mod_archive_sql.erl @@ -38,14 +38,10 @@ session_duration}). -define(PROCNAME, ejabberd_mod_archive_sql). --define(NS_ARCHIVE, - "http://www.xmpp.org/extensions/xep-0136.html#ns"). --define(NS_ARCHIVE_MANAGE, - "http://www.xmpp.org/extensions/xep-0136.html#ns-manage"). --define(NS_ARCHIVE_PREF, - "http://www.xmpp.org/extensions/xep-0136.html#ns-pref"). --define(NS_ARCHIVE_MANUAL, - "http://www.xmpp.org/extensions/xep-0136.html#ns-manual"). +-define(NS_ARCHIVE, "urn:xmpp:archive"). +-define(NS_ARCHIVE_MANAGE, "urn:xmpp:archive:manage"). +-define(NS_ARCHIVE_PREF, "urn:xmpp:archive:pref"). +-define(NS_ARCHIVE_MANUAL, "urn:xmpp:archive:manual"). -define(INFINITY, calendar:datetime_to_gregorian_seconds({{2038,1,19},{0,0,0}})). -define(DICT, dict).