2008-04-08 19:39:35 +00:00
|
|
|
/*
|
|
|
|
* charybdis: An advanced ircd.
|
|
|
|
* chmode.h: The ircd channel header.
|
|
|
|
*
|
|
|
|
* Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
|
|
|
|
* Copyright (C) 1996-2002 Hybrid Development Team
|
|
|
|
* Copyright (C) 2002-2004 ircd-ratbox development team
|
|
|
|
* Copyright (C) 2008 charybdis development team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
* USA
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCLUDED_chmode_h
|
|
|
|
#define INCLUDED_chmode_h
|
|
|
|
|
2008-07-27 08:10:48 +00:00
|
|
|
/* something not included in messages.tab
|
|
|
|
* to change some hooks behaviour when needed
|
|
|
|
* -- dwr
|
|
|
|
*/
|
|
|
|
#define ERR_CUSTOM 1000
|
|
|
|
|
2008-08-04 17:51:15 +00:00
|
|
|
extern int chmode_flags[256];
|
|
|
|
|
2008-04-08 19:39:35 +00:00
|
|
|
extern void chm_nosuch(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-06-24 18:08:24 +00:00
|
|
|
extern void chm_orphaned(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-04-08 19:39:35 +00:00
|
|
|
extern void chm_simple(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-04-08 19:39:35 +00:00
|
|
|
extern void chm_ban(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2010-03-03 19:35:54 +00:00
|
|
|
extern void chm_hidden(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-04-08 19:39:35 +00:00
|
|
|
extern void chm_staff(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-04-08 19:39:35 +00:00
|
|
|
extern void chm_forward(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-04-08 19:39:35 +00:00
|
|
|
extern void chm_throttle(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-04-08 19:39:35 +00:00
|
|
|
extern void chm_key(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-04-08 19:39:35 +00:00
|
|
|
extern void chm_limit(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2013-09-10 14:08:49 +00:00
|
|
|
extern void chm_owner(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2010-03-08 04:18:39 +00:00
|
|
|
extern void chm_admin(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-04-08 19:39:35 +00:00
|
|
|
extern void chm_op(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2010-02-28 07:35:48 +00:00
|
|
|
extern void chm_halfop(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-04-08 19:39:35 +00:00
|
|
|
extern void chm_voice(struct Client *source_p, struct Channel *chptr,
|
2014-08-03 17:38:55 +00:00
|
|
|
int alevel, int parc, int *parn,
|
|
|
|
const char **parv, int *errors, int dir, char c, long mode_type);
|
2008-04-08 19:39:35 +00:00
|
|
|
|
2010-03-31 23:16:16 +00:00
|
|
|
extern unsigned int cflag_add(char c, ChannelModeFunc function);
|
|
|
|
extern void cflag_orphan(char c);
|
|
|
|
extern void construct_cflags_strings(void);
|
2010-10-24 02:46:50 +00:00
|
|
|
extern void construct_cflag_param_string(void);
|
2008-06-25 03:51:32 +00:00
|
|
|
extern char cflagsbuf[256];
|
|
|
|
extern char cflagsmyinfo[256];
|
2010-10-11 20:35:18 +00:00
|
|
|
extern char cflagsparaminfo[256];
|
2008-06-24 16:45:19 +00:00
|
|
|
|
2008-04-08 19:39:35 +00:00
|
|
|
#endif
|