]> jfr.im git - irc/rqf/shadowircd.git/blame - 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
212380e3 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 *
212380e3 8 */
9#ifndef INCLUDED_monitor_h
10#define INCLUDED_monitor_h
11
6e9b4415 12struct rb_bh;
f0a889b6 13
212380e3 14struct monitor
15{
16 struct monitor *hnext;
17 char name[NICKLEN];
08d11e34 18 rb_dlink_list users;
212380e3 19};
20
b717a466
JT
21extern struct monitor *monitorTable[];
22
23#define MONITOR_HASH_BITS 16
f0a889b6 24#define MONITOR_HASH_SIZE (1<<MONITOR_HASH_BITS)
212380e3 25
f0a889b6 26void free_monitor(struct monitor *);
212380e3 27
28void init_monitor(void);
29struct monitor *find_monitor(const char *name, int add);
7118180f 30void clear_monitor(struct Client *);
212380e3 31
32void monitor_signon(struct Client *);
33void monitor_signoff(struct Client *);
34
35#endif