From c2c7cc032b38d8a7a293467a8c2ff7380cbc756f Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 22 Jun 2012 21:58:50 -0700 Subject: Fix plugin registration for single file plugins. --- sleekxmpp/plugins/xep_0256.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sleekxmpp/plugins/xep_0256.py') diff --git a/sleekxmpp/plugins/xep_0256.py b/sleekxmpp/plugins/xep_0256.py index 2938868d..265a5da8 100644 --- a/sleekxmpp/plugins/xep_0256.py +++ b/sleekxmpp/plugins/xep_0256.py @@ -9,7 +9,7 @@ import logging from sleekxmpp import Presence -from sleekxmpp.plugins import BasePlugin +from sleekxmpp.plugins import BasePlugin, register_plugin from sleekxmpp.xmlstream import register_stanza_plugin from sleekxmpp.plugins.xep_0012 import stanza, LastActivity @@ -62,3 +62,6 @@ class XEP_0256(BasePlugin): if seconds is not None: stanza['last_activity']['seconds'] = seconds return stanza + + +register_plugin(XEP_0256) -- cgit v1.2.3