Bug 625675 - freenode should be the default irc network when creating an irc account
freenode should be the default irc network when creating an irc account
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Accounts
2.31.x
Other Linux
: Normal trivial
: ---
Assigned To: empathy-maint
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2010-07-30 19:12 UTC by Omer Akram
Modified: 2010-08-11 08:44 UTC (History)
3 users (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix bug (463 bytes, patch)
2010-07-31 05:34 UTC, Bilal Akhtar
reviewed Details | Diff | Review
Improved patch (658 bytes, patch)
2010-08-10 07:33 UTC, Bilal Akhtar
none Details | Diff | Review

Description Omer Akram 2010-07-30 19:12:35 UTC
freenode is the most used IRC network (maybe GIMPnet too). support for most linux distribution is on freenode e.g. #ubuntu #fedora #meego etc so it will become easier for users when creating an IRC account.

also reported as a papercut: https://bugs.launchpad.net/hundredpapercuts/+bug/569289
Comment 1 Bilal Akhtar 2010-07-31 05:34:31 UTC
Created attachment 166868 [details] [review]
Patch to fix bug

This is the patch, sans debian stuff.
Comment 2 Vish 2010-08-01 09:07:56 UTC
(In reply to comment #0)
> 
> also reported as a papercut:
> https://bugs.launchpad.net/hundredpapercuts/+bug/569289

Just to be clear on the papercut status of the bug, Since Ubuntu channels are on freenode, this is reasonable distro-level change.[ Not trying to force a distro setting on gnome :) ]
We had done this earlier for Pidgin too[changed the default network in Ubuntu].

However , it is odd that there is no default network already setup, and Bilal's patch seems to be in the right direction, and allows distros to change the default network easier.
Comment 3 Guillaume Desmottes 2010-08-02 10:32:05 UTC
Review of attachment 166868 [details] [review]:

I'm wondering if, as a GNOME project, we shouldn't default to GIMPNet instead?

::: libempathy-gtk/empathy-account-widget-irc.c
@@ +417,3 @@
+  if (network == NULL)
+  {
+	const gchar *freenodeserver = (const gchar*)"chat.freenode.net";

No need to cast.

@@ +419,3 @@
+	const gchar *freenodeserver = (const gchar*)"chat.freenode.net";
+	network = empathy_irc_network_manager_find_network_by_address (
+          settings->network_manager, freenodeserver);

I'd #define a DEFAULT_IRC_NETWORK so no need to create an extra var.
Comment 4 Bilal Akhtar 2010-08-10 07:13:09 UTC
The patch has been accepted in Ubuntu. 

I agree with what Guillaume said. It would be definitely better to have a DEFAULT_IRC_NETWORK variable.
Comment 5 Bilal Akhtar 2010-08-10 07:33:24 UTC
Created attachment 167481 [details] [review]
Improved patch

Cassidy,

This patch is an improved version of the previous patch, and I have taken into account the problems pointed out by you.

Thanks for the review!
Comment 6 Guillaume Desmottes 2010-08-11 08:44:38 UTC
Thanks for the patch. I commited it with the following changes:
- default to GimpNet isntead of freenode as Empathy is a GNOME project. Distro can easily change it by patching one line.
- Coding style fixes.

commit 105ef42a1690c3c092879995767584b640741e12
Author: Bilal Akhtar <bilalakhtar96@yahoo.com>
Date:   Wed Aug 11 10:43:20 2010 +0200

    Use GimpNet as default IRC network (#625675)


This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

Note You need to log in before you can comment on or make changes to this bug.