mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
get_mentions() Use gchar instead of char
This commit is contained in:
parent
e5ac12afa6
commit
f4159d8168
@ -474,8 +474,8 @@ GSList*
|
||||
get_mentions(gboolean whole_word, gboolean case_sensitive, const char *const message, const char *const nick)
|
||||
{
|
||||
GSList *mentions = NULL;
|
||||
char *message_search = case_sensitive ? strdup(message) : g_utf8_strdown(message, -1);
|
||||
char *mynick_search = case_sensitive ? strdup(nick) : g_utf8_strdown(nick, -1);
|
||||
gchar *message_search = case_sensitive ? g_strdup(message) : g_utf8_strdown(message, -1);
|
||||
gchar *mynick_search = case_sensitive ? g_strdup(nick) : g_utf8_strdown(nick, -1);
|
||||
|
||||
mentions = prof_occurrences(mynick_search, message_search, 0, whole_word, &mentions);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user