Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

mode.h

Go to the documentation of this file.
00001 /*       +------------------------------------+
00002  *       | Inspire Internet Relay Chat Daemon |
00003  *       +------------------------------------+
00004  *
00005  *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
00006  *                       E-mail:
00007  *                <brain@chatspike.net>
00008  *                <Craig@chatspike.net>
00009  *     
00010  * Written by Craig Edwards, Craig McLure, and others.
00011  * This program is free but copyrighted software; see
00012  *            the file COPYING for details.
00013  *
00014  * ---------------------------------------------------
00015  */
00016 
00017 #ifndef __MODE_H
00018 #define __MODE_H
00019 
00020 // include the common header files
00021 
00022 #include <typeinfo>
00023 #include <iostream>
00024 #include <string>
00025 #include <deque>
00026 #include <sstream>
00027 #include <vector>
00028 #include "users.h"
00029 #include "channels.h"
00030 
00031 char* give_ops(userrec *user,char *dest,chanrec *chan,int status);
00032 char* give_hops(userrec *user,char *dest,chanrec *chan,int status);
00033 char* give_voice(userrec *user,char *dest,chanrec *chan,int status);
00034 char* take_ops(userrec *user,char *dest,chanrec *chan,int status);
00035 char* take_hops(userrec *user,char *dest,chanrec *chan,int status);
00036 char* take_voice(userrec *user,char *dest,chanrec *chan,int status);
00037 char* add_ban(userrec *user,char *dest,chanrec *chan,int status);
00038 char* take_ban(userrec *user,char *dest,chanrec *chan,int status);
00039 void process_modes(char **parameters,userrec* user,chanrec *chan,int status, int pcnt, bool servermode, bool silent, bool local);
00040 bool allowed_umode(char umode, char* sourcemodes,bool adding);
00041 bool process_module_umode(char umode, userrec* source, void* dest, bool adding);
00042 void handle_mode(char **parameters, int pcnt, userrec *user);
00043 void server_mode(char **parameters, int pcnt, userrec *user);
00044 void merge_mode(char **parameters, int pcnt);
00045 void merge_mode2(char **parameters, int pcnt, userrec* user);
00046 
00047 
00048 #endif

Generated on Wed May 25 21:42:13 2005 for InspIRCd by doxygen 1.3.3