Put getting mentions in own function

So we can use it somewhere else too.

Regards https://github.com/profanity-im/profanity/issues/1261
This commit is contained in:
Michael Vetter
2020-02-20 10:03:36 +01:00
parent 80dd3fdbb2
commit 1ddac7b9c6
3 changed files with 17 additions and 10 deletions

View File

@@ -99,6 +99,7 @@ gboolean is_notify_enabled(void);
GSList* prof_occurrences(const char *const needle, const char *const haystack, int offset, gboolean whole_word,
GSList **result);
GSList* get_mentions(gboolean whole_word, gboolean case_sensitive, const char *const message, const char *const nick);
int is_regular_file(const char *path);
int is_dir(const char *path);