aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Browaeys <prahal@yahoo.com>2011-08-31 21:13:33 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-09-07 00:50:08 +0800
commit4ed88cebf36575508f7eb7931b9f46b8f661a60e (patch)
tree142a2231a7f911a1246a309c94a758df5bad0dfe
parent905dec95625ac420b3fc2914b5d365a89e5b70f8 (diff)
downloadgsoc2013-empathy-4ed88cebf36575508f7eb7931b9f46b8f661a60e.tar
gsoc2013-empathy-4ed88cebf36575508f7eb7931b9f46b8f661a60e.tar.gz
gsoc2013-empathy-4ed88cebf36575508f7eb7931b9f46b8f661a60e.tar.bz2
gsoc2013-empathy-4ed88cebf36575508f7eb7931b9f46b8f661a60e.tar.lz
gsoc2013-empathy-4ed88cebf36575508f7eb7931b9f46b8f661a60e.tar.xz
gsoc2013-empathy-4ed88cebf36575508f7eb7931b9f46b8f661a60e.tar.zst
gsoc2013-empathy-4ed88cebf36575508f7eb7931b9f46b8f661a60e.zip
import: prevent haze to be used for irc
Prevent haze to be used for irc even if sole connection manager to support it. Reworked by Guillaume Desmottes <gdesmott@gnome.org> . https://bugzilla.gnome.org/show_bug.cgi?id=657818
-rw-r--r--src/empathy-import-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/empathy-import-utils.c b/src/empathy-import-utils.c
index 7e69d6235..bf7f29e3b 100644
--- a/src/empathy-import-utils.c
+++ b/src/empathy-import-utils.c
@@ -96,6 +96,10 @@ empathy_import_protocol_is_supported (const gchar *protocol,
if (tp_connection_manager_has_protocol (tp_cm,
(const gchar*) protocol))
{
+ if (!tp_strdiff (protocol, "irc")
+ && !tp_strdiff (tp_cm->name, "haze"))
+ continue;
+
if (!proto_is_supported)
{
*cm = tp_cm;