From 676acc67c387361f5656090bc1043f43cd0e850f Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Thu, 8 Apr 2021 21:36:24 +0200 Subject: [PATCH] restore compatibility with fixed Irssi prefixes this is for irssi/irssi#1246 and irssi/irssi#1264 Fixes build with Irssi 1.3 --- src/fe-common/xmpp-completion.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fe-common/xmpp-completion.c b/src/fe-common/xmpp-completion.c index 4e562a1..b4cbf82 100644 --- a/src/fe-common/xmpp-completion.c +++ b/src/fe-common/xmpp-completion.c @@ -30,6 +30,10 @@ #include "rosters-tools.h" #include "tools.h" +#if !defined(IRSSI_ABI_VERSION) || IRSSI_ABI_VERSION < 33 +# define i_list_find_string glist_find_string +#endif + static char * quoted_if_space(const char *name, const char *res) { @@ -287,7 +291,7 @@ get_channels(XMPP_SERVER_REC *server, const char *word) chat_type, XMPP_PROTOCOL_NAME) || *channel_setup->name != '#') && g_ascii_strncasecmp(channel_setup->name, word, len) == 0 - && glist_find_string(list, channel_setup->name) == NULL) + && i_list_find_string(list, channel_setup->name) == NULL) list = g_list_append(list, g_strdup(channel_setup->name)); }