]> git.0d.be Git - empathy.git/commitdiff
import: prevent haze to be used for irc
authorAlban Browaeys <prahal@yahoo.com>
Wed, 31 Aug 2011 13:13:33 +0000 (15:13 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Sep 2011 16:50:08 +0000 (18:50 +0200)
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

src/empathy-import-utils.c

index 7e69d623563597c6f07534b0746e28ed435b205c..bf7f29e3ba7faeb24fd38be06795d49efc2182b9 100644 (file)
@@ -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;