Commit 3ace44fd authored by tyler's avatar tyler

Update hhelper/hhelper.py

parent 25a0e4e9
......@@ -153,7 +153,9 @@ def vault_test(address, entity, token):
# Get an instance of XmppMessage
# Returns: a ready-to-connect instance of XmppMessage
def get_xmpp(room=DEFAULT_XMPP_ROOM, message=DEFAULT_XMPP_MESSAGE, filename=None, loop=None):
def get_xmpp(
room=DEFAULT_XMPP_ROOM, message=DEFAULT_XMPP_MESSAGE, filename=None, loop=None
):
xmpp = XmppMessage(room, filename, message, loop)
xmpp.register_plugin("xep_0045")
......@@ -232,7 +234,9 @@ def get_vault_secret(secret):
# Send an XMPP message or file to a given room
def send_xmpp(room=DEFAULT_XMPP_ROOM, message=DEFAULT_XMPP_MESSAGE, filename=None, loop=None):
def send_xmpp(
room=DEFAULT_XMPP_ROOM, message=DEFAULT_XMPP_MESSAGE, filename=None, loop=None
):
xmpp = get_xmpp(
room=str(room) + XMPP_ROOM_SUFFIX, message=message, filename=filename, loop=loop
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment