Skip to content

Commit

Permalink
restore compatibility with fixed Irssi prefixes
Browse files Browse the repository at this point in the history
this is for irssi/irssi#1246 and irssi/irssi#1264

Fixes build with Irssi 1.3
  • Loading branch information
Ailin Nemui committed Apr 8, 2021
1 parent a1a37e8 commit 36d47f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fe-common/xmpp-completion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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));
}
Expand Down

0 comments on commit 36d47f8

Please sign in to comment.