#include "inspircd.h"
#include "inspircd_io.h"
#include "inspircd_util.h"
#include "inspircd_config.h"
#include <unistd.h>
#include <sys/errno.h>
#include <time.h>
#include <string>
#include <hash_map>
#include <map>
#include <sstream>
#include <vector>
#include <deque>
#include "connection.h"
#include "users.h"
#include "servers.h"
#include "ctables.h"
#include "globals.h"
#include "modules.h"
#include "dynamic.h"
#include "wildcard.h"
#include "message.h"
#include "mode.h"
#include "xline.h"
#include "commands.h"
#include "inspstring.h"
#include "helperfuncs.h"
#include "hashcomp.h"
Include dependency graph for modules.cpp:
Go to the source code of this file.
Compounds | |
class | ExtMode |
Typedefs | |
typedef nspace::hash_map< std::string, userrec *, nspace::hash< string >, StrHashComp > | user_hash |
typedef nspace::hash_map< std::string, chanrec *, nspace::hash< string >, StrHashComp > | chan_hash |
typedef nspace::hash_map< in_addr, string *, nspace::hash< in_addr >, InAddr_HashComp > | address_cache |
typedef nspace::hash_map< std::string, WhoWasUser *, nspace::hash< string >, StrHashComp > | whowas_hash |
typedef std::deque< command_t > | command_table |
typedef std::vector< ExtMode > | ExtModeList |
typedef ExtModeList::iterator | ExtModeListIter |
Functions | |
bool | ModeDefined (char modechar, int type) |
bool | ModeIsListMode (char modechar, int type) |
bool | ModeDefinedOper (char modechar, int type) |
int | ModeDefinedOn (char modechar, int type) |
int | ModeDefinedOff (char modechar, int type) |
bool | DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off) |
void | ModeMakeList (char modechar) |
std::vector< Module * > | modules (255) |
std::vector< ircd_module * > | factory (255) |
Variables | |
int | MODCOUNT = -1 |
std::vector< Module * > | modules |
std::vector< ircd_module * > | factory |
time_t | TIME |
int | LogLevel |
char | ServerName [MAXBUF] |
char | Network [MAXBUF] |
char | ServerDesc [MAXBUF] |
char | AdminName [MAXBUF] |
char | AdminEmail [MAXBUF] |
char | AdminNick [MAXBUF] |
char | diepass [MAXBUF] |
char | restartpass [MAXBUF] |
char | motd [MAXBUF] |
char | rules [MAXBUF] |
char | list [MAXBUF] |
char | PrefixQuit [MAXBUF] |
char | DieValue [MAXBUF] |
int | debugging |
int | WHOWAS_STALE |
int | WHOWAS_MAX |
int | DieDelay |
time_t | startup_time |
int | NetBufferSize |
int | MaxWhoResults |
time_t | nb_start |
std::vector< int > | fd_reap |
std::vector< std::string > | module_names |
int | boundPortCount |
int | portCount |
int | SERVERportCount |
int | ports [MAXSOCKS] |
int | defaultRoute |
std::vector< long > | auth_cookies |
std::stringstream | config_f |
serverrec * | me [32] |
FILE * | log_file |
userrec * | fd_ref_table [65536] |
user_hash | clientlist |
chan_hash | chanlist |
whowas_hash | whowas |
command_table | cmdlist |
file_cache | MOTD |
file_cache | RULES |
address_cache | IP |
ExtModeList | EMode |
|
Definition at line 111 of file modules.cpp. |
|
Definition at line 110 of file modules.cpp. |
|
Definition at line 113 of file modules.cpp. |
|
Definition at line 139 of file modules.cpp. |
|
Definition at line 140 of file modules.cpp. Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). |
|
Definition at line 109 of file modules.cpp. |
|
Definition at line 112 of file modules.cpp. |
|
Definition at line 209 of file modules.cpp. References EMode, and ModeDefined(). Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().
00210 { 00211 if (ModeDefined(modechar,type)) { 00212 return false; 00213 } 00214 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); 00215 return true; 00216 } |
|
|
|
Definition at line 146 of file modules.cpp. References EMode, and ExtModeListIter. Referenced by DoAddExtendedMode().
00147 { 00148 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00149 { 00150 if ((i->modechar == modechar) && (i->type == type)) 00151 { 00152 return true; 00153 } 00154 } 00155 return false; 00156 } |
|
Definition at line 196 of file modules.cpp. References EMode, and ExtModeListIter.
00197 { 00198 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00199 { 00200 if ((i->modechar == modechar) && (i->type == type)) 00201 { 00202 return i->params_when_off; 00203 } 00204 } 00205 return 0; 00206 } |
|
Definition at line 183 of file modules.cpp. References EMode, and ExtModeListIter.
00184 { 00185 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00186 { 00187 if ((i->modechar == modechar) && (i->type == type)) 00188 { 00189 return i->params_when_on; 00190 } 00191 } 00192 return 0; 00193 } |
|
Definition at line 170 of file modules.cpp. References EMode, and ExtModeListIter.
00171 { 00172 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00173 { 00174 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) 00175 { 00176 return true; 00177 } 00178 } 00179 return false; 00180 } |
|
Definition at line 158 of file modules.cpp. References EMode, and ExtModeListIter.
00159 { 00160 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00161 { 00162 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) 00163 { 00164 return true; 00165 } 00166 } 00167 return false; 00168 } |
|
Definition at line 219 of file modules.cpp. References EMode, ExtModeListIter, and MT_CHANNEL. Referenced by Server::AddExtendedListMode().
00220 { 00221 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00222 { 00223 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) 00224 { 00225 i->list = true; 00226 return; 00227 } 00228 } 00229 return; 00230 } |
|
|
|
Definition at line 72 of file modules.cpp. |
|
Definition at line 71 of file modules.cpp. |
|
Definition at line 73 of file modules.cpp. |
|
Definition at line 100 of file modules.cpp. |
|
Definition at line 94 of file modules.cpp. |
|
Definition at line 117 of file modules.cpp. |
|
Definition at line 116 of file modules.cpp. |
|
Definition at line 119 of file modules.cpp. |
|
Definition at line 101 of file modules.cpp. |
|
Definition at line 82 of file modules.cpp. |
|
Definition at line 98 of file modules.cpp. |
|
Definition at line 85 of file modules.cpp. |
|
Definition at line 74 of file modules.cpp. |
|
Definition at line 80 of file modules.cpp. |
|
Definition at line 143 of file modules.cpp. Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). |
|
Definition at line 63 of file modules.cpp. |
|
Definition at line 91 of file modules.cpp. |
|
Definition at line 107 of file modules.cpp. Referenced by Server::FindDescriptor(), and Server::PseudoToUser(). |
|
Definition at line 122 of file modules.cpp. |
|
Definition at line 78 of file modules.cpp. |
|
Definition at line 105 of file modules.cpp. |
|
Definition at line 67 of file modules.cpp. |
|
Definition at line 88 of file modules.cpp. |
|
Definition at line 103 of file modules.cpp. |
|
Definition at line 996 of file modules.cpp. |
|
Definition at line 92 of file modules.cpp. |
|
Definition at line 62 of file modules.cpp. |
|
Definition at line 120 of file modules.cpp. |
|
Definition at line 76 of file modules.cpp. |
|
Definition at line 89 of file modules.cpp. |
|
Definition at line 87 of file modules.cpp. |
|
Definition at line 69 of file modules.cpp. |
|
Definition at line 95 of file modules.cpp. |
|
Definition at line 97 of file modules.cpp. |
|
Definition at line 79 of file modules.cpp. |
|
Definition at line 75 of file modules.cpp. |
|
Definition at line 121 of file modules.cpp. |
|
Definition at line 77 of file modules.cpp. |
|
Definition at line 70 of file modules.cpp. |
|
Definition at line 68 of file modules.cpp. |
|
Definition at line 96 of file modules.cpp. |
|
Definition at line 86 of file modules.cpp. |
|
Definition at line 65 of file modules.cpp. |
|
Definition at line 118 of file modules.cpp. |
|
Definition at line 84 of file modules.cpp. |
|
Definition at line 83 of file modules.cpp. |