diff options
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/fe-channels.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fe-common/core/fe-channels.c b/src/fe-common/core/fe-channels.c index 9bc51f37..6579e8b2 100644 --- a/src/fe-common/core/fe-channels.c +++ b/src/fe-common/core/fe-channels.c @@ -508,7 +508,12 @@ void fe_channels_nicklist(CHANNEL_REC *channel, int flags) g_slist_free(nicklist); /* sort the nicklist */ +#if GLIB_MAJOR_VERSION < 2 + /* glib1 doesn't have g_slist_sort_with_data, so non-standard prefixes won't be sorted correctly */ + sorted = g_slist_sort(sorted, (GCompareFunc)nicklist_compare_glib1); +#else sorted = g_slist_sort_with_data(sorted, (GCompareDataFunc) nicklist_compare, (void *)nick_flags); +#endif /* display the nicks */ if ((flags & CHANNEL_NICKLIST_FLAG_COUNT) == 0) { |