mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
d256f71a00
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1098 dbcabf3a-b0e7-0310-adc4-f8d773084564
32 lines
1013 B
C
32 lines
1013 B
C
#ifndef __HILIGHT_TEXT_H
|
|
#define __HILIGHT_TEXT_H
|
|
|
|
typedef struct {
|
|
char *text;
|
|
|
|
char **channels; /* if non-NULL, check the text only from these channels */
|
|
int level; /* match only messages with this level, 0=default */
|
|
char *color; /* if starts with number, \003 is automatically
|
|
inserted before it. */
|
|
int priority;
|
|
|
|
unsigned int nick:1; /* hilight only the nick, not a full line - works only with msgs. */
|
|
unsigned int nickmask:1; /* `text 'is a nick mask - colorify the nick */
|
|
unsigned int fullword:1; /* match `text' only for full words */
|
|
unsigned int regexp:1; /* `text' is a regular expression */
|
|
} HILIGHT_REC;
|
|
|
|
extern GSList *hilights;
|
|
|
|
HILIGHT_REC *hilight_match(const char *channel, const char *nickmask,
|
|
int level, const char *str);
|
|
char *hilight_get_color(HILIGHT_REC *rec);
|
|
|
|
char *hilight_match_nick(const char *channel, const char *nick,
|
|
const char *address, int level, const char *msg);
|
|
|
|
void hilight_text_init(void);
|
|
void hilight_text_deinit(void);
|
|
|
|
#endif
|