#include "inspircd_config.h"
#include "inspircd.h"
#include "inspircd_io.h"
#include "inspircd_util.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 "users.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 "socket.h"
Include dependency graph for modules.cpp:
Go to the source code of this file.
Classes | |
class | ExtMode |
Typedefs | |
typedef nspace::hash_map< std::string, userrec *, nspace::hash< string >, irc::StrHashComp > | user_hash |
typedef nspace::hash_map< std::string, chanrec *, nspace::hash< string >, irc::StrHashComp > | chan_hash |
typedef nspace::hash_map< in_addr, string *, nspace::hash< in_addr >, irc::InAddr_HashComp > | address_cache |
typedef nspace::hash_map< std::string, WhoWasUser *, nspace::hash< string >, irc::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 |
std::vector< std::string > | include_stack |
std::vector< InspSocket * > | module_sockets |
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< std::string > | module_names |
int | boundPortCount |
int | portCount |
int | ports [MAXSOCKS] |
std::stringstream | config_f |
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 123 of file modules.cpp. |
|
Definition at line 122 of file modules.cpp. |
|
Definition at line 125 of file modules.cpp. |
|
Definition at line 151 of file modules.cpp. |
|
Definition at line 152 of file modules.cpp. |
|
Definition at line 121 of file modules.cpp. |
|
Definition at line 124 of file modules.cpp. |
|
Definition at line 221 of file modules.cpp. References EMode, and ModeDefined(). Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode(). 00222 { 00223 if (ModeDefined(modechar,type)) { 00224 return false; 00225 } 00226 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); 00227 return true; 00228 }
|
|
|
|
Definition at line 158 of file modules.cpp. References EMode. Referenced by DoAddExtendedMode(). 00159 { 00160 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00161 { 00162 if ((i->modechar == modechar) && (i->type == type)) 00163 { 00164 return true; 00165 } 00166 } 00167 return false; 00168 }
|
|
Definition at line 208 of file modules.cpp. References EMode. 00209 { 00210 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00211 { 00212 if ((i->modechar == modechar) && (i->type == type)) 00213 { 00214 return i->params_when_off; 00215 } 00216 } 00217 return 0; 00218 }
|
|
Definition at line 195 of file modules.cpp. References EMode. 00196 { 00197 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00198 { 00199 if ((i->modechar == modechar) && (i->type == type)) 00200 { 00201 return i->params_when_on; 00202 } 00203 } 00204 return 0; 00205 }
|
|
Definition at line 182 of file modules.cpp. References EMode. 00183 { 00184 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00185 { 00186 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) 00187 { 00188 return true; 00189 } 00190 } 00191 return false; 00192 }
|
|
Definition at line 170 of file modules.cpp. References EMode. 00171 { 00172 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00173 { 00174 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) 00175 { 00176 return true; 00177 } 00178 } 00179 return false; 00180 }
|
|
Definition at line 231 of file modules.cpp. References EMode, and MT_CHANNEL. Referenced by Server::AddExtendedListMode(). 00232 { 00233 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00234 { 00235 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) 00236 { 00237 i->list = true; 00238 return; 00239 } 00240 } 00241 return; 00242 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 155 of file modules.cpp. Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). |
|
|
|
|
|
Referenced by ConfigReader::ConfigReader(). |
|
|
|
|
|
|
|
|
|
Definition at line 81 of file channels.cpp. |
|
Definition at line 994 of file modules.cpp. |
|
|
|
Referenced by Server::AddSocket(), and Server::DelSocket(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|