X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=docs%2Fmodule-doc%2Fmodules_8cpp.html;h=ead727c76a585786606b213af492462e87846bd4;hb=5a2675d174e661c55843b3795afe2d688e7197f9;hp=1e5859081b4f52c1121003d8529c164ad00965ea;hpb=c160de3e8dfead4a8ef3a41f1ed3ac586bfd190f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index 1e5859081..ead727c76 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -1,55 +1,270 @@ -modules.cpp File Reference +InspIRCd: modules.cpp File Reference - -
-Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
-

modules.cpp File Reference

#include <typeinfo>
-#include <iostream>
+ +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members
+

modules.cpp File Reference

#include "inspircd.h"
+#include "inspircd_io.h"
+#include "inspircd_util.h"
+#include "inspircd_config.h"
+#include <unistd.h>
+#include <fcntl.h>
+#include <sys/errno.h>
+#include <sys/ioctl.h>
+#include <sys/utsname.h>
+#include <cstdio>
+#include <time.h>
+#include <string>
+#include <hash_map>
+#include <map>
+#include <sstream>
+#include <vector>
+#include <errno.h>
+#include <deque>
+#include <sched.h>
+#include "connection.h"
+#include "users.h"
+#include "servers.h"
+#include "ctables.h"
#include "globals.h"
#include "modules.h"
-#include "ctables.h"
-#include "inspircd_io.h"
+#include "dynamic.h"
#include "wildcard.h"
- -

-Include dependency graph for modules.cpp:

Include dependency graph
- - - - - +#include "message.h"
+#include "mode.h"
+#include "xline.h"
+#include "commands.h"
+#include "inspstring.h"

Go to the source code of this file. + + + - + + + + + + + + + - - + + + + + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Namespaces

namespace  nspace

Compounds

class  ExtMode
class  ExtMode
struct  InAddr_HashComp
struct  StrHashComp

Defines

#define nspace   std

Typedefs

typedef std::vector< ExtModeExtModeList
typedef ExtModeList::iterator ExtModeListIter
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 std::deque< command_tcommand_table
typedef std::vector< ExtModeExtModeList
typedef ExtModeList::iterator ExtModeListIter

Functions

bool ModeDefined (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)
std::vector< Module * > modules (255)
std::vector< ircd_module * > factory (255)
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

ExtModeList EMode
int MODCOUNT = -1
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 UDPportCount
int ports [MAXSOCKS]
int defaultRoute
std::vector< long > auth_cookies
std::stringstream config_f
serverrecme [32]
FILE * log_file
user_hash clientlist
chan_hash chanlist
user_hash whowas
command_table cmdlist
file_cache MOTD
file_cache RULES
address_cache IP
ExtModeList EMode
+


Define Documentation

+

+ + + + +
+ + +
#define nspace   std +
+
+ + + + +
+   + + +

+ +

+Definition at line 59 of file modules.cpp.


Typedef Documentation

-

- +

+

+ + + +
+ + +
typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache +
+
+ + + + + +
+   + + +

+ +

+Definition at line 177 of file modules.cpp.

+

+ + + + +
+ + +
typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash +
+
+ + + + + +
+   + + +

+ +

+Definition at line 176 of file modules.cpp.

+

+ - @@ -64,16 +279,16 @@ Include dependency graph for modules.cpp:

29 of file modules.cpp. +Definition at line 178 of file modules.cpp.
+ -
typedef std::vector<ExtMode> ExtModeList + typedef std::deque<command_t> command_table
-

- +

+

- @@ -88,46 +303,94 @@ Definition at line 29 o

-Definition at line 30 of file modules.cpp. +Definition at line 204 of file modules.cpp. + +

+ -
typedef ExtModeList::iterator ExtModeListIter + typedef std::vector<ExtMode> ExtModeList
+

+ + + + +
+ + +
typedef ExtModeList::iterator ExtModeListIter +
+
+ + + + + +
+   + + +

+ +

+Definition at line 205 of file modules.cpp. +

+Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().

+

+ + + + +
+ + +
typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash +
+
+ + + + + +

+Definition at line 175 of file modules.cpp.

+   + +

-Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), and ModeDefinedOper().


Function Documentation

-

- +

+

-
+ - + - + - + - + - + @@ -149,33 +412,33 @@ Referenced by ModeDefined()

-Definition at line 90 of file modules.cpp. +Definition at line 277 of file modules.cpp.

-References EMode, and ModeDefined(). +References EMode, and ModeDefined().

-Referenced by Server::AddExtendedMode(). +Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().

-

00091 {
-00092         if (ModeDefined(modechar,type)) {
-00093                 return false;
-00094         }
-00095         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
-00096         return true;
-00097 }
+
00278 {
+00279         if (ModeDefined(modechar,type)) {
+00280                 return false;
+00281         }
+00282         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
+00283         return true;
+00284 }
 
bool DoAddExtendedMode char   modechar, modechar,
int   type, type,
bool   requires_oper, requires_oper,
int   params_on, params_on,
int   params_off params_off
-

- +

+

-
+ - + - - + + @@ -194,22 +457,22 @@ Referenced by Server::AddEx
std::vector<ircd_module*> factory std::vector<ircd_module*> factory 255    ) 
-

- +

+

-
+ - + - + @@ -231,43 +494,42 @@ Referenced by Server::AddEx

-Definition at line 35 of file modules.cpp. +Definition at line 211 of file modules.cpp.

-References EMode, and ExtModeListIter. +References DEBUG, EMode, and ExtModeListIter.

-Referenced by DoAddExtendedMode(). +Referenced by DoAddExtendedMode().

-

00036 {
-00037         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
-00038         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00039         {
-00040                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
-00041                 if ((i->modechar == modechar) && (i->type == type))
-00042                 {
-00043                         return true;
-00044                 }
-00045         }
-00046         return false;
-00047 }
+
00212 {
+00213         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
+00214         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00215         {
+00216                 if ((i->modechar == modechar) && (i->type == type))
+00217                 {
+00218                         return true;
+00219                 }
+00220         }
+00221         return false;
+00222 }
 
bool ModeDefined char   modechar, modechar,
int   type type
-

- +

+

-
+ - + - + @@ -289,39 +551,39 @@ Referenced by DoAddExtended

-Definition at line 77 of file modules.cpp. +Definition at line 264 of file modules.cpp.

-References EMode, and ExtModeListIter. +References EMode, and ExtModeListIter.

-

00078 {
-00079         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00080         {
-00081                 if ((i->modechar == modechar) && (i->type == type))
-00082                 {
-00083                         return i->params_when_off;
-00084                 }
-00085         }
-00086         return 0;
-00087 }
+
00265 {
+00266         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00267         {
+00268                 if ((i->modechar == modechar) && (i->type == type))
+00269                 {
+00270                         return i->params_when_off;
+00271                 }
+00272         }
+00273         return 0;
+00274 }
 
int ModeDefinedOff char   modechar, modechar,
int   type type
-

- +

+

-
+ - + - + @@ -343,39 +605,94 @@ References EMode, and <

-Definition at line 64 of file modules.cpp. +Definition at line 251 of file modules.cpp.

-References EMode, and ExtModeListIter. +References EMode, and ExtModeListIter.

-

00065 {
-00066         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00067         {
-00068                 if ((i->modechar == modechar) && (i->type == type))
-00069                 {
-00070                         return i->params_when_on;
-00071                 }
-00072         }
-00073         return 0;
-00074 }
+
00252 {
+00253         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00254         {
+00255                 if ((i->modechar == modechar) && (i->type == type))
+00256                 {
+00257                         return i->params_when_on;
+00258                 }
+00259         }
+00260         return 0;
+00261 }
 
int ModeDefinedOn char   modechar, modechar,
int   type type
-

- +

+

- + +
+ - + + + + + + + + + + + + + + +
bool ModeDefinedOper char   modechar, modechar,
int  type
+
+ + + + + +
+   + + +

+ +

+Definition at line 237 of file modules.cpp. +

+References DEBUG, EMode, and ExtModeListIter. +

+

00238 {
+00239         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
+00240         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00241         {
+00242                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
+00243                 {
+00244                         return true;
+00245                 }
+00246         }
+00247         return false;
+00248 }
+
+

+ + +
+ + + + + + - + @@ -397,36 +714,83 @@ References EMode, and <

-Definition at line 49 of file modules.cpp. +Definition at line 224 of file modules.cpp. +

+References DEBUG, EMode, and ExtModeListIter. +

+

00225 {
+00226         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
+00227         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00228         {
+00229                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
+00230                 {
+00231                         return true;
+00232                 }
+00233         }
+00234         return false;
+00235 }
+
+ +
bool ModeIsListMode char  modechar,
int   type type
+

+ + + + +
+ + + + + + + + + + +
void ModeMakeList char  modechar  ) 
+
+ + + +
+   + + +

+ +

+Definition at line 287 of file modules.cpp. +

+References EMode, ExtModeListIter, and MT_CHANNEL.

-References EMode, and ExtModeListIter. +Referenced by Server::AddExtendedListMode().

-

00050 {
-00051         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
-00052         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-00053         {
-00054                 log(DEBUG,"i->modechar==%c, modechar=%c, i->type=%d, type=%d",i->modechar,modechar,i->type,type);
-00055                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
-00056                 {
-00057                         return true;
-00058                 }
-00059         }
-00060         return false;
-00061 }
+
00288 {
+00289         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+00290         {
+00291                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
+00292                 {
+00293                         i->list = true;
+00294                         return;
+00295                 }
+00296         }
+00297         return;
+00298 }
 
-

- +

+

-
+ - - + + @@ -446,13 +810,37 @@ References EMode, and <
std::vector<Module*> modules 255    ) 

Variable Documentation

-

- +

+

+ + + +
+ + +
char AdminEmail[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 75 of file modules.cpp.

+

+ - @@ -467,18 +855,1028 @@ References EMode, and <

-Definition at line 32 of file modules.cpp. +Definition at line 74 of file modules.cpp. + +

+ -
ExtModeList EMode + char AdminName[MAXBUF]
+

+ + + + +
+ + +
char AdminNick[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 76 of file modules.cpp.

+

+ + + + +
+ + +
std::vector<long> auth_cookies +
+
+ + + + + +
+   + + +

+ +

+Definition at line 103 of file modules.cpp.

+

+ + + + +
+ + +
int boundPortCount +
+
+ + + + + +
+   + + +

+ +

+Definition at line 97 of file modules.cpp.

+

+ + + + +
+ + +
chan_hash chanlist +
+
+ + + + + +
+   + + +

+ +

+Definition at line 182 of file modules.cpp.

+

+ + + + +
+ + +
user_hash clientlist +
+
+ + + + + +
+   + + +

+ +

+Definition at line 181 of file modules.cpp. +

+Referenced by Server::GetUsers().

+

+ + + + +
+ + +
command_table cmdlist +
+
+ + + + + +
+   + + +

+ +

+Definition at line 184 of file modules.cpp.

+

+ + + + +
+ + +
std::stringstream config_f +
+
+ + + + + +
+   + + +

+ +

+Definition at line 104 of file modules.cpp.

+

+ + + + +
+ + +
int debugging +
+
+ + + + + +
+   + + +

+ +

+Definition at line 85 of file modules.cpp.

+

+ + + + +
+ + +
int defaultRoute +
+
+ + + + + +
+   + + +

+ +

+Definition at line 101 of file modules.cpp.

+

+ + + + +
+ + +
int DieDelay +
+
+ + + + + +
+   + + +

+ +

+Definition at line 88 of file modules.cpp.

+

+ + + + +
+ + +
char diepass[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 77 of file modules.cpp.

+

+ + + + +
+ + +
char DieValue[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 83 of file modules.cpp.

+

+ + + + +
+ + +
ExtModeList EMode +
+
+ + + + + +
+   + + +

+ +

+Definition at line 208 of file modules.cpp. +

+Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().

+

+ + + + +
+ + +
std::vector<ircd_module*> factory +
+
+ + + + + +
+   + + +

+ +

+Definition at line 66 of file modules.cpp.

+

+ + + + +
+ + +
std::vector<int> fd_reap +
+
+ + + + + +
+   + + +

+ +

+Definition at line 94 of file modules.cpp.

+

+ + + + +
+ + +
address_cache IP +
+
+ + + + + +
+   + + +

+ +

+Definition at line 187 of file modules.cpp.

+

+ + + + +
+ + +
char list[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 81 of file modules.cpp.

+

+ + + + +
+ + +
FILE* log_file +
+
+ + + + + +
+   + + +

+ +

+Definition at line 108 of file modules.cpp.

+

+ + + + +
+ + +
int LogLevel +
+
+ + + + + +
+   + + +

+ +

+Definition at line 70 of file modules.cpp.

+

+ + + + +
+ + +
int MaxWhoResults +
+
+ + + + + +
+   + + +

+ +

+Definition at line 91 of file modules.cpp.

+

+ + + + +
+ + +
serverrec* me[32] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 106 of file modules.cpp.

+

+ + + + +
+ + +
int MODCOUNT = -1 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 1032 of file modules.cpp.

+

+ + + + +
+ + +
std::vector<std::string> module_names +
+
+ + + + + +
+   + + +

+ +

+Definition at line 95 of file modules.cpp.

+

+ + + + +
+ + +
std::vector<Module*> modules +
+
+ + + + + +
+   + + +

+ +

+Definition at line 65 of file modules.cpp.

+

+ + + + +
+ + +
file_cache MOTD +
+
+ + + + + +
+   + + +

+ +

+Definition at line 185 of file modules.cpp.

+

+ + + + +
+ + +
char motd[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 79 of file modules.cpp.

+

+ + + + +
+ + +
time_t nb_start +
+
+ + + + + +
+   + + +

+ +

+Definition at line 92 of file modules.cpp.

+

+ + + + +
+ + +
int NetBufferSize +
+
+ + + + + +
+   + + +

+ +

+Definition at line 90 of file modules.cpp.

+

+ + + + +
+ + +
char Network[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 72 of file modules.cpp.

+

+ + + + +
+ + +
int portCount +
+
+ + + + + +
+   + + +

+ +

+Definition at line 98 of file modules.cpp.

+

+ + + + +
+ + +
int ports[MAXSOCKS] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 100 of file modules.cpp.

+

+ + + + +
+ + +
char PrefixQuit[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 82 of file modules.cpp.

+

+ + + + +
+ + +
char restartpass[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 78 of file modules.cpp.

+

+ + + + +
+ + +
file_cache RULES +
+
+ + + + + +
+   + + +

+ +

+Definition at line 186 of file modules.cpp.

+

+ + + + +
+ + +
char rules[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 80 of file modules.cpp.

+

+ + + + +
+ + +
char ServerDesc[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 73 of file modules.cpp.

+

+ + + + +
+ + +
char ServerName[MAXBUF] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 71 of file modules.cpp.

+

+ + + + +
+ + +
time_t startup_time +
+
+ + + + + +
+   + + +

+ +

+Definition at line 89 of file modules.cpp.

+

+ + + + +
+ + +
time_t TIME +
+
+ + + + + +
+   + + +

+ +

+Definition at line 68 of file modules.cpp.

+

+ + + + +
+ + +
int UDPportCount +
+
+ + + + + +
+   + + +

+ +

+Definition at line 99 of file modules.cpp.

+

+ + + + +
+ + +
user_hash whowas +
+
+ + + + + +
+   + + +

+ +

+Definition at line 183 of file modules.cpp.

+

+ + + + +
+ + +
int WHOWAS_MAX +
+
+ + + + +Definition at line 87 of file modules.cpp.
+   + + +

+

-Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), and ModeDefinedOper().

-

- +

+

- @@ -493,12 +1891,12 @@ Referenced by DoAddExtended

-Definition at line 429 of file modules.cpp. +Definition at line 86 of file modules.cpp.

+ -
int MODCOUNT = -1 + int WHOWAS_STALE
-


Generated on Sat Apr 17 13:33:47 2004 for InspIRCd by +
Generated on Tue Apr 26 17:11:46 2005 for InspIRCd by -doxygen1.3-rc3
+doxygen +1.3.3