forked from sch/Slixfeed
b1a1955545
Fix ping functionality when activated as component (thank you Guus and MattJ). Add initial code for XEP-0060: Publish-Subscribe. Fix case-sensitivity with setting keys sent in-chat-command (Thank you mirux)
14 lines
319 B
Python
14 lines
319 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from slixmpp.exceptions import IqError
|
|
|
|
class XmppIQ:
|
|
|
|
async def send(self, iq):
|
|
try:
|
|
await iq.send(timeout=5)
|
|
except IqError as e:
|
|
if e.etype == 'cancel' and e.condition == 'conflict':
|
|
return
|
|
raise
|