Ad-Hoc: Minor fixes

This commit is contained in:
Schimon Jehudah 2024-02-29 17:13:53 +00:00
parent 270551b8ee
commit 072614fffe
2 changed files with 2 additions and 3 deletions

View file

@ -223,7 +223,6 @@ class Slixfeed(slixmpp.ClientXMPP):
async def on_disco_info(self, DiscoInfo):
jid = DiscoInfo['from']
# self.service_commands()
# self.service_reactions()
# self.send_presence(pto=jid)
await self['xep_0115'].update_caps(jid=jid)

View file

@ -33,6 +33,7 @@ import slixfeed.task as task
import slixfeed.config as config
from slixfeed.version import __version__
from slixfeed.xmpp.connect import XmppConnect
from slixfeed.xmpp.command import XmppCommand
# NOTE MUC is possible for component
# from slixfeed.xmpp.muc import XmppGroupchat
from slixfeed.xmpp.message import XmppMessage
@ -175,7 +176,7 @@ class SlixfeedComponent(slixmpp.ComponentXMPP):
async def on_session_start(self, event):
# self.send_presence()
profile.set_identity(self, 'service')
self.service_commands()
XmppCommand.adhoc_commands(self)
self.service_reactions()
await self['xep_0115'].update_caps()
# await XmppGroupchat.autojoin(self)
@ -198,7 +199,6 @@ class SlixfeedComponent(slixmpp.ComponentXMPP):
async def on_disco_info(self, DiscoInfo):
jid = DiscoInfo['from']
# self.service_commands()
# self.service_reactions()
# self.send_presence(pto=jid)
await self['xep_0115'].update_caps(jid=jid)