aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorBilal Akhtar <bilalakhtar96@yahoo.com>2010-08-11 16:43:20 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-11 16:43:20 +0800
commit105ef42a1690c3c092879995767584b640741e12 (patch)
tree87b00d3e99b78e5203fe5e2c857339bf620251c5 /libempathy-gtk
parent0c52aee9583e68377b3c5da4d4f671761ae33e10 (diff)
downloadgsoc2013-empathy-105ef42a1690c3c092879995767584b640741e12.tar
gsoc2013-empathy-105ef42a1690c3c092879995767584b640741e12.tar.gz
gsoc2013-empathy-105ef42a1690c3c092879995767584b640741e12.tar.bz2
gsoc2013-empathy-105ef42a1690c3c092879995767584b640741e12.tar.lz
gsoc2013-empathy-105ef42a1690c3c092879995767584b640741e12.tar.xz
gsoc2013-empathy-105ef42a1690c3c092879995767584b640741e12.tar.zst
gsoc2013-empathy-105ef42a1690c3c092879995767584b640741e12.zip
Use GimpNet as default IRC network (#625675)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget-irc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-widget-irc.c b/libempathy-gtk/empathy-account-widget-irc.c
index c9783f36e..a2624bde4 100644
--- a/libempathy-gtk/empathy-account-widget-irc.c
+++ b/libempathy-gtk/empathy-account-widget-irc.c
@@ -40,6 +40,7 @@
#include <libempathy/empathy-debug.h>
#define IRC_NETWORKS_FILENAME "irc-networks.xml"
+#define DEFAULT_IRC_NETWORK "irc.gimp.org"
typedef struct {
EmpathyAccountWidget *self;
@@ -414,6 +415,11 @@ account_widget_irc_setup (EmpathyAccountWidgetIrc *settings)
}
}
+ if (network == NULL)
+ {
+ network = empathy_irc_network_manager_find_network_by_address (
+ settings->network_manager, DEFAULT_IRC_NETWORK);
+ }
fill_networks_model (settings, network);
}