]> jfr.im git - irc/rqf/shadowircd.git/blame_incremental - include/monitor.h
Fix VERSION and RPL_MYINFO to only show modes that are enabled. Also fix up some...
[irc/rqf/shadowircd.git] / include / monitor.h
... / ...
CommitLineData
1/*
2 * ircd-ratbox: an advanced Internet Relay Chat Daemon(ircd).
3 * monitor.h: Code for server-side notify lists.
4 *
5 * Copyright (C) 2005 Lee Hardy <lee -at- leeh.co.uk>
6 * Copyright (C) 2005 ircd-ratbox development team
7 *
8 */
9#ifndef INCLUDED_monitor_h
10#define INCLUDED_monitor_h
11
12struct rb_bh;
13
14struct monitor
15{
16 struct monitor *hnext;
17 char name[NICKLEN];
18 rb_dlink_list users;
19};
20
21extern struct monitor *monitorTable[];
22
23#define MONITOR_HASH_BITS 16
24#define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
25
26void free_monitor(struct monitor *);
27
28void init_monitor(void);
29struct monitor *find_monitor(const char *name, int add);
30void clear_monitor(struct Client *);
31
32void monitor_signon(struct Client *);
33void monitor_signoff(struct Client *);
34
35#endif