
Also included: - correctly handle privileges from different servers - check that privileges have been granted before attempting to send something and raise PermissionError if not - use dataclass and enums to store permissions instead of untyped dict
8 lines
166 B
Python
8 lines
166 B
Python
from slixmpp.plugins.base import register_plugin
|
|
|
|
from . import stanza
|
|
from .privilege import XEP_0356
|
|
from .stanza import Perm, Privilege
|
|
|
|
register_plugin(XEP_0356)
|