]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Solanum: a slightly advanced 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 | #include "client.h" | |
29 | #include "channel.h" | |
30 | ||
31 | /* finds a channel where source_p has op or voice and target_p is a member */ | |
32 | struct Channel *find_allowing_channel(struct Client *source_p, struct Client *target_p); | |
33 | /* checks if source_p is allowed to send to target_p */ | |
34 | int add_target(struct Client *source_p, struct Client *target_p); | |
35 | /* checks if source_p is allowed to send to chptr */ | |
36 | int add_channel_target(struct Client *source_p, struct Channel *chptr); | |
37 | /* allows source_p to send to target_p */ | |
38 | void add_reply_target(struct Client *source_p, struct Client *target_p); | |
39 | ||
40 | #endif /* INCLUDED_tgchange_h */ |