From 072614fffe412aada313711af67521251d20ed89 Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Thu, 29 Feb 2024 17:13:53 +0000 Subject: [PATCH] Ad-Hoc: Minor fixes --- slixfeed/xmpp/client.py | 1 - slixfeed/xmpp/component.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/slixfeed/xmpp/client.py b/slixfeed/xmpp/client.py index af9d874..32ea7cc 100644 --- a/slixfeed/xmpp/client.py +++ b/slixfeed/xmpp/client.py @@ -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) diff --git a/slixfeed/xmpp/component.py b/slixfeed/xmpp/component.py index 43f4e72..844d81b 100644 --- a/slixfeed/xmpp/component.py +++ b/slixfeed/xmpp/component.py @@ -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)