Added mention match preferences

This commit is contained in:
James Booth
2016-04-03 23:33:21 +01:00
parent d9344b00fe
commit afa2c0f5ba
3 changed files with 12 additions and 4 deletions

View File

@@ -251,10 +251,8 @@ sv_ev_room_message(const char *const room_jid, const char *const nick, const cha
char *new_message = plugins_pre_room_message_display(room_jid, nick, message);
char *mynick = muc_nick(mucwin->roomjid);
// gboolean case_sensitive = prefs_get_boolean(PREF_MENTION_CASE_SENSITIVE);
// gboolean whole_word = prefs_get_boolean(PREF_MENTION_WHOLE_WORD);
gboolean case_sensitive = FALSE;
gboolean whole_word = FALSE;
gboolean case_sensitive = prefs_get_boolean(PREF_MENTION_CASE_SENSITIVE);
gboolean whole_word = prefs_get_boolean(PREF_MENTION_WHOLE_WORD);
gboolean mention = prof_strstr(mynick, new_message, case_sensitive, whole_word);
GList *triggers = prefs_message_get_triggers(new_message);