00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __MODE_H
00018 #define __MODE_H
00019
00020
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