Fix plugin registration for single file plugins.
This commit is contained in:
parent
e4911e9391
commit
c2c7cc032b
@ -9,7 +9,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from sleekxmpp import Presence
|
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.xmlstream import register_stanza_plugin
|
||||||
|
|
||||||
from sleekxmpp.plugins.xep_0012 import stanza, LastActivity
|
from sleekxmpp.plugins.xep_0012 import stanza, LastActivity
|
||||||
@ -62,3 +62,6 @@ class XEP_0256(BasePlugin):
|
|||||||
if seconds is not None:
|
if seconds is not None:
|
||||||
stanza['last_activity']['seconds'] = seconds
|
stanza['last_activity']['seconds'] = seconds
|
||||||
return stanza
|
return stanza
|
||||||
|
|
||||||
|
|
||||||
|
register_plugin(XEP_0256)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
See the file LICENSE for copying permission.
|
See the file LICENSE for copying permission.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from sleekxmpp.plugins import BasePlugin
|
from sleekxmpp.plugins import BasePlugin, register_plugin
|
||||||
|
|
||||||
|
|
||||||
class XEP_0270(BasePlugin):
|
class XEP_0270(BasePlugin):
|
||||||
@ -15,3 +15,6 @@ class XEP_0270(BasePlugin):
|
|||||||
description = 'XEP-0270: XMPP Compliance Suites 2010'
|
description = 'XEP-0270: XMPP Compliance Suites 2010'
|
||||||
dependencies = set(['xep_0030', 'xep_0115', 'xep_0054',
|
dependencies = set(['xep_0030', 'xep_0115', 'xep_0054',
|
||||||
'xep_0163', 'xep_0045', 'xep_0085'])
|
'xep_0163', 'xep_0045', 'xep_0085'])
|
||||||
|
|
||||||
|
|
||||||
|
register_plugin(XEP_0270)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
See the file LICENSE for copying permission.
|
See the file LICENSE for copying permission.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from sleekxmpp.plugins import BasePlugin
|
from sleekxmpp.plugins import BasePlugin, register_plugin
|
||||||
|
|
||||||
|
|
||||||
class XEP_0302(BasePlugin):
|
class XEP_0302(BasePlugin):
|
||||||
@ -16,3 +16,6 @@ class XEP_0302(BasePlugin):
|
|||||||
dependencies = set(['xep_0030', 'xep_0115', 'xep_0054',
|
dependencies = set(['xep_0030', 'xep_0115', 'xep_0054',
|
||||||
'xep_0163', 'xep_0045', 'xep_0085',
|
'xep_0163', 'xep_0045', 'xep_0085',
|
||||||
'xep_0184', 'xep_0198'])
|
'xep_0184', 'xep_0198'])
|
||||||
|
|
||||||
|
|
||||||
|
register_plugin(XEP_0302)
|
||||||
|
Loading…
Reference in New Issue
Block a user