~ubuntu-branches/ubuntu/gutsy/irssi/gutsy-backports

« back to all changes in this revision

Viewing changes to src/fe-common/core/fe-channels.c

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2007-11-19 10:49:04 UTC
  • mfrom: (6.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20071119104904-kzu9r9h7cq8as4ri
Tags: 0.8.12-2ubuntu1~gutsy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
14
    GNU General Public License for more details.
15
15
 
16
 
    You should have received a copy of the GNU General Public License
17
 
    along with this program; if not, write to the Free Software
18
 
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
16
    You should have received a copy of the GNU General Public License along
 
17
    with this program; if not, write to the Free Software Foundation, Inc.,
 
18
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
19
*/
20
20
 
21
21
#include "module.h"
508
508
        g_slist_free(nicklist);
509
509
 
510
510
        /* sort the nicklist */
511
 
#if GLIB_MAJOR_VERSION < 2
512
 
        /* glib1 doesn't have g_slist_sort_with_data, so non-standard prefixes won't be sorted correctly */
513
 
        sorted = g_slist_sort(sorted, (GCompareFunc)nicklist_compare_glib1);
514
 
#else
515
511
        sorted = g_slist_sort_with_data(sorted, (GCompareDataFunc) nicklist_compare, (void *)nick_flags);
516
 
#endif
517
512
 
518
513
        /* display the nicks */
519
514
        if ((flags & CHANNEL_NICKLIST_FLAG_COUNT) == 0) {