Debian Codegraph @

debian/patches/55_glist_find_string.patch

raw
1 commit 676acc67c387361f5656090bc1043f43cd0e850f
2 Author: Ailin Nemui <[email protected]>
3 Date: Thu Apr 8 21:36:24 2021 +0200
4
5 restore compatibility with fixed Irssi prefixes
6
7 this is for irssi/irssi#1246 and irssi/irssi#1264
8
9 Fixes build with Irssi 1.3
10
11 diff --git a/src/fe-common/xmpp-completion.c b/src/fe-common/xmpp-completion.c
12 index 4e562a1..b4cbf82 100644
13 --- a/src/fe-common/xmpp-completion.c
14 +++ b/src/fe-common/xmpp-completion.c
15 @@ -30,6 +30,10 @@
16 #include "rosters-tools.h"
17 #include "tools.h"
18
19 +#if !defined(IRSSI_ABI_VERSION) || IRSSI_ABI_VERSION < 33
20 +# define i_list_find_string glist_find_string
21 +#endif
22 +
23 static char *
24 quoted_if_space(const char *name, const char *res)
25 {
26 @@ -287,7 +291,7 @@ get_channels(XMPP_SERVER_REC *server, const char *word)
27 chat_type, XMPP_PROTOCOL_NAME)
28 || *channel_setup->name != '#')
29 && g_ascii_strncasecmp(channel_setup->name, word, len) == 0
30 - && glist_find_string(list, channel_setup->name) == NULL)
31 + && i_list_find_string(list, channel_setup->name) == NULL)
32 list = g_list_append(list,
33 g_strdup(channel_setup->name));
34 }