]> jfr.im git - irc/rqf/shadowircd.git/blame - include/tgchange.h
Move cmode +N to cmode +d, so that extensions/m_roleplay can retain cmode +N and...
[irc/rqf/shadowircd.git] / include / tgchange.h
CommitLineData
878733fd
JT
1/*
2 * charybdis: an advanced Internet Relay Chat Daemon(ircd).
3 *
4 * Copyright (C) 2004-2005 Lee Hardy <lee@leeh.co.uk>
5 * Copyright (C) 2005-2010 Jilles Tjoelker <jilles@stack.nl>
6 * Copyright (C) 2004-2005 ircd-ratbox development team
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 * USA
22 */
23
24#ifndef INCLUDED_tgchange_h
25#define INCLUDED_tgchange_h
26
27#include "ircd_defs.h"
28
29/* finds a channel where source_p has op or voice and target_p is a member */
30struct Channel *find_allowing_channel(struct Client *source_p, struct Client *target_p);
31/* checks if source_p is allowed to send to target_p */
32int add_target(struct Client *source_p, struct Client *target_p);
9e94d9ea
JT
33/* checks if source_p is allowed to send to chptr */
34int add_channel_target(struct Client *source_p, struct Channel *chptr);
878733fd
JT
35/* allows source_p to send to target_p */
36void add_reply_target(struct Client *source_p, struct Client *target_p);
37
38#endif /* INCLUDED_tgchange_h */