Fix plugin registration for single file plugins.

This commit is contained in:
Lance Stout
2012-06-22 21:58:50 -07:00
parent e4911e9391
commit c2c7cc032b
3 changed files with 12 additions and 3 deletions

View File

@@ -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)