summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0256.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-22 21:58:50 -0700
committerLance Stout <lancestout@gmail.com>2012-06-22 21:58:50 -0700
commitc2c7cc032b38d8a7a293467a8c2ff7380cbc756f (patch)
tree013689a019e893e745f356b509584650ce5ebb7f /sleekxmpp/plugins/xep_0256.py
parente4911e93919e733e1a3a0c1db4c6a32b87fef04a (diff)
downloadslixmpp-c2c7cc032b38d8a7a293467a8c2ff7380cbc756f.tar.gz
slixmpp-c2c7cc032b38d8a7a293467a8c2ff7380cbc756f.tar.bz2
slixmpp-c2c7cc032b38d8a7a293467a8c2ff7380cbc756f.tar.xz
slixmpp-c2c7cc032b38d8a7a293467a8c2ff7380cbc756f.zip
Fix plugin registration for single file plugins.
Diffstat (limited to 'sleekxmpp/plugins/xep_0256.py')
-rw-r--r--sleekxmpp/plugins/xep_0256.py5
1 files changed, 4 insertions, 1 deletions
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)