]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/mode.h
e63d9de6ecbf2f86c295d93a27d323a447bc1e04
[user/henk/code/inspircd.git] / include / mode.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
6  *                       E-mail:
7  *                <brain@chatspike.net>
8  *                <Craig@chatspike.net>
9  *     
10  * Written by Craig Edwards, Craig McLure, and others.
11  * This program is free but copyrighted software; see
12  *            the file COPYING for details.
13  *
14  * ---------------------------------------------------
15  */
16
17 #ifndef __MODE_H
18 #define __MODE_H
19
20 // include the common header files
21
22 #include <typeinfo>
23 #include <iostream>
24 #include <string>
25 #include <deque>
26 #include <sstream>
27 #include <vector>
28 #include "users.h"
29 #include "channels.h"
30
31 char* give_ops(userrec *user,char *dest,chanrec *chan,int status);
32 char* give_hops(userrec *user,char *dest,chanrec *chan,int status);
33 char* give_voice(userrec *user,char *dest,chanrec *chan,int status);
34 char* take_ops(userrec *user,char *dest,chanrec *chan,int status);
35 char* take_hops(userrec *user,char *dest,chanrec *chan,int status);
36 char* take_voice(userrec *user,char *dest,chanrec *chan,int status);
37 char* add_ban(userrec *user,char *dest,chanrec *chan,int status);
38 char* take_ban(userrec *user,char *dest,chanrec *chan,int status);
39 void process_modes(char **parameters,userrec* user,chanrec *chan,int status, int pcnt, bool servermode, bool silent, bool local);
40 bool allowed_umode(char umode, char* sourcemodes,bool adding);
41 bool process_module_umode(char umode, userrec* source, void* dest, bool adding);
42 void handle_mode(char **parameters, int pcnt, userrec *user);
43 void server_mode(char **parameters, int pcnt, userrec *user);
44 void merge_mode(char **parameters, int pcnt);
45 void merge_mode2(char **parameters, int pcnt, userrec* user);
46
47
48 #endif