Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0060.py @ 2647:1bf7e89fded0
plugin XEP-0060: added singleton ID ("current")
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 29 Jul 2018 19:23:01 +0200 |
parents | 189e38fb11ff |
children | 6555e9835ff8 |
comparison
equal
deleted
inserted
replaced
2646:712cb4ff3e13 | 2647:1bf7e89fded0 |
---|---|
78 ACCESS_PRESENCE = "presence" | 78 ACCESS_PRESENCE = "presence" |
79 ACCESS_ROSTER = "roster" | 79 ACCESS_ROSTER = "roster" |
80 ACCESS_PUBLISHER_ROSTER = "publisher-roster" | 80 ACCESS_PUBLISHER_ROSTER = "publisher-roster" |
81 ACCESS_AUTHORIZE = "authorize" | 81 ACCESS_AUTHORIZE = "authorize" |
82 ACCESS_WHITELIST = "whitelist" | 82 ACCESS_WHITELIST = "whitelist" |
83 ID_SINGLETON = "current" | |
83 | 84 |
84 def __init__(self, host): | 85 def __init__(self, host): |
85 log.info(_(u"PubSub plugin initialization")) | 86 log.info(_(u"PubSub plugin initialization")) |
86 self.host = host | 87 self.host = host |
87 self._mam = host.plugins.get("XEP-0313") | 88 self._mam = host.plugins.get("XEP-0313") |