Source code for slixmpp.plugins.xep_0256.last_activity_presence
# Slixmpp: The Slick XMPP Library# Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout# This file is part of Slixmpp.# See the file LICENSE for copying permission.importloggingfromslixmppimportPresencefromslixmpp.pluginsimportBasePluginfromslixmpp.xmlstreamimportregister_stanza_pluginfromslixmpp.plugins.xep_0012importstanza,LastActivitylog=logging.getLogger(__name__)
[docs]classXEP_0256(BasePlugin):name='xep_0256'description='XEP-0256: Last Activity in Presence'dependencies={'xep_0030'}stanza=stanzadefplugin_init(self):register_stanza_plugin(Presence,LastActivity)