Don't break test plugins that use None instead of a stream object.
This commit is contained in:
parent
3161f104c7
commit
4921c44d0a
1 changed files with 2 additions and 1 deletions
|
@ -269,6 +269,7 @@ class BasePlugin(object):
|
|||
|
||||
def __init__(self, xmpp, config=None):
|
||||
self.xmpp = xmpp
|
||||
if self.xmpp:
|
||||
self.api = self.xmpp.api.wrap(self.name)
|
||||
|
||||
#: A plugin's behaviour may be configurable, in which case those
|
||||
|
|
Loading…
Reference in a new issue