1 #ifndef __NOTIFYLIST_H
2 #define __NOTIFYLIST_H
3 
4 typedef struct {
5 	char *mask; /* nick part must not contain wildcards */
6 	char **ircnets; /* if non-NULL, check only from these irc networks */
7 
8 	/* notify when AWAY status changes (uses /USERHOST) */
9 	unsigned int away_check:1;
10 } NOTIFYLIST_REC;
11 
12 extern GSList *notifies;
13 
14 void notifylist_init(void);
15 void notifylist_deinit(void);
16 
17 NOTIFYLIST_REC *notifylist_add(const char *mask, const char *ircnets,
18 			       int away_check);
19 void notifylist_remove(const char *mask);
20 
21 IRC_SERVER_REC *notifylist_ison(const char *nick, const char *serverlist);
22 int notifylist_ison_server(IRC_SERVER_REC *server, const char *nick);
23 
24 /* If `ircnet' is "*", it doesn't matter at all. */
25 NOTIFYLIST_REC *notifylist_find(const char *mask, const char *ircnet);
26 
27 int notifylist_ircnets_match(NOTIFYLIST_REC *rec, const char *ircnet);
28 
29 #endif
30