Coverage for slidge/slixfix/xep_0153/vcard_avatar.py: 100%
13 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-11-07 05:11 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-11-07 05:11 +0000
1# Slixmpp: The Slick XMPP Library
2# Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout
3# This file is part of Slixmpp.
4# See the file LICENSE for copying permission.
5import logging
7from slixmpp.plugins.base import BasePlugin
8from slixmpp.stanza import Presence
9from slixmpp.xmlstream import register_stanza_plugin
11from . import VCardTempUpdate, stanza
13log = logging.getLogger(__name__)
16class XEP_0153(BasePlugin):
17 name = "xep_0153"
18 description = "XEP-0153: vCard-Based Avatars (slidge, just for MUCs)"
19 dependencies = {"xep_0054"}
20 stanza = stanza
22 def plugin_init(self):
23 register_stanza_plugin(Presence, VCardTempUpdate)