From c398f5ed8c6498d4f252c966fe1f6c2ec2c535d6 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 21 Jun 2007 14:42:54 +0000 Subject: server_plugin: Hard-code connection to conference. again. We shouldn't have to do this, but Gabble sometimes finds the IRC transport and goes "that has chatrooms, that'll do nicely". This can be reverted if fixed in Gabble later. --- diff --git a/src/server_plugin.py b/src/server_plugin.py index baade03..bfbd21e 100644 --- a/src/server_plugin.py +++ b/src/server_plugin.py @@ -88,6 +88,15 @@ class ServerPlugin(TelepathyPlugin): 'register': not self._owner.get_registered(), } + def suggest_room_for_activity(self, activity_id): + """Suggest a room to use to share the given activity. + """ + # We shouldn't have to do this, but Gabble sometimes finds the IRC + # transport and goes "that has chatrooms, that'll do nicely". Work + # around it til Gabble gets better at finding the MUC service. + return '%s@%s' % (activity_id, + self._account['fallback-conference-server']) + def _find_existing_connection(self): """Try to find an existing Telepathy connection to this server -- cgit v0.9.1