]> jfr.im git - irc/rqf/shadowircd.git/blame - include/chmode.h
Move cmode +N to cmode +d, so that extensions/m_roleplay can retain cmode +N and...
[irc/rqf/shadowircd.git] / include / chmode.h
CommitLineData
b5482c91
VY
1/*
2 * charybdis: An advanced ircd.
3 * chmode.h: The ircd channel header.
4 *
5 * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
6 * Copyright (C) 1996-2002 Hybrid Development Team
7 * Copyright (C) 2002-2004 ircd-ratbox development team
8 * Copyright (C) 2008 charybdis development team
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 * USA
24 *
25 * $Id$
26 */
27
28#ifndef INCLUDED_chmode_h
29#define INCLUDED_chmode_h
30
7608ef49
VY
31/* something not included in messages.tab
32 * to change some hooks behaviour when needed
33 * -- dwr
34 */
35#define ERR_CUSTOM 1000
36
fba62b01
VY
37extern int chmode_flags[256];
38
b5482c91 39extern void chm_nosuch(struct Client *source_p, struct Channel *chptr,
eba51701
VY
40 int alevel, int parc, int *parn,
41 const char **parv, int *errors, int dir, char c, long mode_type);
42extern void chm_orphaned(struct Client *source_p, struct Channel *chptr,
b5482c91
VY
43 int alevel, int parc, int *parn,
44 const char **parv, int *errors, int dir, char c, long mode_type);
45extern void chm_simple(struct Client *source_p, struct Channel *chptr,
46 int alevel, int parc, int *parn,
47 const char **parv, int *errors, int dir, char c, long mode_type);
48extern void chm_ban(struct Client *source_p, struct Channel *chptr,
49 int alevel, int parc, int *parn,
50 const char **parv, int *errors, int dir, char c, long mode_type);
1cdd8fdf
JH
51extern void chm_hidden(struct Client *source_p, struct Channel *chptr,
52 int alevel, int parc, int *parn,
53 const char **parv, int *errors, int dir, char c, long mode_type);
b5482c91
VY
54extern void chm_staff(struct Client *source_p, struct Channel *chptr,
55 int alevel, int parc, int *parn,
56 const char **parv, int *errors, int dir, char c, long mode_type);
57extern void chm_forward(struct Client *source_p, struct Channel *chptr,
58 int alevel, int parc, int *parn,
59 const char **parv, int *errors, int dir, char c, long mode_type);
60extern void chm_throttle(struct Client *source_p, struct Channel *chptr,
61 int alevel, int parc, int *parn,
62 const char **parv, int *errors, int dir, char c, long mode_type);
63extern void chm_key(struct Client *source_p, struct Channel *chptr,
64 int alevel, int parc, int *parn,
65 const char **parv, int *errors, int dir, char c, long mode_type);
66extern void chm_limit(struct Client *source_p, struct Channel *chptr,
67 int alevel, int parc, int *parn,
68 const char **parv, int *errors, int dir, char c, long mode_type);
c1c91f94 69extern void chm_admin(struct Client *source_p, struct Channel *chptr,
82f8e812
G
70 int alevel, int parc, int *parn,
71 const char **parv, int *errors, int dir, char c, long mode_type);
b5482c91
VY
72extern void chm_op(struct Client *source_p, struct Channel *chptr,
73 int alevel, int parc, int *parn,
74 const char **parv, int *errors, int dir, char c, long mode_type);
82f8e812
G
75extern void chm_halfop(struct Client *source_p, struct Channel *chptr,
76 int alevel, int parc, int *parn,
77 const char **parv, int *errors, int dir, char c, long mode_type);
b5482c91
VY
78extern void chm_voice(struct Client *source_p, struct Channel *chptr,
79 int alevel, int parc, int *parn,
80 const char **parv, int *errors, int dir, char c, long mode_type);
81
6795400d
JT
82extern unsigned int cflag_add(char c, ChannelModeFunc function);
83extern void cflag_orphan(char c);
84extern void construct_cflags_strings(void);
0a2e2a35 85extern void construct_cflag_param_string(void);
2392eb24
VY
86extern char cflagsbuf[256];
87extern char cflagsmyinfo[256];
07db71cd 88extern char cflagsparaminfo[256];
75818939 89
b5482c91 90#endif