2000-04-26 08:03:38 +00:00
|
|
|
#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. */
|
|
|
|
|
|
2000-06-28 21:47:13 +00:00
|
|
|
int nick:1; /* hilight only the nick, not a full line - works only with msgs. */
|
2000-04-26 08:03:38 +00:00
|
|
|
int nickmask:1; /* `text 'is a nick mask - colorify the nick */
|
|
|
|
|
int fullword:1; /* match `text' only for full words */
|
|
|
|
|
int regexp:1; /* `text' is a regular expression */
|
|
|
|
|
} HILIGHT_REC;
|
|
|
|
|
|
|
|
|
|
extern GSList *hilights;
|
|
|
|
|
|
2000-06-28 21:47:13 +00:00
|
|
|
char *hilight_match(const char *channel, const char *nickmask, int level, const char *str);
|
|
|
|
|
|
2000-04-26 08:03:38 +00:00
|
|
|
void hilight_text_init(void);
|
|
|
|
|
void hilight_text_deinit(void);
|
|
|
|
|
|
|
|
|
|
#endif
|