diff options
Diffstat (limited to 'docs')
370 files changed, 9261 insertions, 7490 deletions
diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3 index f950ffbf8..31a231609 100644 --- a/docs/man/man3/Admin.3 +++ b/docs/man/man3/Admin.3 @@ -1,4 +1,4 @@ -.TH "Admin" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Admin" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -43,10 +43,10 @@ Definition at line 125 of file modules.h. .PP .SS "Admin::Admin (\fBstd::string\fP name, \fBstd::string\fP email, \fBstd::string\fP nick)" .PP -Definition at line 244 of file modules.cpp. +Definition at line 171 of file modules.cpp. .PP .nf -244 : Name(name), Email(email), Nick(nick) { }; +171 : Name(name), Email(email), Nick(nick) { }; .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/BanItem.3 b/docs/man/man3/BanItem.3 index cbd5e52e0..ae351b6a6 100644 --- a/docs/man/man3/BanItem.3 +++ b/docs/man/man3/BanItem.3 @@ -1,4 +1,4 @@ -.TH "BanItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "BanItem" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/BoolSet.3 b/docs/man/man3/BoolSet.3 index 78ecd755f..219d7e913 100644 --- a/docs/man/man3/BoolSet.3 +++ b/docs/man/man3/BoolSet.3 @@ -1,4 +1,4 @@ -.TH "BoolSet" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "BoolSet" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3 index bc4f7caa3..009733cae 100644 --- a/docs/man/man3/ConfigReader.3 +++ b/docs/man/man3/ConfigReader.3 @@ -1,4 +1,4 @@ -.TH "ConfigReader" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ConfigReader" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -84,7 +84,7 @@ Allows reading of values from configuration files This class allows a module to It may either be instantiated with one parameter or none. Constructing the class using one parameter allows you to specify a path to your own configuration file, otherwise, inspircd.conf is read. .PP -Definition at line 1510 of file modules.h. +Definition at line 1525 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ConfigReader::ConfigReader ()" @@ -93,19 +93,19 @@ Default constructor. .PP This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure. .PP -Definition at line 807 of file modules.cpp. +Definition at line 734 of file modules.cpp. .PP -References cache, CONF_FILE_NOT_FOUND, error, errorlog, include_stack, and readerror. +References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror. .PP .nf -808 { -809 include_stack.clear(); -810 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -811 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -812 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -813 if (!this->readerror) -814 this->error = CONF_FILE_NOT_FOUND; -815 } +735 { +736 Config->ClearStack(); +737 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +738 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +739 this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog); +740 if (!this->readerror) +741 this->error = CONF_FILE_NOT_FOUND; +742 } .fi .PP .SS "ConfigReader::ConfigReader (\fBstd::string\fP filename)" @@ -114,18 +114,19 @@ Overloaded constructor. .PP This constructor initialises the ConfigReader class to read a user-specified config file .PP -Definition at line 827 of file modules.cpp. +Definition at line 754 of file modules.cpp. .PP -References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. +References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror. .PP .nf -828 { -829 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -830 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -831 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -832 if (!this->readerror) -833 this->error = CONF_FILE_NOT_FOUND; -834 }; +755 { +756 Config->ClearStack(); +757 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +758 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +759 this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog); +760 if (!this->readerror) +761 this->error = CONF_FILE_NOT_FOUND; +762 }; .fi .PP .SS "ConfigReader::~ConfigReader ()" @@ -134,17 +135,17 @@ Default destructor. .PP This method destroys the ConfigReader class. .PP -Definition at line 818 of file modules.cpp. +Definition at line 745 of file modules.cpp. .PP References cache, and errorlog. .PP .nf -819 { -820 if (this->cache) -821 delete this->cache; -822 if (this->errorlog) -823 delete this->errorlog; -824 } +746 { +747 if (this->cache) +748 delete this->cache; +749 if (this->errorlog) +750 delete this->errorlog; +751 } .fi .PP .SH "Member Function Documentation" @@ -155,41 +156,41 @@ Dumps the list of errors in a config file to an output location. .PP If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers. .PP -Definition at line 905 of file modules.cpp. +Definition at line 833 of file modules.cpp. .PP References errorlog, connection::fd, and userrec::nick. .PP .nf -906 { -907 if (bail) -908 { -909 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); -910 exit(0); -911 } -912 else -913 { -914 char dataline[1024]; -915 if (user) -916 { -917 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); -918 while (!errorlog->eof()) -919 { -920 errorlog->getline(dataline,1024); -921 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); -922 } -923 } -924 else -925 { -926 WriteOpers('There were errors in the configuration file:',user->nick); -927 while (!errorlog->eof()) -928 { -929 errorlog->getline(dataline,1024); -930 WriteOpers(dataline); -931 } -932 } -933 return; -934 } -935 } +834 { +835 if (bail) +836 { +837 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); +838 exit(0); +839 } +840 else +841 { +842 char dataline[1024]; +843 if (user) +844 { +845 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); +846 while (!errorlog->eof()) +847 { +848 errorlog->getline(dataline,1024); +849 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); +850 } +851 } +852 else +853 { +854 WriteOpers('There were errors in the configuration file:',user->nick); +855 while (!errorlog->eof()) +856 { +857 errorlog->getline(dataline,1024); +858 WriteOpers(dataline); +859 } +860 } +861 return; +862 } +863 } .fi .PP .SS "int ConfigReader::Enumerate (\fBstd::string\fP tag)" @@ -198,14 +199,14 @@ Counts the number of times a given tag appears in the config file. .PP This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of \fBConfigReader::ReadValue\fP to loop through all copies of a multiple instance tag. .PP -Definition at line 938 of file modules.cpp. +Definition at line 866 of file modules.cpp. .PP -References cache. +References cache, and ServerConfig::EnumConf(). .PP .nf -939 { -940 return EnumConf(cache,tag.c_str()); -941 } +867 { +868 return Config->EnumConf(cache,tag.c_str()); +869 } .fi .PP .SS "int ConfigReader::EnumerateValues (\fBstd::string\fP tag, int index)" @@ -214,14 +215,14 @@ Returns the number of items within a tag. .PP For example if the tag was <test tag='blah' data='foo'> then this function would return 2. Spaces and newlines both qualify as valid seperators between values. .PP -Definition at line 943 of file modules.cpp. +Definition at line 871 of file modules.cpp. .PP -References cache. +References cache, and ServerConfig::EnumValues(). .PP .nf -944 { -945 return EnumValues(cache, tag.c_str(), index); -946 } +872 { +873 return Config->EnumValues(cache, tag.c_str(), index); +874 } .fi .PP .SS "long ConfigReader::GetError ()" @@ -230,16 +231,16 @@ Returns the last error to occur. .PP Valid errors can be found by looking in \fBmodules.h\fP. Any nonzero value indicates an error condition. A call to \fBGetError()\fP resets the error flag back to 0. .PP -Definition at line 898 of file modules.cpp. +Definition at line 826 of file modules.cpp. .PP References error. .PP .nf -899 { -900 long olderr = this->error; -901 this->error = 0; -902 return olderr; -903 } +827 { +828 long olderr = this->error; +829 this->error = 0; +830 return olderr; +831 } .fi .PP .SS "bool ConfigReader::ReadFlag (\fBstd::string\fP tag, \fBstd::string\fP name, int index)" @@ -248,26 +249,26 @@ Retrieves a boolean value from the config file. .PP This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values '1', 'yes' and 'true' in the config file count as true to ReadFlag, and any other value counts as false. .PP -Definition at line 852 of file modules.cpp. +Definition at line 780 of file modules.cpp. .PP -References cache, CONF_VALUE_NOT_FOUND, and error. +References cache, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf(). .PP .nf -853 { -854 char val[MAXBUF]; -855 char t[MAXBUF]; -856 char n[MAXBUF]; -857 strlcpy(t,tag.c_str(),MAXBUF); -858 strlcpy(n,name.c_str(),MAXBUF); -859 int res = ReadConf(cache,t,n,index,val); -860 if (!res) -861 { -862 this->error = CONF_VALUE_NOT_FOUND; -863 return false; -864 } -865 std::string s = val; -866 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); -867 } +781 { +782 char val[MAXBUF]; +783 char t[MAXBUF]; +784 char n[MAXBUF]; +785 strlcpy(t,tag.c_str(),MAXBUF); +786 strlcpy(n,name.c_str(),MAXBUF); +787 int res = Config->ReadConf(cache,t,n,index,val); +788 if (!res) +789 { +790 this->error = CONF_VALUE_NOT_FOUND; +791 return false; +792 } +793 std::string s = val; +794 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); +795 } .fi .PP .SS "long ConfigReader::ReadInteger (\fBstd::string\fP tag, \fBstd::string\fP name, int index, bool needs_unsigned)" @@ -276,38 +277,38 @@ Retrieves an integer value from the config file. .PP This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to \fBGetError()\fP will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and \fBGetError()\fP will return CONF_NOT_UNSIGNED .PP -Definition at line 869 of file modules.cpp. +Definition at line 797 of file modules.cpp. .PP -References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error. +References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf(). .PP .nf -870 { -871 char val[MAXBUF]; -872 char t[MAXBUF]; -873 char n[MAXBUF]; -874 strlcpy(t,tag.c_str(),MAXBUF); -875 strlcpy(n,name.c_str(),MAXBUF); -876 int res = ReadConf(cache,t,n,index,val); -877 if (!res) -878 { -879 this->error = CONF_VALUE_NOT_FOUND; -880 return 0; -881 } -882 for (unsigned int i = 0; i < strlen(val); i++) -883 { -884 if (!isdigit(val[i])) -885 { -886 this->error = CONF_NOT_A_NUMBER; -887 return 0; -888 } -889 } -890 if ((needs_unsigned) && (atoi(val)<0)) -891 { -892 this->error = CONF_NOT_UNSIGNED; -893 return 0; -894 } -895 return atoi(val); -896 } +798 { +799 char val[MAXBUF]; +800 char t[MAXBUF]; +801 char n[MAXBUF]; +802 strlcpy(t,tag.c_str(),MAXBUF); +803 strlcpy(n,name.c_str(),MAXBUF); +804 int res = Config->ReadConf(cache,t,n,index,val); +805 if (!res) +806 { +807 this->error = CONF_VALUE_NOT_FOUND; +808 return 0; +809 } +810 for (unsigned int i = 0; i < strlen(val); i++) +811 { +812 if (!isdigit(val[i])) +813 { +814 this->error = CONF_NOT_A_NUMBER; +815 return 0; +816 } +817 } +818 if ((needs_unsigned) && (atoi(val)<0)) +819 { +820 this->error = CONF_NOT_UNSIGNED; +821 return 0; +822 } +823 return atoi(val); +824 } .fi .PP .SS "\fBstd::string\fP ConfigReader::ReadValue (\fBstd::string\fP tag, \fBstd::string\fP name, int index)" @@ -316,25 +317,25 @@ Retrieves a value from the config file. .PP This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. .PP -Definition at line 836 of file modules.cpp. +Definition at line 764 of file modules.cpp. .PP -References cache, CONF_VALUE_NOT_FOUND, and error. +References cache, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf(). .PP .nf -837 { -838 char val[MAXBUF]; -839 char t[MAXBUF]; -840 char n[MAXBUF]; -841 strlcpy(t,tag.c_str(),MAXBUF); -842 strlcpy(n,name.c_str(),MAXBUF); -843 int res = ReadConf(cache,t,n,index,val); -844 if (!res) -845 { -846 this->error = CONF_VALUE_NOT_FOUND; -847 return ''; -848 } -849 return val; -850 } +765 { +766 char val[MAXBUF]; +767 char t[MAXBUF]; +768 char n[MAXBUF]; +769 strlcpy(t,tag.c_str(),MAXBUF); +770 strlcpy(n,name.c_str(),MAXBUF); +771 int res = Config->ReadConf(cache,t,n,index,val); +772 if (!res) +773 { +774 this->error = CONF_VALUE_NOT_FOUND; +775 return ''; +776 } +777 return val; +778 } .fi .PP .SS "bool ConfigReader::Verify ()" @@ -343,14 +344,14 @@ Returns true if a config file is valid. .PP This method is partially implemented and will only return false if the config file does not exist or could not be opened. .PP -Definition at line 948 of file modules.cpp. +Definition at line 876 of file modules.cpp. .PP References readerror. .PP .nf -949 { -950 return this->readerror; -951 } +877 { +878 return this->readerror; +879 } .fi .PP .SH "Member Data Documentation" @@ -361,24 +362,24 @@ The contents of the configuration file This protected member should never be acc .PP It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it. .PP -Definition at line 1518 of file modules.h. +Definition at line 1533 of file modules.h. .PP Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader(). .SS "long \fBConfigReader::error\fP\fC [protected]\fP" .PP -Definition at line 1523 of file modules.h. +Definition at line 1538 of file modules.h. .PP Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue(). .SS "std::stringstream* \fBConfigReader::errorlog\fP\fC [protected]\fP" .PP -Definition at line 1519 of file modules.h. +Definition at line 1534 of file modules.h. .PP Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader(). .SS "bool \fBConfigReader::readerror\fP\fC [protected]\fP" .PP Used to store errors. .PP -Definition at line 1522 of file modules.h. +Definition at line 1537 of file modules.h. .PP Referenced by ConfigReader(), and Verify(). diff --git a/docs/man/man3/ConnectClass.3 b/docs/man/man3/ConnectClass.3 index ae23d9973..f4c5bbab4 100644 --- a/docs/man/man3/ConnectClass.3 +++ b/docs/man/man3/ConnectClass.3 @@ -1,4 +1,4 @@ -.TH "ConnectClass" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ConnectClass" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/DNS.3 b/docs/man/man3/DNS.3 index d88cb6f54..20f26f893 100644 --- a/docs/man/man3/DNS.3 +++ b/docs/man/man3/DNS.3 @@ -1,4 +1,4 @@ -.TH "DNS" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "DNS" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ELine.3 b/docs/man/man3/ELine.3 index 7152c62e3..2ecbb46ac 100644 --- a/docs/man/man3/ELine.3 +++ b/docs/man/man3/ELine.3 @@ -1,4 +1,4 @@ -.TH "ELine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ELine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -20,14 +20,14 @@ Inherits \fBXLine\fP. .in -1c .SH "Detailed Description" .PP -Definition at line 82 of file xline.h. +Definition at line 87 of file xline.h. .SH "Member Data Documentation" .PP .SS "char \fBELine::hostmask\fP[200]" .PP Hostmask (ident) to match against May contain wildcards. .PP -Definition at line 88 of file xline.h. +Definition at line 93 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/Event.3 b/docs/man/man3/Event.3 index 45e6444b8..d47289f04 100644 --- a/docs/man/man3/Event.3 +++ b/docs/man/man3/Event.3 @@ -1,4 +1,4 @@ -.TH "Event" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Event" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -65,10 +65,10 @@ Definition at line 197 of file modules.h. .PP Create a new Event. .PP -Definition at line 275 of file modules.cpp. +Definition at line 202 of file modules.cpp. .PP .nf -275 : data(anydata), source(src), id(eventid) { }; +202 : data(anydata), source(src), id(eventid) { }; .fi .PP .SH "Member Function Documentation" @@ -77,14 +77,14 @@ Definition at line 275 of file modules.cpp. .PP Get the Event data. .PP -Definition at line 277 of file modules.cpp. +Definition at line 204 of file modules.cpp. .PP References data. .PP .nf -278 { -279 return this->data; -280 } +205 { +206 return this->data; +207 } .fi .PP .SS "\fBstd::string\fP Event::GetEventID ()" @@ -93,28 +93,28 @@ Get the event ID. .PP Use this to determine the event type for safe casting of the data .PP -Definition at line 293 of file modules.cpp. +Definition at line 220 of file modules.cpp. .PP References id. .PP .nf -294 { -295 return this->id; -296 } +221 { +222 return this->id; +223 } .fi .PP .SS "\fBModule\fP * Event::GetSource ()" .PP Get the event Source. .PP -Definition at line 282 of file modules.cpp. +Definition at line 209 of file modules.cpp. .PP References source. .PP .nf -283 { -284 return this->source; -285 } +210 { +211 return this->source; +212 } .fi .PP .SS "char * Event::Send ()\fC [virtual]\fP" @@ -125,15 +125,15 @@ The return result of an \fBEvent::Send()\fP will always be NULL as no replies ar .PP Implements \fBModuleMessage\fP. .PP -Definition at line 287 of file modules.cpp. +Definition at line 214 of file modules.cpp. .PP References FOREACH_MOD. .PP .nf -288 { -289 FOREACH_MOD OnEvent(this); -290 return NULL; -291 } +215 { +216 FOREACH_MOD OnEvent(this); +217 return NULL; +218 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3 index 75486b5a5..2420d3566 100644 --- a/docs/man/man3/ExemptItem.3 +++ b/docs/man/man3/ExemptItem.3 @@ -1,4 +1,4 @@ -.TH "ExemptItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ExemptItem" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExtMode.3 b/docs/man/man3/ExtMode.3 index 367d3557d..3769c5758 100644 --- a/docs/man/man3/ExtMode.3 +++ b/docs/man/man3/ExtMode.3 @@ -1,11 +1,15 @@ -.TH "ExtMode" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ExtMode" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME -ExtMode \- +ExtMode \- Holds an extended mode's details. + +.PP .SH SYNOPSIS .br .PP +\fC#include <modules.h>\fP +.PP Inherits \fBclassbase\fP. .PP .SS "Public Member Functions" @@ -39,37 +43,41 @@ Inherits \fBclassbase\fP. .in -1c .SH "Detailed Description" .PP -Definition at line 133 of file modules.cpp. +Holds an extended mode's details. + +Used internally by \fBmodules.cpp\fP +.PP +Definition at line 236 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ExtMode::ExtMode (char mc, int ty, bool oper, int p_on, int p_off)\fC [inline]\fP" .PP -Definition at line 142 of file modules.cpp. +Definition at line 245 of file modules.h. .PP .nf -142 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; +245 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; .fi .PP .SH "Member Data Documentation" .PP .SS "bool \fBExtMode::list\fP" .PP -Definition at line 141 of file modules.cpp. +Definition at line 244 of file modules.h. .SS "char \fBExtMode::modechar\fP" .PP -Definition at line 136 of file modules.cpp. +Definition at line 239 of file modules.h. .SS "bool \fBExtMode::needsoper\fP" .PP -Definition at line 138 of file modules.cpp. +Definition at line 241 of file modules.h. .SS "int \fBExtMode::params_when_off\fP" .PP -Definition at line 140 of file modules.cpp. +Definition at line 243 of file modules.h. .SS "int \fBExtMode::params_when_on\fP" .PP -Definition at line 139 of file modules.cpp. +Definition at line 242 of file modules.h. .SS "int \fBExtMode::type\fP" .PP -Definition at line 137 of file modules.cpp. +Definition at line 240 of file modules.h. .SH "Author" .PP diff --git a/docs/man/man3/Extensible.3 b/docs/man/man3/Extensible.3 index 4cdb11d5d..6ec3819c7 100644 --- a/docs/man/man3/Extensible.3 +++ b/docs/man/man3/Extensible.3 @@ -1,4 +1,4 @@ -.TH "Extensible" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Extensible" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -30,7 +30,7 @@ Inherited by \fBchanrec\fP, \fBcommand_t\fP, and \fBconnection\fP. .br .RI "\fIGet an extension item. \fP" .ti -1c -.RI "void \fBGetExtList\fP (std::deque< \fBstd::string\fP > &\fBlist\fP)" +.RI "void \fBGetExtList\fP (std::deque< \fBstd::string\fP > &list)" .br .RI "\fIGet a list of all extension items names. \fP" .in -1c diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3 index bf779fb9e..05fbaae25 100644 --- a/docs/man/man3/FileReader.3 +++ b/docs/man/man3/FileReader.3 @@ -1,4 +1,4 @@ -.TH "FileReader" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "FileReader" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -57,7 +57,7 @@ Caches a text file into memory and can be used to retrieve lines from it. This class contains methods for read-only manipulation of a text file in memory. Either use the constructor type with one parameter to load a file into memory at construction, or use the LoadFile method to load a file. .PP -Definition at line 1599 of file modules.h. +Definition at line 1614 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "FileReader::FileReader ()" @@ -66,11 +66,11 @@ Default constructor. .PP This method does not load any file into memory, you must use the LoadFile method after constructing the class this way. .PP -Definition at line 961 of file modules.cpp. +Definition at line 889 of file modules.cpp. .PP .nf -962 { -963 } +890 { +891 } .fi .PP .SS "FileReader::FileReader (\fBstd::string\fP filename)" @@ -79,16 +79,16 @@ Secondary constructor. .PP This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, \fBFileReader::FileSize\fP returns 0. .PP -Definition at line 954 of file modules.cpp. +Definition at line 882 of file modules.cpp. .PP References fc. .PP .nf -955 { -956 file_cache c; -957 readfile(c,filename.c_str()); -958 this->fc = c; -959 } +883 { +884 file_cache c; +885 readfile(c,filename.c_str()); +886 this->fc = c; +887 } .fi .PP .SS "FileReader::~FileReader ()" @@ -97,11 +97,11 @@ Default destructor. .PP This deletes the memory allocated to the file. .PP -Definition at line 973 of file modules.cpp. +Definition at line 901 of file modules.cpp. .PP .nf -974 { -975 } +902 { +903 } .fi .PP .SH "Member Function Documentation" @@ -110,21 +110,21 @@ Definition at line 973 of file modules.cpp. .PP Returns true if the file exists This function will return false if the file could not be opened. .PP -Definition at line 977 of file modules.cpp. +Definition at line 905 of file modules.cpp. .PP References fc. .PP .nf -978 { -979 if (fc.size() == 0) -980 { -981 return(false); -982 } -983 else -984 { -985 return(true); -986 } -987 } +906 { +907 if (fc.size() == 0) +908 { +909 return(false); +910 } +911 else +912 { +913 return(true); +914 } +915 } .fi .PP .SS "int FileReader::FileSize ()" @@ -133,14 +133,14 @@ Returns the size of the file in lines. .PP This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems. .PP -Definition at line 996 of file modules.cpp. +Definition at line 924 of file modules.cpp. .PP References fc. .PP .nf -997 { -998 return fc.size(); -999 } +925 { +926 return fc.size(); +927 } .fi .PP .SS "\fBstd::string\fP FileReader::GetLine (int x)" @@ -149,16 +149,16 @@ Retrieve one line from the file. .PP This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it. .PP -Definition at line 989 of file modules.cpp. +Definition at line 917 of file modules.cpp. .PP References fc. .PP .nf -990 { -991 if ((x<0) || ((unsigned)x>fc.size())) -992 return ''; -993 return fc[x]; -994 } +918 { +919 if ((x<0) || ((unsigned)x>fc.size())) +920 return ''; +921 return fc[x]; +922 } .fi .PP .SS "void FileReader::LoadFile (\fBstd::string\fP filename)" @@ -167,23 +167,23 @@ Used to load a file. .PP This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, \fBFileReader::FileSize\fP returns 0. .PP -Definition at line 965 of file modules.cpp. +Definition at line 893 of file modules.cpp. .PP References fc. .PP .nf -966 { -967 file_cache c; -968 readfile(c,filename.c_str()); -969 this->fc = c; -970 } +894 { +895 file_cache c; +896 readfile(c,filename.c_str()); +897 this->fc = c; +898 } .fi .PP .SH "Member Data Documentation" .PP .SS "\fBfile_cache\fP \fBFileReader::fc\fP\fC [private]\fP" .PP -Definition at line 1601 of file modules.h. +Definition at line 1616 of file modules.h. .PP Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile(). diff --git a/docs/man/man3/GLine.3 b/docs/man/man3/GLine.3 index 039de05ee..ce80b2e36 100644 --- a/docs/man/man3/GLine.3 +++ b/docs/man/man3/GLine.3 @@ -1,4 +1,4 @@ -.TH "GLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "GLine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -24,14 +24,14 @@ Inherits \fBXLine\fP. .PP GLine class. .PP -Definition at line 73 of file xline.h. +Definition at line 78 of file xline.h. .SH "Member Data Documentation" .PP .SS "char \fBGLine::hostmask\fP[200]" .PP Hostmask (ident) to match against May contain wildcards. .PP -Definition at line 79 of file xline.h. +Definition at line 84 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3 index 9adfeb7d4..0862d378e 100644 --- a/docs/man/man3/HostItem.3 +++ b/docs/man/man3/HostItem.3 @@ -1,4 +1,4 @@ -.TH "HostItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "HostItem" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/InspSocket.3 b/docs/man/man3/InspSocket.3 index 63f2475d6..fc39dc8e6 100644 --- a/docs/man/man3/InspSocket.3 +++ b/docs/man/man3/InspSocket.3 @@ -1,4 +1,4 @@ -.TH "InspSocket" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "InspSocket" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -163,14 +163,14 @@ Definition at line 47 of file socket.h. .PP The default constructor does nothing and should not be used. .PP -Definition at line 49 of file socket.cpp. +Definition at line 48 of file socket.cpp. .PP References I_DISCONNECTED, and state. .PP .nf -50 { -51 this->state = I_DISCONNECTED; -52 } +49 { +50 this->state = I_DISCONNECTED; +51 } .fi .PP .SS "InspSocket::InspSocket (int newfd, char * ip)" @@ -179,16 +179,17 @@ This constructor is used to associate an existing connecting with an InspSocket .PP The given file descriptor must be valid, and when initialized, the InspSocket will be set with the given IP address and placed in CONNECTED state. .PP -Definition at line 54 of file socket.cpp. +Definition at line 53 of file socket.cpp. .PP References SocketEngine::AddFd(), fd, I_CONNECTED, IP, state, and X_ESTAB_MODULE. .PP .nf -55 { -56 this->fd = newfd; -57 this->state = I_CONNECTED; -58 this->IP = ip; -59 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +54 { +55 this->fd = newfd; +56 this->state = I_CONNECTED; +57 this->IP = ip; +58 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +59 socket_ref[this->fd] = this; 60 } .fi .PP @@ -211,7 +212,7 @@ This constructor is used to create a new socket, either listening for connection .PP Definition at line 62 of file socket.cpp. .PP -References SocketEngine::AddFd(), addr, addy, Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, OnError(), state, timeout, timeout_end, and X_ESTAB_MODULE. +References SocketEngine::AddFd(), addr, addy, BindSocket(), Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, OnError(), OpenTCPSocket(), state, timeout, timeout_end, and X_ESTAB_MODULE. .PP .nf 63 { @@ -239,70 +240,72 @@ References SocketEngine::AddFd(), addr, addy, Close(), DEBUG, fd, I_CONNECTING, 85 { 86 this->state = I_LISTENING; 87 SE->AddFd(this->fd,true,X_ESTAB_MODULE); -88 log(DEBUG,'New socket now in I_LISTENING state'); -89 return; -90 } -91 } -92 } else { -93 char* ip; -94 this->host = host; -95 hostent* hoste = gethostbyname(host.c_str()); -96 if (!hoste) { -97 ip = (char*)host.c_str(); -98 } else { -99 struct in_addr* ia = (in_addr*)hoste->h_addr; -100 ip = inet_ntoa(*ia); -101 } -102 -103 this->IP = ip; -104 -105 timeout_end = time(NULL)+maxtime; -106 timeout = false; -107 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) -108 { -109 this->state = I_ERROR; -110 this->OnError(I_ERR_SOCKET); -111 return; -112 } -113 this->port = port; -114 inet_aton(ip,&addy); -115 addr.sin_family = AF_INET; -116 addr.sin_addr = addy; -117 addr.sin_port = htons(this->port); -118 -119 int flags; -120 flags = fcntl(this->fd, F_GETFL, 0); -121 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); -122 -123 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1) -124 { -125 if (errno != EINPROGRESS) -126 { -127 this->Close(); -128 this->OnError(I_ERR_CONNECT); -129 this->state = I_ERROR; -130 return; -131 } -132 } -133 this->state = I_CONNECTING; -134 SE->AddFd(this->fd,false,X_ESTAB_MODULE); -135 return; -136 } -137 } +88 socket_ref[this->fd] = this; +89 log(DEBUG,'New socket now in I_LISTENING state'); +90 return; +91 } +92 } +93 } else { +94 char* ip; +95 this->host = host; +96 hostent* hoste = gethostbyname(host.c_str()); +97 if (!hoste) { +98 ip = (char*)host.c_str(); +99 } else { +100 struct in_addr* ia = (in_addr*)hoste->h_addr; +101 ip = inet_ntoa(*ia); +102 } +103 +104 this->IP = ip; +105 +106 timeout_end = time(NULL)+maxtime; +107 timeout = false; +108 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) +109 { +110 this->state = I_ERROR; +111 this->OnError(I_ERR_SOCKET); +112 return; +113 } +114 this->port = port; +115 inet_aton(ip,&addy); +116 addr.sin_family = AF_INET; +117 addr.sin_addr = addy; +118 addr.sin_port = htons(this->port); +119 +120 int flags; +121 flags = fcntl(this->fd, F_GETFL, 0); +122 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); +123 +124 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1) +125 { +126 if (errno != EINPROGRESS) +127 { +128 this->Close(); +129 this->OnError(I_ERR_CONNECT); +130 this->state = I_ERROR; +131 return; +132 } +133 } +134 this->state = I_CONNECTING; +135 SE->AddFd(this->fd,false,X_ESTAB_MODULE); +136 socket_ref[this->fd] = this; +137 return; +138 } +139 } .fi .PP .SS "InspSocket::~InspSocket ()\fC [virtual]\fP" .PP The destructor may implicitly call \fBOnClose()\fP, and will close() and shutdown() the file descriptor used for this socket. .PP -Definition at line 269 of file socket.cpp. +Definition at line 272 of file socket.cpp. .PP References Close(). .PP .nf -270 { -271 this->Close(); -272 } +273 { +274 this->Close(); +275 } .fi .PP .SH "Member Function Documentation" @@ -311,64 +314,65 @@ References Close(). .PP This method causes the socket to close, and may also be triggered by other methods such as OnTimeout and OnError. .PP -Definition at line 139 of file socket.cpp. +Definition at line 141 of file socket.cpp. .PP References fd, and OnClose(). .PP Referenced by InspSocket(), and ~InspSocket(). .PP .nf -140 { -141 if (this->fd != -1) -142 { -143 this->OnClose(); -144 shutdown(this->fd,2); -145 close(this->fd); -146 this->fd = -1; -147 } -148 } +142 { +143 if (this->fd != -1) +144 { +145 this->OnClose(); +146 shutdown(this->fd,2); +147 close(this->fd); +148 socket_ref[this->fd] = NULL; +149 this->fd = -1; +150 } +151 } .fi .PP .SS "int InspSocket::GetFd ()" .PP This method returns the socket's file descriptor as assigned by the operating system, or -1 if no descriptor has been assigned. .PP -Definition at line 256 of file socket.cpp. +Definition at line 259 of file socket.cpp. .PP References fd. .PP .nf -257 { -258 return this->fd; -259 } +260 { +261 return this->fd; +262 } .fi .PP .SS "\fBstd::string\fP InspSocket::GetIP ()" .PP Returns the IP address associated with this connection, or an empty string if no IP address exists. .PP -Definition at line 150 of file socket.cpp. +Definition at line 153 of file socket.cpp. .PP References IP. .PP .nf -151 { -152 return this->IP; -153 } +154 { +155 return this->IP; +156 } .fi .PP .SS "\fBInspSocketState\fP InspSocket::GetState ()" .PP Returns the current socket state. .PP -Definition at line 251 of file socket.cpp. +Definition at line 254 of file socket.cpp. .PP References state. .PP .nf -252 { -253 return this->state; -254 } +255 { +256 return this->state; +257 } .fi .PP .SS "void InspSocket::OnClose ()\fC [virtual]\fP" @@ -377,12 +381,12 @@ Whenever close() is called, \fBOnClose()\fP will be called first. .PP Please note that this means OnClose will be called alongside \fBOnError()\fP, \fBOnTimeout()\fP, and \fBClose()\fP, and also when cancelling a listening socket by calling the destructor indirectly. .PP -Definition at line 267 of file socket.cpp. +Definition at line 270 of file socket.cpp. .PP Referenced by Close(). .PP .nf -267 { return; } +270 { return; } .fi .PP .SS "bool InspSocket::OnConnected ()\fC [virtual]\fP" @@ -396,12 +400,12 @@ false to abort the connection, true to continue .PP .PP -Definition at line 261 of file socket.cpp. +Definition at line 264 of file socket.cpp. .PP Referenced by Poll(). .PP .nf -261 { return true; } +264 { return true; } .fi .PP .SS "bool InspSocket::OnDataReady ()\fC [virtual]\fP" @@ -417,22 +421,22 @@ false to close the socket .PP .PP -Definition at line 265 of file socket.cpp. +Definition at line 268 of file socket.cpp. .PP Referenced by Poll(). .PP .nf -265 { return true; } +268 { return true; } .fi .PP .SS "int InspSocket::OnDisconnect ()\fC [virtual]\fP" .PP When an established connection is terminated, the OnDisconnect method is triggered. .PP -Definition at line 263 of file socket.cpp. +Definition at line 266 of file socket.cpp. .PP .nf -263 { return 0; } +266 { return 0; } .fi .PP .SS "void InspSocket::OnError (\fBInspSocketError\fP e)\fC [virtual]\fP" @@ -448,12 +452,12 @@ A closed socket in itself is not an error, however errors also generate close ev .PP .PP -Definition at line 262 of file socket.cpp. +Definition at line 265 of file socket.cpp. .PP Referenced by InspSocket(), and Timeout(). .PP .nf -262 { return; } +265 { return; } .fi .PP .SS "int InspSocket::OnIncomingConnection (int newfd, char * ip)\fC [virtual]\fP" @@ -466,12 +470,12 @@ MySocket* newsocket = new MySocket(newfd,ip); .PP Once you have done this, you can then associate the new socket with the core using \fBServer::AddSocket()\fP. .PP -Definition at line 264 of file socket.cpp. +Definition at line 267 of file socket.cpp. .PP Referenced by Poll(). .PP .nf -264 { return 0; } +267 { return 0; } .fi .PP .SS "void InspSocket::OnTimeout ()\fC [virtual]\fP" @@ -480,12 +484,12 @@ When an outbound connection fails, and the attempt times out, you will receive t .PP The mthod will trigger once maxtime secons are reached (as given in the constructor) just before the socket's descriptor is closed. .PP -Definition at line 266 of file socket.cpp. +Definition at line 269 of file socket.cpp. .PP Referenced by Timeout(). .PP .nf -266 { return; } +269 { return; } .fi .PP .SS "bool InspSocket::Poll ()" @@ -494,64 +498,64 @@ Only the core should call this function. .PP When called, it is assumed the socket is ready to read data, and the method call routes the event to the various methods of InspSocket for you to handle. This can also cause the socket's state to change. .PP -Definition at line 214 of file socket.cpp. +Definition at line 217 of file socket.cpp. .PP References SocketEngine::AddFd(), client, SocketEngine::DelFd(), I_CONNECTED, I_CONNECTING, I_LISTENING, length, OnConnected(), OnDataReady(), OnIncomingConnection(), SetState(), and X_ESTAB_MODULE. .PP .nf -215 { -216 int incoming = -1; -217 -218 switch (this->state) -219 { -220 case I_CONNECTING: -221 this->SetState(I_CONNECTED); -222 /* Our socket was in write-state, so delete it and re-add it -223 * in read-state. -224 */ -225 SE->DelFd(this->fd); -226 SE->AddFd(this->fd,true,X_ESTAB_MODULE); -227 return this->OnConnected(); -228 break; -229 case I_LISTENING: -230 length = sizeof (client); -231 incoming = accept (this->fd, (sockaddr*)&client,&length); -232 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr)); -233 return true; -234 break; -235 case I_CONNECTED: -236 return this->OnDataReady(); +218 { +219 int incoming = -1; +220 +221 switch (this->state) +222 { +223 case I_CONNECTING: +224 this->SetState(I_CONNECTED); +225 /* Our socket was in write-state, so delete it and re-add it +226 * in read-state. +227 */ +228 SE->DelFd(this->fd); +229 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +230 return this->OnConnected(); +231 break; +232 case I_LISTENING: +233 length = sizeof (client); +234 incoming = accept (this->fd, (sockaddr*)&client,&length); +235 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr)); +236 return true; 237 break; -238 default: -239 break; -240 } -241 -242 return true; -243 } +238 case I_CONNECTED: +239 return this->OnDataReady(); +240 break; +241 default: +242 break; +243 } +244 +245 return true; +246 } .fi .PP .SS "char * InspSocket::Read ()\fC [virtual]\fP" .PP Reads all pending bytes from the socket into a char* array which can be up to 16 kilobytes in length. .PP -Definition at line 155 of file socket.cpp. +Definition at line 158 of file socket.cpp. .PP References DEBUG, and ibuf. .PP .nf -156 { -157 int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); -158 if (n > 0) -159 { -160 ibuf[n] = 0; -161 return ibuf; -162 } -163 else -164 { -165 log(DEBUG,'EOF or error on socket'); -166 return NULL; -167 } -168 } +159 { +160 int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); +161 if (n > 0) +162 { +163 ibuf[n] = 0; +164 return ibuf; +165 } +166 else +167 { +168 log(DEBUG,'EOF or error on socket'); +169 return NULL; +170 } +171 } .fi .PP .SS "void InspSocket::SetState (\fBInspSocketState\fP s)" @@ -560,17 +564,17 @@ Changes the socket's state. .PP The core uses this to change socket states, and you should not call it directly. .PP -Definition at line 245 of file socket.cpp. +Definition at line 248 of file socket.cpp. .PP References DEBUG, and state. .PP Referenced by Poll(). .PP .nf -246 { -247 log(DEBUG,'Socket state change'); -248 this->state = s; -249 } +249 { +250 log(DEBUG,'Socket state change'); +251 this->state = s; +252 } .fi .PP .SS "bool InspSocket::Timeout (time_t current)" @@ -584,26 +588,26 @@ true if timed out, false if not timed out .PP .PP -Definition at line 197 of file socket.cpp. +Definition at line 200 of file socket.cpp. .PP References I_CONNECTING, I_ERR_TIMEOUT, I_ERROR, OnError(), OnTimeout(), state, timeout, and timeout_end. .PP .nf -198 { -199 if ((this->state == I_CONNECTING) && (current > timeout_end)) -200 { -201 // for non-listening sockets, the timeout can occur -202 // which causes termination of the connection after -203 // the given number of seconds without a successful -204 // connection. -205 this->OnTimeout(); -206 this->OnError(I_ERR_TIMEOUT); -207 timeout = true; -208 this->state = I_ERROR; -209 return true; -210 } -211 return false; -212 } +201 { +202 if ((this->state == I_CONNECTING) && (current > timeout_end)) +203 { +204 // for non-listening sockets, the timeout can occur +205 // which causes termination of the connection after +206 // the given number of seconds without a successful +207 // connection. +208 this->OnTimeout(); +209 this->OnError(I_ERR_TIMEOUT); +210 timeout = true; +211 this->state = I_ERROR; +212 return true; +213 } +214 return false; +215 } .fi .PP .SS "int InspSocket::Write (\fBstd::string\fP data)\fC [virtual]\fP" @@ -619,30 +623,30 @@ No carriage returns or linefeeds are appended to the string. .PP .PP -Definition at line 174 of file socket.cpp. +Definition at line 177 of file socket.cpp. .PP .nf -175 { -176 char* d = (char*)data.c_str(); -177 unsigned int written = 0; -178 int n = 0; -179 int s = data.length(); -180 while ((written < data.length()) && (n >= 0)) -181 { -182 n = send(this->fd,d,s,0); -183 if (n > 0) -184 { -185 // If we didnt write everything, advance -186 // the pointers so that when we retry -187 // the next time around the loop, we try -188 // to write what we failed to write before. -189 written += n; -190 s -= n; -191 d += n; -192 } -193 } -194 return written; -195 } +178 { +179 char* d = (char*)data.c_str(); +180 unsigned int written = 0; +181 int n = 0; +182 int s = data.length(); +183 while ((written < data.length()) && (n >= 0)) +184 { +185 n = send(this->fd,d,s,0); +186 if (n > 0) +187 { +188 // If we didnt write everything, advance +189 // the pointers so that when we retry +190 // the next time around the loop, we try +191 // to write what we failed to write before. +192 written += n; +193 s -= n; +194 d += n; +195 } +196 } +197 return written; +198 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3 index 62fb66d89..618052d99 100644 --- a/docs/man/man3/InviteItem.3 +++ b/docs/man/man3/InviteItem.3 @@ -1,4 +1,4 @@ -.TH "InviteItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "InviteItem" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Invited.3 b/docs/man/man3/Invited.3 index 0fbdee50c..b30256956 100644 --- a/docs/man/man3/Invited.3 +++ b/docs/man/man3/Invited.3 @@ -1,4 +1,4 @@ -.TH "Invited" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Invited" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/KLine.3 b/docs/man/man3/KLine.3 index 823119cc2..f05160828 100644 --- a/docs/man/man3/KLine.3 +++ b/docs/man/man3/KLine.3 @@ -1,4 +1,4 @@ -.TH "KLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "KLine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -24,14 +24,14 @@ Inherits \fBXLine\fP. .PP KLine class. .PP -Definition at line 62 of file xline.h. +Definition at line 67 of file xline.h. .SH "Member Data Documentation" .PP .SS "char \fBKLine::hostmask\fP[200]" .PP Hostmask (ident) to match against May contain wildcards. .PP -Definition at line 68 of file xline.h. +Definition at line 73 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3 index 4a9e1d33e..75add436a 100644 --- a/docs/man/man3/ModeParameter.3 +++ b/docs/man/man3/ModeParameter.3 @@ -1,4 +1,4 @@ -.TH "ModeParameter" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ModeParameter" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3 index 11af088cb..5dea65737 100644 --- a/docs/man/man3/Module.3 +++ b/docs/man/man3/Module.3 @@ -1,4 +1,4 @@ -.TH "Module" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Module" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -340,7 +340,7 @@ Base class for all InspIRCd modules This class is the base class for InspIRCd mo All modules must inherit from this class, its methods will be called when irc server events occur. class inherited from module must be instantiated by the \fBModuleFactory\fP class (see relevent section) for the plugin to be initialised. .PP -Definition at line 239 of file modules.h. +Definition at line 254 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Module::Module (\fBServer\fP * Me)" @@ -354,20 +354,20 @@ Default constructor Creates a module class. .PP .PP -Definition at line 301 of file modules.cpp. +Definition at line 228 of file modules.cpp. .PP .nf -301 { } +228 { } .fi .PP .SS "Module::~Module ()\fC [virtual]\fP" .PP Default destructor destroys a module class. .PP -Definition at line 302 of file modules.cpp. +Definition at line 229 of file modules.cpp. .PP .nf -302 { } +229 { } .fi .PP .SH "Member Function Documentation" @@ -378,12 +378,12 @@ Returns the version number of a Module. .PP The method should return a \fBVersion\fP object with its version information assigned via \fBVersion::Version\fP .PP -Definition at line 313 of file modules.cpp. +Definition at line 240 of file modules.cpp. .PP References VF_VENDOR. .PP .nf -313 { return Version(1,0,0,0,VF_VENDOR); } +240 { return Version(1,0,0,0,VF_VENDOR); } .fi .PP .SS "void Module::On005Numeric (\fBstd::string\fP & output)\fC [virtual]\fP" @@ -399,10 +399,10 @@ The module should modify the 005 numeric if needed to indicate its features. .PP .PP -Definition at line 323 of file modules.cpp. +Definition at line 250 of file modules.cpp. .PP .nf -323 { }; +250 { }; .fi .PP .SS "int Module::OnAccessCheck (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel, int access_type)\fC [virtual]\fP" @@ -446,12 +446,12 @@ This function is called before many functions which check a users status on a ch .PP .PP -Definition at line 322 of file modules.cpp. +Definition at line 249 of file modules.cpp. .PP References ACR_DEFAULT. .PP .nf -322 { return ACR_DEFAULT; }; +249 { return ACR_DEFAULT; }; .fi .PP .SS "int Module::OnAddBan (\fBuserrec\fP * source, \fBchanrec\fP * channel, \fBstd::string\fP banmask)\fC [virtual]\fP" @@ -476,10 +476,10 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being .PP .PP -Definition at line 348 of file modules.cpp. +Definition at line 275 of file modules.cpp. .PP .nf -348 { return 0; }; +275 { return 0; }; .fi .PP .SS "void Module::OnAddELine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -501,10 +501,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 374 of file modules.cpp. +Definition at line 301 of file modules.cpp. .PP .nf -374 { }; +301 { }; .fi .PP .SS "void Module::OnAddGLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -526,10 +526,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 370 of file modules.cpp. +Definition at line 297 of file modules.cpp. .PP .nf -370 { }; +297 { }; .fi .PP .SS "void Module::OnAddKLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -551,10 +551,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 372 of file modules.cpp. +Definition at line 299 of file modules.cpp. .PP .nf -372 { }; +299 { }; .fi .PP .SS "void Module::OnAddQLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP nickmask)\fC [virtual]\fP" @@ -576,10 +576,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 373 of file modules.cpp. +Definition at line 300 of file modules.cpp. .PP .nf -373 { }; +300 { }; .fi .PP .SS "void Module::OnAddZLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP ipmask)\fC [virtual]\fP" @@ -601,10 +601,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 371 of file modules.cpp. +Definition at line 298 of file modules.cpp. .PP .nf -371 { }; +298 { }; .fi .PP .SS "void Module::OnBackgroundTimer (time_t curtime)\fC [virtual]\fP" @@ -620,10 +620,10 @@ This timer can be used to control timed features. Its period is not accurate eno .PP .PP -Definition at line 327 of file modules.cpp. +Definition at line 254 of file modules.cpp. .PP .nf -327 { }; +254 { }; .fi .PP .SS "void Module::OnChangeHost (\fBuserrec\fP * user, \fBstd::string\fP newhost)\fC [virtual]\fP" @@ -641,10 +641,10 @@ This event triggers after the host has been set. .PP .PP -Definition at line 368 of file modules.cpp. +Definition at line 295 of file modules.cpp. .PP .nf -368 { }; +295 { }; .fi .PP .SS "int Module::OnChangeLocalUserGECOS (\fBuserrec\fP * user, \fBstd::string\fP newhost)\fC [virtual]\fP" @@ -667,10 +667,10 @@ return 1 to deny the name change, or 0 to allow it. .PP .PP -Definition at line 341 of file modules.cpp. +Definition at line 268 of file modules.cpp. .PP .nf -341 { return 0; }; +268 { return 0; }; .fi .PP .SS "int Module::OnChangeLocalUserHost (\fBuserrec\fP * user, \fBstd::string\fP newhost)\fC [virtual]\fP" @@ -693,10 +693,10 @@ Return 1 to deny the host change, or 0 to allow it. .PP .PP -Definition at line 340 of file modules.cpp. +Definition at line 267 of file modules.cpp. .PP .nf -340 { return 0; }; +267 { return 0; }; .fi .PP .SS "void Module::OnChangeName (\fBuserrec\fP * user, \fBstd::string\fP gecos)\fC [virtual]\fP" @@ -714,10 +714,10 @@ This event triggers after the name has been set. .PP .PP -Definition at line 369 of file modules.cpp. +Definition at line 296 of file modules.cpp. .PP .nf -369 { }; +296 { }; .fi .PP .SS "int Module::OnCheckBan (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" @@ -740,10 +740,10 @@ This method will always be called for each join, wether or not the user actually .PP .PP -Definition at line 338 of file modules.cpp. +Definition at line 265 of file modules.cpp. .PP .nf -338 { return 0; }; +265 { return 0; }; .fi .PP .SS "int Module::OnCheckInvite (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" @@ -766,10 +766,10 @@ This method will always be called for each join, wether or not the channel is ac .PP .PP -Definition at line 335 of file modules.cpp. +Definition at line 262 of file modules.cpp. .PP .nf -335 { return 0; }; +262 { return 0; }; .fi .PP .SS "int Module::OnCheckKey (\fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP keygiven)\fC [virtual]\fP" @@ -792,10 +792,10 @@ This method will always be called for each join, wether or not the channel is ac .PP .PP -Definition at line 336 of file modules.cpp. +Definition at line 263 of file modules.cpp. .PP .nf -336 { return 0; }; +263 { return 0; }; .fi .PP .SS "int Module::OnCheckLimit (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" @@ -818,10 +818,10 @@ This method will always be called for each join, wether or not the channel is ac .PP .PP -Definition at line 337 of file modules.cpp. +Definition at line 264 of file modules.cpp. .PP .nf -337 { return 0; }; +264 { return 0; }; .fi .PP .SS "bool Module::OnCheckReady (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -842,10 +842,10 @@ true to indicate readiness, false if otherwise .PP .PP -Definition at line 330 of file modules.cpp. +Definition at line 257 of file modules.cpp. .PP .nf -330 { return true; }; +257 { return true; }; .fi .PP .SS "void Module::OnCleanup (int target_type, void * item)\fC [virtual]\fP" @@ -863,10 +863,10 @@ This method is called once for every user and channel on the network, so that wh .PP .PP -Definition at line 380 of file modules.cpp. +Definition at line 307 of file modules.cpp. .PP .nf -380 { }; +307 { }; .fi .PP .SS "void Module::OnDecodeMetaData (int target_type, void * target, \fBstd::string\fP extname, \fBstd::string\fP extdata)\fC [virtual]\fP" @@ -888,10 +888,10 @@ Please see src/modules/m_swhois.cpp for a working example of how to use this met .PP .PP -Definition at line 365 of file modules.cpp. +Definition at line 292 of file modules.cpp. .PP .nf -365 { }; +292 { }; .fi .PP .SS "int Module::OnDelBan (\fBuserrec\fP * source, \fBchanrec\fP * channel, \fBstd::string\fP banmask)\fC [virtual]\fP" @@ -916,10 +916,10 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being .PP .PP -Definition at line 349 of file modules.cpp. +Definition at line 276 of file modules.cpp. .PP .nf -349 { return 0; }; +276 { return 0; }; .fi .PP .SS "void Module::OnDelELine (\fBuserrec\fP * source, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -937,10 +937,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 379 of file modules.cpp. +Definition at line 306 of file modules.cpp. .PP .nf -379 { }; +306 { }; .fi .PP .SS "void Module::OnDelGLine (\fBuserrec\fP * source, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -958,10 +958,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 375 of file modules.cpp. +Definition at line 302 of file modules.cpp. .PP .nf -375 { }; +302 { }; .fi .PP .SS "void Module::OnDelKLine (\fBuserrec\fP * source, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -979,10 +979,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 377 of file modules.cpp. +Definition at line 304 of file modules.cpp. .PP .nf -377 { }; +304 { }; .fi .PP .SS "void Module::OnDelQLine (\fBuserrec\fP * source, \fBstd::string\fP nickmask)\fC [virtual]\fP" @@ -1000,10 +1000,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 378 of file modules.cpp. +Definition at line 305 of file modules.cpp. .PP .nf -378 { }; +305 { }; .fi .PP .SS "void Module::OnDelZLine (\fBuserrec\fP * source, \fBstd::string\fP ipmask)\fC [virtual]\fP" @@ -1021,10 +1021,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 376 of file modules.cpp. +Definition at line 303 of file modules.cpp. .PP .nf -376 { }; +303 { }; .fi .PP .SS "void Module::OnEvent (\fBEvent\fP * event)\fC [virtual]\fP" @@ -1040,10 +1040,10 @@ Please see the documentation of \fBEvent::Send()\fP for further information. The .PP .PP -Definition at line 343 of file modules.cpp. +Definition at line 270 of file modules.cpp. .PP .nf -343 { return; }; +270 { return; }; .fi .PP .SS "int Module::OnExtendedMode (\fBuserrec\fP * user, void * target, char modechar, int type, bool mode_on, \fBstring_list\fP & params)\fC [virtual]\fP" @@ -1069,10 +1069,10 @@ The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the .PP .PP -Definition at line 311 of file modules.cpp. +Definition at line 238 of file modules.cpp. .PP .nf -311 { return false; } +238 { return false; } .fi .PP .SS "void Module::OnGetServerDescription (\fBstd::string\fP servername, \fBstd::string\fP & description)\fC [virtual]\fP" @@ -1090,10 +1090,10 @@ You may change or define the description given in \fBstd::string\fP &description .PP .PP -Definition at line 359 of file modules.cpp. +Definition at line 286 of file modules.cpp. .PP .nf -359 { }; +286 { }; .fi .PP .SS "void Module::OnGlobalConnect (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1109,10 +1109,10 @@ This event is informational only. You should not change any user information in .PP .PP -Definition at line 347 of file modules.cpp. +Definition at line 274 of file modules.cpp. .PP .nf -347 { }; +274 { }; .fi .PP .SS "void Module::OnGlobalOper (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1128,10 +1128,10 @@ You cannot override this and prevent it from happening as it is already happened .PP .PP -Definition at line 346 of file modules.cpp. +Definition at line 273 of file modules.cpp. .PP .nf -346 { }; +273 { }; .fi .PP .SS "void Module::OnInfo (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1149,10 +1149,10 @@ The userrec will contain the information of the user who typed the command. Modu .PP .PP -Definition at line 315 of file modules.cpp. +Definition at line 242 of file modules.cpp. .PP .nf -315 { }; +242 { }; .fi .PP .SS "int Module::OnKill (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1177,10 +1177,10 @@ If a client is killed by a server, e.g. a nickname collision or protocol error, .PP .PP -Definition at line 324 of file modules.cpp. +Definition at line 251 of file modules.cpp. .PP .nf -324 { return 0; }; +251 { return 0; }; .fi .PP .SS "void Module::OnLoadModule (\fBModule\fP * mod, \fBstd::string\fP name)\fC [virtual]\fP" @@ -1198,10 +1198,10 @@ mod will contain a pointer to the module, and string will contain its name, for .PP .PP -Definition at line 325 of file modules.cpp. +Definition at line 252 of file modules.cpp. .PP .nf -325 { }; +252 { }; .fi .PP .SS "int Module::OnLocalTopicChange (\fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP topic)\fC [virtual]\fP" @@ -1223,10 +1223,10 @@ Return 1 to deny the topic change, or 0 to allow it. .PP .PP -Definition at line 342 of file modules.cpp. +Definition at line 269 of file modules.cpp. .PP .nf -342 { return 0; }; +269 { return 0; }; .fi .PP .SS "void Module::OnMode (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1248,10 +1248,10 @@ The text variable contains the remainder of the mode string after the target, e. .PP .PP -Definition at line 312 of file modules.cpp. +Definition at line 239 of file modules.cpp. .PP .nf -312 { }; +239 { }; .fi .PP .SS "void Module::OnOper (\fBuserrec\fP * user, \fBstd::string\fP opertype)\fC [virtual]\fP" @@ -1269,10 +1269,10 @@ The userrec will contain the oper mode 'o' as this function is called after any .PP .PP -Definition at line 314 of file modules.cpp. +Definition at line 241 of file modules.cpp. .PP .nf -314 { }; +241 { }; .fi .PP .SS "int Module::OnOperCompare (\fBstd::string\fP password, \fBstd::string\fP input)\fC [virtual]\fP" @@ -1295,10 +1295,10 @@ The password field (from the config file) is in 'password' and is to be compared .PP .PP -Definition at line 345 of file modules.cpp. +Definition at line 272 of file modules.cpp. .PP .nf -345 { return 0; }; +272 { return 0; }; .fi .PP .SS "void Module::OnPostLocalTopicChange (\fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP topic)\fC [virtual]\fP" @@ -1318,10 +1318,10 @@ To block topic changes you must use OnLocalTopicChange instead. .PP .PP -Definition at line 358 of file modules.cpp. +Definition at line 285 of file modules.cpp. .PP .nf -358 { }; +285 { }; .fi .PP .SS "int Module::OnPreCommand (\fBstd::string\fP command, char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -1348,10 +1348,10 @@ This event occurs for all registered commands, wether they are registered in the .PP .PP -Definition at line 329 of file modules.cpp. +Definition at line 256 of file modules.cpp. .PP .nf -329 { return 0; }; +256 { return 0; }; .fi .PP .SS "int Module::OnRawMode (\fBuserrec\fP * user, \fBchanrec\fP * chan, char mode, \fBstd::string\fP param, bool adding, int pcnt)\fC [virtual]\fP" @@ -1382,10 +1382,10 @@ Return 1 from this function to block the mode character from being processed ent .PP .PP -Definition at line 334 of file modules.cpp. +Definition at line 261 of file modules.cpp. .PP .nf -334 { return 0; }; +261 { return 0; }; .fi .PP .SS "void Module::OnRawSocketAccept (int fd, \fBstd::string\fP ip, int localport)\fC [virtual]\fP" @@ -1405,10 +1405,10 @@ This is intended for raw socket processing (e.g. modules which wrap the tcp conn .PP .PP -Definition at line 350 of file modules.cpp. +Definition at line 277 of file modules.cpp. .PP .nf -350 { }; +277 { }; .fi .PP .SS "void Module::OnRawSocketClose (int fd)\fC [virtual]\fP" @@ -1424,10 +1424,10 @@ When this event is called, shutdown() has not yet been called on the socket. .PP .PP -Definition at line 352 of file modules.cpp. +Definition at line 279 of file modules.cpp. .PP .nf -352 { }; +279 { }; .fi .PP .SS "int Module::OnRawSocketRead (int fd, char * buffer, unsigned int count, int & readresult)\fC [virtual]\fP" @@ -1454,10 +1454,10 @@ nonzero if the event was handled, in which case readresult must be valid on exit .PP .PP -Definition at line 353 of file modules.cpp. +Definition at line 280 of file modules.cpp. .PP .nf -353 { return 0; }; +280 { return 0; }; .fi .PP .SS "int Module::OnRawSocketWrite (int fd, char * buffer, int count)\fC [virtual]\fP" @@ -1482,10 +1482,10 @@ Number of characters actually written or 0 if you didn't handle the operation .PP .PP -Definition at line 351 of file modules.cpp. +Definition at line 278 of file modules.cpp. .PP .nf -351 { return 0; }; +278 { return 0; }; .fi .PP .SS "void Module::OnRehash (\fBstd::string\fP parameter)\fC [virtual]\fP" @@ -1501,10 +1501,10 @@ This method is called prior to a /REHASH or when a SIGHUP is received from the o .PP .PP -Definition at line 308 of file modules.cpp. +Definition at line 235 of file modules.cpp. .PP .nf -308 { } +235 { } .fi .PP .SS "void Module::OnRemoteKill (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1522,10 +1522,10 @@ Called when an oper wants to disconnect a remote user via KILL. .PP .PP -Definition at line 356 of file modules.cpp. +Definition at line 283 of file modules.cpp. .PP .nf -356 { }; +283 { }; .fi .PP .SS "char * Module::OnRequest (\fBRequest\fP * request)\fC [virtual]\fP" @@ -1541,12 +1541,12 @@ Please see the documentation of \fBRequest::Send()\fP for further information. T .PP .PP -Definition at line 344 of file modules.cpp. +Definition at line 271 of file modules.cpp. .PP Referenced by Request::Send(). .PP .nf -344 { return NULL; }; +271 { return NULL; }; .fi .PP .SS "void Module::OnSendList (\fBuserrec\fP * user, \fBchanrec\fP * channel, char mode)\fC [virtual]\fP" @@ -1566,10 +1566,10 @@ For example, when a /MODE channel +b (without any other parameters) is called, i .PP .PP -Definition at line 328 of file modules.cpp. +Definition at line 255 of file modules.cpp. .PP .nf -328 { }; +255 { }; .fi .PP .SS "void Module::OnServerRaw (\fBstd::string\fP & raw, bool inbound, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -1589,10 +1589,10 @@ This method is the lowest level of handler available to a module. It will be cal .PP .PP -Definition at line 309 of file modules.cpp. +Definition at line 236 of file modules.cpp. .PP .nf -309 { } +236 { } .fi .PP .SS "void Module::OnStats (char symbol)\fC [virtual]\fP" @@ -1606,10 +1606,10 @@ Called on all /STATS commands This method is triggered for all /STATS use, inclu .PP .PP -Definition at line 339 of file modules.cpp. +Definition at line 266 of file modules.cpp. .PP .nf -339 { }; +266 { }; .fi .PP .SS "void Module::OnSyncChannel (\fBchanrec\fP * chan, \fBModule\fP * proto, void * opaque)\fC [virtual]\fP" @@ -1631,18 +1631,18 @@ For a good example of how to use this function, please see src/modules/m_chanpro .PP .PP -Definition at line 361 of file modules.cpp. +Definition at line 288 of file modules.cpp. .PP .nf -361 { }; +288 { }; .fi .PP .SS "void Module::OnSyncChannelMetaData (\fBchanrec\fP * chan, \fBModule\fP * proto, void * opaque, \fBstd::string\fP extname)\fC [virtual]\fP" .PP -Definition at line 363 of file modules.cpp. +Definition at line 290 of file modules.cpp. .PP .nf -363 { }; +290 { }; .fi .PP .SS "void Module::OnSyncUser (\fBuserrec\fP * user, \fBModule\fP * proto, void * opaque)\fC [virtual]\fP" @@ -1662,18 +1662,18 @@ When this function is called, it will be called from the module which implements .PP .PP -Definition at line 360 of file modules.cpp. +Definition at line 287 of file modules.cpp. .PP .nf -360 { }; +287 { }; .fi .PP .SS "void Module::OnSyncUserMetaData (\fBuserrec\fP * user, \fBModule\fP * proto, void * opaque, \fBstd::string\fP extname)\fC [virtual]\fP" .PP -Definition at line 364 of file modules.cpp. +Definition at line 291 of file modules.cpp. .PP .nf -364 { }; +291 { }; .fi .PP .SS "void Module::OnUnloadModule (\fBModule\fP * mod, \fBstd::string\fP name)\fC [virtual]\fP" @@ -1691,10 +1691,10 @@ mod will contain a pointer to the module, and string will contain its name, for .PP .PP -Definition at line 326 of file modules.cpp. +Definition at line 253 of file modules.cpp. .PP .nf -326 { }; +253 { }; .fi .PP .SS "void Module::OnUserConnect (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1710,10 +1710,10 @@ The details of the connecting user are available to you in the parameter userrec .PP .PP -Definition at line 303 of file modules.cpp. +Definition at line 230 of file modules.cpp. .PP .nf -303 { } +230 { } .fi .PP .SS "void Module::OnUserDisconnect (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1729,10 +1729,10 @@ The details of the exiting user are available to you in the parameter userrec *u .PP .PP -Definition at line 305 of file modules.cpp. +Definition at line 232 of file modules.cpp. .PP .nf -305 { } +232 { } .fi .PP .SS "void Module::OnUserInvite (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1752,10 +1752,10 @@ You cannot prevent the invite from occuring using this function, to do that, use .PP .PP -Definition at line 357 of file modules.cpp. +Definition at line 284 of file modules.cpp. .PP .nf -357 { }; +284 { }; .fi .PP .SS "void Module::OnUserJoin (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1773,10 +1773,10 @@ The details of the joining user are available to you in the parameter userrec *u .PP .PP -Definition at line 306 of file modules.cpp. +Definition at line 233 of file modules.cpp. .PP .nf -306 { } +233 { } .fi .PP .SS "void Module::OnUserKick (\fBuserrec\fP * source, \fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1798,10 +1798,10 @@ If this method is called, the kick is already underway and cannot be prevented, .PP .PP -Definition at line 333 of file modules.cpp. +Definition at line 260 of file modules.cpp. .PP .nf -333 { }; +260 { }; .fi .PP .SS "void Module::OnUserMessage (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1823,10 +1823,10 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec* .PP .PP -Definition at line 354 of file modules.cpp. +Definition at line 281 of file modules.cpp. .PP .nf -354 { }; +281 { }; .fi .PP .SS "void Module::OnUserNotice (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1848,10 +1848,10 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec* .PP .PP -Definition at line 355 of file modules.cpp. +Definition at line 282 of file modules.cpp. .PP .nf -355 { }; +282 { }; .fi .PP .SS "void Module::OnUserPart (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1869,10 +1869,10 @@ The details of the leaving user are available to you in the parameter userrec *u .PP .PP -Definition at line 307 of file modules.cpp. +Definition at line 234 of file modules.cpp. .PP .nf -307 { } +234 { } .fi .PP .SS "void Module::OnUserPostNick (\fBuserrec\fP * user, \fBstd::string\fP oldnick)\fC [virtual]\fP" @@ -1890,10 +1890,10 @@ This can be used to track users after nickchanges have been applied. Please note .PP .PP -Definition at line 321 of file modules.cpp. +Definition at line 248 of file modules.cpp. .PP .nf -321 { }; +248 { }; .fi .PP .SS "int Module::OnUserPreInvite (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1918,10 +1918,10 @@ Returning 1 from this function stops the process immediately, causing no output .PP .PP -Definition at line 317 of file modules.cpp. +Definition at line 244 of file modules.cpp. .PP .nf -317 { return 0; }; +244 { return 0; }; .fi .PP .SS "int Module::OnUserPreJoin (\fBuserrec\fP * user, \fBchanrec\fP * chan, const char * cname)\fC [virtual]\fP" @@ -1948,10 +1948,10 @@ If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be .PP .PP -Definition at line 310 of file modules.cpp. +Definition at line 237 of file modules.cpp. .PP .nf -310 { return 0; } +237 { return 0; } .fi .PP .SS "int Module::OnUserPreKick (\fBuserrec\fP * source, \fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1978,10 +1978,10 @@ Returning a value of 1 from this function stops the process immediately, causing .PP .PP -Definition at line 332 of file modules.cpp. +Definition at line 259 of file modules.cpp. .PP .nf -332 { return 0; }; +259 { return 0; }; .fi .PP .SS "int Module::OnUserPreMessage (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP & text)\fC [virtual]\fP" @@ -2008,10 +2008,10 @@ Returning any nonzero value from this function stops the process immediately, ca .PP .PP -Definition at line 318 of file modules.cpp. +Definition at line 245 of file modules.cpp. .PP .nf -318 { return 0; }; +245 { return 0; }; .fi .PP .SS "int Module::OnUserPreNick (\fBuserrec\fP * user, \fBstd::string\fP newnick)\fC [virtual]\fP" @@ -2034,10 +2034,10 @@ This can be used to implement Q-lines etc. Please note that although you can see .PP .PP -Definition at line 320 of file modules.cpp. +Definition at line 247 of file modules.cpp. .PP .nf -320 { return 0; }; +247 { return 0; }; .fi .PP .SS "int Module::OnUserPreNotice (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP & text)\fC [virtual]\fP" @@ -2064,10 +2064,10 @@ Returning any nonzero value from this function stops the process immediately, ca .PP .PP -Definition at line 319 of file modules.cpp. +Definition at line 246 of file modules.cpp. .PP .nf -319 { return 0; }; +246 { return 0; }; .fi .PP .SS "void Module::OnUserQuit (\fBuserrec\fP * user, \fBstd::string\fP message)\fC [virtual]\fP" @@ -2085,10 +2085,10 @@ The details of the exiting user are available to you in the parameter userrec *u .PP .PP -Definition at line 304 of file modules.cpp. +Definition at line 231 of file modules.cpp. .PP .nf -304 { } +231 { } .fi .PP .SS "void Module::OnUserRegister (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -2104,10 +2104,10 @@ before the user is sent the MOTD etc). Modules can use this method if they are p .PP .PP -Definition at line 331 of file modules.cpp. +Definition at line 258 of file modules.cpp. .PP .nf -331 { }; +258 { }; .fi .PP .SS "void Module::OnWallops (\fBuserrec\fP * user, \fBstd::string\fP text)\fC [virtual]\fP" @@ -2123,10 +2123,10 @@ Called after every WALLOPS command. .PP .PP -Definition at line 367 of file modules.cpp. +Definition at line 294 of file modules.cpp. .PP .nf -367 { }; +294 { }; .fi .PP .SS "void Module::OnWhois (\fBuserrec\fP * source, \fBuserrec\fP * dest)\fC [virtual]\fP" @@ -2144,10 +2144,10 @@ The source parameter contains the details of the user who issued the WHOIS comma .PP .PP -Definition at line 316 of file modules.cpp. +Definition at line 243 of file modules.cpp. .PP .nf -316 { }; +243 { }; .fi .PP .SS "void Module::ProtoSendMetaData (void * opaque, int target_type, void * target, \fBstd::string\fP extname, \fBstd::string\fP extdata)\fC [virtual]\fP" @@ -2173,10 +2173,10 @@ More documentation to follow soon. Please see src/modules/m_swhois.cpp for examp .PP .PP -Definition at line 366 of file modules.cpp. +Definition at line 293 of file modules.cpp. .PP .nf -366 { }; +293 { }; .fi .PP .SS "void Module::ProtoSendMode (void * opaque, int target_type, void * target, \fBstd::string\fP modeline)\fC [virtual]\fP" @@ -2200,10 +2200,10 @@ More documentation to follow soon. Please see src/modules/m_chanprotect.cpp for .PP .PP -Definition at line 362 of file modules.cpp. +Definition at line 289 of file modules.cpp. .PP .nf -362 { }; +289 { }; .fi .PP diff --git a/docs/man/man3/ModuleFactory.3 b/docs/man/man3/ModuleFactory.3 index be471b88d..c1964f216 100644 --- a/docs/man/man3/ModuleFactory.3 +++ b/docs/man/man3/ModuleFactory.3 @@ -1,4 +1,4 @@ -.TH "ModuleFactory" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ModuleFactory" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -32,23 +32,23 @@ Instantiates classes inherited from \fBModule\fP This class creates a class inhe This is to allow for modules to create many different variants of \fBModule\fP, dependent on architecture, configuration, etc. In most cases, the simple class shown in the example module m_foobar.so will suffice for most modules. .PP -Definition at line 1654 of file modules.h. +Definition at line 1669 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ModuleFactory::ModuleFactory ()\fC [inline]\fP" .PP -Definition at line 1657 of file modules.h. +Definition at line 1672 of file modules.h. .PP .nf -1657 { } +1672 { } .fi .PP .SS "virtual ModuleFactory::~ModuleFactory ()\fC [inline, virtual]\fP" .PP -Definition at line 1658 of file modules.h. +Definition at line 1673 of file modules.h. .PP .nf -1658 { } +1673 { } .fi .PP .SH "Member Function Documentation" diff --git a/docs/man/man3/ModuleMessage.3 b/docs/man/man3/ModuleMessage.3 index 422325015..f066a685b 100644 --- a/docs/man/man3/ModuleMessage.3 +++ b/docs/man/man3/ModuleMessage.3 @@ -1,4 +1,4 @@ -.TH "ModuleMessage" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ModuleMessage" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/QLine.3 b/docs/man/man3/QLine.3 index 4859a543d..761a5e72e 100644 --- a/docs/man/man3/QLine.3 +++ b/docs/man/man3/QLine.3 @@ -1,4 +1,4 @@ -.TH "QLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "QLine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -28,7 +28,7 @@ Inherits \fBXLine\fP. .PP QLine class. .PP -Definition at line 108 of file xline.h. +Definition at line 113 of file xline.h. .SH "Member Data Documentation" .PP .SS "bool \fBQLine::is_global\fP" @@ -37,14 +37,14 @@ Set if this is a global Z:line (e.g. .PP it came from another server) .PP -Definition at line 118 of file xline.h. +Definition at line 123 of file xline.h. .SS "char \fBQLine::nick\fP[64]" .PP Nickname to match against. .PP May contain wildcards. .PP -Definition at line 114 of file xline.h. +Definition at line 119 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/Request.3 b/docs/man/man3/Request.3 index e77724e7a..ecaf1ef9a 100644 --- a/docs/man/man3/Request.3 +++ b/docs/man/man3/Request.3 @@ -1,4 +1,4 @@ -.TH "Request" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Request" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -65,10 +65,10 @@ Definition at line 157 of file modules.h. .PP Create a new Request. .PP -Definition at line 246 of file modules.cpp. +Definition at line 173 of file modules.cpp. .PP .nf -246 : data(anydata), source(src), dest(dst) { }; +173 : data(anydata), source(src), dest(dst) { }; .fi .PP .SH "Member Function Documentation" @@ -77,42 +77,42 @@ Definition at line 246 of file modules.cpp. .PP Fetch the Request data. .PP -Definition at line 248 of file modules.cpp. +Definition at line 175 of file modules.cpp. .PP References data. .PP .nf -249 { -250 return this->data; -251 } +176 { +177 return this->data; +178 } .fi .PP .SS "\fBModule\fP * Request::GetDest ()" .PP Fetch the request destination (should be 'this' in the receiving module). .PP -Definition at line 258 of file modules.cpp. +Definition at line 185 of file modules.cpp. .PP References dest. .PP .nf -259 { -260 return this->dest; -261 } +186 { +187 return this->dest; +188 } .fi .PP .SS "\fBModule\fP * Request::GetSource ()" .PP Fetch the request source. .PP -Definition at line 253 of file modules.cpp. +Definition at line 180 of file modules.cpp. .PP References source. .PP .nf -254 { -255 return this->source; -256 } +181 { +182 return this->source; +183 } .fi .PP .SS "char * Request::Send ()\fC [virtual]\fP" @@ -123,21 +123,21 @@ Upon returning the result will be arbitary data returned by the module you sent .PP Implements \fBModuleMessage\fP. .PP -Definition at line 263 of file modules.cpp. +Definition at line 190 of file modules.cpp. .PP References dest, and Module::OnRequest(). .PP .nf -264 { -265 if (this->dest) -266 { -267 return dest->OnRequest(this); -268 } -269 else -270 { -271 return NULL; -272 } -273 } +191 { +192 if (this->dest) +193 { +194 return dest->OnRequest(this); +195 } +196 else +197 { +198 return NULL; +199 } +200 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3 index f65da0bef..5ec1f020d 100644 --- a/docs/man/man3/Server.3 +++ b/docs/man/man3/Server.3 @@ -1,4 +1,4 @@ -.TH "Server" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Server" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -252,7 +252,7 @@ Allows server output and query functions This class contains methods which allow All modules should instantiate at least one copy of this class, and use its member functions to perform their tasks. .PP -Definition at line 1081 of file modules.h. +Definition at line 1096 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Server::Server ()" @@ -261,11 +261,11 @@ Default constructor. .PP Creates a Server object. .PP -Definition at line 386 of file modules.cpp. +Definition at line 313 of file modules.cpp. .PP .nf -387 { -388 } +314 { +315 } .fi .PP .SS "Server::~Server ()\fC [virtual]\fP" @@ -274,11 +274,11 @@ Default destructor. .PP Destroys a Server object. .PP -Definition at line 390 of file modules.cpp. +Definition at line 317 of file modules.cpp. .PP .nf -391 { -392 } +318 { +319 } .fi .PP .SH "Member Function Documentation" @@ -293,14 +293,14 @@ typedef void (handlerfunc) (char**, int, userrec*); ... void \fBhandle_kill(char .PP When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'. The source parameter is used for resource tracking, and should contain the name of your module (with file extension) e.g. 'm_blarp.so'. If you place the wrong identifier here, you can cause crashes if your module is unloaded. .PP -Definition at line 487 of file modules.cpp. +Definition at line 414 of file modules.cpp. .PP References createcommand(). .PP .nf -488 { -489 createcommand(cmd,f,flags,minparams,source); -490 } +415 { +416 createcommand(cmd,f,flags,minparams,source); +417 } .fi .PP .SS "void Server::AddELine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -309,14 +309,14 @@ Adds a E-line The E-line is enforced as soon as it is added. .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 731 of file modules.cpp. +Definition at line 658 of file modules.cpp. .PP References add_eline(). .PP .nf -732 { -733 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -734 } +659 { +660 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +661 } .fi .PP .SS "bool Server::AddExtendedListMode (char modechar)\fC [virtual]\fP" @@ -335,17 +335,17 @@ This call is used to implement modes like +q and +a. The characteristics of thes .PP It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing. .PP -Definition at line 655 of file modules.cpp. +Definition at line 582 of file modules.cpp. .PP References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL. .PP .nf -656 { -657 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -658 if (res) -659 ModeMakeList(modechar); -660 return res; -661 } +583 { +584 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +585 if (res) +586 ModeMakeList(modechar); +587 return res; +588 } .fi .PP .SS "bool Server::AddExtendedMode (char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)\fC [virtual]\fP" @@ -354,37 +354,37 @@ Adds an extended mode letter which is parsed by a module. .PP This allows modules to add extra mode letters, e.g. +x for hostcloak. the 'type' parameter is either MT_CHANNEL, MT_CLIENT, or MT_SERVER, to indicate wether the mode is a channel mode, a client mode, or a server mode. requires_oper is used with MT_CLIENT type modes only to indicate the mode can only be set or unset by an oper. If this is used for MT_CHANNEL type modes it is ignored. params_when_on is the number of modes to expect when the mode is turned on (for type MT_CHANNEL only), e.g. with mode +k, this would have a value of 1. the params_when_off value has a similar value to params_when_on, except it indicates the number of parameters to expect when the mode is disabled. Modes which act in a similar way to channel mode +l (e.g. require a parameter to enable, but not to disable) should use this parameter. The function returns false if the mode is unavailable, and will not attempt to allocate another character, as this will confuse users. This also means that as only one module can claim a specific mode character, the core does not need to keep track of which modules own which modes, which speeds up operation of the server. In this version, a mode can have at most one parameter, attempting to use more parameters will have undefined effects. .PP -Definition at line 627 of file modules.cpp. +Definition at line 554 of file modules.cpp. .PP References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. .PP .nf -628 { -629 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) -630 { -631 if (type == MT_SERVER) -632 { -633 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); -634 return false; -635 } -636 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -637 { -638 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); -639 return false; -640 } -641 if ((params_when_on>1) || (params_when_off>1)) -642 { -643 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); -644 return false; -645 } -646 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -647 } -648 else -649 { -650 log(DEBUG,'*** API ERROR *** Muppet modechar detected.'); -651 } -652 return false; -653 } +555 { +556 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) +557 { +558 if (type == MT_SERVER) +559 { +560 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); +561 return false; +562 } +563 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +564 { +565 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); +566 return false; +567 } +568 if ((params_when_on>1) || (params_when_off>1)) +569 { +570 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); +571 return false; +572 } +573 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +574 } +575 else +576 { +577 log(DEBUG,'*** API ERROR *** Muppet modechar detected.'); +578 } +579 return false; +580 } .fi .PP .SS "void Server::AddGLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -393,14 +393,14 @@ Adds a G-line The G-line is propogated to all of the servers in the mesh and enf .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 711 of file modules.cpp. +Definition at line 638 of file modules.cpp. .PP References add_gline(). .PP .nf -712 { -713 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -714 } +639 { +640 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +641 } .fi .PP .SS "void Server::AddKLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -409,14 +409,14 @@ Adds a K-line The K-line is enforced as soon as it is added. .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 726 of file modules.cpp. +Definition at line 653 of file modules.cpp. .PP References add_kline(). .PP .nf -727 { -728 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -729 } +654 { +655 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +656 } .fi .PP .SS "void Server::AddQLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP nickname)\fC [virtual]\fP" @@ -425,28 +425,28 @@ Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enf .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 716 of file modules.cpp. +Definition at line 643 of file modules.cpp. .PP References add_qline(). .PP .nf -717 { -718 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -719 } +644 { +645 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +646 } .fi .PP .SS "void Server::AddSocket (\fBInspSocket\fP * sock)\fC [virtual]\fP" .PP Adds a class derived from \fBInspSocket\fP to the server's socket engine. .PP -Definition at line 394 of file modules.cpp. +Definition at line 321 of file modules.cpp. .PP References module_sockets. .PP .nf -395 { -396 module_sockets.push_back(sock); -397 } +322 { +323 module_sockets.push_back(sock); +324 } .fi .PP .SS "void Server::AddZLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP ipaddr)\fC [virtual]\fP" @@ -455,14 +455,14 @@ Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enf .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 721 of file modules.cpp. +Definition at line 648 of file modules.cpp. .PP References add_zline(). .PP .nf -722 { -723 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -724 } +649 { +650 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +651 } .fi .PP .SS "long Server::CalcDuration (\fBstd::string\fP duration)\fC [virtual]\fP" @@ -471,14 +471,14 @@ Calculates a duration This method will take a string containing a formatted dura .PP '1w2d') and return its value as a total number of seconds. This is the same function used internally by /GLINE etc to set the ban times. .PP -Definition at line 761 of file modules.cpp. +Definition at line 688 of file modules.cpp. .PP References duration(). .PP .nf -762 { -763 return duration(delta.c_str()); -764 } +689 { +690 return duration(delta.c_str()); +691 } .fi .PP .SS "void Server::CallCommandHandler (\fBstd::string\fP commandname, char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -489,12 +489,12 @@ You can use this function to trigger other commands in the ircd, such as PRIVMSG .br ) you may use them as callback identifiers. The first parameter to this method is the name of the command handler you wish to call, e.g. PRIVMSG. This will be a command handler previously registered by the core or wih \fBAddCommand()\fP. The second parameter is an array of parameters, and the third parameter is a count of parameters in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the functiom will silently ignore it. The final parameter is the user executing the command handler, used for privilage checks, etc. .PP -Definition at line 472 of file modules.cpp. +Definition at line 399 of file modules.cpp. .PP .nf -473 { -474 call_handler(commandname.c_str(),parameters,pcnt,user); -475 } +400 { +401 call_handler(commandname.c_str(),parameters,pcnt,user); +402 } .fi .PP .SS "void Server::ChangeGECOS (\fBuserrec\fP * user, \fBstd::string\fP gecos)\fC [virtual]\fP" @@ -503,14 +503,14 @@ Change GECOS (fullname) of a user. .PP You should always call this method to change a user's GECOS rather than writing directly to the fullname member of userrec, as any change applied via this method will be propogated to any linked servers. .PP -Definition at line 570 of file modules.cpp. +Definition at line 497 of file modules.cpp. .PP References ChangeName(). .PP .nf -571 { -572 ChangeName(user,gecos.c_str()); -573 } +498 { +499 ChangeName(user,gecos.c_str()); +500 } .fi .PP .SS "void Server::ChangeHost (\fBuserrec\fP * user, \fBstd::string\fP host)\fC [virtual]\fP" @@ -519,14 +519,14 @@ Change displayed hostname of a user. .PP You should always call this method to change a user's host rather than writing directly to the dhost member of userrec, as any change applied via this method will be propogated to any linked servers. .PP -Definition at line 565 of file modules.cpp. +Definition at line 492 of file modules.cpp. .PP References ChangeDisplayedHost(). .PP .nf -566 { -567 ChangeDisplayedHost(user,host.c_str()); -568 } +493 { +494 ChangeDisplayedHost(user,host.c_str()); +495 } .fi .PP .SS "void Server::ChangeUserNick (\fBuserrec\fP * user, \fBstd::string\fP nickname)\fC [virtual]\fP" @@ -535,12 +535,12 @@ Forces a user nickchange. .PP This command works similarly to SVSNICK, and can be used to implement Q-lines etc. If you specify an invalid nickname, the nick change will be dropped and the target user will receive the error numeric for it. .PP -Definition at line 457 of file modules.cpp. +Definition at line 384 of file modules.cpp. .PP .nf -458 { -459 force_nickchange(user,nickname.c_str()); -460 } +385 { +386 force_nickchange(user,nickname.c_str()); +387 } .fi .PP .SS "\fBstd::string\fP Server::ChanMode (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP" @@ -549,14 +549,14 @@ Attempts to look up a user's privilages on a channel. .PP This function will return a string containing either @, %, +, or an empty string, representing the user's privilages upon the channel you specify. .PP -Definition at line 595 of file modules.cpp. +Definition at line 522 of file modules.cpp. .PP References cmode(). .PP .nf -596 { -597 return cmode(User,Chan); -598 } +523 { +524 return cmode(User,Chan); +525 } .fi .PP .SS "bool Server::CommonChannels (\fBuserrec\fP * u1, \fBuserrec\fP * u2)\fC [virtual]\fP" @@ -565,14 +565,14 @@ Returns true if two users share a common channel. .PP This method is used internally by the NICK and QUIT commands, and the \fBServer::SendCommon\fP method. .PP -Definition at line 543 of file modules.cpp. +Definition at line 470 of file modules.cpp. .PP References common_channels(). .PP .nf -544 { -545 return (common_channels(u1,u2) != 0); -546 } +471 { +472 return (common_channels(u1,u2) != 0); +473 } .fi .PP .SS "int Server::CountUsers (\fBchanrec\fP * c)\fC [virtual]\fP" @@ -581,103 +581,103 @@ Returns a count of the number of users on a channel. .PP This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel. .PP -Definition at line 663 of file modules.cpp. +Definition at line 590 of file modules.cpp. .PP .nf -664 { -665 return usercount(c); -666 } +591 { +592 return usercount(c); +593 } .fi .PP .SS "bool Server::DelELine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a local E-Line. .PP -Definition at line 756 of file modules.cpp. +Definition at line 683 of file modules.cpp. .PP References del_eline(). .PP .nf -757 { -758 return del_eline(hostmask.c_str()); -759 } +684 { +685 return del_eline(hostmask.c_str()); +686 } .fi .PP .SS "bool Server::DelGLine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a G-Line from all servers on the mesh. .PP -Definition at line 736 of file modules.cpp. +Definition at line 663 of file modules.cpp. .PP References del_gline(). .PP .nf -737 { -738 return del_gline(hostmask.c_str()); -739 } +664 { +665 return del_gline(hostmask.c_str()); +666 } .fi .PP .SS "bool Server::DelKLine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a local K-Line. .PP -Definition at line 751 of file modules.cpp. +Definition at line 678 of file modules.cpp. .PP References del_kline(). .PP .nf -752 { -753 return del_kline(hostmask.c_str()); -754 } +679 { +680 return del_kline(hostmask.c_str()); +681 } .fi .PP .SS "bool Server::DelQLine (\fBstd::string\fP nickname)\fC [virtual]\fP" .PP Deletes a Q-Line from all servers on the mesh. .PP -Definition at line 741 of file modules.cpp. +Definition at line 668 of file modules.cpp. .PP References del_qline(). .PP .nf -742 { -743 return del_qline(nickname.c_str()); -744 } +669 { +670 return del_qline(nickname.c_str()); +671 } .fi .PP .SS "void Server::DelSocket (\fBInspSocket\fP * sock)\fC [virtual]\fP" .PP Deletes a class derived from \fBInspSocket\fP from the server's socket engine. .PP -Definition at line 405 of file modules.cpp. +Definition at line 332 of file modules.cpp. .PP References module_sockets. .PP .nf -406 { -407 for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) -408 { -409 if (*a == sock) -410 { -411 module_sockets.erase(a); -412 return; -413 } -414 } -415 } +333 { +334 for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) +335 { +336 if (*a == sock) +337 { +338 module_sockets.erase(a); +339 return; +340 } +341 } +342 } .fi .PP .SS "bool Server::DelZLine (\fBstd::string\fP ipaddr)\fC [virtual]\fP" .PP Deletes a Z-Line from all servers on the mesh. .PP -Definition at line 746 of file modules.cpp. +Definition at line 673 of file modules.cpp. .PP References del_zline(). .PP .nf -747 { -748 return del_zline(ipaddr.c_str()); -749 } +674 { +675 return del_zline(ipaddr.c_str()); +676 } .fi .PP .SS "\fBchanrec\fP * Server::FindChannel (\fBstd::string\fP channel)\fC [virtual]\fP" @@ -686,12 +686,12 @@ Attempts to look up a channel and return a pointer to it. .PP This function will return NULL if the channel does not exist. .PP -Definition at line 590 of file modules.cpp. +Definition at line 517 of file modules.cpp. .PP .nf -591 { -592 return FindChan(channel.c_str()); -593 } +518 { +519 return FindChan(channel.c_str()); +520 } .fi .PP .SS "\fBuserrec\fP * Server::FindDescriptor (int socket)\fC [virtual]\fP" @@ -700,12 +700,12 @@ Attempts to look up a nick using the file descriptor associated with that nick. .PP This function will return NULL if the file descriptor is not associated with a valid user. .PP -Definition at line 585 of file modules.cpp. +Definition at line 512 of file modules.cpp. .PP .nf -586 { -587 return (socket < 65536 ? fd_ref_table[socket] : NULL); -588 } +513 { +514 return (socket < 65536 ? fd_ref_table[socket] : NULL); +515 } .fi .PP .SS "\fBModule\fP * Server::FindModule (\fBstd::string\fP name)\fC [virtual]\fP" @@ -714,21 +714,21 @@ This function finds a module by name. .PP You must provide the filename of the module. If the module cannot be found (is not loaded) the function will return NULL. .PP -Definition at line 795 of file modules.cpp. +Definition at line 722 of file modules.cpp. .PP -References MODCOUNT, module_names, and modules. +References MODCOUNT, ServerConfig::module_names, and modules. .PP .nf -796 { -797 for (int i = 0; i <= MODCOUNT; i++) -798 { -799 if (module_names[i] == name) -800 { -801 return modules[i]; -802 } -803 } -804 return NULL; -805 } +723 { +724 for (int i = 0; i <= MODCOUNT; i++) +725 { +726 if (Config->module_names[i] == name) +727 { +728 return modules[i]; +729 } +730 } +731 return NULL; +732 } .fi .PP .SS "\fBuserrec\fP * Server::FindNick (\fBstd::string\fP nick)\fC [virtual]\fP" @@ -737,12 +737,12 @@ Attempts to look up a nick and return a pointer to it. .PP This function will return NULL if the nick does not exist. .PP -Definition at line 580 of file modules.cpp. +Definition at line 507 of file modules.cpp. .PP .nf -581 { -582 return Find(nick); -583 } +508 { +509 return Find(nick); +510 } .fi .PP .SS "\fBAdmin\fP Server::GetAdmin ()\fC [virtual]\fP" @@ -751,48 +751,48 @@ Returns the information of the server as returned by the /ADMIN command. .PP See the \fBAdmin\fP class for further information of the return value. The members \fBAdmin::Nick\fP, \fBAdmin::Email\fP and \fBAdmin::Name\fP contain the information for the server where the module is loaded. .PP -Definition at line 620 of file modules.cpp. +Definition at line 547 of file modules.cpp. .PP .nf -621 { -622 return Admin(getadminname(),getadminemail(),getadminnick()); -623 } +548 { +549 return Admin(getadminname(),getadminemail(),getadminnick()); +550 } .fi .PP .SS "\fBstd::string\fP Server::GetNetworkName ()\fC [virtual]\fP" .PP Returns the network name, global to all linked servers. .PP -Definition at line 610 of file modules.cpp. +Definition at line 537 of file modules.cpp. .PP .nf -611 { -612 return getnetworkname(); -613 } +538 { +539 return getnetworkname(); +540 } .fi .PP .SS "\fBstd::string\fP Server::GetServerDescription ()\fC [virtual]\fP" .PP Returns the server description string of the local server. .PP -Definition at line 615 of file modules.cpp. +Definition at line 542 of file modules.cpp. .PP .nf -616 { -617 return getserverdesc(); -618 } +543 { +544 return getserverdesc(); +545 } .fi .PP .SS "\fBstd::string\fP Server::GetServerName ()\fC [virtual]\fP" .PP Returns the server name of the server where the module is loaded. .PP -Definition at line 605 of file modules.cpp. +Definition at line 532 of file modules.cpp. .PP .nf -606 { -607 return getservername(); -608 } +533 { +534 return getservername(); +535 } .fi .PP .SS "\fBchanuserlist\fP Server::GetUsers (\fBchanrec\fP * chan)\fC [virtual]\fP" @@ -801,22 +801,22 @@ Fetches the userlist of a channel. .PP This function must be here and not a member of userrec or chanrec due to include constraints. .PP -Definition at line 445 of file modules.cpp. +Definition at line 372 of file modules.cpp. .PP -References chanrec::GetUsers(), and list. +References chanrec::GetUsers(). .PP .nf -446 { -447 chanuserlist userl; -448 userl.clear(); -449 std::vector<char*> *list = chan->GetUsers(); -450 for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) -451 { -452 char* o = *i; -453 userl.push_back((userrec*)o); -454 } -455 return userl; -456 } +373 { +374 chanuserlist userl; +375 userl.clear(); +376 std::vector<char*> *list = chan->GetUsers(); +377 for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) +378 { +379 char* o = *i; +380 userl.push_back((userrec*)o); +381 } +382 return userl; +383 } .fi .PP .SS "bool Server::IsNick (\fBstd::string\fP nick)\fC [virtual]\fP" @@ -825,14 +825,14 @@ Returns true if a nick is valid. .PP Nicks for unregistered connections will return false. .PP -Definition at line 575 of file modules.cpp. +Definition at line 502 of file modules.cpp. .PP References isnick(). .PP .nf -576 { -577 return (isnick(nick.c_str()) != 0); -578 } +503 { +504 return (isnick(nick.c_str()) != 0); +505 } .fi .PP .SS "bool Server::IsOnChannel (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP" @@ -841,14 +841,14 @@ Checks if a user is on a channel. .PP This function will return true or false to indicate if user 'User' is on channel 'Chan'. .PP -Definition at line 600 of file modules.cpp. +Definition at line 527 of file modules.cpp. .PP References has_channel(). .PP .nf -601 { -602 return has_channel(User,Chan); -603 } +528 { +529 return has_channel(User,Chan); +530 } .fi .PP .SS "bool Server::IsUlined (\fBstd::string\fP server)\fC [virtual]\fP" @@ -857,60 +857,60 @@ Returns true if the servername you give is ulined. .PP ULined servers have extra privilages. They are allowed to change nicknames on remote servers, change modes of clients which are on remote servers and set modes of channels where there are no channel operators for that channel on the ulined server, amongst other things. Ulined server data is also broadcast across the mesh at all times as opposed to selectively messaged in the case of normal servers, as many ulined server types (such as services) do not support meshed links and must operate in this manner. .PP -Definition at line 467 of file modules.cpp. +Definition at line 394 of file modules.cpp. .PP References is_uline(). .PP .nf -468 { -469 return is_uline(server.c_str()); -470 } +395 { +396 return is_uline(server.c_str()); +397 } .fi .PP .SS "bool Server::IsValidMask (\fBstd::string\fP mask)\fC [virtual]\fP" .PP Returns true if a nick!ident string is correctly formatted, false if otherwise. .PP -Definition at line 766 of file modules.cpp. +Definition at line 693 of file modules.cpp. .PP .nf -767 { -768 const char* dest = mask.c_str(); -769 if (strchr(dest,'!')==0) -770 return false; -771 if (strchr(dest,'@')==0) -772 return false; -773 for (unsigned int i = 0; i < strlen(dest); i++) -774 if (dest[i] < 32) -775 return false; -776 for (unsigned int i = 0; i < strlen(dest); i++) -777 if (dest[i] > 126) -778 return false; -779 unsigned int c = 0; -780 for (unsigned int i = 0; i < strlen(dest); i++) -781 if (dest[i] == '!') -782 c++; -783 if (c>1) -784 return false; -785 c = 0; -786 for (unsigned int i = 0; i < strlen(dest); i++) -787 if (dest[i] == '@') -788 c++; -789 if (c>1) -790 return false; -791 -792 return true; -793 } +694 { +695 const char* dest = mask.c_str(); +696 if (strchr(dest,'!')==0) +697 return false; +698 if (strchr(dest,'@')==0) +699 return false; +700 for (unsigned int i = 0; i < strlen(dest); i++) +701 if (dest[i] < 32) +702 return false; +703 for (unsigned int i = 0; i < strlen(dest); i++) +704 if (dest[i] > 126) +705 return false; +706 unsigned int c = 0; +707 for (unsigned int i = 0; i < strlen(dest); i++) +708 if (dest[i] == '!') +709 c++; +710 if (c>1) +711 return false; +712 c = 0; +713 for (unsigned int i = 0; i < strlen(dest); i++) +714 if (dest[i] == '@') +715 c++; +716 if (c>1) +717 return false; +718 +719 return true; +720 } .fi .PP .SS "bool Server::IsValidModuleCommand (\fBstd::string\fP commandname, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" .PP -Definition at line 477 of file modules.cpp. +Definition at line 404 of file modules.cpp. .PP .nf -478 { -479 return is_valid_cmd(commandname.c_str(), pcnt, user); -480 } +405 { +406 return is_valid_cmd(commandname.c_str(), pcnt, user); +407 } .fi .PP .SS "\fBchanrec\fP * Server::JoinUserToChannel (\fBuserrec\fP * user, \fBstd::string\fP cname, \fBstd::string\fP key)\fC [virtual]\fP" @@ -919,12 +919,12 @@ Forces a user to join a channel. .PP This is similar to svsjoin and can be used to implement redirection, etc. On success, the return value is a valid pointer to a chanrec* of the channel the user was joined to. On failure, the result is NULL. .PP -Definition at line 435 of file modules.cpp. +Definition at line 362 of file modules.cpp. .PP .nf -436 { -437 return add_channel(user,cname.c_str(),key.c_str(),false); -438 } +363 { +364 return add_channel(user,cname.c_str(),key.c_str(),false); +365 } .fi .PP .SS "void Server::Log (int level, \fBstd::string\fP s)\fC [virtual]\fP" @@ -933,12 +933,12 @@ Writes a log string. .PP This method writes a line of text to the log. If the level given is lower than the level given in the configuration, this command has no effect. .PP -Definition at line 482 of file modules.cpp. +Definition at line 409 of file modules.cpp. .PP .nf -483 { -484 log(level,'%s',s.c_str()); -485 } +410 { +411 log(level,'%s',s.c_str()); +412 } .fi .PP .SS "bool Server::MatchText (\fBstd::string\fP sliteral, \fBstd::string\fP spattern)\fC [virtual]\fP" @@ -947,15 +947,15 @@ Matches text against a glob pattern. .PP Uses the ircd's internal matching function to match string against a globbing pattern, e.g. *!*@*.com Returns true if the literal successfully matches the pattern, false if otherwise. .PP -Definition at line 422 of file modules.cpp. +Definition at line 349 of file modules.cpp. .PP .nf -423 { -424 char literal[MAXBUF],pattern[MAXBUF]; -425 strlcpy(literal,sliteral.c_str(),MAXBUF); -426 strlcpy(pattern,spattern.c_str(),MAXBUF); -427 return match(literal,pattern); -428 } +350 { +351 char literal[MAXBUF],pattern[MAXBUF]; +352 strlcpy(literal,sliteral.c_str(),MAXBUF); +353 strlcpy(pattern,spattern.c_str(),MAXBUF); +354 return match(literal,pattern); +355 } .fi .PP .SS "\fBchanrec\fP * Server::PartUserFromChannel (\fBuserrec\fP * user, \fBstd::string\fP cname, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -964,12 +964,12 @@ Forces a user to part a channel. .PP This is similar to svspart and can be used to implement redirection, etc. Although the return value of this function is a pointer to a channel record, the returned data is undefined and should not be read or written to. This behaviour may be changed in a future version. .PP -Definition at line 440 of file modules.cpp. +Definition at line 367 of file modules.cpp. .PP .nf -441 { -442 return del_channel(user,cname.c_str(),reason.c_str(),false); -443 } +368 { +369 return del_channel(user,cname.c_str(),reason.c_str(),false); +370 } .fi .PP .SS "bool Server::PseudoToUser (\fBuserrec\fP * alive, \fBuserrec\fP * zombie, \fBstd::string\fP message)\fC [virtual]\fP" @@ -978,39 +978,39 @@ This user takes one user, and switches their file descriptor with another user, .PP The user in 'alive' is booted off the server with the given message. The user referred to by 'zombie' should have previously been locked with Server::ZombifyUser, otherwise stale sockets and file descriptor leaks can occur. After this call, the pointer to alive will be invalid, and the pointer to zombie will be equivalent in effect to the old pointer to alive. .PP -Definition at line 681 of file modules.cpp. +Definition at line 608 of file modules.cpp. .PP -References ucrec::channel, userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. +References userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. .PP .nf -682 { -683 zombie->fd = alive->fd; -684 alive->fd = FD_MAGIC_NUMBER; -685 alive->ClearBuffer(); -686 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); -687 kill_link(alive,message.c_str()); -688 fd_ref_table[zombie->fd] = zombie; -689 for (int i = 0; i != MAXCHANS; i++) -690 { -691 if (zombie->chans[i].channel != NULL) -692 { -693 if (zombie->chans[i].channel->name) -694 { -695 chanrec* Ptr = zombie->chans[i].channel; -696 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); -697 if (Ptr->topicset) -698 { -699 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); -700 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -701 } -702 userlist(zombie,Ptr); -703 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); -704 -705 } -706 } -707 } -708 return true; -709 } +609 { +610 zombie->fd = alive->fd; +611 alive->fd = FD_MAGIC_NUMBER; +612 alive->ClearBuffer(); +613 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); +614 kill_link(alive,message.c_str()); +615 fd_ref_table[zombie->fd] = zombie; +616 for (unsigned int i = 0; i < zombie->chans.size(); i++) +617 { +618 if (zombie->chans[i].channel != NULL) +619 { +620 if (zombie->chans[i].channel->name) +621 { +622 chanrec* Ptr = zombie->chans[i].channel; +623 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); +624 if (Ptr->topicset) +625 { +626 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); +627 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +628 } +629 userlist(zombie,Ptr); +630 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); +631 +632 } +633 } +634 } +635 return true; +636 } .fi .PP .SS "void Server::QuitUser (\fBuserrec\fP * user, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1023,23 +1023,25 @@ WARNING! .PP Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler. .PP -Definition at line 462 of file modules.cpp. +Definition at line 389 of file modules.cpp. .PP .nf -463 { -464 kill_link(user,reason.c_str()); -465 } +390 { +391 kill_link(user,reason.c_str()); +392 } .fi .PP .SS "void Server::RehashServer ()\fC [virtual]\fP" .PP -Definition at line 399 of file modules.cpp. +Definition at line 326 of file modules.cpp. +.PP +References ServerConfig::Read(). .PP .nf -400 { -401 WriteOpers('*** Rehashing config file'); -402 ReadConfig(false,NULL); -403 } +327 { +328 WriteOpers('*** Rehashing config file'); +329 Config->Read(false,NULL); +330 } .fi .PP .SS "void Server::Send (int Socket, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1048,12 +1050,12 @@ Sends a line of text down a TCP/IP socket. .PP This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required. .PP -Definition at line 497 of file modules.cpp. +Definition at line 424 of file modules.cpp. .PP .nf -498 { -499 Write(Socket,'%s',s.c_str()); -500 } +425 { +426 Write(Socket,'%s',s.c_str()); +427 } .fi .PP .SS "void Server::SendChannel (\fBuserrec\fP * User, \fBchanrec\fP * Channel, \fBstd::string\fP s, bool IncludeSender)\fC [virtual]\fP" @@ -1062,19 +1064,19 @@ Sends text from a user to a channel (mulicast). .PP This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459). .PP -Definition at line 531 of file modules.cpp. +Definition at line 458 of file modules.cpp. .PP .nf -532 { -533 if (IncludeSender) -534 { -535 WriteChannel(Channel,User,'%s',s.c_str()); -536 } -537 else -538 { -539 ChanExceptSender(Channel,User,'%s',s.c_str()); -540 } -541 } +459 { +460 if (IncludeSender) +461 { +462 WriteChannel(Channel,User,'%s',s.c_str()); +463 } +464 else +465 { +466 ChanExceptSender(Channel,User,'%s',s.c_str()); +467 } +468 } .fi .PP .SS "void Server::SendChannelServerNotice (\fBstd::string\fP ServName, \fBchanrec\fP * Channel, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1083,12 +1085,12 @@ Writes text to a channel, but from a server, including all. .PP This can be used to send server notices to a group of users. .PP -Definition at line 526 of file modules.cpp. +Definition at line 453 of file modules.cpp. .PP .nf -527 { -528 WriteChannelWithServ((char*)ServName.c_str(), Channel, '%s', text.c_str()); -529 } +454 { +455 WriteChannelWithServ((char*)ServName.c_str(), Channel, '%s', text.c_str()); +456 } .fi .PP .SS "void Server::SendCommon (\fBuserrec\fP * User, \fBstd::string\fP text, bool IncludeSender)\fC [virtual]\fP" @@ -1097,19 +1099,19 @@ Sends text from a user to one or more channels (mulicast). .PP This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT. .PP -Definition at line 548 of file modules.cpp. +Definition at line 475 of file modules.cpp. .PP .nf -549 { -550 if (IncludeSender) -551 { -552 WriteCommon(User,'%s',text.c_str()); -553 } -554 else -555 { -556 WriteCommonExcept(User,'%s',text.c_str()); -557 } -558 } +476 { +477 if (IncludeSender) +478 { +479 WriteCommon(User,'%s',text.c_str()); +480 } +481 else +482 { +483 WriteCommonExcept(User,'%s',text.c_str()); +484 } +485 } .fi .PP .SS "void Server::SendFrom (int Socket, \fBuserrec\fP * User, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1118,12 +1120,12 @@ Sends text from a user to a socket. .PP This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459) .PP -Definition at line 507 of file modules.cpp. +Definition at line 434 of file modules.cpp. .PP .nf -508 { -509 WriteFrom(Socket,User,'%s',s.c_str()); -510 } +435 { +436 WriteFrom(Socket,User,'%s',s.c_str()); +437 } .fi .PP .SS "void Server::SendMode (char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -1146,14 +1148,14 @@ Srv->SendMode(modes,3,user); .PP The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state! .PP -Definition at line 492 of file modules.cpp. +Definition at line 419 of file modules.cpp. .PP References server_mode(). .PP .nf -493 { -494 server_mode(parameters,pcnt,user); -495 } +420 { +421 server_mode(parameters,pcnt,user); +422 } .fi .PP .SS "void Server::SendOpers (\fBstd::string\fP s)\fC [virtual]\fP" @@ -1162,12 +1164,12 @@ Sends text to all opers. .PP This method sends a server notice to all opers with the usermode +s. .PP -Definition at line 417 of file modules.cpp. +Definition at line 344 of file modules.cpp. .PP .nf -418 { -419 WriteOpers('%s',s.c_str()); -420 } +345 { +346 WriteOpers('%s',s.c_str()); +347 } .fi .PP .SS "void Server::SendServ (int Socket, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1176,12 +1178,12 @@ Sends text from the server to a socket. .PP This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459) .PP -Definition at line 502 of file modules.cpp. +Definition at line 429 of file modules.cpp. .PP .nf -503 { -504 WriteServ(Socket,'%s',s.c_str()); -505 } +430 { +431 WriteServ(Socket,'%s',s.c_str()); +432 } .fi .PP .SS "void Server::SendTo (\fBuserrec\fP * Source, \fBuserrec\fP * Dest, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1198,23 +1200,23 @@ The format will become: .PP Which is useful for numerics and server notices to single users, etc. .PP -Definition at line 512 of file modules.cpp. +Definition at line 439 of file modules.cpp. .PP References connection::fd. .PP .nf -513 { -514 if (!Source) -515 { -516 // if source is NULL, then the message originates from the local server -517 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); -518 } -519 else -520 { -521 // otherwise it comes from the user specified -522 WriteTo(Source,Dest,'%s',s.c_str()); -523 } -524 } +440 { +441 if (!Source) +442 { +443 // if source is NULL, then the message originates from the local server +444 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); +445 } +446 else +447 { +448 // otherwise it comes from the user specified +449 WriteTo(Source,Dest,'%s',s.c_str()); +450 } +451 } .fi .PP .SS "void Server::SendToModeMask (\fBstd::string\fP modes, int flags, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1227,12 +1229,12 @@ Serv->SendToModeMask('xi', WM_OR, 'm00'); .PP Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message. .PP -Definition at line 430 of file modules.cpp. +Definition at line 357 of file modules.cpp. .PP .nf -431 { -432 WriteMode(modes.c_str(),flags,'%s',text.c_str()); -433 } +358 { +359 WriteMode(modes.c_str(),flags,'%s',text.c_str()); +360 } .fi .PP .SS "void Server::SendWallops (\fBuserrec\fP * User, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1241,12 +1243,12 @@ Sends a WALLOPS message. .PP This method writes a WALLOPS message to all users with the +w flag, originating from the specified user. .PP -Definition at line 560 of file modules.cpp. +Definition at line 487 of file modules.cpp. .PP .nf -561 { -562 WriteWallOps(User,false,'%s',text.c_str()); -563 } +488 { +489 WriteWallOps(User,false,'%s',text.c_str()); +490 } .fi .PP .SS "bool Server::UserToPseudo (\fBuserrec\fP * user, \fBstd::string\fP message)\fC [virtual]\fP" @@ -1255,21 +1257,21 @@ Remove a user's connection to the irc server, but leave their client in existenc .PP When you call this function, the user's file descriptor will be replaced with the value of FD_MAGIC_NUMBER and their old file descriptor will be closed. This idle client will remain until it is restored with a valid file descriptor, or is removed from IRC by an operator After this call, the pointer to user will be invalid. .PP -Definition at line 669 of file modules.cpp. +Definition at line 596 of file modules.cpp. .PP References userrec::ClearBuffer(), SocketEngine::DelFd(), connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. .PP .nf -670 { -671 unsigned int old_fd = user->fd; -672 user->fd = FD_MAGIC_NUMBER; -673 user->ClearBuffer(); -674 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); -675 SE->DelFd(old_fd); -676 shutdown(old_fd,2); -677 close(old_fd); -678 return true; -679 } +597 { +598 unsigned int old_fd = user->fd; +599 user->fd = FD_MAGIC_NUMBER; +600 user->ClearBuffer(); +601 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); +602 SE->DelFd(old_fd); +603 shutdown(old_fd,2); +604 close(old_fd); +605 return true; +606 } .fi .PP diff --git a/docs/man/man3/ServerConfig.3 b/docs/man/man3/ServerConfig.3 new file mode 100644 index 000000000..9f5733197 --- /dev/null +++ b/docs/man/man3/ServerConfig.3 @@ -0,0 +1,325 @@ +.TH "ServerConfig" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +ServerConfig \- +.SH SYNOPSIS +.br +.PP +\fC#include <inspircd_io.h>\fP +.PP +Inherits \fBclassbase\fP. +.PP +.SS "Public Member Functions" + +.in +1c +.ti -1c +.RI "\fBServerConfig\fP ()" +.br +.ti -1c +.RI "void \fBClearStack\fP ()" +.br +.ti -1c +.RI "void \fBRead\fP (bool bail, \fBuserrec\fP *user)" +.br +.ti -1c +.RI "bool \fBLoadConf\fP (const char *filename, std::stringstream *target, std::stringstream *errorstream)" +.br +.ti -1c +.RI "int \fBConfValue\fP (char *tag, char *var, int index, char *result, std::stringstream *config)" +.br +.ti -1c +.RI "int \fBReadConf\fP (std::stringstream *\fBconfig_f\fP, const char *tag, const char *var, int index, char *result)" +.br +.ti -1c +.RI "int \fBConfValueEnum\fP (char *tag, std::stringstream *config)" +.br +.ti -1c +.RI "int \fBEnumConf\fP (std::stringstream *\fBconfig_f\fP, const char *tag)" +.br +.ti -1c +.RI "int \fBEnumValues\fP (std::stringstream *config, const char *tag, int index)" +.br +.in -1c +.SS "Public Attributes" + +.in +1c +.ti -1c +.RI "char \fBServerName\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBNetwork\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBServerDesc\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBAdminName\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBAdminEmail\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBAdminNick\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBdiepass\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBrestartpass\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBmotd\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBrules\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBPrefixQuit\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBDieValue\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBDNSServer\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBDisabledCommands\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBModPath\fP [1024]" +.br +.ti -1c +.RI "char \fBMyExecutable\fP [1024]" +.br +.ti -1c +.RI "FILE * \fBlog_file\fP" +.br +.ti -1c +.RI "bool \fBnofork\fP" +.br +.ti -1c +.RI "bool \fBunlimitcore\fP" +.br +.ti -1c +.RI "bool \fBAllowHalfop\fP" +.br +.ti -1c +.RI "int \fBdns_timeout\fP" +.br +.ti -1c +.RI "int \fBNetBufferSize\fP" +.br +.ti -1c +.RI "int \fBMaxConn\fP" +.br +.ti -1c +.RI "unsigned int \fBSoftLimit\fP" +.br +.ti -1c +.RI "int \fBMaxWhoResults\fP" +.br +.ti -1c +.RI "int \fBdebugging\fP" +.br +.ti -1c +.RI "int \fBLogLevel\fP" +.br +.ti -1c +.RI "int \fBDieDelay\fP" +.br +.ti -1c +.RI "char \fBaddrs\fP [MAXBUF][255]" +.br +.ti -1c +.RI "\fBfile_cache\fP \fBMOTD\fP" +.br +.ti -1c +.RI "\fBfile_cache\fP \fBRULES\fP" +.br +.ti -1c +.RI "char \fBPID\fP [1024]" +.br +.ti -1c +.RI "std::stringstream \fBconfig_f\fP" +.br +.ti -1c +.RI "\fBClassVector\fP \fBClasses\fP" +.br +.ti -1c +.RI "std::vector< \fBstd::string\fP > \fBmodule_names\fP" +.br +.in -1c +.SS "Private Member Functions" + +.in +1c +.ti -1c +.RI "int \fBfgets_safe\fP (char *buffer, size_t maxsize, FILE *&file)" +.br +.ti -1c +.RI "\fBstd::string\fP \fBConfProcess\fP (char *buffer, long linenumber, std::stringstream *errorstream, bool &error, \fBstd::string\fP filename)" +.br +.in -1c +.SS "Private Attributes" + +.in +1c +.ti -1c +.RI "std::vector< \fBstd::string\fP > \fBinclude_stack\fP" +.br +.in -1c +.SH "Detailed Description" +.PP +Definition at line 34 of file inspircd_io.h. +.SH "Constructor & Destructor Documentation" +.PP +.SS "ServerConfig::ServerConfig ()" +.PP +.SH "Member Function Documentation" +.PP +.SS "void ServerConfig::ClearStack ()" +.PP +Referenced by ConfigReader::ConfigReader(). +.SS "\fBstd::string\fP ServerConfig::ConfProcess (char * buffer, long linenumber, std::stringstream * errorstream, bool & error, \fBstd::string\fP filename)\fC [private]\fP" +.PP +.SS "int ServerConfig::ConfValue (char * tag, char * var, int index, char * result, std::stringstream * config)" +.PP +Referenced by userrec::HasPermission(). +.SS "int ServerConfig::ConfValueEnum (char * tag, std::stringstream * config)" +.PP +.SS "int ServerConfig::EnumConf (std::stringstream * config_f, const char * tag)" +.PP +Referenced by ConfigReader::Enumerate(). +.SS "int ServerConfig::EnumValues (std::stringstream * config, const char * tag, int index)" +.PP +Referenced by ConfigReader::EnumerateValues(). +.SS "int ServerConfig::fgets_safe (char * buffer, size_t maxsize, FILE *& file)\fC [private]\fP" +.PP +.SS "bool ServerConfig::LoadConf (const char * filename, std::stringstream * target, std::stringstream * errorstream)" +.PP +Referenced by ConfigReader::ConfigReader(). +.SS "void ServerConfig::Read (bool bail, \fBuserrec\fP * user)" +.PP +Referenced by Server::RehashServer(). +.SS "int ServerConfig::ReadConf (std::stringstream * config_f, const char * tag, const char * var, int index, char * result)" +.PP +Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). +.SH "Member Data Documentation" +.PP +.SS "char \fBServerConfig::addrs\fP[MAXBUF][255]" +.PP +Definition at line 70 of file inspircd_io.h. +.SS "char \fBServerConfig::AdminEmail\fP[MAXBUF]" +.PP +Definition at line 46 of file inspircd_io.h. +.SS "char \fBServerConfig::AdminName\fP[MAXBUF]" +.PP +Definition at line 45 of file inspircd_io.h. +.SS "char \fBServerConfig::AdminNick\fP[MAXBUF]" +.PP +Definition at line 47 of file inspircd_io.h. +.SS "bool \fBServerConfig::AllowHalfop\fP" +.PP +Definition at line 61 of file inspircd_io.h. +.SS "\fBClassVector\fP \fBServerConfig::Classes\fP" +.PP +Definition at line 75 of file inspircd_io.h. +.SS "std::stringstream \fBServerConfig::config_f\fP" +.PP +Definition at line 74 of file inspircd_io.h. +.PP +Referenced by userrec::HasPermission(). +.SS "int \fBServerConfig::debugging\fP" +.PP +Definition at line 67 of file inspircd_io.h. +.SS "int \fBServerConfig::DieDelay\fP" +.PP +Definition at line 69 of file inspircd_io.h. +.SS "char \fBServerConfig::diepass\fP[MAXBUF]" +.PP +Definition at line 48 of file inspircd_io.h. +.SS "char \fBServerConfig::DieValue\fP[MAXBUF]" +.PP +Definition at line 53 of file inspircd_io.h. +.SS "char \fBServerConfig::DisabledCommands\fP[MAXBUF]" +.PP +Definition at line 55 of file inspircd_io.h. +.SS "int \fBServerConfig::dns_timeout\fP" +.PP +Definition at line 62 of file inspircd_io.h. +.SS "char \fBServerConfig::DNSServer\fP[MAXBUF]" +.PP +Definition at line 54 of file inspircd_io.h. +.SS "std::vector<\fBstd::string\fP> \fBServerConfig::include_stack\fP\fC [private]\fP" +.PP +Definition at line 37 of file inspircd_io.h. +.SS "FILE* \fBServerConfig::log_file\fP" +.PP +Definition at line 58 of file inspircd_io.h. +.SS "int \fBServerConfig::LogLevel\fP" +.PP +Definition at line 68 of file inspircd_io.h. +.SS "int \fBServerConfig::MaxConn\fP" +.PP +Definition at line 64 of file inspircd_io.h. +.SS "int \fBServerConfig::MaxWhoResults\fP" +.PP +Definition at line 66 of file inspircd_io.h. +.SS "char \fBServerConfig::ModPath\fP[1024]" +.PP +Definition at line 56 of file inspircd_io.h. +.SS "std::vector<\fBstd::string\fP> \fBServerConfig::module_names\fP" +.PP +Definition at line 76 of file inspircd_io.h. +.PP +Referenced by Server::FindModule(). +.SS "\fBfile_cache\fP \fBServerConfig::MOTD\fP" +.PP +Definition at line 71 of file inspircd_io.h. +.SS "char \fBServerConfig::motd\fP[MAXBUF]" +.PP +Definition at line 50 of file inspircd_io.h. +.SS "char \fBServerConfig::MyExecutable\fP[1024]" +.PP +Definition at line 57 of file inspircd_io.h. +.SS "int \fBServerConfig::NetBufferSize\fP" +.PP +Definition at line 63 of file inspircd_io.h. +.SS "char \fBServerConfig::Network\fP[MAXBUF]" +.PP +Definition at line 43 of file inspircd_io.h. +.SS "bool \fBServerConfig::nofork\fP" +.PP +Definition at line 59 of file inspircd_io.h. +.SS "char \fBServerConfig::PID\fP[1024]" +.PP +Definition at line 73 of file inspircd_io.h. +.SS "char \fBServerConfig::PrefixQuit\fP[MAXBUF]" +.PP +Definition at line 52 of file inspircd_io.h. +.SS "char \fBServerConfig::restartpass\fP[MAXBUF]" +.PP +Definition at line 49 of file inspircd_io.h. +.SS "\fBfile_cache\fP \fBServerConfig::RULES\fP" +.PP +Definition at line 72 of file inspircd_io.h. +.SS "char \fBServerConfig::rules\fP[MAXBUF]" +.PP +Definition at line 51 of file inspircd_io.h. +.SS "char \fBServerConfig::ServerDesc\fP[MAXBUF]" +.PP +Definition at line 44 of file inspircd_io.h. +.SS "char \fBServerConfig::ServerName\fP[MAXBUF]" +.PP +Definition at line 42 of file inspircd_io.h. +.PP +Referenced by userrec::userrec(). +.SS "unsigned int \fBServerConfig::SoftLimit\fP" +.PP +Definition at line 65 of file inspircd_io.h. +.SS "bool \fBServerConfig::unlimitcore\fP" +.PP +Definition at line 60 of file inspircd_io.h. + +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/SocketEngine.3 b/docs/man/man3/SocketEngine.3 index 232d8f8cd..07daeff47 100644 --- a/docs/man/man3/SocketEngine.3 +++ b/docs/man/man3/SocketEngine.3 @@ -1,4 +1,4 @@ -.TH "SocketEngine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "SocketEngine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -192,7 +192,7 @@ Referenced by InspSocket::Poll(), and Server::UserToPseudo(). 120 } 121 #ifdef USE_KQUEUE 122 struct kevent ke; -123 EV_SET(&ke, fd, ref[fd] && X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); +123 EV_SET(&ke, fd, ref[fd] & X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); 124 int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL); 125 if (i == -1) 126 { @@ -220,21 +220,21 @@ Referenced by InspSocket::Poll(), and Server::UserToPseudo(). .PP Returns the socket engines name This returns the name of the engine for use in /VERSION responses. .PP -Definition at line 196 of file socketengine.cpp. +Definition at line 193 of file socketengine.cpp. .PP .nf -197 { -198 #ifdef USE_SELECT -199 return 'select'; +194 { +195 #ifdef USE_SELECT +196 return 'select'; +197 #endif +198 #ifdef USE_KQUEUE +199 return 'kqueue'; 200 #endif -201 #ifdef USE_KQUEUE -202 return 'kqueue'; +201 #ifdef USE_EPOLL +202 return 'epoll'; 203 #endif -204 #ifdef USE_EPOLL -205 return 'epoll'; -206 #endif -207 return 'misconfigured'; -208 } +204 return 'misconfigured'; +205 } .fi .PP .SS "char SocketEngine::GetType (int fd)" @@ -264,7 +264,7 @@ Please note that this doesnt wait long, only a couple of milliseconds. It return .PP Definition at line 146 of file socketengine.cpp. .PP -References DEBUG, EngineHandle, fds, ke_list, ref, ts, and X_READBIT. +References EngineHandle, fds, ke_list, ref, ts, and X_READBIT. .PP .nf 147 { @@ -294,27 +294,24 @@ References DEBUG, EngineHandle, fds, ke_list, ref, ts, and X_READBIT. 171 for (unsigned int a = 0; a < fds.size(); a++) 172 { 173 if ((FD_ISSET (fds[a], &rfdset)) || (FD_ISSET (fds[a], &wfdset))) -174 { -175 log(DEBUG,'...Adding active %d',fds[a]); -176 fdlist.push_back(fds[a]); -177 } -178 } -179 } -180 #endif -181 #ifdef USE_KQUEUE -182 ts.tv_nsec = 10000L; -183 ts.tv_sec = 0; -184 int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts); -185 for (int j = 0; j < i; j++) -186 fdlist.push_back(ke_list[j].ident); -187 #endif -188 #ifdef USE_EPOLL -189 int i = epoll_wait(EngineHandle, events, 65535, 100); -190 for (int j = 0; j < i; j++) -191 fdlist.push_back(events[j].data.fd); -192 #endif -193 return true; -194 } +174 fdlist.push_back(fds[a]); +175 } +176 } +177 #endif +178 #ifdef USE_KQUEUE +179 ts.tv_nsec = 10000L; +180 ts.tv_sec = 0; +181 int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts); +182 for (int j = 0; j < i; j++) +183 fdlist.push_back(ke_list[j].ident); +184 #endif +185 #ifdef USE_EPOLL +186 int i = epoll_wait(EngineHandle, events, 65535, 100); +187 for (int j = 0; j < i; j++) +188 fdlist.push_back(events[j].data.fd); +189 #endif +190 return true; +191 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3 index 049c18e95..5cc2a2b77 100644 --- a/docs/man/man3/Version.3 +++ b/docs/man/man3/Version.3 @@ -1,4 +1,4 @@ -.TH "Version" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Version" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -49,10 +49,10 @@ Definition at line 113 of file modules.h. .PP .SS "Version::Version (int major, int minor, int revision, int build, int flags)" .PP -Definition at line 240 of file modules.cpp. +Definition at line 167 of file modules.cpp. .PP .nf -240 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +167 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/WhoWasUser.3 b/docs/man/man3/WhoWasUser.3 index 49e8e61ea..77a8d08e4 100644 --- a/docs/man/man3/WhoWasUser.3 +++ b/docs/man/man3/WhoWasUser.3 @@ -1,4 +1,4 @@ -.TH "WhoWasUser" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "WhoWasUser" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/XLine.3 b/docs/man/man3/XLine.3 index 0c98f6fb8..8eed9ef38 100644 --- a/docs/man/man3/XLine.3 +++ b/docs/man/man3/XLine.3 @@ -1,4 +1,4 @@ -.TH "XLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "XLine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -42,36 +42,36 @@ Inherited by \fBELine\fP, \fBGLine\fP, \fBKLine\fP, \fBQLine\fP, and \fBZLine\fP .PP XLine is the base class for ban lines such as G lines and K lines. .PP -Definition at line 34 of file xline.h. +Definition at line 39 of file xline.h. .SH "Member Data Documentation" .PP .SS "long \fBXLine::duration\fP" .PP The duration of the ban, or 0 if permenant. .PP -Definition at line 44 of file xline.h. +Definition at line 49 of file xline.h. .SS "long \fBXLine::n_matches\fP" .PP Number of times the core matches the ban, for statistics. .PP -Definition at line 56 of file xline.h. +Definition at line 61 of file xline.h. .SS "char \fBXLine::reason\fP[MAXBUF]" .PP Reason for the ban. .PP -Definition at line 52 of file xline.h. +Definition at line 57 of file xline.h. .SS "time_t \fBXLine::set_time\fP" .PP The time the line was added. .PP -Definition at line 40 of file xline.h. +Definition at line 45 of file xline.h. .SS "char \fBXLine::source\fP[256]" .PP Source of the ban. .PP This can be a servername or an oper nickname .PP -Definition at line 48 of file xline.h. +Definition at line 53 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/ZLine.3 b/docs/man/man3/ZLine.3 index c52b909bd..0bd28d854 100644 --- a/docs/man/man3/ZLine.3 +++ b/docs/man/man3/ZLine.3 @@ -1,4 +1,4 @@ -.TH "ZLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ZLine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -28,21 +28,21 @@ Inherits \fBXLine\fP. .PP ZLine class. .PP -Definition at line 93 of file xline.h. +Definition at line 98 of file xline.h. .SH "Member Data Documentation" .PP .SS "char \fBZLine::ipaddr\fP[40]" .PP IP Address (xx.yy.zz.aa) to match against May contain wildcards. .PP -Definition at line 99 of file xline.h. +Definition at line 104 of file xline.h. .SS "bool \fBZLine::is_global\fP" .PP Set if this is a global Z:line (e.g. .PP it came from another server) .PP -Definition at line 103 of file xline.h. +Definition at line 108 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/_home_.3 b/docs/man/man3/_home_.3 index eaef28c19..854a16ffe 100644 --- a/docs/man/man3/_home_.3 +++ b/docs/man/man3/_home_.3 @@ -1,4 +1,4 @@ -.TH "/home/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_.3 b/docs/man/man3/_home_brain_.3 index 51ba923b1..8d5e2c76e 100644 --- a/docs/man/man3/_home_brain_.3 +++ b/docs/man/man3/_home_brain_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_inspircd-cvs_.3 b/docs/man/man3/_home_brain_inspircd-cvs_.3 index a70c8e255..2c61b2388 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 index 19a4103cb..e1366b44a 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/inspircd/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/inspircd/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 index 750f41485..3f59aa590 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/inspircd/include/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/inspircd/include/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -28,6 +28,9 @@ .RI "file \fBhashcomp.h\fP" .br .ti -1c +.RI "file \fBinspircd_io.h\fP" +.br +.ti -1c .RI "file \fBmessage.h\fP" .br .ti -1c @@ -43,6 +46,12 @@ .RI "file \fBsocketengine.h\fP" .br .ti -1c +.RI "file \fBtypedefs.h\fP" +.br +.ti -1c +.RI "file \fBuserprocess.h\fP" +.br +.ti -1c .RI "file \fBusers.h\fP" .br .ti -1c diff --git a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 index c79335d94..846f10c4e 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/inspircd/src/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/inspircd/src/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/base.h.3 b/docs/man/man3/base.h.3 index b455c26f7..1fbc395b3 100644 --- a/docs/man/man3/base.h.3 +++ b/docs/man/man3/base.h.3 @@ -1,4 +1,4 @@ -.TH "base.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "base.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/channels.cpp.3 b/docs/man/man3/channels.cpp.3 index 710a729f5..429b0ccdd 100644 --- a/docs/man/man3/channels.cpp.3 +++ b/docs/man/man3/channels.cpp.3 @@ -1,4 +1,4 @@ -.TH "channels.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "channels.cpp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -77,6 +77,9 @@ channels.cpp \- .in +1c .ti -1c +.RI "\fBServerConfig\fP * \fBConfig\fP" +.br +.ti -1c .RI "int \fBMODCOUNT\fP = -1" .br .ti -1c @@ -86,90 +89,24 @@ channels.cpp \- .RI "std::vector< \fBircd_module\fP * > \fBfactory\fP" .br .ti -1c -.RI "int \fBLogLevel\fP" -.br -.ti -1c -.RI "char \fBServerName\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBNetwork\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBServerDesc\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminName\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminEmail\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminNick\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBdiepass\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBrestartpass\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBmotd\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBrules\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBlist\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBPrefixQuit\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBDieValue\fP [MAXBUF]" -.br -.ti -1c -.RI "int \fBdebugging\fP" -.br -.ti -1c .RI "int \fBWHOWAS_STALE\fP" .br .ti -1c .RI "int \fBWHOWAS_MAX\fP" .br .ti -1c -.RI "int \fBDieDelay\fP" -.br -.ti -1c .RI "time_t \fBstartup_time\fP" .br .ti -1c -.RI "int \fBNetBufferSize\fP" -.br -.ti -1c -.RI "int \fBMaxWhoResults\fP" -.br -.ti -1c -.RI "time_t \fBnb_start\fP" -.br -.ti -1c .RI "std::vector< \fBstd::string\fP > \fBmodule_names\fP" .br .ti -1c .RI "int \fBboundPortCount\fP" .br .ti -1c -.RI "int \fBportCount\fP" -.br -.ti -1c -.RI "int \fBports\fP [MAXSOCKS]" -.br -.ti -1c .RI "std::stringstream \fBconfig_f\fP" .br .ti -1c -.RI "FILE * \fBlog_file\fP" -.br -.ti -1c .RI "time_t \fBTIME\fP" .br .ti -1c @@ -183,76 +120,29 @@ channels.cpp \- Definition at line 53 of file channels.cpp. .SH "Variable Documentation" .PP -.SS "char \fBAdminEmail\fP[MAXBUF]" -.PP -.SS "char \fBAdminName\fP[MAXBUF]" -.PP -.SS "char \fBAdminNick\fP[MAXBUF]" -.PP .SS "int \fBboundPortCount\fP" .PP +.SS "\fBServerConfig\fP* \fBConfig\fP" +.PP .SS "std::stringstream \fBconfig_f\fP" .PP -Referenced by userrec::HasPermission(). .SS "std::vector<\fBModeParameter\fP> \fBcustom_mode_params\fP" .PP -Definition at line 99 of file channels.cpp. +Definition at line 71 of file channels.cpp. .PP Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam(). -.SS "int \fBdebugging\fP" -.PP -.SS "int \fBDieDelay\fP" -.PP -.SS "char \fBdiepass\fP[MAXBUF]" -.PP -.SS "char \fBDieValue\fP[MAXBUF]" -.PP .SS "std::vector<\fBircd_module\fP*> factory" .PP -.SS "char \fBlist\fP[MAXBUF]" -.PP -Referenced by Server::GetUsers(). -.SS "FILE* \fBlog_file\fP" -.PP -.SS "int \fBLogLevel\fP" -.PP -.SS "int \fBMaxWhoResults\fP" -.PP -Definition at line 81 of file channels.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 1005 of file modules.cpp. +Definition at line 933 of file modules.cpp. .PP Referenced by Server::FindModule(). .SS "std::vector<\fBstd::string\fP> \fBmodule_names\fP" .PP -Referenced by Server::FindModule(). .SS "std::vector<\fBModule\fP*> modules" .PP Referenced by Server::FindModule(). -.SS "char \fBmotd\fP[MAXBUF]" -.PP -.SS "time_t \fBnb_start\fP" -.PP -.SS "int \fBNetBufferSize\fP" -.PP -.SS "char \fBNetwork\fP[MAXBUF]" -.PP -.SS "int \fBportCount\fP" -.PP -.SS "int \fBports\fP[MAXSOCKS]" -.PP -.SS "char \fBPrefixQuit\fP[MAXBUF]" -.PP -.SS "char \fBrestartpass\fP[MAXBUF]" -.PP -.SS "char \fBrules\fP[MAXBUF]" -.PP -.SS "char \fBServerDesc\fP[MAXBUF]" -.PP -.SS "char \fBServerName\fP[MAXBUF]" -.PP -Referenced by userrec::userrec(). .SS "time_t \fBstartup_time\fP" .PP .SS "time_t \fBTIME\fP" diff --git a/docs/man/man3/channels.h.3 b/docs/man/man3/channels.h.3 index 8665d0189..f1fb458f0 100644 --- a/docs/man/man3/channels.h.3 +++ b/docs/man/man3/channels.h.3 @@ -1,4 +1,4 @@ -.TH "channels.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "channels.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3 index c02b05305..3a6a2b8d3 100644 --- a/docs/man/man3/chanrec.3 +++ b/docs/man/man3/chanrec.3 @@ -1,4 +1,4 @@ -.TH "chanrec" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "chanrec" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -116,21 +116,21 @@ Definition at line 101 of file channels.h. .PP Creates a channel record and initialises it with default values. .PP -Definition at line 101 of file channels.cpp. +Definition at line 73 of file channels.cpp. .PP References binarymodes, created, custom_modes, internal_userlist, key, limit, name, setby, topic, and topicset. .PP .nf -102 { -103 strcpy(name,''); -104 strcpy(custom_modes,''); -105 strcpy(topic,''); -106 strcpy(setby,''); -107 strcpy(key,''); -108 created = topicset = limit = 0; -109 binarymodes = 0; -110 internal_userlist.clear(); -111 } +74 { +75 strcpy(name,''); +76 strcpy(custom_modes,''); +77 strcpy(topic,''); +78 strcpy(setby,''); +79 strcpy(key,''); +80 created = topicset = limit = 0; +81 binarymodes = 0; +82 internal_userlist.clear(); +83 } .fi .PP .SS "virtual chanrec::~chanrec ()\fC [inline, virtual]\fP" @@ -154,15 +154,15 @@ Add a user pointer to the internal reference list. .PP The data inserted into the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison. .PP -Definition at line 194 of file channels.cpp. +Definition at line 166 of file channels.cpp. .PP References DEBUG, and internal_userlist. .PP .nf -195 { -196 internal_userlist.push_back(castuser); -197 log(DEBUG,'Added casted user to channel's internal list'); -198 } +167 { +168 internal_userlist.push_back(castuser); +169 log(DEBUG,'Added casted user to channel's internal list'); +170 } .fi .PP .SS "void chanrec::DelUser (char * castuser)" @@ -176,23 +176,23 @@ Delete a user pointer to the internal reference list. .PP The data removed from the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison. .PP -Definition at line 200 of file channels.cpp. +Definition at line 172 of file channels.cpp. .PP References DEBUG, internal_userlist, and name. .PP .nf -201 { -202 for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) -203 { -204 if (*a == castuser) -205 { -206 log(DEBUG,'Removed casted user from channel's internal list'); -207 internal_userlist.erase(a); -208 return; -209 } -210 } -211 log(DEBUG,'BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!',name); -212 } +173 { +174 for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) +175 { +176 if (*a == castuser) +177 { +178 log(DEBUG,'Removed casted user from channel's internal list'); +179 internal_userlist.erase(a); +180 return; +181 } +182 } +183 log(DEBUG,'BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!',name); +184 } .fi .PP .SS "\fBstd::string\fP chanrec::GetModeParameter (char mode)" @@ -213,24 +213,24 @@ The parameter for this mode is returned, or an empty string .PP .PP -Definition at line 174 of file channels.cpp. +Definition at line 146 of file channels.cpp. .PP References custom_mode_params. .PP .nf -175 { -176 if (custom_mode_params.size()) -177 { -178 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -179 { -180 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -181 { -182 return i->parameter; -183 } -184 } -185 } -186 return ''; -187 } +147 { +148 if (custom_mode_params.size()) +149 { +150 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +151 { +152 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +153 { +154 return i->parameter; +155 } +156 } +157 } +158 return ''; +159 } .fi .PP .SS "long chanrec::GetUserCounter ()" @@ -244,12 +244,12 @@ The number of users on this channel .PP .PP -Definition at line 189 of file channels.cpp. +Definition at line 161 of file channels.cpp. .PP .nf -190 { -191 return (this->internal_userlist.size()); -192 } +162 { +163 return (this->internal_userlist.size()); +164 } .fi .PP .SS "std::vector< char * > * chanrec::GetUsers ()" @@ -265,16 +265,16 @@ This function returns a vector of userrec pointers, each of which has been caste .PP .PP -Definition at line 214 of file channels.cpp. +Definition at line 186 of file channels.cpp. .PP References internal_userlist. .PP Referenced by Server::GetUsers(). .PP .nf -215 { -216 return &internal_userlist; -217 } +187 { +188 return &internal_userlist; +189 } .fi .PP .SS "bool chanrec::IsCustomModeSet (char mode)" @@ -293,12 +293,12 @@ True if the custom mode is set, false if otherwise .PP .PP -Definition at line 169 of file channels.cpp. +Definition at line 141 of file channels.cpp. .PP .nf -170 { -171 return (strchr(this->custom_modes,mode)); -172 } +142 { +143 return (strchr(this->custom_modes,mode)); +144 } .fi .PP .SS "void chanrec::SetCustomMode (char mode, bool mode_on)" @@ -314,33 +314,33 @@ Sets or unsets a custom mode in the channels info. .PP .PP -Definition at line 113 of file channels.cpp. +Definition at line 85 of file channels.cpp. .PP References custom_modes, DEBUG, and SetCustomModeParam(). .PP .nf -114 { -115 if (mode_on) { -116 static char m[3]; -117 m[0] = mode; -118 m[1] = '\0'; -119 if (!strchr(this->custom_modes,mode)) -120 { -121 strlcat(custom_modes,m,MAXMODES); -122 } -123 log(DEBUG,'Custom mode %c set',mode); -124 } -125 else { -126 -127 std::string a = this->custom_modes; -128 int pos = a.find(mode); -129 a.erase(pos,1); -130 strncpy(this->custom_modes,a.c_str(),MAXMODES); -131 -132 log(DEBUG,'Custom mode %c removed: modelist='%s'',mode,this->custom_modes); -133 this->SetCustomModeParam(mode,'',false); -134 } -135 } +86 { +87 if (mode_on) { +88 static char m[3]; +89 m[0] = mode; +90 m[1] = '\0'; +91 if (!strchr(this->custom_modes,mode)) +92 { +93 strlcat(custom_modes,m,MAXMODES); +94 } +95 log(DEBUG,'Custom mode %c set',mode); +96 } +97 else { +98 +99 std::string a = this->custom_modes; +100 int pos = a.find(mode); +101 a.erase(pos,1); +102 strncpy(this->custom_modes,a.c_str(),MAXMODES); +103 +104 log(DEBUG,'Custom mode %c removed: modelist='%s'',mode,this->custom_modes); +105 this->SetCustomModeParam(mode,'',false); +106 } +107 } .fi .PP .SS "void chanrec::SetCustomModeParam (char mode, char * parameter, bool mode_on)" @@ -358,42 +358,42 @@ Sets or unsets the parameters for a custom mode in a channels info. .PP .PP -Definition at line 138 of file channels.cpp. +Definition at line 110 of file channels.cpp. .PP References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter. .PP Referenced by SetCustomMode(). .PP .nf -139 { -140 -141 log(DEBUG,'SetCustomModeParam called'); -142 ModeParameter M; -143 M.mode = mode; -144 strlcpy(M.channel,this->name,CHANMAX); -145 strlcpy(M.parameter,parameter,MAXBUF); -146 if (mode_on) -147 { -148 log(DEBUG,'Custom mode parameter %c %s added',mode,parameter); -149 custom_mode_params.push_back(M); -150 } -151 else -152 { -153 if (custom_mode_params.size()) -154 { -155 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -156 { -157 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -158 { -159 log(DEBUG,'Custom mode parameter %c %s removed',mode,parameter); -160 custom_mode_params.erase(i); -161 return; -162 } -163 } -164 } -165 log(DEBUG,'*** BUG *** Attempt to remove non-existent mode parameter!'); -166 } -167 } +111 { +112 +113 log(DEBUG,'SetCustomModeParam called'); +114 ModeParameter M; +115 M.mode = mode; +116 strlcpy(M.channel,this->name,CHANMAX); +117 strlcpy(M.parameter,parameter,MAXBUF); +118 if (mode_on) +119 { +120 log(DEBUG,'Custom mode parameter %c %s added',mode,parameter); +121 custom_mode_params.push_back(M); +122 } +123 else +124 { +125 if (custom_mode_params.size()) +126 { +127 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +128 { +129 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +130 { +131 log(DEBUG,'Custom mode parameter %c %s removed',mode,parameter); +132 custom_mode_params.erase(i); +133 return; +134 } +135 } +136 } +137 log(DEBUG,'*** BUG *** Attempt to remove non-existent mode parameter!'); +138 } +139 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/classbase.3 b/docs/man/man3/classbase.3 index 88d263294..3982b20ac 100644 --- a/docs/man/man3/classbase.3 +++ b/docs/man/man3/classbase.3 @@ -1,4 +1,4 @@ -.TH "classbase" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "classbase" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -10,7 +10,7 @@ classbase \- The base class for all inspircd classes. .PP \fC#include <base.h>\fP .PP -Inherited by \fBAdmin\fP, \fBConfigReader\fP, \fBConnectClass\fP, \fBExtensible\fP, \fBExtMode\fP, \fBFileReader\fP, \fBHostItem\fP, \fBInvited\fP, \fBModeParameter\fP, \fBModule\fP, \fBModuleFactory\fP, \fBModuleMessage\fP, \fBServer\fP, \fBucrec\fP, \fBVersion\fP, and \fBXLine\fP. +Inherited by \fBAdmin\fP, \fBConfigReader\fP, \fBConnectClass\fP, \fBExtensible\fP, \fBExtMode\fP, \fBFileReader\fP, \fBHostItem\fP, \fBInvited\fP, \fBModeParameter\fP, \fBModule\fP, \fBModuleFactory\fP, \fBModuleMessage\fP, \fBServer\fP, \fBServerConfig\fP, \fBucrec\fP, \fBVersion\fP, and \fBXLine\fP. .PP .SS "Public Member Functions" diff --git a/docs/man/man3/command_t.3 b/docs/man/man3/command_t.3 index a7338bde8..d9c551c30 100644 --- a/docs/man/man3/command_t.3 +++ b/docs/man/man3/command_t.3 @@ -1,4 +1,4 @@ -.TH "command_t" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "command_t" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/commands.h.3 b/docs/man/man3/commands.h.3 index 6655b2170..338196308 100644 --- a/docs/man/man3/commands.h.3 +++ b/docs/man/man3/commands.h.3 @@ -1,4 +1,4 @@ -.TH "commands.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "commands.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3 index 36aaf10c6..46175dd7f 100644 --- a/docs/man/man3/connection.3 +++ b/docs/man/man3/connection.3 @@ -1,4 +1,4 @@ -.TH "connection" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "connection" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.h.3 b/docs/man/man3/connection.h.3 index c53c68eb5..9cd67bf20 100644 --- a/docs/man/man3/connection.h.3 +++ b/docs/man/man3/connection.h.3 @@ -1,4 +1,4 @@ -.TH "connection.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "connection.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ctables.h.3 b/docs/man/man3/ctables.h.3 index 6af542e0a..f1b2cc9be 100644 --- a/docs/man/man3/ctables.h.3 +++ b/docs/man/man3/ctables.h.3 @@ -1,4 +1,4 @@ -.TH "ctables.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ctables.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns.h.3 b/docs/man/man3/dns.h.3 index e17b454c1..b22f0409c 100644 --- a/docs/man/man3/dns.h.3 +++ b/docs/man/man3/dns.h.3 @@ -1,4 +1,4 @@ -.TH "dns.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "dns.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns_ip4list.3 b/docs/man/man3/dns_ip4list.3 index 2d199c572..61d591237 100644 --- a/docs/man/man3/dns_ip4list.3 +++ b/docs/man/man3/dns_ip4list.3 @@ -1,4 +1,4 @@ -.TH "dns_ip4list" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "dns_ip4list" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/hashcomp.h.3 b/docs/man/man3/hashcomp.h.3 index 935f03185..751489424 100644 --- a/docs/man/man3/hashcomp.h.3 +++ b/docs/man/man3/hashcomp.h.3 @@ -1,4 +1,4 @@ -.TH "hashcomp.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "hashcomp.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/inspircd_io.h.3 b/docs/man/man3/inspircd_io.h.3 new file mode 100644 index 000000000..b832da93e --- /dev/null +++ b/docs/man/man3/inspircd_io.h.3 @@ -0,0 +1,110 @@ +.TH "inspircd_io.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +inspircd_io.h \- +.SH SYNOPSIS +.br +.PP +\fC#include <sstream>\fP +.br +\fC#include <string>\fP +.br +\fC#include <vector>\fP +.br +\fC#include 'inspircd.h'\fP +.br +\fC#include 'globals.h'\fP +.br + +.SS "Classes" + +.in +1c +.ti -1c +.RI "class \fBServerConfig\fP" +.br +.in -1c +.SS "Defines" + +.in +1c +.ti -1c +.RI "#define \fBDEBUG\fP 10" +.br +.ti -1c +.RI "#define \fBVERBOSE\fP 20" +.br +.ti -1c +.RI "#define \fBDEFAULT\fP 30" +.br +.ti -1c +.RI "#define \fBSPARSE\fP 40" +.br +.ti -1c +.RI "#define \fBNONE\fP 50" +.br +.in -1c +.SS "Functions" + +.in +1c +.ti -1c +.RI "void \fBExit\fP (int)" +.br +.ti -1c +.RI "void \fBStart\fP (void)" +.br +.ti -1c +.RI "int \fBDaemonSeed\fP (void)" +.br +.ti -1c +.RI "bool \fBFileExists\fP (const char *file)" +.br +.ti -1c +.RI "int \fBOpenTCPSocket\fP (void)" +.br +.ti -1c +.RI "int \fBBindSocket\fP (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char *addr)" +.br +.ti -1c +.RI "void \fBWritePID\fP (\fBstd::string\fP filename)" +.br +.in -1c +.SH "Define Documentation" +.PP +.SS "#define DEBUG 10" +.PP +Definition at line 28 of file inspircd_io.h. +.PP +Referenced by Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), SocketEngine::DelFd(), chanrec::DelUser(), InspSocket::InspSocket(), InspSocket::Read(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), and SocketEngine::~SocketEngine(). +.SS "#define DEFAULT 30" +.PP +Definition at line 30 of file inspircd_io.h. +.SS "#define NONE 50" +.PP +Definition at line 32 of file inspircd_io.h. +.SS "#define SPARSE 40" +.PP +Definition at line 31 of file inspircd_io.h. +.SS "#define VERBOSE 20" +.PP +Definition at line 29 of file inspircd_io.h. +.SH "Function Documentation" +.PP +.SS "int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char * addr)" +.PP +Referenced by InspSocket::InspSocket(). +.SS "int DaemonSeed (void)" +.PP +.SS "void Exit (int)" +.PP +.SS "bool FileExists (const char * file)" +.PP +.SS "int OpenTCPSocket (void)" +.PP +Referenced by InspSocket::InspSocket(). +.SS "void Start (void)" +.PP +.SS "void WritePID (\fBstd::string\fP filename)" +.PP +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/irc.3 b/docs/man/man3/irc.3 index 0e751fd80..71dc962ae 100644 --- a/docs/man/man3/irc.3 +++ b/docs/man/man3/irc.3 @@ -1,4 +1,4 @@ -.TH "irc" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc_InAddr_HashComp.3 b/docs/man/man3/irc_InAddr_HashComp.3 index 3ae4dda7f..e06813d73 100644 --- a/docs/man/man3/irc_InAddr_HashComp.3 +++ b/docs/man/man3/irc_InAddr_HashComp.3 @@ -1,4 +1,4 @@ -.TH "irc::InAddr_HashComp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc::InAddr_HashComp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc_StrHashComp.3 b/docs/man/man3/irc_StrHashComp.3 index f5f557969..25f8918f9 100644 --- a/docs/man/man3/irc_StrHashComp.3 +++ b/docs/man/man3/irc_StrHashComp.3 @@ -1,4 +1,4 @@ -.TH "irc::StrHashComp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc::StrHashComp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc_irc_char_traits.3 b/docs/man/man3/irc_irc_char_traits.3 index b67ec6d03..5001fb780 100644 --- a/docs/man/man3/irc_irc_char_traits.3 +++ b/docs/man/man3/irc_irc_char_traits.3 @@ -1,4 +1,4 @@ -.TH "irc::irc_char_traits" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc::irc_char_traits" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/message.h.3 b/docs/man/man3/message.h.3 index 75ecb0ac3..719defbf5 100644 --- a/docs/man/man3/message.h.3 +++ b/docs/man/man3/message.h.3 @@ -1,4 +1,4 @@ -.TH "message.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "message.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -75,7 +75,7 @@ message.h \- .RI "void \fBTidyBan\fP (char *ban)" .br .ti -1c -.RI "char * \fBchlist\fP (\fBuserrec\fP *user, \fBuserrec\fP *source)" +.RI "\fBstd::string\fP \fBchlist\fP (\fBuserrec\fP *user, \fBuserrec\fP *source)" .br .ti -1c .RI "void \fBsend_network_quit\fP (const char *nick, const char *reason)" @@ -93,7 +93,7 @@ Referenced by Server::ChangeHost(). .SS "void ChangeName (\fBuserrec\fP * user, const char * gecos)" .PP Referenced by Server::ChangeGECOS(). -.SS "char* chlist (\fBuserrec\fP * user, \fBuserrec\fP * source)" +.SS "\fBstd::string\fP chlist (\fBuserrec\fP * user, \fBuserrec\fP * source)" .PP .SS "void chop (char * str)" .PP diff --git a/docs/man/man3/mode.h.3 b/docs/man/man3/mode.h.3 index 02d665158..19df0b06d 100644 --- a/docs/man/man3/mode.h.3 +++ b/docs/man/man3/mode.h.3 @@ -1,4 +1,4 @@ -.TH "mode.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "mode.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/modules.cpp.3 b/docs/man/man3/modules.cpp.3 index 0abe14ea7..2b4dae325 100644 --- a/docs/man/man3/modules.cpp.3 +++ b/docs/man/man3/modules.cpp.3 @@ -1,4 +1,4 @@ -.TH "modules.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "modules.cpp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -62,39 +62,9 @@ modules.cpp \- .br \fC#include 'socketengine.h'\fP .br - -.SS "Classes" - -.in +1c -.ti -1c -.RI "class \fBExtMode\fP" +\fC#include 'typedefs.h'\fP .br -.in -1c -.SS "Typedefs" -.in +1c -.ti -1c -.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBuserrec\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBuser_hash\fP" -.br -.ti -1c -.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBchanrec\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBchan_hash\fP" -.br -.ti -1c -.RI "typedef nspace::hash_map< in_addr, \fBstring\fP *, nspace::hash< in_addr >, \fBirc::InAddr_HashComp\fP > \fBaddress_cache\fP" -.br -.ti -1c -.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBWhoWasUser\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBwhowas_hash\fP" -.br -.ti -1c -.RI "typedef std::deque< \fBcommand_t\fP > \fBcommand_table\fP" -.br -.ti -1c -.RI "typedef std::vector< \fBExtMode\fP > \fBExtModeList\fP" -.br -.ti -1c -.RI "typedef ExtModeList::iterator \fBExtModeListIter\fP" -.br -.in -1c .SS "Functions" .in +1c @@ -133,6 +103,9 @@ modules.cpp \- .RI "\fBSocketEngine\fP * \fBSE\fP" .br .ti -1c +.RI "\fBServerConfig\fP * \fBConfig\fP" +.br +.ti -1c .RI "int \fBMODCOUNT\fP = -1" .br .ti -1c @@ -142,84 +115,21 @@ modules.cpp \- .RI "std::vector< \fBircd_module\fP * > \fBfactory\fP" .br .ti -1c -.RI "std::vector< \fBstd::string\fP > \fBinclude_stack\fP" -.br -.ti -1c .RI "std::vector< \fBInspSocket\fP * > \fBmodule_sockets\fP" .br .ti -1c .RI "time_t \fBTIME\fP" .br .ti -1c -.RI "int \fBLogLevel\fP" -.br -.ti -1c -.RI "char \fBServerName\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBNetwork\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBServerDesc\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminName\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminEmail\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminNick\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBdiepass\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBrestartpass\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBmotd\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBrules\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBlist\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBPrefixQuit\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBDieValue\fP [MAXBUF]" -.br -.ti -1c -.RI "int \fBdebugging\fP" -.br -.ti -1c .RI "int \fBWHOWAS_STALE\fP" .br .ti -1c .RI "int \fBWHOWAS_MAX\fP" .br .ti -1c -.RI "int \fBDieDelay\fP" -.br -.ti -1c .RI "time_t \fBstartup_time\fP" .br .ti -1c -.RI "int \fBNetBufferSize\fP" -.br -.ti -1c -.RI "int \fBMaxWhoResults\fP" -.br -.ti -1c -.RI "time_t \fBnb_start\fP" -.br -.ti -1c -.RI "std::vector< \fBstd::string\fP > \fBmodule_names\fP" -.br -.ti -1c .RI "int \fBboundPortCount\fP" .br .ti -1c @@ -229,12 +139,6 @@ modules.cpp \- .RI "int \fBports\fP [MAXSOCKS]" .br .ti -1c -.RI "std::stringstream \fBconfig_f\fP" -.br -.ti -1c -.RI "FILE * \fBlog_file\fP" -.br -.ti -1c .RI "\fBuserrec\fP * \fBfd_ref_table\fP [65536]" .br .ti -1c @@ -250,192 +154,157 @@ modules.cpp \- .RI "\fBcommand_table\fP \fBcmdlist\fP" .br .ti -1c -.RI "\fBfile_cache\fP \fBMOTD\fP" -.br -.ti -1c -.RI "\fBfile_cache\fP \fBRULES\fP" -.br -.ti -1c .RI "\fBaddress_cache\fP \fBIP\fP" .br .ti -1c .RI "\fBExtModeList\fP \fBEMode\fP" .br .in -1c -.SH "Typedef Documentation" -.PP -.SS "typedef nspace::hash_map<in_addr,\fBstring\fP*, nspace::hash<in_addr>, \fBirc::InAddr_HashComp\fP> \fBaddress_cache\fP" -.PP -Definition at line 117 of file modules.cpp. -.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBchanrec\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBchan_hash\fP" -.PP -Definition at line 116 of file modules.cpp. -.SS "typedef std::deque<\fBcommand_t\fP> \fBcommand_table\fP" -.PP -Definition at line 119 of file modules.cpp. -.SS "typedef std::vector<\fBExtMode\fP> \fBExtModeList\fP" -.PP -Definition at line 145 of file modules.cpp. -.SS "typedef ExtModeList::iterator \fBExtModeListIter\fP" -.PP -Definition at line 146 of file modules.cpp. -.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBuserrec\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBuser_hash\fP" -.PP -Definition at line 115 of file modules.cpp. -.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBWhoWasUser\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBwhowas_hash\fP" -.PP -Definition at line 118 of file modules.cpp. .SH "Function Documentation" .PP .SS "bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off)" .PP -Definition at line 215 of file modules.cpp. +Definition at line 142 of file modules.cpp. .PP References EMode, and ModeDefined(). .PP Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode(). .PP .nf -216 { -217 if (ModeDefined(modechar,type)) { -218 return false; -219 } -220 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -221 return true; -222 } +143 { +144 if (ModeDefined(modechar,type)) { +145 return false; +146 } +147 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +148 return true; +149 } .fi .PP .SS "std::vector<\fBircd_module\fP*> factory (255)" .PP .SS "bool ModeDefined (char modechar, int type)" .PP -Definition at line 152 of file modules.cpp. +Definition at line 79 of file modules.cpp. .PP References EMode. .PP Referenced by DoAddExtendedMode(). .PP .nf -153 { -154 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -155 { -156 if ((i->modechar == modechar) && (i->type == type)) -157 { -158 return true; -159 } -160 } -161 return false; -162 } +80 { +81 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +82 { +83 if ((i->modechar == modechar) && (i->type == type)) +84 { +85 return true; +86 } +87 } +88 return false; +89 } .fi .PP .SS "int ModeDefinedOff (char modechar, int type)" .PP -Definition at line 202 of file modules.cpp. +Definition at line 129 of file modules.cpp. .PP References EMode. .PP .nf -203 { -204 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -205 { -206 if ((i->modechar == modechar) && (i->type == type)) -207 { -208 return i->params_when_off; -209 } -210 } -211 return 0; -212 } +130 { +131 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +132 { +133 if ((i->modechar == modechar) && (i->type == type)) +134 { +135 return i->params_when_off; +136 } +137 } +138 return 0; +139 } .fi .PP .SS "int ModeDefinedOn (char modechar, int type)" .PP -Definition at line 189 of file modules.cpp. +Definition at line 116 of file modules.cpp. .PP References EMode. .PP .nf -190 { -191 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -192 { -193 if ((i->modechar == modechar) && (i->type == type)) -194 { -195 return i->params_when_on; -196 } -197 } -198 return 0; -199 } +117 { +118 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +119 { +120 if ((i->modechar == modechar) && (i->type == type)) +121 { +122 return i->params_when_on; +123 } +124 } +125 return 0; +126 } .fi .PP .SS "bool ModeDefinedOper (char modechar, int type)" .PP -Definition at line 176 of file modules.cpp. +Definition at line 103 of file modules.cpp. .PP References EMode. .PP .nf -177 { -178 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -179 { -180 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -181 { -182 return true; -183 } -184 } -185 return false; -186 } +104 { +105 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +106 { +107 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +108 { +109 return true; +110 } +111 } +112 return false; +113 } .fi .PP .SS "bool ModeIsListMode (char modechar, int type)" .PP -Definition at line 164 of file modules.cpp. +Definition at line 91 of file modules.cpp. .PP References EMode. .PP .nf -165 { -166 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -167 { -168 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -169 { -170 return true; -171 } -172 } -173 return false; -174 } +92 { +93 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +94 { +95 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +96 { +97 return true; +98 } +99 } +100 return false; +101 } .fi .PP .SS "void ModeMakeList (char modechar)" .PP -Definition at line 225 of file modules.cpp. +Definition at line 152 of file modules.cpp. .PP References EMode, and MT_CHANNEL. .PP Referenced by Server::AddExtendedListMode(). .PP .nf -226 { -227 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -228 { -229 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -230 { -231 i->list = true; -232 return; -233 } -234 } -235 return; -236 } +153 { +154 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +155 { +156 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +157 { +158 i->list = true; +159 return; +160 } +161 } +162 return; +163 } .fi .PP .SS "std::vector<\fBModule\fP*> modules (255)" .PP .SH "Variable Documentation" .PP -.SS "char \fBAdminEmail\fP[MAXBUF]" -.PP -.SS "char \fBAdminName\fP[MAXBUF]" -.PP -.SS "char \fBAdminNick\fP[MAXBUF]" -.PP .SS "int \fBboundPortCount\fP" .PP .SS "\fBchan_hash\fP \fBchanlist\fP" @@ -444,77 +313,33 @@ Referenced by Server::AddExtendedListMode(). .PP .SS "\fBcommand_table\fP \fBcmdlist\fP" .PP -.SS "std::stringstream \fBconfig_f\fP" -.PP -.SS "int \fBdebugging\fP" -.PP -.SS "int \fBDieDelay\fP" -.PP -.SS "char \fBdiepass\fP[MAXBUF]" -.PP -.SS "char \fBDieValue\fP[MAXBUF]" +.SS "\fBServerConfig\fP* \fBConfig\fP" .PP .SS "\fBExtModeList\fP \fBEMode\fP" .PP -Definition at line 149 of file modules.cpp. +Definition at line 76 of file modules.cpp. .PP Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). .SS "std::vector<\fBircd_module\fP*> factory" .PP .SS "\fBuserrec\fP* \fBfd_ref_table\fP[65536]" .PP -.SS "std::vector<\fBstd::string\fP> \fBinclude_stack\fP" -.PP -Referenced by ConfigReader::ConfigReader(). .SS "\fBaddress_cache\fP \fBIP\fP" .PP -.SS "char \fBlist\fP[MAXBUF]" -.PP -.SS "FILE* \fBlog_file\fP" -.PP -.SS "int \fBLogLevel\fP" -.PP -.SS "int \fBMaxWhoResults\fP" -.PP -Definition at line 81 of file channels.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 1005 of file modules.cpp. -.SS "std::vector<\fBstd::string\fP> \fBmodule_names\fP" -.PP +Definition at line 933 of file modules.cpp. .SS "std::vector<\fBInspSocket\fP*> \fBmodule_sockets\fP" .PP Referenced by Server::AddSocket(), and Server::DelSocket(). .SS "std::vector<\fBModule\fP*> modules" .PP -.SS "\fBfile_cache\fP \fBMOTD\fP" -.PP -.SS "char \fBmotd\fP[MAXBUF]" -.PP -.SS "time_t \fBnb_start\fP" -.PP -.SS "int \fBNetBufferSize\fP" -.PP -.SS "char \fBNetwork\fP[MAXBUF]" -.PP .SS "int \fBportCount\fP" .PP .SS "int \fBports\fP[MAXSOCKS]" .PP -.SS "char \fBPrefixQuit\fP[MAXBUF]" -.PP -.SS "char \fBrestartpass\fP[MAXBUF]" -.PP -.SS "\fBfile_cache\fP \fBRULES\fP" -.PP -.SS "char \fBrules\fP[MAXBUF]" -.PP .SS "\fBSocketEngine\fP* \fBSE\fP" .PP -.SS "char \fBServerDesc\fP[MAXBUF]" -.PP -.SS "char \fBServerName\fP[MAXBUF]" -.PP .SS "time_t \fBstartup_time\fP" .PP .SS "time_t \fBTIME\fP" diff --git a/docs/man/man3/modules.h.3 b/docs/man/man3/modules.h.3 index 3c43187ac..b65b4ac89 100644 --- a/docs/man/man3/modules.h.3 +++ b/docs/man/man3/modules.h.3 @@ -1,4 +1,4 @@ -.TH "modules.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "modules.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -45,6 +45,10 @@ modules.h \- .br .RI "\fIThe Event class is a unicast message directed at all modules. \fP" .ti -1c +.RI "class \fBExtMode\fP" +.br +.RI "\fIHolds an extended mode's details. \fP" +.ti -1c .RI "class \fBModule\fP" .br .RI "\fIBase class for all InspIRCd modules This class is the base class for InspIRCd modules. \fP" @@ -238,22 +242,22 @@ Referenced by Module::OnAccessCheck(). Definition at line 38 of file modules.h. .SS "#define CONF_FILE_NOT_FOUND 0x000200" .PP -Definition at line 1501 of file modules.h. +Definition at line 1516 of file modules.h. .PP Referenced by ConfigReader::ConfigReader(). .SS "#define CONF_NOT_A_NUMBER 0x000010" .PP -Definition at line 1498 of file modules.h. +Definition at line 1513 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_NOT_UNSIGNED 0x000080" .PP -Definition at line 1499 of file modules.h. +Definition at line 1514 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_VALUE_NOT_FOUND 0x000100" .PP -Definition at line 1500 of file modules.h. +Definition at line 1515 of file modules.h. .PP Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). .SS "#define DEBUG 10" @@ -261,8 +265,6 @@ Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigR log levels .PP Definition at line 23 of file modules.h. -.PP -Referenced by Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), SocketEngine::DelFd(), chanrec::DelUser(), InspSocket::InspSocket(), InspSocket::Read(), userrec::ReadData(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), SocketEngine::Wait(), and SocketEngine::~SocketEngine(). .SS "#define DEFAULT 30" .PP Definition at line 25 of file modules.h. @@ -349,7 +351,7 @@ Low level definition of a \fBFileReader\fP classes file cache area. Definition at line 65 of file modules.h. .SS "typedef DLLFactory<\fBModuleFactory\fP> \fBircd_module\fP" .PP -Definition at line 1667 of file modules.h. +Definition at line 1682 of file modules.h. .SS "typedef \fBfile_cache\fP \fBstring_list\fP" .PP Definition at line 70 of file modules.h. diff --git a/docs/man/man3/nspace.3 b/docs/man/man3/nspace.3 index 504564def..5ec9865ba 100644 --- a/docs/man/man3/nspace.3 +++ b/docs/man/man3/nspace.3 @@ -1,4 +1,4 @@ -.TH "nspace" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "nspace" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_hash_ in_addr _.3 b/docs/man/man3/nspace_hash_ in_addr _.3 index 9cf95474a..a8485cd17 100644 --- a/docs/man/man3/nspace_hash_ in_addr _.3 +++ b/docs/man/man3/nspace_hash_ in_addr _.3 @@ -1,4 +1,4 @@ -.TH "nspace::hash< in_addr >" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "nspace::hash< in_addr >" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_hash_ string _.3 b/docs/man/man3/nspace_hash_ string _.3 index 325a269ce..a71325c4d 100644 --- a/docs/man/man3/nspace_hash_ string _.3 +++ b/docs/man/man3/nspace_hash_ string _.3 @@ -1,4 +1,4 @@ -.TH "nspace::hash< string >" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "nspace::hash< string >" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/socket.cpp.3 b/docs/man/man3/socket.cpp.3 index a71385032..b483fd050 100644 --- a/docs/man/man3/socket.cpp.3 +++ b/docs/man/man3/socket.cpp.3 @@ -1,4 +1,4 @@ -.TH "socket.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "socket.cpp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -54,9 +54,6 @@ socket.cpp \- .RI "\fBSocketEngine\fP * \fBSE\fP" .br .ti -1c -.RI "FILE * \fBlog_file\fP" -.br -.ti -1c .RI "int \fBboundPortCount\fP" .br .ti -1c @@ -66,27 +63,21 @@ socket.cpp \- .RI "time_t \fBTIME\fP" .br .ti -1c -.RI "bool \fBunlimitcore\fP" -.br -.ti -1c -.RI "int \fBMaxConn\fP" +.RI "\fBInspSocket\fP * \fBsocket_ref\fP [65535]" .br .in -1c .SH "Variable Documentation" .PP .SS "int \fBboundPortCount\fP" .PP -.SS "FILE* \fBlog_file\fP" -.PP -.SS "int \fBMaxConn\fP" -.PP .SS "int \fBopenSockfd\fP[MAXSOCKS]" .PP .SS "\fBSocketEngine\fP* \fBSE\fP" .PP -.SS "time_t \fBTIME\fP" +.SS "\fBInspSocket\fP* \fBsocket_ref\fP[65535]" .PP -.SS "bool \fBunlimitcore\fP" +Definition at line 46 of file socket.cpp. +.SS "time_t \fBTIME\fP" .PP .SH "Author" .PP diff --git a/docs/man/man3/socket.h.3 b/docs/man/man3/socket.h.3 index 3810efe1d..5efbc0311 100644 --- a/docs/man/man3/socket.h.3 +++ b/docs/man/man3/socket.h.3 @@ -1,4 +1,4 @@ -.TH "socket.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "socket.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/socketengine.cpp.3 b/docs/man/man3/socketengine.cpp.3 index 3a6ac0550..b864541ba 100644 --- a/docs/man/man3/socketengine.cpp.3 +++ b/docs/man/man3/socketengine.cpp.3 @@ -1,4 +1,4 @@ -.TH "socketengine.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "socketengine.cpp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/socketengine.h.3 b/docs/man/man3/socketengine.h.3 index 7be4a00e5..54d35e323 100644 --- a/docs/man/man3/socketengine.h.3 +++ b/docs/man/man3/socketengine.h.3 @@ -1,4 +1,4 @@ -.TH "socketengine.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "socketengine.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/std.3 b/docs/man/man3/std.3 index 8d5eaebc2..2f27c8b5a 100644 --- a/docs/man/man3/std.3 +++ b/docs/man/man3/std.3 @@ -1,4 +1,4 @@ -.TH "std" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "std" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/std_char_traits.3 b/docs/man/man3/std_char_traits.3 index 89807e969..c875bc7d9 100644 --- a/docs/man/man3/std_char_traits.3 +++ b/docs/man/man3/std_char_traits.3 @@ -1,4 +1,4 @@ -.TH "std::char_traits" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "std::char_traits" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/typedefs.h.3 b/docs/man/man3/typedefs.h.3 new file mode 100644 index 000000000..e919dd1f0 --- /dev/null +++ b/docs/man/man3/typedefs.h.3 @@ -0,0 +1,88 @@ +.TH "typedefs.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +typedefs.h \- +.SH SYNOPSIS +.br +.PP +\fC#include 'users.h'\fP +.br +\fC#include 'channels.h'\fP +.br +\fC#include 'hashcomp.h'\fP +.br +\fC#include 'inspstring.h'\fP +.br +\fC#include 'ctables.h'\fP +.br +\fC#include 'inspircd.h'\fP +.br +\fC#include 'modules.h'\fP +.br +\fC#include 'globals.h'\fP +.br +\fC#include 'inspircd_config.h'\fP +.br +\fC#include <string>\fP +.br +\fC#include <ext/hash_map>\fP +.br + +.SS "Typedefs" + +.in +1c +.ti -1c +.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBuserrec\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBuser_hash\fP" +.br +.ti -1c +.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBchanrec\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBchan_hash\fP" +.br +.ti -1c +.RI "typedef nspace::hash_map< in_addr, \fBstring\fP *, nspace::hash< in_addr >, \fBirc::InAddr_HashComp\fP > \fBaddress_cache\fP" +.br +.ti -1c +.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBWhoWasUser\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBwhowas_hash\fP" +.br +.ti -1c +.RI "typedef std::deque< \fBcommand_t\fP > \fBcommand_table\fP" +.br +.ti -1c +.RI "typedef std::vector< \fBstd::string\fP > \fBservernamelist\fP" +.br +.ti -1c +.RI "typedef std::vector< \fBExtMode\fP > \fBExtModeList\fP" +.br +.ti -1c +.RI "typedef ExtModeList::iterator \fBExtModeListIter\fP" +.br +.in -1c +.SH "Typedef Documentation" +.PP +.SS "typedef nspace::hash_map<in_addr,\fBstring\fP*, nspace::hash<in_addr>, \fBirc::InAddr_HashComp\fP> \fBaddress_cache\fP" +.PP +Definition at line 22 of file typedefs.h. +.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBchanrec\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBchan_hash\fP" +.PP +Definition at line 21 of file typedefs.h. +.SS "typedef std::deque<\fBcommand_t\fP> \fBcommand_table\fP" +.PP +Definition at line 24 of file typedefs.h. +.SS "typedef std::vector<\fBExtMode\fP> \fBExtModeList\fP" +.PP +Definition at line 26 of file typedefs.h. +.SS "typedef ExtModeList::iterator \fBExtModeListIter\fP" +.PP +Definition at line 27 of file typedefs.h. +.SS "typedef std::vector<\fBstd::string\fP> \fBservernamelist\fP" +.PP +Definition at line 25 of file typedefs.h. +.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBuserrec\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBuser_hash\fP" +.PP +Definition at line 20 of file typedefs.h. +.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBWhoWasUser\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBwhowas_hash\fP" +.PP +Definition at line 23 of file typedefs.h. +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3 index 5e07b9214..2b88bcc46 100644 --- a/docs/man/man3/ucrec.3 +++ b/docs/man/man3/ucrec.3 @@ -1,4 +1,4 @@ -.TH "ucrec" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ucrec" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -68,8 +68,6 @@ Points to the channel record where the given modes apply. If the record is not in use, this value will be NULL. .PP Definition at line 252 of file channels.h. -.PP -Referenced by Server::PseudoToUser(), and userrec::userrec(). .SS "char \fBucrec::uc_modes\fP" .PP Contains a bitmask of the UCMODE_OP . @@ -77,8 +75,6 @@ Contains a bitmask of the UCMODE_OP . .. UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel. .PP Definition at line 247 of file channels.h. -.PP -Referenced by userrec::userrec(). .SH "Author" .PP diff --git a/docs/man/man3/userprocess.h.3 b/docs/man/man3/userprocess.h.3 new file mode 100644 index 000000000..92541398d --- /dev/null +++ b/docs/man/man3/userprocess.h.3 @@ -0,0 +1,50 @@ +.TH "userprocess.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +userprocess.h \- +.SH SYNOPSIS +.br +.PP +\fC#include 'users.h'\fP +.br + +.SS "Functions" + +.in +1c +.ti -1c +.RI "void \fBCheckDie\fP ()" +.br +.ti -1c +.RI "void \fBLoadAllModules\fP ()" +.br +.ti -1c +.RI "void \fBCheckRoot\fP ()" +.br +.ti -1c +.RI "void \fBOpenLog\fP (char **argv, int argc)" +.br +.ti -1c +.RI "bool \fBDoBackgroundUserStuff\fP (time_t \fBTIME\fP)" +.br +.ti -1c +.RI "void \fBProcessUser\fP (\fBuserrec\fP *cu)" +.br +.in -1c +.SH "Function Documentation" +.PP +.SS "void CheckDie ()" +.PP +.SS "void CheckRoot ()" +.PP +.SS "bool DoBackgroundUserStuff (time_t TIME)" +.PP +.SS "void LoadAllModules ()" +.PP +.SS "void OpenLog (char ** argv, int argc)" +.PP +.SS "void ProcessUser (\fBuserrec\fP * cu)" +.PP +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3 index 8fc0aa420..6d88cb3d5 100644 --- a/docs/man/man3/userrec.3 +++ b/docs/man/man3/userrec.3 @@ -1,4 +1,4 @@ -.TH "userrec" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "userrec" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -114,7 +114,7 @@ Inherits \fBconnection\fP. .br .RI "\fIThe user's mode string. \fP" .ti -1c -.RI "\fBucrec\fP \fBchans\fP [MAXCHANS]" +.RI "std::vector< \fBucrec\fP > \fBchans\fP" .br .ti -1c .RI "char * \fBserver\fP" @@ -197,48 +197,44 @@ Definition at line 111 of file users.h. .PP .SS "userrec::userrec ()" .PP -Definition at line 38 of file users.cpp. +Definition at line 36 of file users.cpp. .PP -References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, invites, connection::ip, connection::lastping, lines_in, modes, nick, connection::nping, oper, connection::port, recvq, connection::registered, reset_due, sendq, server, ServerName, connection::signon, TIME, timeout, and ucrec::uc_modes. +References awaymsg, connection::bytes_in, connection::bytes_out, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, invites, connection::ip, connection::lastping, lines_in, modes, nick, connection::nping, oper, connection::port, recvq, connection::registered, reset_due, sendq, server, ServerConfig::ServerName, connection::signon, TIME, and timeout. .PP .nf -39 { -40 // the PROPER way to do it, AVOID bzero at *ALL* costs -41 strcpy(nick,''); -42 strcpy(ip,'127.0.0.1'); -43 timeout = 0; -44 strcpy(ident,''); -45 strcpy(host,''); -46 strcpy(dhost,''); -47 strcpy(fullname,''); -48 strcpy(modes,''); -49 server = (char*)FindServerNamePtr(ServerName); -50 strcpy(awaymsg,''); -51 strcpy(oper,''); -52 reset_due = TIME; -53 lines_in = 0; -54 fd = lastping = signon = idle_lastmsg = nping = registered = 0; -55 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; -56 haspassed = false; -57 dns_done = false; -58 recvq = ''; -59 sendq = ''; -60 for (int i = 0; i < MAXCHANS; i++) -61 { -62 this->chans[i].channel = NULL; -63 this->chans[i].uc_modes = 0; -64 } -65 invites.clear(); -66 } +37 { +38 // the PROPER way to do it, AVOID bzero at *ALL* costs +39 strcpy(nick,''); +40 strcpy(ip,'127.0.0.1'); +41 timeout = 0; +42 strcpy(ident,''); +43 strcpy(host,''); +44 strcpy(dhost,''); +45 strcpy(fullname,''); +46 strcpy(modes,''); +47 server = (char*)FindServerNamePtr(Config->ServerName); +48 strcpy(awaymsg,''); +49 strcpy(oper,''); +50 reset_due = TIME; +51 lines_in = 0; +52 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +53 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +54 haspassed = false; +55 dns_done = false; +56 recvq = ''; +57 sendq = ''; +58 chans.clear(); +59 invites.clear(); +60 } .fi .PP .SS "userrec::~userrec ()\fC [virtual]\fP" .PP -Definition at line 68 of file users.cpp. +Definition at line 62 of file users.cpp. .PP .nf -69 { -70 } +63 { +64 } .fi .PP .SH "Member Function Documentation" @@ -249,35 +245,35 @@ This method adds data to the buffer of the user. .PP The buffer can grow to any size within limits of the available memory, managed by the size of a \fBstd::string\fP, however if any individual line in the buffer grows over 600 bytes in length (which is 88 chars over the RFC-specified limit per line) then the method will return false and the text will not be inserted. .PP -Definition at line 205 of file users.cpp. +Definition at line 198 of file users.cpp. .PP References recvq, recvqmax, and SetWriteError(). .PP .nf -206 { -207 std::string b = ''; -208 for (unsigned int i = 0; i < a.length(); i++) -209 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7)) -210 b = b + a[i]; -211 std::stringstream stream(recvq); -212 stream << b; -213 recvq = stream.str(); -214 unsigned int i = 0; -215 // count the size of the first line in the buffer. -216 while (i < recvq.length()) -217 { -218 if (recvq[i++] == '\n') -219 break; -220 } -221 if (recvq.length() > (unsigned)this->recvqmax) -222 { -223 this->SetWriteError('RecvQ exceeded'); -224 WriteOpers('*** User %s RecvQ of %d exceeds connect class maximum of %d',this->nick,recvq.length(),this->recvqmax); -225 } -226 // return false if we've had more than 600 characters WITHOUT -227 // a carriage return (this is BAD, drop the socket) -228 return (i < 600); -229 } +199 { +200 std::string b = ''; +201 for (unsigned int i = 0; i < a.length(); i++) +202 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7)) +203 b = b + a[i]; +204 std::stringstream stream(recvq); +205 stream << b; +206 recvq = stream.str(); +207 unsigned int i = 0; +208 // count the size of the first line in the buffer. +209 while (i < recvq.length()) +210 { +211 if (recvq[i++] == '\n') +212 break; +213 } +214 if (recvq.length() > (unsigned)this->recvqmax) +215 { +216 this->SetWriteError('RecvQ exceeded'); +217 WriteOpers('*** User %s RecvQ of %d exceeds connect class maximum of %d',this->nick,recvq.length(),this->recvqmax); +218 } +219 // return false if we've had more than 600 characters WITHOUT +220 // a carriage return (this is BAD, drop the socket) +221 return (i < 600); +222 } .fi .PP .SS "void userrec::AddWriteBuf (\fBstd::string\fP data)" @@ -286,24 +282,24 @@ Adds to the user's write buffer. .PP You may add any amount of text up to this users sendq value, if you exceed the sendq value, \fBSetWriteError()\fP will be called to set the users error string to 'SendQ exceeded', and further buffer adds will be dropped. .PP -Definition at line 261 of file users.cpp. +Definition at line 254 of file users.cpp. .PP References sendq, sendqmax, and SetWriteError(). .PP .nf -262 { -263 if (this->GetWriteError() != '') -264 return; -265 if (sendq.length() + data.length() > (unsigned)this->sendqmax) -266 { -267 WriteOpers('*** User %s SendQ of %d exceeds connect class maximum of %d',this->nick,sendq.length() + data.length(),this->sendqmax); -268 this->SetWriteError('SendQ exceeded'); -269 return; -270 } -271 std::stringstream stream; -272 stream << sendq << data; -273 sendq = stream.str(); -274 } +255 { +256 if (this->GetWriteError() != '') +257 return; +258 if (sendq.length() + data.length() > (unsigned)this->sendqmax) +259 { +260 WriteOpers('*** User %s SendQ of %d exceeds connect class maximum of %d',this->nick,sendq.length() + data.length(),this->sendqmax); +261 this->SetWriteError('SendQ exceeded'); +262 return; +263 } +264 std::stringstream stream; +265 stream << sendq << data; +266 sendq = stream.str(); +267 } .fi .PP .SS "bool userrec::BufferIsReady ()" @@ -312,46 +308,46 @@ This method returns true if the buffer contains at least one carriage return cha .PP one complete line may be read) .PP -Definition at line 231 of file users.cpp. +Definition at line 224 of file users.cpp. .PP References recvq. .PP .nf -232 { -233 for (unsigned int i = 0; i < recvq.length(); i++) -234 if (recvq[i] == '\n') -235 return true; -236 return false; -237 } +225 { +226 for (unsigned int i = 0; i < recvq.length(); i++) +227 if (recvq[i] == '\n') +228 return true; +229 return false; +230 } .fi .PP .SS "void userrec::ClearBuffer ()" .PP This function clears the entire buffer by setting it to an empty string. .PP -Definition at line 239 of file users.cpp. +Definition at line 232 of file users.cpp. .PP References recvq. .PP Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). .PP .nf -240 { -241 recvq = ''; -242 } +233 { +234 recvq = ''; +235 } .fi .PP .SS "void userrec::CloseSocket ()" .PP Shuts down and closes the user's socket. .PP -Definition at line 72 of file users.cpp. +Definition at line 66 of file users.cpp. .PP .nf -73 { -74 shutdown(this->fd,2); -75 close(this->fd); -76 } +67 { +68 shutdown(this->fd,2); +69 close(this->fd); +70 } .fi .PP .SS "void userrec::FlushWriteBuf ()" @@ -360,31 +356,31 @@ Flushes as much of the user's buffer to the file descriptor as possible. .PP This function may not always flush the entire buffer, rather instead as much of it as it possibly can. If the send() call fails to send the entire buffer, the buffer position is advanced forwards and the rest of the data sent at the next call to this method. .PP -Definition at line 277 of file users.cpp. +Definition at line 270 of file users.cpp. .PP References connection::bytes_out, connection::cmds_out, sendq, and SetWriteError(). .PP .nf -278 { -279 if (sendq.length()) -280 { -281 char* tb = (char*)this->sendq.c_str(); -282 int n_sent = write(this->fd,tb,this->sendq.length()); -283 if (n_sent == -1) -284 { -285 this->SetWriteError(strerror(errno)); -286 } -287 else -288 { -289 // advance the queue -290 tb += n_sent; -291 this->sendq = tb; -292 // update the user's stats counters -293 this->bytes_out += n_sent; -294 this->cmds_out++; -295 } -296 } -297 } +271 { +272 if (sendq.length()) +273 { +274 char* tb = (char*)this->sendq.c_str(); +275 int n_sent = write(this->fd,tb,this->sendq.length()); +276 if (n_sent == -1) +277 { +278 this->SetWriteError(strerror(errno)); +279 } +280 else +281 { +282 // advance the queue +283 tb += n_sent; +284 this->sendq = tb; +285 // update the user's stats counters +286 this->bytes_out += n_sent; +287 this->cmds_out++; +288 } +289 } +290 } .fi .PP .SS "\fBstd::string\fP userrec::GetBuffer ()" @@ -393,42 +389,42 @@ This method returns the first available string at the tail end of the buffer and .PP This means it is a one way operation in a similar way to strtok(), and multiple calls return multiple lines if they are available. The results of this function if there are no lines to be read are unknown, always use \fBBufferIsReady()\fP to check if it is ok to read the buffer before calling \fBGetBuffer()\fP. .PP -Definition at line 244 of file users.cpp. +Definition at line 237 of file users.cpp. .PP References recvq. .PP .nf -245 { -246 if (recvq == '') -247 return ''; -248 char* line = (char*)recvq.c_str(); -249 std::string ret = ''; -250 while ((*line != '\n') && (strlen(line))) -251 { -252 ret = ret + *line; -253 line++; -254 } -255 if ((*line == '\n') || (*line == '\r')) -256 line++; -257 recvq = line; -258 return ret; -259 } +238 { +239 if (recvq == '') +240 return ''; +241 char* line = (char*)recvq.c_str(); +242 std::string ret = ''; +243 while ((*line != '\n') && (strlen(line))) +244 { +245 ret = ret + *line; +246 line++; +247 } +248 if ((*line == '\n') || (*line == '\r')) +249 line++; +250 recvq = line; +251 return ret; +252 } .fi .PP .SS "char * userrec::GetFullHost ()\fC [virtual]\fP" .PP Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. .PP -Definition at line 78 of file users.cpp. +Definition at line 72 of file users.cpp. .PP References dhost, ident, and nick. .PP .nf -79 { -80 static char result[MAXBUF]; -81 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,dhost); -82 return result; -83 } +73 { +74 static char result[MAXBUF]; +75 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,dhost); +76 return result; +77 } .fi .PP .SS "char * userrec::GetFullRealHost ()\fC [virtual]\fP" @@ -437,44 +433,44 @@ Returns the full real host of the user This member function returns the hostname .PP If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname. .PP -Definition at line 96 of file users.cpp. +Definition at line 89 of file users.cpp. .PP References connection::host, ident, and nick. .PP .nf -97 { -98 static char fresult[MAXBUF]; -99 snprintf(fresult,MAXBUF,'%s!%s@%s',nick,ident,host); -100 return fresult; -101 } +90 { +91 static char fresult[MAXBUF]; +92 snprintf(fresult,MAXBUF,'%s!%s@%s',nick,ident,host); +93 return fresult; +94 } .fi .PP .SS "\fBInvitedList\fP * userrec::GetInviteList ()" .PP Returns the list of channels this user has been invited to but has not yet joined. .PP -Definition at line 117 of file users.cpp. +Definition at line 110 of file users.cpp. .PP References invites. .PP .nf -118 { -119 return &invites; -120 } +111 { +112 return &invites; +113 } .fi .PP .SS "\fBstd::string\fP userrec::GetWriteError ()" .PP Returns the write error which last occured on this connection or an empty string if none occured. .PP -Definition at line 307 of file users.cpp. +Definition at line 300 of file users.cpp. .PP References WriteError. .PP .nf -308 { -309 return this->WriteError; -310 } +301 { +302 return this->WriteError; +303 } .fi .PP .SS "bool userrec::HasPermission (char * command)" @@ -483,120 +479,117 @@ Returns true or false for if a user can execute a privilaged oper command. .PP This is done by looking up their oper type from \fBuserrec::oper\fP, then referencing this to their oper classes and checking the commands they can execute. .PP -Definition at line 151 of file users.cpp. +Definition at line 144 of file users.cpp. .PP -References config_f, and is_uline(). +References ServerConfig::config_f, ServerConfig::ConfValue(), and is_uline(). .PP .nf -152 { -153 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -154 char* mycmd; -155 char* savept; -156 char* savept2; -157 -158 // users on u-lined servers can completely bypass -159 // all permissions based checks. -160 // -161 // of course, if this is sent to a remote server and this -162 // server is not ulined there, then that other server -163 // silently drops the command. -164 if (is_uline(this->server)) -165 return true; -166 -167 // are they even an oper at all? -168 if (strchr(this->modes,'o')) -169 { -170 for (int j =0; j < ConfValueEnum('type',&config_f); j++) -171 { -172 ConfValue('type','name',j,TypeName,&config_f); -173 if (!strcmp(TypeName,this->oper)) -174 { -175 ConfValue('type','classes',j,Classes,&config_f); -176 char* myclass = strtok_r(Classes,' ',&savept); -177 while (myclass) -178 { -179 for (int k =0; k < ConfValueEnum('class',&config_f); k++) -180 { -181 ConfValue('class','name',k,ClassName,&config_f); -182 if (!strcmp(ClassName,myclass)) -183 { -184 ConfValue('class','commands',k,CommandList,&config_f); -185 mycmd = strtok_r(CommandList,' ',&savept2); -186 while (mycmd) -187 { -188 if ((!strcasecmp(mycmd,command)) || (*mycmd == '*')) -189 { -190 return true; -191 } -192 mycmd = strtok_r(NULL,' ',&savept2); -193 } -194 } -195 } -196 myclass = strtok_r(NULL,' ',&savept); -197 } -198 } -199 } -200 } -201 return false; -202 } +145 { +146 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +147 char* mycmd; +148 char* savept; +149 char* savept2; +150 +151 // users on u-lined servers can completely bypass +152 // all permissions based checks. +153 // +154 // of course, if this is sent to a remote server and this +155 // server is not ulined there, then that other server +156 // silently drops the command. +157 if (is_uline(this->server)) +158 return true; +159 +160 // are they even an oper at all? +161 if (strchr(this->modes,'o')) +162 { +163 for (int j =0; j < Config->ConfValueEnum('type',&Config->config_f); j++) +164 { +165 Config->ConfValue('type','name',j,TypeName,&Config->config_f); +166 if (!strcmp(TypeName,this->oper)) +167 { +168 Config->ConfValue('type','classes',j,Classes,&Config->config_f); +169 char* myclass = strtok_r(Classes,' ',&savept); +170 while (myclass) +171 { +172 for (int k =0; k < Config->ConfValueEnum('class',&Config->config_f); k++) +173 { +174 Config->ConfValue('class','name',k,ClassName,&Config->config_f); +175 if (!strcmp(ClassName,myclass)) +176 { +177 Config->ConfValue('class','commands',k,CommandList,&Config->config_f); +178 mycmd = strtok_r(CommandList,' ',&savept2); +179 while (mycmd) +180 { +181 if ((!strcasecmp(mycmd,command)) || (*mycmd == '*')) +182 { +183 return true; +184 } +185 mycmd = strtok_r(NULL,' ',&savept2); +186 } +187 } +188 } +189 myclass = strtok_r(NULL,' ',&savept); +190 } +191 } +192 } +193 } +194 return false; +195 } .fi .PP .SS "void userrec::InviteTo (char * channel)\fC [virtual]\fP" .PP Adds a channel to a users invite list (invites them to a channel). .PP -Definition at line 122 of file users.cpp. +Definition at line 115 of file users.cpp. .PP References Invited::channel, and invites. .PP .nf -123 { -124 Invited i; -125 strlcpy(i.channel,channel,CHANMAX); -126 invites.push_back(i); -127 } +116 { +117 Invited i; +118 strlcpy(i.channel,channel,CHANMAX); +119 invites.push_back(i); +120 } .fi .PP .SS "bool userrec::IsInvited (char * channel)\fC [virtual]\fP" .PP Returns true if a user is invited to a channel. .PP -Definition at line 103 of file users.cpp. +Definition at line 96 of file users.cpp. .PP References invites. .PP .nf -104 { -105 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -106 { -107 if (i->channel) { -108 if (!strcasecmp(i->channel,channel)) -109 { -110 return true; -111 } -112 } -113 } -114 return false; -115 } +97 { +98 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +99 { +100 if (i->channel) { +101 if (!strcasecmp(i->channel,channel)) +102 { +103 return true; +104 } +105 } +106 } +107 return false; +108 } .fi .PP .SS "int userrec::ReadData (void * buffer, size_t size)" .PP Calls read() to read some data for this user using their fd. .PP -Definition at line 85 of file users.cpp. -.PP -References DEBUG. +Definition at line 79 of file users.cpp. .PP .nf -86 { -87 if (this->fd > -1) -88 { -89 log(DEBUG,'userrec::ReadData on fd %d',this->fd); -90 return read(this->fd, buffer, size); -91 } -92 else return 0; -93 } +80 { +81 if (this->fd > -1) +82 { +83 return read(this->fd, buffer, size); +84 } +85 else return 0; +86 } .fi .PP .SS "void userrec::RemoveInvite (char * channel)\fC [virtual]\fP" @@ -605,31 +598,31 @@ Removes a channel from a users invite list. .PP This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation. .PP -Definition at line 129 of file users.cpp. +Definition at line 122 of file users.cpp. .PP References DEBUG, and invites. .PP .nf -130 { -131 log(DEBUG,'Removing invites'); -132 if (channel) -133 { -134 if (invites.size()) -135 { -136 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -137 { -138 if (i->channel) -139 { -140 if (!strcasecmp(i->channel,channel)) -141 { -142 invites.erase(i); -143 return; -144 } -145 } -146 } -147 } -148 } -149 } +123 { +124 log(DEBUG,'Removing invites'); +125 if (channel) +126 { +127 if (invites.size()) +128 { +129 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +130 { +131 if (i->channel) +132 { +133 if (!strcasecmp(i->channel,channel)) +134 { +135 invites.erase(i); +136 return; +137 } +138 } +139 } +140 } +141 } +142 } .fi .PP .SS "void userrec::SetWriteError (\fBstd::string\fP error)" @@ -638,19 +631,19 @@ Sets the write error for a connection. .PP This is done because the actual disconnect of a client may occur at an inopportune time such as half way through /LIST output. The WriteErrors of clients are checked at a more ideal time (in the mainloop) and errored clients purged. .PP -Definition at line 299 of file users.cpp. +Definition at line 292 of file users.cpp. .PP References DEBUG, and WriteError. .PP Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf(). .PP .nf -300 { -301 log(DEBUG,'Setting error string for %s to '%s'',this->nick,error.c_str()); -302 // don't try to set the error twice, its already set take the first string. -303 if (this->WriteError == '') -304 this->WriteError = error; -305 } +293 { +294 log(DEBUG,'Setting error string for %s to '%s'',this->nick,error.c_str()); +295 // don't try to set the error twice, its already set take the first string. +296 if (this->WriteError == '') +297 this->WriteError = error; +298 } .fi .PP .SH "Member Data Documentation" @@ -664,7 +657,7 @@ If this string is empty, the user is not marked as away. Definition at line 158 of file users.h. .PP Referenced by userrec(). -.SS "\fBucrec\fP \fBuserrec::chans\fP[MAXCHANS]" +.SS "std::vector<\fBucrec\fP> \fBuserrec::chans\fP" .PP Definition at line 149 of file users.h. .PP diff --git a/docs/man/man3/users.cpp.3 b/docs/man/man3/users.cpp.3 index 520931d6d..9b4705a63 100644 --- a/docs/man/man3/users.cpp.3 +++ b/docs/man/man3/users.cpp.3 @@ -1,4 +1,4 @@ -.TH "users.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "users.cpp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -29,10 +29,7 @@ users.cpp \- .in +1c .ti -1c -.RI "std::stringstream \fBconfig_f\fP" -.br -.ti -1c -.RI "char \fBServerName\fP [MAXBUF]" +.RI "\fBServerConfig\fP * \fBConfig\fP" .br .ti -1c .RI "time_t \fBTIME\fP" @@ -40,9 +37,7 @@ users.cpp \- .in -1c .SH "Variable Documentation" .PP -.SS "std::stringstream \fBconfig_f\fP" -.PP -.SS "char \fBServerName\fP[MAXBUF]" +.SS "\fBServerConfig\fP* \fBConfig\fP" .PP .SS "time_t \fBTIME\fP" .PP diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3 index f8eb8ac82..03ced5bd9 100644 --- a/docs/man/man3/users.h.3 +++ b/docs/man/man3/users.h.3 @@ -1,4 +1,4 @@ -.TH "users.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "users.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/xline.h.3 b/docs/man/man3/xline.h.3 index 1ee046631..1e12b1309 100644 --- a/docs/man/man3/xline.h.3 +++ b/docs/man/man3/xline.h.3 @@ -1,4 +1,4 @@ -.TH "xline.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "xline.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -105,7 +105,7 @@ xline.h \- .RI "void \fBexpire_lines\fP ()" .br .ti -1c -.RI "void \fBapply_lines\fP ()" +.RI "void \fBapply_lines\fP (const int What)" .br .ti -1c .RI "void \fBstats_k\fP (\fBuserrec\fP *user)" @@ -141,6 +141,25 @@ xline.h \- .RI "bool \fBqline_make_global\fP (const char *nickname)" .br .in -1c +.SS "Variables" + +.in +1c +.ti -1c +.RI "const int \fBAPPLY_GLINES\fP = 1" +.br +.ti -1c +.RI "const int \fBAPPLY_KLINES\fP = 2" +.br +.ti -1c +.RI "const int \fBAPPLY_QLINES\fP = 4" +.br +.ti -1c +.RI "const int \fBAPPLY_ZLINES\fP = 8" +.br +.ti -1c +.RI "const int \fBAPPLY_ALL\fP = \fBAPPLY_GLINES\fP | \fBAPPLY_KLINES\fP | \fBAPPLY_QLINES\fP | \fBAPPLY_ZLINES\fP" +.br +.in -1c .SH "Function Documentation" .PP .SS "void add_eline (long duration, const char * source, const char * reason, const char * hostmask)" @@ -158,7 +177,7 @@ Referenced by Server::AddQLine(). .SS "void add_zline (long duration, const char * source, const char * reason, const char * ipaddr)" .PP Referenced by Server::AddZLine(). -.SS "void apply_lines ()" +.SS "void apply_lines (const int What)" .PP .SS "bool del_eline (const char * hostmask)" .PP @@ -211,6 +230,23 @@ Referenced by Server::DelZLine(). .PP .SS "void zline_set_creation_time (char * ip, time_t create_time)" .PP +.SH "Variable Documentation" +.PP +.SS "const int \fBAPPLY_ALL\fP = \fBAPPLY_GLINES\fP | \fBAPPLY_KLINES\fP | \fBAPPLY_QLINES\fP | \fBAPPLY_ZLINES\fP" +.PP +Definition at line 35 of file xline.h. +.SS "const int \fBAPPLY_GLINES\fP = 1" +.PP +Definition at line 31 of file xline.h. +.SS "const int \fBAPPLY_KLINES\fP = 2" +.PP +Definition at line 32 of file xline.h. +.SS "const int \fBAPPLY_QLINES\fP = 4" +.PP +Definition at line 33 of file xline.h. +.SS "const int \fBAPPLY_ZLINES\fP = 8" +.PP +Definition at line 34 of file xline.h. .SH "Author" .PP Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 45dd8260c..953b3abef 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -22,7 +22,7 @@ <tr><td class="indexkey"><a class="el" href="classEvent.html">Event</a></td><td class="indexvalue">Unicast message directed at all modules </td></tr> <tr><td class="indexkey"><a class="el" href="classExemptItem.html">ExemptItem</a></td><td class="indexvalue">A subclass of <a class="el" href="classHostItem.html">HostItem</a> designed to hold channel exempts (+e) </td></tr> <tr><td class="indexkey"><a class="el" href="classExtensible.html">Extensible</a></td><td class="indexvalue">Class Extensible is the parent class of many classes such as userrec and chanrec </td></tr> - <tr><td class="indexkey"><a class="el" href="classExtMode.html">ExtMode</a></td><td class="indexvalue"></td></tr> + <tr><td class="indexkey"><a class="el" href="classExtMode.html">ExtMode</a></td><td class="indexvalue">Holds an extended mode's details </td></tr> <tr><td class="indexkey"><a class="el" href="classFileReader.html">FileReader</a></td><td class="indexvalue">Caches a text file into memory and can be used to retrieve lines from it </td></tr> <tr><td class="indexkey"><a class="el" href="classGLine.html">GLine</a></td><td class="indexvalue">GLine class </td></tr> <tr><td class="indexkey"><a class="el" href="structnspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a></td><td class="indexvalue"></td></tr> @@ -41,6 +41,7 @@ <tr><td class="indexkey"><a class="el" href="classQLine.html">QLine</a></td><td class="indexvalue">QLine class </td></tr> <tr><td class="indexkey"><a class="el" href="classRequest.html">Request</a></td><td class="indexvalue">Unicast message directed at a given module </td></tr> <tr><td class="indexkey"><a class="el" href="classServer.html">Server</a></td><td class="indexvalue">Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers </td></tr> + <tr><td class="indexkey"><a class="el" href="classServerConfig.html">ServerConfig</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="classSocketEngine.html">SocketEngine</a></td><td class="indexvalue">The actual socketengine class presents the same interface on all operating systems, but its private members and internal behaviour should be treated as blackboxed, and vary from system to system and upon the config settings chosen by the server admin </td></tr> <tr><td class="indexkey"><a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a></td><td class="indexvalue">This class returns true if two strings match </td></tr> <tr><td class="indexkey"><a class="el" href="classucrec.html">ucrec</a></td><td class="indexvalue">Holds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class </td></tr> @@ -50,7 +51,7 @@ <tr><td class="indexkey"><a class="el" href="classXLine.html">XLine</a></td><td class="indexvalue">XLine is the base class for ban lines such as G lines and K lines </td></tr> <tr><td class="indexkey"><a class="el" href="classZLine.html">ZLine</a></td><td class="indexvalue">ZLine class </td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 3df03d550..0f408fcca 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -88,7 +88,7 @@ <a name="l00161"></a>00161 <a name="l00162"></a>00162 <span class="preprocessor">#endif</span> <a name="l00163"></a>00163 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index 4177e5341..96473e680 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -19,18 +19,10 @@ Include dependency graph for base.h:<p><center><img src="base_8h__incl.gif" bord <p> This graph shows which files directly or indirectly include this file:<p><center><img src="base_8h__dep__incl.gif" border="0" usemap="#base.hdep_map" alt=""></center> <map name="base.hdep_map"> -<area href="channels_8h-source.html" shape="rect" coords="123,327,208,353" alt=""> -<area href="connection_8h-source.html" shape="rect" coords="116,276,215,303" alt=""> -<area href="ctables_8h-source.html" shape="rect" coords="264,529,339,556" alt=""> -<area href="modules_8h-source.html" shape="rect" coords="396,479,479,505" alt=""> -<area href="users_8cpp-source.html" shape="rect" coords="546,99,626,125" alt=""> -<area href="users_8h-source.html" shape="rect" coords="270,276,334,303" alt=""> -<area href="commands_8h-source.html" shape="rect" coords="388,124,487,151" alt=""> -<area href="message_8h-source.html" shape="rect" coords="395,428,480,455" alt=""> -<area href="mode_8h-source.html" shape="rect" coords="404,327,471,353" alt=""> -<area href="xline_8h-source.html" shape="rect" coords="407,377,468,404" alt=""> -<area href="channels_8cpp-source.html" shape="rect" coords="536,428,635,455" alt=""> -<area href="modules_8cpp-source.html" shape="rect" coords="536,377,635,404" alt=""> +<area href="channels_8h-source.html" shape="rect" coords="123,7,208,33" alt=""> +<area href="connection_8h-source.html" shape="rect" coords="116,57,215,84" alt=""> +<area href="ctables_8h-source.html" shape="rect" coords="128,108,203,135" alt=""> +<area href="modules_8h-source.html" shape="rect" coords="264,133,347,160" alt=""> </map> <p> @@ -76,7 +68,7 @@ This graph shows which files directly or indirectly include this file:<p><center Definition at line <a class="el" href="base_8h-source.html#l00026">26</a> of file <a class="el" href="base_8h-source.html">base.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:18 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/base_8h__dep__incl.gif b/docs/module-doc/base_8h__dep__incl.gif Binary files differindex ae4b48aaa..b13fbb74d 100644 --- a/docs/module-doc/base_8h__dep__incl.gif +++ b/docs/module-doc/base_8h__dep__incl.gif diff --git a/docs/module-doc/base_8h__dep__incl.map b/docs/module-doc/base_8h__dep__incl.map index cecf4bb8a..c410efa5b 100644 --- a/docs/module-doc/base_8h__dep__incl.map +++ b/docs/module-doc/base_8h__dep__incl.map @@ -1,13 +1,5 @@ base referer -rect $channels_8h-source.html 123,327 208,353 -rect $connection_8h-source.html 116,276 215,303 -rect $ctables_8h-source.html 264,529 339,556 -rect $modules_8h-source.html 396,479 479,505 -rect $users_8cpp-source.html 546,99 626,125 -rect $users_8h-source.html 270,276 334,303 -rect $commands_8h-source.html 388,124 487,151 -rect $message_8h-source.html 395,428 480,455 -rect $mode_8h-source.html 404,327 471,353 -rect $xline_8h-source.html 407,377 468,404 -rect $channels_8cpp-source.html 536,428 635,455 -rect $modules_8cpp-source.html 536,377 635,404 +rect $channels_8h-source.html 123,7 208,33 +rect $connection_8h-source.html 116,57 215,84 +rect $ctables_8h-source.html 128,108 203,135 +rect $modules_8h-source.html 264,133 347,160 diff --git a/docs/module-doc/base_8h__dep__incl.md5 b/docs/module-doc/base_8h__dep__incl.md5 index 4d82252e0..d0ae08dfb 100644 --- a/docs/module-doc/base_8h__dep__incl.md5 +++ b/docs/module-doc/base_8h__dep__incl.md5 @@ -1 +1 @@ -e28f78b35c4f957a36c51e1bcb09e76a
\ No newline at end of file +0046ef0e1b705028d107ddd398e9b859
\ No newline at end of file diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index b942e6741..64c350bcc 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -27,7 +27,7 @@ <a name="l00018"></a>00018 <a name="l00019"></a>00019 <span class="preprocessor">#include "inspircd_config.h"</span> <a name="l00020"></a>00020 <span class="preprocessor">#include "inspircd.h"</span> -<a name="l00021"></a>00021 <span class="preprocessor">#include "inspircd_io.h"</span> +<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="inspircd__io_8h.html">inspircd_io.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "inspircd_util.h"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include <unistd.h></span> <a name="l00024"></a>00024 <span class="preprocessor">#include <sys/errno.h></span> @@ -62,169 +62,141 @@ <a name="l00053"></a><a class="code" href="channels_8cpp.html#nspace">00053</a> <span class="preprocessor"></span><span class="preprocessor">#define nspace std</span> <a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00055"></a>00055 <span class="preprocessor"></span> -<a name="l00056"></a>00056 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a>; -<a name="l00057"></a>00057 <span class="keyword">extern</span> std::vector<Module*> <a class="code" href="channels_8cpp.html#modules">modules</a>; -<a name="l00058"></a>00058 <span class="keyword">extern</span> std::vector<ircd_module*> <a class="code" href="channels_8cpp.html#factory">factory</a>; -<a name="l00059"></a>00059 -<a name="l00060"></a>00060 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#LogLevel">LogLevel</a>; -<a name="l00061"></a>00061 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a>[MAXBUF]; -<a name="l00062"></a>00062 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#Network_5BMAXBUF_5D">Network</a>[MAXBUF]; -<a name="l00063"></a>00063 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#ServerDesc_5BMAXBUF_5D">ServerDesc</a>[MAXBUF]; -<a name="l00064"></a>00064 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#AdminName_5BMAXBUF_5D">AdminName</a>[MAXBUF]; -<a name="l00065"></a>00065 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#AdminEmail_5BMAXBUF_5D">AdminEmail</a>[MAXBUF]; -<a name="l00066"></a>00066 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#AdminNick_5BMAXBUF_5D">AdminNick</a>[MAXBUF]; -<a name="l00067"></a>00067 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#diepass_5BMAXBUF_5D">diepass</a>[MAXBUF]; -<a name="l00068"></a>00068 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#restartpass_5BMAXBUF_5D">restartpass</a>[MAXBUF]; -<a name="l00069"></a>00069 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#motd_5BMAXBUF_5D">motd</a>[MAXBUF]; -<a name="l00070"></a>00070 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#rules_5BMAXBUF_5D">rules</a>[MAXBUF]; -<a name="l00071"></a>00071 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#list_5BMAXBUF_5D">list</a>[MAXBUF]; -<a name="l00072"></a>00072 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#PrefixQuit_5BMAXBUF_5D">PrefixQuit</a>[MAXBUF]; -<a name="l00073"></a>00073 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#DieValue_5BMAXBUF_5D">DieValue</a>[MAXBUF]; -<a name="l00074"></a>00074 -<a name="l00075"></a>00075 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#debugging">debugging</a>; -<a name="l00076"></a>00076 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#WHOWAS_5FSTALE">WHOWAS_STALE</a>; -<a name="l00077"></a>00077 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#WHOWAS_5FMAX">WHOWAS_MAX</a>; -<a name="l00078"></a>00078 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#DieDelay">DieDelay</a>; -<a name="l00079"></a>00079 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#startup_5Ftime">startup_time</a>; -<a name="l00080"></a>00080 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#NetBufferSize">NetBufferSize</a>; -<a name="l00081"></a><a class="code" href="modules_8cpp.html#MaxWhoResults">00081</a> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#MaxWhoResults">MaxWhoResults</a>; -<a name="l00082"></a>00082 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#nb_5Fstart">nb_start</a>; -<a name="l00083"></a>00083 -<a name="l00084"></a>00084 <span class="keyword">extern</span> std::vector<std::string> <a class="code" href="channels_8cpp.html#module_5Fnames">module_names</a>; -<a name="l00085"></a>00085 -<a name="l00086"></a>00086 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#boundPortCount">boundPortCount</a>; -<a name="l00087"></a>00087 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#portCount">portCount</a>; -<a name="l00088"></a>00088 -<a name="l00089"></a>00089 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#ports_5BMAXSOCKS_5D">ports</a>[MAXSOCKS]; -<a name="l00090"></a>00090 -<a name="l00091"></a>00091 <span class="keyword">extern</span> std::stringstream <a class="code" href="channels_8cpp.html#config_5Ff">config_f</a>; -<a name="l00092"></a>00092 -<a name="l00093"></a>00093 <span class="keyword">extern</span> FILE *<a class="code" href="channels_8cpp.html#log_5Ffile">log_file</a>; -<a name="l00094"></a>00094 -<a name="l00095"></a>00095 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#TIME">TIME</a>; -<a name="l00096"></a>00096 -<a name="l00097"></a>00097 <span class="keyword">using</span> <span class="keyword">namespace </span>std; +<a name="l00056"></a>00056 <span class="keyword">extern</span> <a class="code" href="classServerConfig.html">ServerConfig</a>* <a class="code" href="channels_8cpp.html#Config">Config</a>; +<a name="l00057"></a>00057 +<a name="l00058"></a>00058 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a>; +<a name="l00059"></a>00059 <span class="keyword">extern</span> std::vector<Module*> <a class="code" href="channels_8cpp.html#modules">modules</a>; +<a name="l00060"></a>00060 <span class="keyword">extern</span> std::vector<ircd_module*> <a class="code" href="channels_8cpp.html#factory">factory</a>; +<a name="l00061"></a>00061 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#WHOWAS_5FSTALE">WHOWAS_STALE</a>; +<a name="l00062"></a>00062 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#WHOWAS_5FMAX">WHOWAS_MAX</a>; +<a name="l00063"></a>00063 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#startup_5Ftime">startup_time</a>; +<a name="l00064"></a>00064 <span class="keyword">extern</span> std::vector<std::string> <a class="code" href="channels_8cpp.html#module_5Fnames">module_names</a>; +<a name="l00065"></a>00065 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#boundPortCount">boundPortCount</a>; +<a name="l00066"></a>00066 <span class="keyword">extern</span> std::stringstream <a class="code" href="channels_8cpp.html#config_5Ff">config_f</a>; +<a name="l00067"></a>00067 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#TIME">TIME</a>; +<a name="l00068"></a>00068 +<a name="l00069"></a>00069 <span class="keyword">using</span> <span class="keyword">namespace </span>std; +<a name="l00070"></a>00070 +<a name="l00071"></a><a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">00071</a> std::vector<ModeParameter> <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>; +<a name="l00072"></a>00072 +<a name="l00073"></a><a class="code" href="classchanrec.html#chanrec_28_29">00073</a> <a class="code" href="classchanrec.html#chanrec_28_29">chanrec::chanrec</a>() +<a name="l00074"></a>00074 { +<a name="l00075"></a>00075 strcpy(<a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>,<span class="stringliteral">""</span>); +<a name="l00076"></a>00076 strcpy(<a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>,<span class="stringliteral">""</span>); +<a name="l00077"></a>00077 strcpy(<a class="code" href="classchanrec.html#topic_5BMAXBUF_5D">topic</a>,<span class="stringliteral">""</span>); +<a name="l00078"></a>00078 strcpy(<a class="code" href="classchanrec.html#setby_5BNICKMAX_5D">setby</a>,<span class="stringliteral">""</span>); +<a name="l00079"></a>00079 strcpy(<a class="code" href="classchanrec.html#key_5B_33_32_5D">key</a>,<span class="stringliteral">""</span>); +<a name="l00080"></a>00080 <a class="code" href="classchanrec.html#created">created</a> = <a class="code" href="classchanrec.html#topicset">topicset</a> = <a class="code" href="classchanrec.html#limit">limit</a> = 0; +<a name="l00081"></a>00081 <a class="code" href="classchanrec.html#binarymodes">binarymodes</a> = 0; +<a name="l00082"></a>00082 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.clear(); +<a name="l00083"></a>00083 } +<a name="l00084"></a>00084 +<a name="l00085"></a><a class="code" href="classchanrec.html#SetCustomMode_28char_20mode_2C_20bool_20mode_5Fon_29">00085</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#SetCustomMode_28char_20mode_2C_20bool_20mode_5Fon_29">chanrec::SetCustomMode</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">bool</span> mode_on) +<a name="l00086"></a>00086 { +<a name="l00087"></a>00087 <span class="keywordflow">if</span> (mode_on) { +<a name="l00088"></a>00088 <span class="keyword">static</span> <span class="keywordtype">char</span> m[3]; +<a name="l00089"></a>00089 m[0] = mode; +<a name="l00090"></a>00090 m[1] = <span class="charliteral">'\0'</span>; +<a name="l00091"></a>00091 <span class="keywordflow">if</span> (!strchr(this->custom_modes,mode)) +<a name="l00092"></a>00092 { +<a name="l00093"></a>00093 strlcat(<a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>,m,MAXMODES); +<a name="l00094"></a>00094 } +<a name="l00095"></a>00095 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode %c set"</span>,mode); +<a name="l00096"></a>00096 } +<a name="l00097"></a>00097 <span class="keywordflow">else</span> { <a name="l00098"></a>00098 -<a name="l00099"></a><a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">00099</a> std::vector<ModeParameter> <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>; -<a name="l00100"></a>00100 -<a name="l00101"></a><a class="code" href="classchanrec.html#chanrec_28_29">00101</a> <a class="code" href="classchanrec.html#chanrec_28_29">chanrec::chanrec</a>() -<a name="l00102"></a>00102 { -<a name="l00103"></a>00103 strcpy(<a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>,<span class="stringliteral">""</span>); -<a name="l00104"></a>00104 strcpy(<a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>,<span class="stringliteral">""</span>); -<a name="l00105"></a>00105 strcpy(<a class="code" href="classchanrec.html#topic_5BMAXBUF_5D">topic</a>,<span class="stringliteral">""</span>); -<a name="l00106"></a>00106 strcpy(<a class="code" href="classchanrec.html#setby_5BNICKMAX_5D">setby</a>,<span class="stringliteral">""</span>); -<a name="l00107"></a>00107 strcpy(<a class="code" href="classchanrec.html#key_5B_33_32_5D">key</a>,<span class="stringliteral">""</span>); -<a name="l00108"></a>00108 <a class="code" href="classchanrec.html#created">created</a> = <a class="code" href="classchanrec.html#topicset">topicset</a> = <a class="code" href="classchanrec.html#limit">limit</a> = 0; -<a name="l00109"></a>00109 <a class="code" href="classchanrec.html#binarymodes">binarymodes</a> = 0; -<a name="l00110"></a>00110 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.clear(); -<a name="l00111"></a>00111 } +<a name="l00099"></a>00099 <a class="code" href="namespaceirc.html#string">std::string</a> a = this-><a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>; +<a name="l00100"></a>00100 <span class="keywordtype">int</span> pos = a.find(mode); +<a name="l00101"></a>00101 a.erase(pos,1); +<a name="l00102"></a>00102 strncpy(this->custom_modes,a.c_str(),MAXMODES); +<a name="l00103"></a>00103 +<a name="l00104"></a>00104 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this->custom_modes); +<a name="l00105"></a>00105 this-><a class="code" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>); +<a name="l00106"></a>00106 } +<a name="l00107"></a>00107 } +<a name="l00108"></a>00108 +<a name="l00109"></a>00109 +<a name="l00110"></a><a class="code" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">00110</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">chanrec::SetCustomModeParam</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">char</span>* parameter,<span class="keywordtype">bool</span> mode_on) +<a name="l00111"></a>00111 { <a name="l00112"></a>00112 -<a name="l00113"></a><a class="code" href="classchanrec.html#SetCustomMode_28char_20mode_2C_20bool_20mode_5Fon_29">00113</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#SetCustomMode_28char_20mode_2C_20bool_20mode_5Fon_29">chanrec::SetCustomMode</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">bool</span> mode_on) -<a name="l00114"></a>00114 { -<a name="l00115"></a>00115 <span class="keywordflow">if</span> (mode_on) { -<a name="l00116"></a>00116 <span class="keyword">static</span> <span class="keywordtype">char</span> m[3]; -<a name="l00117"></a>00117 m[0] = mode; -<a name="l00118"></a>00118 m[1] = <span class="charliteral">'\0'</span>; -<a name="l00119"></a>00119 <span class="keywordflow">if</span> (!strchr(this->custom_modes,mode)) -<a name="l00120"></a>00120 { -<a name="l00121"></a>00121 strlcat(<a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>,m,MAXMODES); -<a name="l00122"></a>00122 } -<a name="l00123"></a>00123 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode %c set"</span>,mode); -<a name="l00124"></a>00124 } -<a name="l00125"></a>00125 <span class="keywordflow">else</span> { -<a name="l00126"></a>00126 -<a name="l00127"></a>00127 <a class="code" href="namespaceirc.html#string">std::string</a> a = this-><a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>; -<a name="l00128"></a>00128 <span class="keywordtype">int</span> pos = a.find(mode); -<a name="l00129"></a>00129 a.erase(pos,1); -<a name="l00130"></a>00130 strncpy(this->custom_modes,a.c_str(),MAXMODES); -<a name="l00131"></a>00131 -<a name="l00132"></a>00132 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this->custom_modes); -<a name="l00133"></a>00133 this-><a class="code" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>); -<a name="l00134"></a>00134 } -<a name="l00135"></a>00135 } -<a name="l00136"></a>00136 -<a name="l00137"></a>00137 -<a name="l00138"></a><a class="code" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">00138</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">chanrec::SetCustomModeParam</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">char</span>* parameter,<span class="keywordtype">bool</span> mode_on) -<a name="l00139"></a>00139 { +<a name="l00113"></a>00113 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SetCustomModeParam called"</span>); +<a name="l00114"></a>00114 <a class="code" href="classModeParameter.html">ModeParameter</a> M; +<a name="l00115"></a>00115 M.<a class="code" href="classModeParameter.html#mode">mode</a> = mode; +<a name="l00116"></a>00116 strlcpy(M.<a class="code" href="classModeParameter.html#channel_5BCHANMAX_5D">channel</a>,this->name,CHANMAX); +<a name="l00117"></a>00117 strlcpy(M.<a class="code" href="classModeParameter.html#parameter_5BMAXBUF_5D">parameter</a>,parameter,MAXBUF); +<a name="l00118"></a>00118 <span class="keywordflow">if</span> (mode_on) +<a name="l00119"></a>00119 { +<a name="l00120"></a>00120 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter); +<a name="l00121"></a>00121 <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.push_back(M); +<a name="l00122"></a>00122 } +<a name="l00123"></a>00123 <span class="keywordflow">else</span> +<a name="l00124"></a>00124 { +<a name="l00125"></a>00125 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.size()) +<a name="l00126"></a>00126 { +<a name="l00127"></a>00127 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.end(); i++) +<a name="l00128"></a>00128 { +<a name="l00129"></a>00129 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +<a name="l00130"></a>00130 { +<a name="l00131"></a>00131 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter); +<a name="l00132"></a>00132 <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.erase(i); +<a name="l00133"></a>00133 <span class="keywordflow">return</span>; +<a name="l00134"></a>00134 } +<a name="l00135"></a>00135 } +<a name="l00136"></a>00136 } +<a name="l00137"></a>00137 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>); +<a name="l00138"></a>00138 } +<a name="l00139"></a>00139 } <a name="l00140"></a>00140 -<a name="l00141"></a>00141 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SetCustomModeParam called"</span>); -<a name="l00142"></a>00142 <a class="code" href="classModeParameter.html">ModeParameter</a> M; -<a name="l00143"></a>00143 M.<a class="code" href="classModeParameter.html#mode">mode</a> = mode; -<a name="l00144"></a>00144 strlcpy(M.<a class="code" href="classModeParameter.html#channel_5BCHANMAX_5D">channel</a>,this->name,CHANMAX); -<a name="l00145"></a>00145 strlcpy(M.<a class="code" href="classModeParameter.html#parameter_5BMAXBUF_5D">parameter</a>,parameter,MAXBUF); -<a name="l00146"></a>00146 <span class="keywordflow">if</span> (mode_on) -<a name="l00147"></a>00147 { -<a name="l00148"></a>00148 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter); -<a name="l00149"></a>00149 <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.push_back(M); -<a name="l00150"></a>00150 } -<a name="l00151"></a>00151 <span class="keywordflow">else</span> -<a name="l00152"></a>00152 { -<a name="l00153"></a>00153 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.size()) -<a name="l00154"></a>00154 { -<a name="l00155"></a>00155 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.end(); i++) -<a name="l00156"></a>00156 { -<a name="l00157"></a>00157 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -<a name="l00158"></a>00158 { -<a name="l00159"></a>00159 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter); -<a name="l00160"></a>00160 <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.erase(i); -<a name="l00161"></a>00161 <span class="keywordflow">return</span>; -<a name="l00162"></a>00162 } -<a name="l00163"></a>00163 } -<a name="l00164"></a>00164 } -<a name="l00165"></a>00165 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>); -<a name="l00166"></a>00166 } -<a name="l00167"></a>00167 } -<a name="l00168"></a>00168 -<a name="l00169"></a><a class="code" href="classchanrec.html#IsCustomModeSet_28char_20mode_29">00169</a> <span class="keywordtype">bool</span> <a class="code" href="classchanrec.html#IsCustomModeSet_28char_20mode_29">chanrec::IsCustomModeSet</a>(<span class="keywordtype">char</span> mode) -<a name="l00170"></a>00170 { -<a name="l00171"></a>00171 <span class="keywordflow">return</span> (strchr(this->custom_modes,mode)); -<a name="l00172"></a>00172 } -<a name="l00173"></a>00173 -<a name="l00174"></a><a class="code" href="classchanrec.html#GetModeParameter_28char_20mode_29">00174</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classchanrec.html#GetModeParameter_28char_20mode_29">chanrec::GetModeParameter</a>(<span class="keywordtype">char</span> mode) -<a name="l00175"></a>00175 { -<a name="l00176"></a>00176 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.size()) -<a name="l00177"></a>00177 { -<a name="l00178"></a>00178 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.end(); i++) -<a name="l00179"></a>00179 { -<a name="l00180"></a>00180 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -<a name="l00181"></a>00181 { -<a name="l00182"></a>00182 <span class="keywordflow">return</span> i->parameter; -<a name="l00183"></a>00183 } -<a name="l00184"></a>00184 } -<a name="l00185"></a>00185 } -<a name="l00186"></a>00186 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -<a name="l00187"></a>00187 } -<a name="l00188"></a>00188 -<a name="l00189"></a><a class="code" href="classchanrec.html#GetUserCounter_28_29">00189</a> <span class="keywordtype">long</span> <a class="code" href="classchanrec.html#GetUserCounter_28_29">chanrec::GetUserCounter</a>() -<a name="l00190"></a>00190 { -<a name="l00191"></a>00191 <span class="keywordflow">return</span> (this->internal_userlist.size()); -<a name="l00192"></a>00192 } -<a name="l00193"></a>00193 -<a name="l00194"></a><a class="code" href="classchanrec.html#AddUser_28char_20_2Acastuser_29">00194</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#AddUser_28char_20_2Acastuser_29">chanrec::AddUser</a>(<span class="keywordtype">char</span>* castuser) -<a name="l00195"></a>00195 { -<a name="l00196"></a>00196 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.push_back(castuser); -<a name="l00197"></a>00197 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Added casted user to channel's internal list"</span>); -<a name="l00198"></a>00198 } -<a name="l00199"></a>00199 -<a name="l00200"></a><a class="code" href="classchanrec.html#DelUser_28char_20_2Acastuser_29">00200</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#DelUser_28char_20_2Acastuser_29">chanrec::DelUser</a>(<span class="keywordtype">char</span>* castuser) -<a name="l00201"></a>00201 { -<a name="l00202"></a>00202 <span class="keywordflow">for</span> (std::vector<char*>::iterator a = <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.begin(); a < <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.end(); a++) -<a name="l00203"></a>00203 { -<a name="l00204"></a>00204 <span class="keywordflow">if</span> (*a == castuser) -<a name="l00205"></a>00205 { -<a name="l00206"></a>00206 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Removed casted user from channel's internal list"</span>); -<a name="l00207"></a>00207 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.erase(a); -<a name="l00208"></a>00208 <span class="keywordflow">return</span>; -<a name="l00209"></a>00209 } -<a name="l00210"></a>00210 } -<a name="l00211"></a>00211 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!"</span>,<a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); -<a name="l00212"></a>00212 } -<a name="l00213"></a>00213 -<a name="l00214"></a><a class="code" href="classchanrec.html#GetUsers_28_29">00214</a> std::vector<char*> *<a class="code" href="classchanrec.html#GetUsers_28_29">chanrec::GetUsers</a>() -<a name="l00215"></a>00215 { -<a name="l00216"></a>00216 <span class="keywordflow">return</span> &<a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>; -<a name="l00217"></a>00217 } -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +<a name="l00141"></a><a class="code" href="classchanrec.html#IsCustomModeSet_28char_20mode_29">00141</a> <span class="keywordtype">bool</span> <a class="code" href="classchanrec.html#IsCustomModeSet_28char_20mode_29">chanrec::IsCustomModeSet</a>(<span class="keywordtype">char</span> mode) +<a name="l00142"></a>00142 { +<a name="l00143"></a>00143 <span class="keywordflow">return</span> (strchr(this->custom_modes,mode)); +<a name="l00144"></a>00144 } +<a name="l00145"></a>00145 +<a name="l00146"></a><a class="code" href="classchanrec.html#GetModeParameter_28char_20mode_29">00146</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classchanrec.html#GetModeParameter_28char_20mode_29">chanrec::GetModeParameter</a>(<span class="keywordtype">char</span> mode) +<a name="l00147"></a>00147 { +<a name="l00148"></a>00148 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.size()) +<a name="l00149"></a>00149 { +<a name="l00150"></a>00150 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.end(); i++) +<a name="l00151"></a>00151 { +<a name="l00152"></a>00152 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +<a name="l00153"></a>00153 { +<a name="l00154"></a>00154 <span class="keywordflow">return</span> i->parameter; +<a name="l00155"></a>00155 } +<a name="l00156"></a>00156 } +<a name="l00157"></a>00157 } +<a name="l00158"></a>00158 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +<a name="l00159"></a>00159 } +<a name="l00160"></a>00160 +<a name="l00161"></a><a class="code" href="classchanrec.html#GetUserCounter_28_29">00161</a> <span class="keywordtype">long</span> <a class="code" href="classchanrec.html#GetUserCounter_28_29">chanrec::GetUserCounter</a>() +<a name="l00162"></a>00162 { +<a name="l00163"></a>00163 <span class="keywordflow">return</span> (this->internal_userlist.size()); +<a name="l00164"></a>00164 } +<a name="l00165"></a>00165 +<a name="l00166"></a><a class="code" href="classchanrec.html#AddUser_28char_20_2Acastuser_29">00166</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#AddUser_28char_20_2Acastuser_29">chanrec::AddUser</a>(<span class="keywordtype">char</span>* castuser) +<a name="l00167"></a>00167 { +<a name="l00168"></a>00168 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.push_back(castuser); +<a name="l00169"></a>00169 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Added casted user to channel's internal list"</span>); +<a name="l00170"></a>00170 } +<a name="l00171"></a>00171 +<a name="l00172"></a><a class="code" href="classchanrec.html#DelUser_28char_20_2Acastuser_29">00172</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#DelUser_28char_20_2Acastuser_29">chanrec::DelUser</a>(<span class="keywordtype">char</span>* castuser) +<a name="l00173"></a>00173 { +<a name="l00174"></a>00174 <span class="keywordflow">for</span> (std::vector<char*>::iterator a = <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.begin(); a < <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.end(); a++) +<a name="l00175"></a>00175 { +<a name="l00176"></a>00176 <span class="keywordflow">if</span> (*a == castuser) +<a name="l00177"></a>00177 { +<a name="l00178"></a>00178 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Removed casted user from channel's internal list"</span>); +<a name="l00179"></a>00179 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.erase(a); +<a name="l00180"></a>00180 <span class="keywordflow">return</span>; +<a name="l00181"></a>00181 } +<a name="l00182"></a>00182 } +<a name="l00183"></a>00183 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!"</span>,<a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); +<a name="l00184"></a>00184 } +<a name="l00185"></a>00185 +<a name="l00186"></a><a class="code" href="classchanrec.html#GetUsers_28_29">00186</a> std::vector<char*> *<a class="code" href="classchanrec.html#GetUsers_28_29">chanrec::GetUsers</a>() +<a name="l00187"></a>00187 { +<a name="l00188"></a>00188 <span class="keywordflow">return</span> &<a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>; +<a name="l00189"></a>00189 } +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 6db594237..2e0e6ea5e 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -9,7 +9,7 @@ <a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000005.html">src</a></div> <h1>channels.cpp File Reference</h1><code>#include "inspircd_config.h"</code><br> <code>#include "inspircd.h"</code><br> -<code>#include "inspircd_io.h"</code><br> +<code>#include "<a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>"</code><br> <code>#include "inspircd_util.h"</code><br> <code>#include <unistd.h></code><br> <code>#include <sys/errno.h></code><br> @@ -37,12 +37,13 @@ <p> Include dependency graph for channels.cpp:<p><center><img src="channels_8cpp__incl.gif" border="0" usemap="#channels.cpp_map" alt=""></center> <map name="channels.cpp_map"> -<area href="users_8h-source.html" shape="rect" coords="324,1002,388,1028" alt=""> -<area href="ctables_8h-source.html" shape="rect" coords="319,355,393,382" alt=""> -<area href="modules_8h-source.html" shape="rect" coords="169,748,252,775" alt=""> -<area href="message_8h-source.html" shape="rect" coords="168,1052,253,1079" alt=""> -<area href="mode_8h-source.html" shape="rect" coords="177,1154,244,1180" alt=""> -<area href="xline_8h-source.html" shape="rect" coords="180,850,241,876" alt=""> +<area href="inspircd__io_8h-source.html" shape="rect" coords="163,513,259,540" alt=""> +<area href="users_8h-source.html" shape="rect" coords="324,159,388,185" alt=""> +<area href="ctables_8h-source.html" shape="rect" coords="319,513,393,540" alt=""> +<area href="modules_8h-source.html" shape="rect" coords="169,463,252,489" alt=""> +<area href="message_8h-source.html" shape="rect" coords="168,209,253,236" alt=""> +<area href="mode_8h-source.html" shape="rect" coords="177,311,244,337" alt=""> +<area href="xline_8h-source.html" shape="rect" coords="180,159,241,185" alt=""> </map> <p> @@ -55,68 +56,26 @@ Include dependency graph for channels.cpp:<p><center><img src="channels_8cpp__in <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#nspace">nspace</a> std</td></tr> <tr><td colspan="2"><br><h2>Variables</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classServerConfig.html">ServerConfig</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#Config">Config</a></td></tr> + <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a> = -1</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="classModule.html">Module</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#modules">modules</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="modules_8h.html#ircd_5Fmodule">ircd_module</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#factory">factory</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#LogLevel">LogLevel</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#Network_5BMAXBUF_5D">Network</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#ServerDesc_5BMAXBUF_5D">ServerDesc</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#AdminName_5BMAXBUF_5D">AdminName</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#AdminEmail_5BMAXBUF_5D">AdminEmail</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#AdminNick_5BMAXBUF_5D">AdminNick</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#diepass_5BMAXBUF_5D">diepass</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#restartpass_5BMAXBUF_5D">restartpass</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#motd_5BMAXBUF_5D">motd</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#rules_5BMAXBUF_5D">rules</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#list_5BMAXBUF_5D">list</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#PrefixQuit_5BMAXBUF_5D">PrefixQuit</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#DieValue_5BMAXBUF_5D">DieValue</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#debugging">debugging</a></td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#WHOWAS_5FSTALE">WHOWAS_STALE</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#WHOWAS_5FMAX">WHOWAS_MAX</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#DieDelay">DieDelay</a></td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#startup_5Ftime">startup_time</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#NetBufferSize">NetBufferSize</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#MaxWhoResults">MaxWhoResults</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#nb_5Fstart">nb_start</a></td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="namespaceirc.html#string">std::string</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#module_5Fnames">module_names</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#boundPortCount">boundPortCount</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#portCount">portCount</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#ports_5BMAXSOCKS_5D">ports</a> [MAXSOCKS]</td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top">std::stringstream </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#config_5Ff">config_f</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">FILE * </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#log_5Ffile">log_file</a></td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#TIME">TIME</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="classModeParameter.html">ModeParameter</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a></td></tr> @@ -149,59 +108,13 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00053">53</a> </tr> </table> <hr><h2>Variable Documentation</h2> -<a class="anchor" name="AdminEmail_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::AdminEmail" ref="AdminEmail_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#AdminEmail_5BMAXBUF_5D">AdminEmail</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="AdminName_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::AdminName" ref="AdminName_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#AdminName_5BMAXBUF_5D">AdminName</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="AdminNick_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::AdminNick" ref="AdminNick_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<a class="anchor" name="boundPortCount"></a><!-- doxytag: member="channels.cpp::boundPortCount" ref="boundPortCount" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#AdminNick_5BMAXBUF_5D">AdminNick</a>[MAXBUF] </td> + <td class="md" nowrap valign="top">int <a class="el" href="socket_8cpp.html#boundPortCount">boundPortCount</a> </td> </tr> </table> </td> @@ -218,13 +131,13 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00053">53</a> </td> </tr> </table> -<a class="anchor" name="boundPortCount"></a><!-- doxytag: member="channels.cpp::boundPortCount" ref="boundPortCount" args="" --><p> +<a class="anchor" name="Config"></a><!-- doxytag: member="channels.cpp::Config" ref="Config" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top">int <a class="el" href="socket_8cpp.html#boundPortCount">boundPortCount</a> </td> + <td class="md" nowrap valign="top"><a class="el" href="classServerConfig.html">ServerConfig</a>* <a class="el" href="users_8cpp.html#Config">Config</a> </td> </tr> </table> </td> @@ -247,7 +160,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00053">53</a> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top">std::stringstream <a class="el" href="users_8cpp.html#config_5Ff">config_f</a> </td> + <td class="md" nowrap valign="top">std::stringstream <a class="el" href="channels_8cpp.html#config_5Ff">config_f</a> </td> </tr> </table> </td> @@ -261,9 +174,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00053">53</a> <td> <p> - -<p> -Referenced by <a class="el" href="users_8cpp-source.html#l00151">userrec::HasPermission()</a>. </td> + </td> </tr> </table> <a class="anchor" name="custom_5Fmode_5Fparams"></a><!-- doxytag: member="channels.cpp::custom_mode_params" ref="custom_5Fmode_5Fparams" args="" --><p> @@ -288,101 +199,9 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00151">userrec::HasPer <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00099">99</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. -<p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00174">chanrec::GetModeParameter()</a>, and <a class="el" href="channels_8cpp-source.html#l00138">chanrec::SetCustomModeParam()</a>. </td> - </tr> -</table> -<a class="anchor" name="debugging"></a><!-- doxytag: member="channels.cpp::debugging" ref="debugging" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#debugging">debugging</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="DieDelay"></a><!-- doxytag: member="channels.cpp::DieDelay" ref="DieDelay" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#DieDelay">DieDelay</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - +Definition at line <a class="el" href="channels_8cpp-source.html#l00071">71</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. <p> - </td> - </tr> -</table> -<a class="anchor" name="diepass_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::diepass" ref="diepass_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#diepass_5BMAXBUF_5D">diepass</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="DieValue_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::DieValue" ref="DieValue_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#DieValue_5BMAXBUF_5D">DieValue</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00146">chanrec::GetModeParameter()</a>, and <a class="el" href="channels_8cpp-source.html#l00110">chanrec::SetCustomModeParam()</a>. </td> </tr> </table> <a class="anchor" name="factory"></a><!-- doxytag: member="channels.cpp::factory" ref="factory" args="" --><p> @@ -408,102 +227,6 @@ Referenced by <a class="el" href="channels_8cpp-source.html#l00174">chanrec::Get </td> </tr> </table> -<a class="anchor" name="list_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::list" ref="list_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#list_5BMAXBUF_5D">list</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - -<p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00445">Server::GetUsers()</a>. </td> - </tr> -</table> -<a class="anchor" name="log_5Ffile"></a><!-- doxytag: member="channels.cpp::log_file" ref="log_5Ffile" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">FILE* <a class="el" href="socket_8cpp.html#log_5Ffile">log_file</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="LogLevel"></a><!-- doxytag: member="channels.cpp::LogLevel" ref="LogLevel" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#LogLevel">LogLevel</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="MaxWhoResults"></a><!-- doxytag: member="channels.cpp::MaxWhoResults" ref="MaxWhoResults" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#MaxWhoResults">MaxWhoResults</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - -<p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00081">81</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> - </tr> -</table> <a class="anchor" name="MODCOUNT"></a><!-- doxytag: member="channels.cpp::MODCOUNT" ref="MODCOUNT" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -526,9 +249,9 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00081">81</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l01005">1005</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00933">933</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00795">Server::FindModule()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00722">Server::FindModule()</a>. </td> </tr> </table> <a class="anchor" name="module_5Fnames"></a><!-- doxytag: member="channels.cpp::module_names" ref="module_5Fnames" args="" --><p> @@ -537,7 +260,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00795">Server::FindM <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top">std::vector<<a class="el" href="namespaceirc.html#string">std::string</a>> <a class="el" href="modules_8cpp.html#module_5Fnames">module_names</a> </td> + <td class="md" nowrap valign="top">std::vector<<a class="el" href="namespaceirc.html#string">std::string</a>> <a class="el" href="channels_8cpp.html#module_5Fnames">module_names</a> </td> </tr> </table> </td> @@ -551,9 +274,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00795">Server::FindM <td> <p> - -<p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00795">Server::FindModule()</a>. </td> + </td> </tr> </table> <a class="anchor" name="modules"></a><!-- doxytag: member="channels.cpp::modules" ref="modules" args="" --><p> @@ -578,262 +299,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00795">Server::FindM <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00795">Server::FindModule()</a>. </td> - </tr> -</table> -<a class="anchor" name="motd_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::motd" ref="motd_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#motd_5BMAXBUF_5D">motd</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="nb_5Fstart"></a><!-- doxytag: member="channels.cpp::nb_start" ref="nb_5Fstart" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">time_t <a class="el" href="modules_8cpp.html#nb_5Fstart">nb_start</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="NetBufferSize"></a><!-- doxytag: member="channels.cpp::NetBufferSize" ref="NetBufferSize" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#NetBufferSize">NetBufferSize</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="Network_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::Network" ref="Network_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#Network_5BMAXBUF_5D">Network</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="portCount"></a><!-- doxytag: member="channels.cpp::portCount" ref="portCount" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#portCount">portCount</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="ports_5BMAXSOCKS_5D"></a><!-- doxytag: member="channels.cpp::ports" ref="ports_5BMAXSOCKS_5D" args="[MAXSOCKS]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#ports_5BMAXSOCKS_5D">ports</a>[MAXSOCKS] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="PrefixQuit_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::PrefixQuit" ref="PrefixQuit_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#PrefixQuit_5BMAXBUF_5D">PrefixQuit</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="restartpass_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::restartpass" ref="restartpass_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#restartpass_5BMAXBUF_5D">restartpass</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="rules_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::rules" ref="rules_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#rules_5BMAXBUF_5D">rules</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="ServerDesc_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::ServerDesc" ref="ServerDesc_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#ServerDesc_5BMAXBUF_5D">ServerDesc</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="ServerName_5BMAXBUF_5D"></a><!-- doxytag: member="channels.cpp::ServerName" ref="ServerName_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="users_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - -<p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00722">Server::FindModule()</a>. </td> </tr> </table> <a class="anchor" name="startup_5Ftime"></a><!-- doxytag: member="channels.cpp::startup_time" ref="startup_5Ftime" args="" --><p> @@ -881,7 +347,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userre <p> <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="WHOWAS_5FMAX"></a><!-- doxytag: member="channels.cpp::WHOWAS_MAX" ref="WHOWAS_5FMAX" args="" --><p> @@ -930,7 +396,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userre </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:20 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/channels_8cpp__incl.gif b/docs/module-doc/channels_8cpp__incl.gif Binary files differindex e66f6b07f..37e28ff42 100644 --- a/docs/module-doc/channels_8cpp__incl.gif +++ b/docs/module-doc/channels_8cpp__incl.gif diff --git a/docs/module-doc/channels_8cpp__incl.map b/docs/module-doc/channels_8cpp__incl.map index aa0d9b1cb..66f731cbf 100644 --- a/docs/module-doc/channels_8cpp__incl.map +++ b/docs/module-doc/channels_8cpp__incl.map @@ -1,7 +1,8 @@ base referer -rect $users_8h-source.html 324,1002 388,1028 -rect $ctables_8h-source.html 319,355 393,382 -rect $modules_8h-source.html 169,748 252,775 -rect $message_8h-source.html 168,1052 253,1079 -rect $mode_8h-source.html 177,1154 244,1180 -rect $xline_8h-source.html 180,850 241,876 +rect $inspircd__io_8h-source.html 163,513 259,540 +rect $users_8h-source.html 324,159 388,185 +rect $ctables_8h-source.html 319,513 393,540 +rect $modules_8h-source.html 169,463 252,489 +rect $message_8h-source.html 168,209 253,236 +rect $mode_8h-source.html 177,311 244,337 +rect $xline_8h-source.html 180,159 241,185 diff --git a/docs/module-doc/channels_8cpp__incl.md5 b/docs/module-doc/channels_8cpp__incl.md5 index 2d56c4be3..0f6924e90 100644 --- a/docs/module-doc/channels_8cpp__incl.md5 +++ b/docs/module-doc/channels_8cpp__incl.md5 @@ -1 +1 @@ -3026143cbbcaca6769945b2ffd463c42
\ No newline at end of file +a1941ab3cf03fba8030e6802191251a3
\ No newline at end of file diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index 6ab318693..2d66f3926 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -148,7 +148,7 @@ <a name="l00257"></a>00257 <a name="l00258"></a>00258 <span class="preprocessor">#endif</span> <a name="l00259"></a>00259 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 5346b84a1..5012b33ef 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -22,14 +22,16 @@ Include dependency graph for channels.h:<p><center><img src="channels_8h__incl.g <p> This graph shows which files directly or indirectly include this file:<p><center><img src="channels_8h__dep__incl.gif" border="0" usemap="#channels.hdep_map" alt=""></center> <map name="channels.hdep_map"> -<area href="users_8cpp-source.html" shape="rect" coords="415,58,495,84" alt=""> -<area href="users_8h-source.html" shape="rect" coords="144,210,208,236" alt=""> -<area href="commands_8h-source.html" shape="rect" coords="257,58,356,84" alt=""> -<area href="message_8h-source.html" shape="rect" coords="264,362,349,388" alt=""> -<area href="mode_8h-source.html" shape="rect" coords="273,159,340,186" alt=""> -<area href="xline_8h-source.html" shape="rect" coords="276,311,337,338" alt=""> -<area href="channels_8cpp-source.html" shape="rect" coords="405,286,504,312" alt=""> -<area href="modules_8cpp-source.html" shape="rect" coords="405,210,504,236" alt=""> +<area href="users_8cpp-source.html" shape="rect" coords="423,57,503,84" alt=""> +<area href="users_8h-source.html" shape="rect" coords="144,260,208,287" alt=""> +<area href="commands_8h-source.html" shape="rect" coords="261,57,360,84" alt=""> +<area href="message_8h-source.html" shape="rect" coords="268,361,353,388" alt=""> +<area href="mode_8h-source.html" shape="rect" coords="277,311,344,337" alt=""> +<area href="typedefs_8h-source.html" shape="rect" coords="268,108,353,135" alt=""> +<area href="xline_8h-source.html" shape="rect" coords="280,463,341,489" alt=""> +<area href="channels_8cpp-source.html" shape="rect" coords="413,387,512,413" alt=""> +<area href="modules_8cpp-source.html" shape="rect" coords="413,260,512,287" alt=""> +<area href="userprocess_8h-source.html" shape="rect" coords="259,260,363,287" alt=""> </map> <p> @@ -449,7 +451,7 @@ Holds a complete invite list. Definition at line <a class="el" href="channels_8h-source.html#l00095">95</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:20 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/channels_8h__dep__incl.gif b/docs/module-doc/channels_8h__dep__incl.gif Binary files differindex 201a0931d..c40f195d0 100644 --- a/docs/module-doc/channels_8h__dep__incl.gif +++ b/docs/module-doc/channels_8h__dep__incl.gif diff --git a/docs/module-doc/channels_8h__dep__incl.map b/docs/module-doc/channels_8h__dep__incl.map index cff1e4e14..639a4ae08 100644 --- a/docs/module-doc/channels_8h__dep__incl.map +++ b/docs/module-doc/channels_8h__dep__incl.map @@ -1,9 +1,11 @@ base referer -rect $users_8cpp-source.html 415,58 495,84 -rect $users_8h-source.html 144,210 208,236 -rect $commands_8h-source.html 257,58 356,84 -rect $message_8h-source.html 264,362 349,388 -rect $mode_8h-source.html 273,159 340,186 -rect $xline_8h-source.html 276,311 337,338 -rect $channels_8cpp-source.html 405,286 504,312 -rect $modules_8cpp-source.html 405,210 504,236 +rect $users_8cpp-source.html 423,57 503,84 +rect $users_8h-source.html 144,260 208,287 +rect $commands_8h-source.html 261,57 360,84 +rect $message_8h-source.html 268,361 353,388 +rect $mode_8h-source.html 277,311 344,337 +rect $typedefs_8h-source.html 268,108 353,135 +rect $xline_8h-source.html 280,463 341,489 +rect $channels_8cpp-source.html 413,387 512,413 +rect $modules_8cpp-source.html 413,260 512,287 +rect $userprocess_8h-source.html 259,260 363,287 diff --git a/docs/module-doc/channels_8h__dep__incl.md5 b/docs/module-doc/channels_8h__dep__incl.md5 index deb32325f..344d252bc 100644 --- a/docs/module-doc/channels_8h__dep__incl.md5 +++ b/docs/module-doc/channels_8h__dep__incl.md5 @@ -1 +1 @@ -dae3fe0b8a33c3f04852556c65af182e
\ No newline at end of file +e01fe683fcd4d4c38b8d4f6b57a6a4ae
\ No newline at end of file diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 8e48007bf..76da48ea6 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classAdmin.html#Name">Name</a></td><td><a class="el" href="classAdmin.html">Admin</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classAdmin.html#Nick">Nick</a></td><td><a class="el" href="classAdmin.html">Admin</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 092e55cb3..b6052bb4f 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -81,7 +81,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00125">125</a> of <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00244">244</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00244"></a>00244 : <a class="code" href="classAdmin.html#Name">Name</a>(name), <a class="code" href="classAdmin.html#Email">Email</a>(email), <a class="code" href="classAdmin.html#Nick">Nick</a>(nick) { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00171">171</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00171"></a>00171 : <a class="code" href="classAdmin.html#Name">Name</a>(name), <a class="code" href="classAdmin.html#Email">Email</a>(email), <a class="code" href="classAdmin.html#Nick">Nick</a>(nick) { }; </pre></div> <p> </td> @@ -165,7 +165,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00128">128</a> of </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 33fcb8de7..f36451712 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#set_5Ftime">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#_7EHostItem_28_29">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 15c2e1db7..e716b98cd 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -30,7 +30,7 @@ A subclass of <a class="el" href="classHostItem.html">HostItem</a> designed to h <p> Definition at line <a class="el" href="channels_8h-source.html#l00052">52</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classBoolSet-members.html b/docs/module-doc/classBoolSet-members.html index c6c3f23c0..fa5588cd5 100644 --- a/docs/module-doc/classBoolSet-members.html +++ b/docs/module-doc/classBoolSet-members.html @@ -17,7 +17,7 @@ <tr class="memlist"><td><a class="el" href="classBoolSet.html#operator_7C_28BoolSet_20other_29">operator|</a>(BoolSet other)</td><td><a class="el" href="classBoolSet.html">BoolSet</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classBoolSet.html#Set_28int_20number_29">Set</a>(int number)</td><td><a class="el" href="classBoolSet.html">BoolSet</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classBoolSet.html#Unset_28int_20number_29">Unset</a>(int number)</td><td><a class="el" href="classBoolSet.html">BoolSet</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classBoolSet.html b/docs/module-doc/classBoolSet.html index c18944650..8b69968c0 100644 --- a/docs/module-doc/classBoolSet.html +++ b/docs/module-doc/classBoolSet.html @@ -405,7 +405,7 @@ Definition at line <a class="el" href="base_8h-source.html#l00106">106</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="base_8h-source.html">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index 852b4f53e..c38b6e130 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -24,7 +24,7 @@ <tr class="memlist"><td><a class="el" href="classConfigReader.html#Verify_28_29">Verify</a>()</td><td><a class="el" href="classConfigReader.html">ConfigReader</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classConfigReader.html#_7EConfigReader_28_29">~ConfigReader</a>()</td><td><a class="el" href="classConfigReader.html">ConfigReader</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 5d160fbd8..f5da7b3a4 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -73,7 +73,7 @@ It may either be instantiated with one parameter or none. Constructing the class <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01510">1510</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l01525">1525</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="ConfigReader_28_29"></a><!-- doxytag: member="ConfigReader::ConfigReader" ref="ConfigReader_28_29" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -102,16 +102,16 @@ Default constructor. <p> This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00807">807</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00734">734</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01518">cache</a>, <a class="el" href="modules_8h-source.html#l01501">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01523">error</a>, <a class="el" href="modules_8h-source.html#l01519">errorlog</a>, <a class="el" href="modules_8cpp.html#include_5Fstack">include_stack</a>, and <a class="el" href="modules_8h-source.html#l01522">readerror</a>.<div class="fragment"><pre class="fragment"><a name="l00808"></a>00808 { -<a name="l00809"></a>00809 <a class="code" href="modules_8cpp.html#include_5Fstack">include_stack</a>.clear(); -<a name="l00810"></a>00810 this-><a class="code" href="classConfigReader.html#cache">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -<a name="l00811"></a>00811 this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -<a name="l00812"></a>00812 this-><a class="code" href="classConfigReader.html#readerror">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -<a name="l00813"></a>00813 <span class="keywordflow">if</span> (!this->readerror) -<a name="l00814"></a>00814 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">CONF_FILE_NOT_FOUND</a>; -<a name="l00815"></a>00815 } +References <a class="el" href="modules_8h-source.html#l01533">cache</a>, <a class="el" href="classServerConfig.html#ClearStack_28_29">ServerConfig::ClearStack()</a>, <a class="el" href="modules_8h-source.html#l01516">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01538">error</a>, <a class="el" href="modules_8h-source.html#l01534">errorlog</a>, <a class="el" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">ServerConfig::LoadConf()</a>, and <a class="el" href="modules_8h-source.html#l01537">readerror</a>.<div class="fragment"><pre class="fragment"><a name="l00735"></a>00735 { +<a name="l00736"></a>00736 <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#ClearStack_28_29">ClearStack</a>(); +<a name="l00737"></a>00737 this-><a class="code" href="classConfigReader.html#cache">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +<a name="l00738"></a>00738 this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +<a name="l00739"></a>00739 this-><a class="code" href="classConfigReader.html#readerror">readerror</a> = <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">LoadConf</a>(CONFIG_FILE,this->cache,this->errorlog); +<a name="l00740"></a>00740 <span class="keywordflow">if</span> (!this->readerror) +<a name="l00741"></a>00741 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">CONF_FILE_NOT_FOUND</a>; +<a name="l00742"></a>00742 } </pre></div> <p> </td> @@ -146,15 +146,16 @@ Overloaded constructor. <p> This constructor initialises the ConfigReader class to read a user-specified config file <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00827">827</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00754">754</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01518">cache</a>, <a class="el" href="modules_8h-source.html#l01501">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01523">error</a>, <a class="el" href="modules_8h-source.html#l01519">errorlog</a>, and <a class="el" href="modules_8h-source.html#l01522">readerror</a>.<div class="fragment"><pre class="fragment"><a name="l00828"></a>00828 { -<a name="l00829"></a>00829 this-><a class="code" href="classConfigReader.html#cache">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -<a name="l00830"></a>00830 this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -<a name="l00831"></a>00831 this-><a class="code" href="classConfigReader.html#readerror">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#cache">cache</a>,this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a>); -<a name="l00832"></a>00832 <span class="keywordflow">if</span> (!this->readerror) -<a name="l00833"></a>00833 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">CONF_FILE_NOT_FOUND</a>; -<a name="l00834"></a>00834 }; +References <a class="el" href="modules_8h-source.html#l01533">cache</a>, <a class="el" href="classServerConfig.html#ClearStack_28_29">ServerConfig::ClearStack()</a>, <a class="el" href="modules_8h-source.html#l01516">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01538">error</a>, <a class="el" href="modules_8h-source.html#l01534">errorlog</a>, <a class="el" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">ServerConfig::LoadConf()</a>, and <a class="el" href="modules_8h-source.html#l01537">readerror</a>.<div class="fragment"><pre class="fragment"><a name="l00755"></a>00755 { +<a name="l00756"></a>00756 <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#ClearStack_28_29">ClearStack</a>(); +<a name="l00757"></a>00757 this-><a class="code" href="classConfigReader.html#cache">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +<a name="l00758"></a>00758 this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +<a name="l00759"></a>00759 this-><a class="code" href="classConfigReader.html#readerror">readerror</a> = <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">LoadConf</a>(filename.c_str(),this-><a class="code" href="classConfigReader.html#cache">cache</a>,this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a>); +<a name="l00760"></a>00760 <span class="keywordflow">if</span> (!this->readerror) +<a name="l00761"></a>00761 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">CONF_FILE_NOT_FOUND</a>; +<a name="l00762"></a>00762 }; </pre></div> <p> </td> @@ -188,14 +189,14 @@ Default destructor. <p> This method destroys the ConfigReader class. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00818">818</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00745">745</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01518">cache</a>, and <a class="el" href="modules_8h-source.html#l01519">errorlog</a>.<div class="fragment"><pre class="fragment"><a name="l00819"></a>00819 { -<a name="l00820"></a>00820 <span class="keywordflow">if</span> (this->cache) -<a name="l00821"></a>00821 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#cache">cache</a>; -<a name="l00822"></a>00822 <span class="keywordflow">if</span> (this->errorlog) -<a name="l00823"></a>00823 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a>; -<a name="l00824"></a>00824 } +References <a class="el" href="modules_8h-source.html#l01533">cache</a>, and <a class="el" href="modules_8h-source.html#l01534">errorlog</a>.<div class="fragment"><pre class="fragment"><a name="l00746"></a>00746 { +<a name="l00747"></a>00747 <span class="keywordflow">if</span> (this->cache) +<a name="l00748"></a>00748 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#cache">cache</a>; +<a name="l00749"></a>00749 <span class="keywordflow">if</span> (this->errorlog) +<a name="l00750"></a>00750 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a>; +<a name="l00751"></a>00751 } </pre></div> <p> </td> @@ -240,38 +241,38 @@ Dumps the list of errors in a config file to an output location. <p> If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00905">905</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l01519">errorlog</a>, <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00124">userrec::nick</a>.<div class="fragment"><pre class="fragment"><a name="l00906"></a>00906 { -<a name="l00907"></a>00907 <span class="keywordflow">if</span> (bail) -<a name="l00908"></a>00908 { -<a name="l00909"></a>00909 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->str().c_str()); -<a name="l00910"></a>00910 exit(0); -<a name="l00911"></a>00911 } -<a name="l00912"></a>00912 <span class="keywordflow">else</span> -<a name="l00913"></a>00913 { -<a name="l00914"></a>00914 <span class="keywordtype">char</span> dataline[1024]; -<a name="l00915"></a>00915 <span class="keywordflow">if</span> (user) -<a name="l00916"></a>00916 { -<a name="l00917"></a>00917 WriteServ(user-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); -<a name="l00918"></a>00918 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->eof()) -<a name="l00919"></a>00919 { -<a name="l00920"></a>00920 <a class="code" href="classConfigReader.html#errorlog">errorlog</a>->getline(dataline,1024); -<a name="l00921"></a>00921 WriteServ(user-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,dataline); -<a name="l00922"></a>00922 } -<a name="l00923"></a>00923 } -<a name="l00924"></a>00924 <span class="keywordflow">else</span> -<a name="l00925"></a>00925 { -<a name="l00926"></a>00926 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); -<a name="l00927"></a>00927 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->eof()) -<a name="l00928"></a>00928 { -<a name="l00929"></a>00929 <a class="code" href="classConfigReader.html#errorlog">errorlog</a>->getline(dataline,1024); -<a name="l00930"></a>00930 WriteOpers(dataline); -<a name="l00931"></a>00931 } -<a name="l00932"></a>00932 } -<a name="l00933"></a>00933 <span class="keywordflow">return</span>; -<a name="l00934"></a>00934 } -<a name="l00935"></a>00935 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00833">833</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l01534">errorlog</a>, <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00124">userrec::nick</a>.<div class="fragment"><pre class="fragment"><a name="l00834"></a>00834 { +<a name="l00835"></a>00835 <span class="keywordflow">if</span> (bail) +<a name="l00836"></a>00836 { +<a name="l00837"></a>00837 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->str().c_str()); +<a name="l00838"></a>00838 exit(0); +<a name="l00839"></a>00839 } +<a name="l00840"></a>00840 <span class="keywordflow">else</span> +<a name="l00841"></a>00841 { +<a name="l00842"></a>00842 <span class="keywordtype">char</span> dataline[1024]; +<a name="l00843"></a>00843 <span class="keywordflow">if</span> (user) +<a name="l00844"></a>00844 { +<a name="l00845"></a>00845 WriteServ(user-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); +<a name="l00846"></a>00846 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->eof()) +<a name="l00847"></a>00847 { +<a name="l00848"></a>00848 <a class="code" href="classConfigReader.html#errorlog">errorlog</a>->getline(dataline,1024); +<a name="l00849"></a>00849 WriteServ(user-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,dataline); +<a name="l00850"></a>00850 } +<a name="l00851"></a>00851 } +<a name="l00852"></a>00852 <span class="keywordflow">else</span> +<a name="l00853"></a>00853 { +<a name="l00854"></a>00854 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); +<a name="l00855"></a>00855 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->eof()) +<a name="l00856"></a>00856 { +<a name="l00857"></a>00857 <a class="code" href="classConfigReader.html#errorlog">errorlog</a>->getline(dataline,1024); +<a name="l00858"></a>00858 WriteOpers(dataline); +<a name="l00859"></a>00859 } +<a name="l00860"></a>00860 } +<a name="l00861"></a>00861 <span class="keywordflow">return</span>; +<a name="l00862"></a>00862 } +<a name="l00863"></a>00863 } </pre></div> <p> </td> @@ -306,11 +307,11 @@ Counts the number of times a given tag appears in the config file. <p> This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of <a class="el" href="classConfigReader.html#ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ConfigReader::ReadValue</a> to loop through all copies of a multiple instance tag. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00938">938</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00866">866</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01518">cache</a>.<div class="fragment"><pre class="fragment"><a name="l00939"></a>00939 { -<a name="l00940"></a>00940 <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#cache">cache</a>,tag.c_str()); -<a name="l00941"></a>00941 } +References <a class="el" href="modules_8h-source.html#l01533">cache</a>, and <a class="el" href="classServerConfig.html#EnumConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_29">ServerConfig::EnumConf()</a>.<div class="fragment"><pre class="fragment"><a name="l00867"></a>00867 { +<a name="l00868"></a>00868 <span class="keywordflow">return</span> <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#EnumConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_29">EnumConf</a>(<a class="code" href="classConfigReader.html#cache">cache</a>,tag.c_str()); +<a name="l00869"></a>00869 } </pre></div> <p> </td> @@ -354,11 +355,11 @@ Returns the number of items within a tag. <p> For example if the tag was <test tag="blah" data="foo"> then this function would return 2. Spaces and newlines both qualify as valid seperators between values. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00943">943</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00871">871</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01518">cache</a>.<div class="fragment"><pre class="fragment"><a name="l00944"></a>00944 { -<a name="l00945"></a>00945 <span class="keywordflow">return</span> EnumValues(<a class="code" href="classConfigReader.html#cache">cache</a>, tag.c_str(), index); -<a name="l00946"></a>00946 } +References <a class="el" href="modules_8h-source.html#l01533">cache</a>, and <a class="el" href="classServerConfig.html#EnumValues_28std_3A_3Astringstream_20_2Aconfig_2C_20const_20char_20_2Atag_2C_20int_20index_29">ServerConfig::EnumValues()</a>.<div class="fragment"><pre class="fragment"><a name="l00872"></a>00872 { +<a name="l00873"></a>00873 <span class="keywordflow">return</span> <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#EnumValues_28std_3A_3Astringstream_20_2Aconfig_2C_20const_20char_20_2Atag_2C_20int_20index_29">EnumValues</a>(<a class="code" href="classConfigReader.html#cache">cache</a>, tag.c_str(), index); +<a name="l00874"></a>00874 } </pre></div> <p> </td> @@ -392,13 +393,13 @@ Returns the last error to occur. <p> Valid errors can be found by looking in <a class="el" href="modules_8h.html">modules.h</a>. Any nonzero value indicates an error condition. A call to <a class="el" href="classConfigReader.html#GetError_28_29">GetError()</a> resets the error flag back to 0. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00898">898</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00826">826</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01523">error</a>.<div class="fragment"><pre class="fragment"><a name="l00899"></a>00899 { -<a name="l00900"></a>00900 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#error">error</a>; -<a name="l00901"></a>00901 this-><a class="code" href="classConfigReader.html#error">error</a> = 0; -<a name="l00902"></a>00902 <span class="keywordflow">return</span> olderr; -<a name="l00903"></a>00903 } +References <a class="el" href="modules_8h-source.html#l01538">error</a>.<div class="fragment"><pre class="fragment"><a name="l00827"></a>00827 { +<a name="l00828"></a>00828 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#error">error</a>; +<a name="l00829"></a>00829 this-><a class="code" href="classConfigReader.html#error">error</a> = 0; +<a name="l00830"></a>00830 <span class="keywordflow">return</span> olderr; +<a name="l00831"></a>00831 } </pre></div> <p> </td> @@ -448,23 +449,23 @@ Retrieves a boolean value from the config file. <p> This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values "1", "yes" and "true" in the config file count as true to ReadFlag, and any other value counts as false. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00852">852</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l01518">cache</a>, <a class="el" href="modules_8h-source.html#l01500">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l01523">error</a>.<div class="fragment"><pre class="fragment"><a name="l00853"></a>00853 { -<a name="l00854"></a>00854 <span class="keywordtype">char</span> val[MAXBUF]; -<a name="l00855"></a>00855 <span class="keywordtype">char</span> t[MAXBUF]; -<a name="l00856"></a>00856 <span class="keywordtype">char</span> n[MAXBUF]; -<a name="l00857"></a>00857 strlcpy(t,tag.c_str(),MAXBUF); -<a name="l00858"></a>00858 strlcpy(n,name.c_str(),MAXBUF); -<a name="l00859"></a>00859 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); -<a name="l00860"></a>00860 <span class="keywordflow">if</span> (!res) -<a name="l00861"></a>00861 { -<a name="l00862"></a>00862 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; -<a name="l00863"></a>00863 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00864"></a>00864 } -<a name="l00865"></a>00865 <a class="code" href="namespaceirc.html#string">std::string</a> s = val; -<a name="l00866"></a>00866 <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>)); -<a name="l00867"></a>00867 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00780">780</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l01533">cache</a>, <a class="el" href="modules_8h-source.html#l01515">CONF_VALUE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01538">error</a>, and <a class="el" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ServerConfig::ReadConf()</a>.<div class="fragment"><pre class="fragment"><a name="l00781"></a>00781 { +<a name="l00782"></a>00782 <span class="keywordtype">char</span> val[MAXBUF]; +<a name="l00783"></a>00783 <span class="keywordtype">char</span> t[MAXBUF]; +<a name="l00784"></a>00784 <span class="keywordtype">char</span> n[MAXBUF]; +<a name="l00785"></a>00785 strlcpy(t,tag.c_str(),MAXBUF); +<a name="l00786"></a>00786 strlcpy(n,name.c_str(),MAXBUF); +<a name="l00787"></a>00787 <span class="keywordtype">int</span> res = <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ReadConf</a>(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); +<a name="l00788"></a>00788 <span class="keywordflow">if</span> (!res) +<a name="l00789"></a>00789 { +<a name="l00790"></a>00790 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; +<a name="l00791"></a>00791 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00792"></a>00792 } +<a name="l00793"></a>00793 <a class="code" href="namespaceirc.html#string">std::string</a> s = val; +<a name="l00794"></a>00794 <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>)); +<a name="l00795"></a>00795 } </pre></div> <p> </td> @@ -520,35 +521,35 @@ Retrieves an integer value from the config file. <p> This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to <a class="el" href="classConfigReader.html#GetError_28_29">GetError()</a> will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and <a class="el" href="classConfigReader.html#GetError_28_29">GetError()</a> will return CONF_NOT_UNSIGNED <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00869">869</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l01518">cache</a>, <a class="el" href="modules_8h-source.html#l01498">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l01499">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l01500">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l01523">error</a>.<div class="fragment"><pre class="fragment"><a name="l00870"></a>00870 { -<a name="l00871"></a>00871 <span class="keywordtype">char</span> val[MAXBUF]; -<a name="l00872"></a>00872 <span class="keywordtype">char</span> t[MAXBUF]; -<a name="l00873"></a>00873 <span class="keywordtype">char</span> n[MAXBUF]; -<a name="l00874"></a>00874 strlcpy(t,tag.c_str(),MAXBUF); -<a name="l00875"></a>00875 strlcpy(n,name.c_str(),MAXBUF); -<a name="l00876"></a>00876 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); -<a name="l00877"></a>00877 <span class="keywordflow">if</span> (!res) -<a name="l00878"></a>00878 { -<a name="l00879"></a>00879 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; -<a name="l00880"></a>00880 <span class="keywordflow">return</span> 0; -<a name="l00881"></a>00881 } -<a name="l00882"></a>00882 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(val); i++) -<a name="l00883"></a>00883 { -<a name="l00884"></a>00884 <span class="keywordflow">if</span> (!isdigit(val[i])) -<a name="l00885"></a>00885 { -<a name="l00886"></a>00886 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FNOT_5FA_5FNUMBER">CONF_NOT_A_NUMBER</a>; -<a name="l00887"></a>00887 <span class="keywordflow">return</span> 0; -<a name="l00888"></a>00888 } -<a name="l00889"></a>00889 } -<a name="l00890"></a>00890 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) -<a name="l00891"></a>00891 { -<a name="l00892"></a>00892 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FNOT_5FUNSIGNED">CONF_NOT_UNSIGNED</a>; -<a name="l00893"></a>00893 <span class="keywordflow">return</span> 0; -<a name="l00894"></a>00894 } -<a name="l00895"></a>00895 <span class="keywordflow">return</span> atoi(val); -<a name="l00896"></a>00896 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00797">797</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l01533">cache</a>, <a class="el" href="modules_8h-source.html#l01513">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l01514">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l01515">CONF_VALUE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01538">error</a>, and <a class="el" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ServerConfig::ReadConf()</a>.<div class="fragment"><pre class="fragment"><a name="l00798"></a>00798 { +<a name="l00799"></a>00799 <span class="keywordtype">char</span> val[MAXBUF]; +<a name="l00800"></a>00800 <span class="keywordtype">char</span> t[MAXBUF]; +<a name="l00801"></a>00801 <span class="keywordtype">char</span> n[MAXBUF]; +<a name="l00802"></a>00802 strlcpy(t,tag.c_str(),MAXBUF); +<a name="l00803"></a>00803 strlcpy(n,name.c_str(),MAXBUF); +<a name="l00804"></a>00804 <span class="keywordtype">int</span> res = <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ReadConf</a>(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); +<a name="l00805"></a>00805 <span class="keywordflow">if</span> (!res) +<a name="l00806"></a>00806 { +<a name="l00807"></a>00807 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; +<a name="l00808"></a>00808 <span class="keywordflow">return</span> 0; +<a name="l00809"></a>00809 } +<a name="l00810"></a>00810 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(val); i++) +<a name="l00811"></a>00811 { +<a name="l00812"></a>00812 <span class="keywordflow">if</span> (!isdigit(val[i])) +<a name="l00813"></a>00813 { +<a name="l00814"></a>00814 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FNOT_5FA_5FNUMBER">CONF_NOT_A_NUMBER</a>; +<a name="l00815"></a>00815 <span class="keywordflow">return</span> 0; +<a name="l00816"></a>00816 } +<a name="l00817"></a>00817 } +<a name="l00818"></a>00818 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) +<a name="l00819"></a>00819 { +<a name="l00820"></a>00820 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FNOT_5FUNSIGNED">CONF_NOT_UNSIGNED</a>; +<a name="l00821"></a>00821 <span class="keywordflow">return</span> 0; +<a name="l00822"></a>00822 } +<a name="l00823"></a>00823 <span class="keywordflow">return</span> atoi(val); +<a name="l00824"></a>00824 } </pre></div> <p> </td> @@ -598,22 +599,22 @@ Retrieves a value from the config file. <p> This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00836">836</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l01518">cache</a>, <a class="el" href="modules_8h-source.html#l01500">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l01523">error</a>.<div class="fragment"><pre class="fragment"><a name="l00837"></a>00837 { -<a name="l00838"></a>00838 <span class="keywordtype">char</span> val[MAXBUF]; -<a name="l00839"></a>00839 <span class="keywordtype">char</span> t[MAXBUF]; -<a name="l00840"></a>00840 <span class="keywordtype">char</span> n[MAXBUF]; -<a name="l00841"></a>00841 strlcpy(t,tag.c_str(),MAXBUF); -<a name="l00842"></a>00842 strlcpy(n,name.c_str(),MAXBUF); -<a name="l00843"></a>00843 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); -<a name="l00844"></a>00844 <span class="keywordflow">if</span> (!res) -<a name="l00845"></a>00845 { -<a name="l00846"></a>00846 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; -<a name="l00847"></a>00847 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -<a name="l00848"></a>00848 } -<a name="l00849"></a>00849 <span class="keywordflow">return</span> val; -<a name="l00850"></a>00850 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00764">764</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l01533">cache</a>, <a class="el" href="modules_8h-source.html#l01515">CONF_VALUE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01538">error</a>, and <a class="el" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ServerConfig::ReadConf()</a>.<div class="fragment"><pre class="fragment"><a name="l00765"></a>00765 { +<a name="l00766"></a>00766 <span class="keywordtype">char</span> val[MAXBUF]; +<a name="l00767"></a>00767 <span class="keywordtype">char</span> t[MAXBUF]; +<a name="l00768"></a>00768 <span class="keywordtype">char</span> n[MAXBUF]; +<a name="l00769"></a>00769 strlcpy(t,tag.c_str(),MAXBUF); +<a name="l00770"></a>00770 strlcpy(n,name.c_str(),MAXBUF); +<a name="l00771"></a>00771 <span class="keywordtype">int</span> res = <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ReadConf</a>(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); +<a name="l00772"></a>00772 <span class="keywordflow">if</span> (!res) +<a name="l00773"></a>00773 { +<a name="l00774"></a>00774 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; +<a name="l00775"></a>00775 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +<a name="l00776"></a>00776 } +<a name="l00777"></a>00777 <span class="keywordflow">return</span> val; +<a name="l00778"></a>00778 } </pre></div> <p> </td> @@ -647,11 +648,11 @@ Returns true if a config file is valid. <p> This method is partially implemented and will only return false if the config file does not exist or could not be opened. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00948">948</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00876">876</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01522">readerror</a>.<div class="fragment"><pre class="fragment"><a name="l00949"></a>00949 { -<a name="l00950"></a>00950 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#readerror">readerror</a>; -<a name="l00951"></a>00951 } +References <a class="el" href="modules_8h-source.html#l01537">readerror</a>.<div class="fragment"><pre class="fragment"><a name="l00877"></a>00877 { +<a name="l00878"></a>00878 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#readerror">readerror</a>; +<a name="l00879"></a>00879 } </pre></div> <p> </td> @@ -682,9 +683,9 @@ The contents of the configuration file This protected member should never be acc <p> It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it. <p> -Definition at line <a class="el" href="modules_8h-source.html#l01518">1518</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l01533">1533</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00807">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00938">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00943">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00852">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00869">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00836">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00818">~ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00734">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00866">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00871">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00780">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00797">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00764">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00745">~ConfigReader()</a>. </td> </tr> </table> <a class="anchor" name="error"></a><!-- doxytag: member="ConfigReader::error" ref="error" args="" --><p> @@ -709,9 +710,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00807">ConfigReader( <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01523">1523</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l01538">1538</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00807">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00898">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00852">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00869">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00836">ReadValue()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00734">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00826">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00780">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00797">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00764">ReadValue()</a>. </td> </tr> </table> <a class="anchor" name="errorlog"></a><!-- doxytag: member="ConfigReader::errorlog" ref="errorlog" args="" --><p> @@ -736,9 +737,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00807">ConfigReader( <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01519">1519</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l01534">1534</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00807">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00905">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00818">~ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00734">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00833">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00745">~ConfigReader()</a>. </td> </tr> </table> <a class="anchor" name="readerror"></a><!-- doxytag: member="ConfigReader::readerror" ref="readerror" args="" --><p> @@ -765,14 +766,14 @@ Used to store errors. <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01522">1522</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l01537">1537</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00807">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00948">Verify()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00734">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00876">Verify()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index b69e94ccf..c038bba90 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -19,7 +19,7 @@ <tr class="memlist"><td><a class="el" href="classConnectClass.html#threshold">threshold</a></td><td><a class="el" href="classConnectClass.html">ConnectClass</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classConnectClass.html#type">type</a></td><td><a class="el" href="classConnectClass.html">ConnectClass</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index c46f99b9b..9a47bc371 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -363,7 +363,7 @@ Definition at line <a class="el" href="users_8h-source.html#l00053">53</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="users_8h-source.html">users.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classDNS-members.html b/docs/module-doc/classDNS-members.html index 39fd6fb00..f9ad9c12f 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -36,7 +36,7 @@ <tr class="memlist"><td><a class="el" href="classDNS.html#SetNS_28std_3A_3Astring_20dnsserver_29">SetNS</a>(std::string dnsserver)</td><td><a class="el" href="classDNS.html">DNS</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classDNS.html#t">t</a></td><td><a class="el" href="classDNS.html">DNS</a></td><td><code> [private]</code></td></tr> <tr class="memlist"><td><a class="el" href="classDNS.html#_7EDNS_28_29">~DNS</a>()</td><td><a class="el" href="classDNS.html">DNS</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 9550cd392..34132e93b 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -961,7 +961,7 @@ Definition at line <a class="el" href="dns_8h-source.html#l00041">41</a> of file </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="dns_8h-source.html">dns.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index 7925db03c..53219dd60 100644 --- a/docs/module-doc/classELine-members.html +++ b/docs/module-doc/classELine-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#set_5Ftime">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#source_5B_32_35_36_5D">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index dab6d5b9a..9930e3e49 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -29,7 +29,7 @@ Inheritance diagram for ELine:<p><center><img src="classELine__inherit__graph.gi <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00082">82</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> +Definition at line <a class="el" href="xline_8h-source.html#l00087">87</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> <a class="anchor" name="hostmask_5B_32_30_30_5D"></a><!-- doxytag: member="ELine::hostmask" ref="hostmask_5B_32_30_30_5D" args="[200]" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -54,12 +54,12 @@ Hostmask (ident) to match against May contain wildcards. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00088">88</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00093">93</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classEvent-members.html b/docs/module-doc/classEvent-members.html index 880e3ed2b..58be64f3b 100644 --- a/docs/module-doc/classEvent-members.html +++ b/docs/module-doc/classEvent-members.html @@ -18,7 +18,7 @@ <tr class="memlist"><td><a class="el" href="classEvent.html#source">source</a></td><td><a class="el" href="classEvent.html">Event</a></td><td><code> [protected]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModuleMessage.html#_7EModuleMessage_28_29">~ModuleMessage</a>()</td><td><a class="el" href="classModuleMessage.html">ModuleMessage</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classEvent.html b/docs/module-doc/classEvent.html index e5014e7ff..92cb6514f 100644 --- a/docs/module-doc/classEvent.html +++ b/docs/module-doc/classEvent.html @@ -102,7 +102,7 @@ Create a new Event. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00275">275</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00275"></a>00275 : <a class="code" href="classEvent.html#data">data</a>(anydata), <a class="code" href="classEvent.html#source">source</a>(src), <a class="code" href="classEvent.html#id">id</a>(eventid) { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00202">202</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00202"></a>00202 : <a class="code" href="classEvent.html#data">data</a>(anydata), <a class="code" href="classEvent.html#source">source</a>(src), <a class="code" href="classEvent.html#id">id</a>(eventid) { }; </pre></div> <p> </td> @@ -137,11 +137,11 @@ Get the Event data. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00277">277</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00204">204</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00202">data</a>.<div class="fragment"><pre class="fragment"><a name="l00278"></a>00278 { -<a name="l00279"></a>00279 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#data">data</a>; -<a name="l00280"></a>00280 } +References <a class="el" href="modules_8h-source.html#l00202">data</a>.<div class="fragment"><pre class="fragment"><a name="l00205"></a>00205 { +<a name="l00206"></a>00206 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#data">data</a>; +<a name="l00207"></a>00207 } </pre></div> <p> </td> @@ -175,11 +175,11 @@ Get the event ID. <p> Use this to determine the event type for safe casting of the data <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00293">293</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00220">220</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00211">id</a>.<div class="fragment"><pre class="fragment"><a name="l00294"></a>00294 { -<a name="l00295"></a>00295 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#id">id</a>; -<a name="l00296"></a>00296 } +References <a class="el" href="modules_8h-source.html#l00211">id</a>.<div class="fragment"><pre class="fragment"><a name="l00221"></a>00221 { +<a name="l00222"></a>00222 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#id">id</a>; +<a name="l00223"></a>00223 } </pre></div> <p> </td> @@ -213,11 +213,11 @@ Get the event Source. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00282">282</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00209">209</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00206">source</a>.<div class="fragment"><pre class="fragment"><a name="l00283"></a>00283 { -<a name="l00284"></a>00284 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#source">source</a>; -<a name="l00285"></a>00285 } +References <a class="el" href="modules_8h-source.html#l00206">source</a>.<div class="fragment"><pre class="fragment"><a name="l00210"></a>00210 { +<a name="l00211"></a>00211 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#source">source</a>; +<a name="l00212"></a>00212 } </pre></div> <p> </td> @@ -253,12 +253,12 @@ The return result of an <a class="el" href="classEvent.html#Send_28_29">Event::S <p> Implements <a class="el" href="classModuleMessage.html#Send_28_29_3D_30">ModuleMessage</a>. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00287">287</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00214">214</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00081">FOREACH_MOD</a>.<div class="fragment"><pre class="fragment"><a name="l00288"></a>00288 { -<a name="l00289"></a>00289 <a class="code" href="modules_8h.html#FOREACH_5FMOD">FOREACH_MOD</a> OnEvent(<span class="keyword">this</span>); -<a name="l00290"></a>00290 <span class="keywordflow">return</span> NULL; -<a name="l00291"></a>00291 } +References <a class="el" href="modules_8h-source.html#l00081">FOREACH_MOD</a>.<div class="fragment"><pre class="fragment"><a name="l00215"></a>00215 { +<a name="l00216"></a>00216 <a class="code" href="modules_8h.html#FOREACH_5FMOD">FOREACH_MOD</a> OnEvent(<span class="keyword">this</span>); +<a name="l00217"></a>00217 <span class="keywordflow">return</span> NULL; +<a name="l00218"></a>00218 } </pre></div> <p> </td> @@ -291,7 +291,7 @@ This member holds a pointer to arbitary data set by the emitter of the message. <p> Definition at line <a class="el" href="modules_8h-source.html#l00202">202</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00277">GetData()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00204">GetData()</a>. </td> </tr> </table> <a class="anchor" name="id"></a><!-- doxytag: member="Event::id" ref="id" args="" --><p> @@ -320,7 +320,7 @@ This is arbitary text which should be used to distinguish one type of event from <p> Definition at line <a class="el" href="modules_8h-source.html#l00211">211</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00293">GetEventID()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00220">GetEventID()</a>. </td> </tr> </table> <a class="anchor" name="source"></a><!-- doxytag: member="Event::source" ref="source" args="" --><p> @@ -349,12 +349,12 @@ This is a pointer to the sender of the message, which can be used to directly tr <p> Definition at line <a class="el" href="modules_8h-source.html#l00206">206</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00282">GetSource()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00209">GetSource()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index 64fd60d88..82d6c61cb 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#set_5Ftime">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#_7EHostItem_28_29">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index c28538b16..ee474bfa8 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -30,7 +30,7 @@ A subclass of <a class="el" href="classHostItem.html">HostItem</a> designed to h <p> Definition at line <a class="el" href="channels_8h-source.html#l00060">60</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 1a651e6bd..91bc4f1bd 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classExtMode.html#params_5Fwhen_5Fon">params_when_on</a></td><td><a class="el" href="classExtMode.html">ExtMode</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classExtMode.html#type">type</a></td><td><a class="el" href="classExtMode.html">ExtMode</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index 25686faa7..9e99d9982 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -5,7 +5,12 @@ </head><body> <!-- Generated by Doxygen 1.4.4-20050815 --> <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> -<h1>ExtMode Class Reference</h1><!-- doxytag: class="ExtMode" --><!-- doxytag: inherits="classbase" -->Inheritance diagram for ExtMode:<p><center><img src="classExtMode__inherit__graph.gif" border="0" usemap="#ExtMode__inherit__map" alt="Inheritance graph"></center> +<h1>ExtMode Class Reference</h1><!-- doxytag: class="ExtMode" --><!-- doxytag: inherits="classbase" -->Holds an extended mode's details. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="modules_8h-source.html">modules.h</a>></code> +<p> +Inheritance diagram for ExtMode:<p><center><img src="classExtMode__inherit__graph.gif" border="0" usemap="#ExtMode__inherit__map" alt="Inheritance graph"></center> <map name="ExtMode__inherit__map"> <area href="classclassbase.html" shape="rect" coords="7,7,87,34" alt=""> </map> @@ -33,11 +38,13 @@ </table> <hr><a name="_details"></a><h2>Detailed Description</h2> - +Holds an extended mode's details. +<p> +Used internally by <a class="el" href="modules_8cpp.html">modules.cpp</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00133">133</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00236">236</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="ExtMode_28char_20mc_2C_20int_20ty_2C_20bool_20oper_2C_20int_20p_5Fon_2C_20int_20p_5Foff_29"></a><!-- doxytag: member="ExtMode::ExtMode" ref="ExtMode_28char_20mc_2C_20int_20ty_2C_20bool_20oper_2C_20int_20p_5Fon_2C_20int_20p_5Foff_29" args="(char mc, int ty, bool oper, int p_on, int p_off)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -92,7 +99,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00133">133</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00142">142</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00142"></a>00142 : <a class="code" href="classExtMode.html#modechar">modechar</a>(mc), <a class="code" href="classExtMode.html#type">type</a>(ty), <a class="code" href="classExtMode.html#needsoper">needsoper</a>(oper), <a class="code" href="classExtMode.html#params_5Fwhen_5Fon">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#params_5Fwhen_5Foff">params_when_off</a>(p_off) { }; +Definition at line <a class="el" href="modules_8h-source.html#l00245">245</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<div class="fragment"><pre class="fragment"><a name="l00245"></a>00245 : <a class="code" href="classExtMode.html#modechar">modechar</a>(mc), <a class="code" href="classExtMode.html#type">type</a>(ty), <a class="code" href="classExtMode.html#needsoper">needsoper</a>(oper), <a class="code" href="classExtMode.html#params_5Fwhen_5Fon">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#params_5Fwhen_5Foff">params_when_off</a>(p_off) { }; </pre></div> <p> </td> @@ -121,7 +128,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00142">142</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00141">141</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00244">244</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a class="anchor" name="modechar"></a><!-- doxytag: member="ExtMode::modechar" ref="modechar" args="" --><p> @@ -146,7 +153,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00141">141</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00136">136</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00239">239</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a class="anchor" name="needsoper"></a><!-- doxytag: member="ExtMode::needsoper" ref="needsoper" args="" --><p> @@ -171,7 +178,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00136">136</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00138">138</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00241">241</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a class="anchor" name="params_5Fwhen_5Foff"></a><!-- doxytag: member="ExtMode::params_when_off" ref="params_5Fwhen_5Foff" args="" --><p> @@ -196,7 +203,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00138">138</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00140">140</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00243">243</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a class="anchor" name="params_5Fwhen_5Fon"></a><!-- doxytag: member="ExtMode::params_when_on" ref="params_5Fwhen_5Fon" args="" --><p> @@ -221,7 +228,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00140">140</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00139">139</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00242">242</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a class="anchor" name="type"></a><!-- doxytag: member="ExtMode::type" ref="type" args="" --><p> @@ -246,12 +253,12 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00139">139</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00137">137</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00240">240</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> -<li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<li><a class="el" href="modules_8h-source.html">modules.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index babb2ec79..517c60378 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classExtensible.html#GetExtList_28std_3A_3Adeque_3C_20std_3A_3Astring_20_3E_20_26list_29">GetExtList</a>(std::deque< std::string > &list)</td><td><a class="el" href="classExtensible.html">Extensible</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classExtensible.html#Shrink_28std_3A_3Astring_20key_29">Shrink</a>(std::string key)</td><td><a class="el" href="classExtensible.html">Extensible</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index eb5aa264d..70253eef4 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -34,7 +34,7 @@ Inheritance diagram for Extensible:<p><center><img src="classExtensible__inherit <tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classExtensible.html#GetExt_28std_3A_3Astring_20key_29">GetExt</a> (<a class="el" href="namespaceirc.html#string">std::string</a> key)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get an extension item. <a href="#GetExt_28std_3A_3Astring_20key_29"></a><br></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classExtensible.html#GetExtList_28std_3A_3Adeque_3C_20std_3A_3Astring_20_3E_20_26list_29">GetExtList</a> (std::deque< <a class="el" href="namespaceirc.html#string">std::string</a> > &<a class="el" href="modules_8cpp.html#list_5BMAXBUF_5D">list</a>)</td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classExtensible.html#GetExtList_28std_3A_3Adeque_3C_20std_3A_3Astring_20_3E_20_26list_29">GetExtList</a> (std::deque< <a class="el" href="namespaceirc.html#string">std::string</a> > &list)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a list of all extension items names. <a href="#GetExtList_28std_3A_3Adeque_3C_20std_3A_3Astring_20_3E_20_26list_29"></a><br></td></tr> <tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr> @@ -236,7 +236,7 @@ Definition at line <a class="el" href="base_8h-source.html#l00055">55</a> of fil </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="base_8h-source.html">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index c8584fb7e..23fad510f 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -17,7 +17,7 @@ <tr class="memlist"><td><a class="el" href="classFileReader.html#LoadFile_28std_3A_3Astring_20filename_29">LoadFile</a>(std::string filename)</td><td><a class="el" href="classFileReader.html">FileReader</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classFileReader.html#_7EFileReader_28_29">~FileReader</a>()</td><td><a class="el" href="classFileReader.html">FileReader</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 093fa1d67..04c1c960b 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -53,7 +53,7 @@ This class contains methods for read-only manipulation of a text file in memory. <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01599">1599</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l01614">1614</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="FileReader_28_29"></a><!-- doxytag: member="FileReader::FileReader" ref="FileReader_28_29" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -82,8 +82,8 @@ Default constructor. <p> This method does not load any file into memory, you must use the LoadFile method after constructing the class this way. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00961">961</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00962"></a>00962 { -<a name="l00963"></a>00963 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00889">889</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00890"></a>00890 { +<a name="l00891"></a>00891 } </pre></div> <p> </td> @@ -118,13 +118,13 @@ Secondary constructor. <p> This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, <a class="el" href="classFileReader.html#FileSize_28_29">FileReader::FileSize</a> returns 0. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00954">954</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00882">882</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01601">fc</a>.<div class="fragment"><pre class="fragment"><a name="l00955"></a>00955 { -<a name="l00956"></a>00956 <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> c; -<a name="l00957"></a>00957 readfile(c,filename.c_str()); -<a name="l00958"></a>00958 this-><a class="code" href="classFileReader.html#fc">fc</a> = c; -<a name="l00959"></a>00959 } +References <a class="el" href="modules_8h-source.html#l01616">fc</a>.<div class="fragment"><pre class="fragment"><a name="l00883"></a>00883 { +<a name="l00884"></a>00884 <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> c; +<a name="l00885"></a>00885 readfile(c,filename.c_str()); +<a name="l00886"></a>00886 this-><a class="code" href="classFileReader.html#fc">fc</a> = c; +<a name="l00887"></a>00887 } </pre></div> <p> </td> @@ -158,8 +158,8 @@ Default destructor. <p> This deletes the memory allocated to the file. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00973">973</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00974"></a>00974 { -<a name="l00975"></a>00975 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00901">901</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00902"></a>00902 { +<a name="l00903"></a>00903 } </pre></div> <p> </td> @@ -194,18 +194,18 @@ Returns true if the file exists This function will return false if the file coul <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00977">977</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l01601">fc</a>.<div class="fragment"><pre class="fragment"><a name="l00978"></a>00978 { -<a name="l00979"></a>00979 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#fc">fc</a>.size() == 0) -<a name="l00980"></a>00980 { -<a name="l00981"></a>00981 <span class="keywordflow">return</span>(<span class="keyword">false</span>); -<a name="l00982"></a>00982 } -<a name="l00983"></a>00983 <span class="keywordflow">else</span> -<a name="l00984"></a>00984 { -<a name="l00985"></a>00985 <span class="keywordflow">return</span>(<span class="keyword">true</span>); -<a name="l00986"></a>00986 } -<a name="l00987"></a>00987 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00905">905</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l01616">fc</a>.<div class="fragment"><pre class="fragment"><a name="l00906"></a>00906 { +<a name="l00907"></a>00907 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#fc">fc</a>.size() == 0) +<a name="l00908"></a>00908 { +<a name="l00909"></a>00909 <span class="keywordflow">return</span>(<span class="keyword">false</span>); +<a name="l00910"></a>00910 } +<a name="l00911"></a>00911 <span class="keywordflow">else</span> +<a name="l00912"></a>00912 { +<a name="l00913"></a>00913 <span class="keywordflow">return</span>(<span class="keyword">true</span>); +<a name="l00914"></a>00914 } +<a name="l00915"></a>00915 } </pre></div> <p> </td> @@ -239,11 +239,11 @@ Returns the size of the file in lines. <p> This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00996">996</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00924">924</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01601">fc</a>.<div class="fragment"><pre class="fragment"><a name="l00997"></a>00997 { -<a name="l00998"></a>00998 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#fc">fc</a>.size(); -<a name="l00999"></a>00999 } +References <a class="el" href="modules_8h-source.html#l01616">fc</a>.<div class="fragment"><pre class="fragment"><a name="l00925"></a>00925 { +<a name="l00926"></a>00926 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#fc">fc</a>.size(); +<a name="l00927"></a>00927 } </pre></div> <p> </td> @@ -278,13 +278,13 @@ Retrieve one line from the file. <p> This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00989">989</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00917">917</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01601">fc</a>.<div class="fragment"><pre class="fragment"><a name="l00990"></a>00990 { -<a name="l00991"></a>00991 <span class="keywordflow">if</span> ((x<0) || ((<span class="keywordtype">unsigned</span>)x><a class="code" href="classFileReader.html#fc">fc</a>.size())) -<a name="l00992"></a>00992 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -<a name="l00993"></a>00993 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#fc">fc</a>[x]; -<a name="l00994"></a>00994 } +References <a class="el" href="modules_8h-source.html#l01616">fc</a>.<div class="fragment"><pre class="fragment"><a name="l00918"></a>00918 { +<a name="l00919"></a>00919 <span class="keywordflow">if</span> ((x<0) || ((<span class="keywordtype">unsigned</span>)x><a class="code" href="classFileReader.html#fc">fc</a>.size())) +<a name="l00920"></a>00920 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +<a name="l00921"></a>00921 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#fc">fc</a>[x]; +<a name="l00922"></a>00922 } </pre></div> <p> </td> @@ -319,13 +319,13 @@ Used to load a file. <p> This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, <a class="el" href="classFileReader.html#FileSize_28_29">FileReader::FileSize</a> returns 0. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00965">965</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00893">893</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01601">fc</a>.<div class="fragment"><pre class="fragment"><a name="l00966"></a>00966 { -<a name="l00967"></a>00967 <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> c; -<a name="l00968"></a>00968 readfile(c,filename.c_str()); -<a name="l00969"></a>00969 this-><a class="code" href="classFileReader.html#fc">fc</a> = c; -<a name="l00970"></a>00970 } +References <a class="el" href="modules_8h-source.html#l01616">fc</a>.<div class="fragment"><pre class="fragment"><a name="l00894"></a>00894 { +<a name="l00895"></a>00895 <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> c; +<a name="l00896"></a>00896 readfile(c,filename.c_str()); +<a name="l00897"></a>00897 this-><a class="code" href="classFileReader.html#fc">fc</a> = c; +<a name="l00898"></a>00898 } </pre></div> <p> </td> @@ -354,14 +354,14 @@ References <a class="el" href="modules_8h-source.html#l01601">fc</a>.<div class= <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01601">1601</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l01616">1616</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00977">Exists()</a>, <a class="el" href="modules_8cpp-source.html#l00954">FileReader()</a>, <a class="el" href="modules_8cpp-source.html#l00996">FileSize()</a>, <a class="el" href="modules_8cpp-source.html#l00989">GetLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00965">LoadFile()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00905">Exists()</a>, <a class="el" href="modules_8cpp-source.html#l00882">FileReader()</a>, <a class="el" href="modules_8cpp-source.html#l00924">FileSize()</a>, <a class="el" href="modules_8cpp-source.html#l00917">GetLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00893">LoadFile()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index 65e289d85..92111ef1a 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#set_5Ftime">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#source_5B_32_35_36_5D">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index f061b2c64..d566431e5 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -32,7 +32,7 @@ GLine class. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00073">73</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> +Definition at line <a class="el" href="xline_8h-source.html#l00078">78</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> <a class="anchor" name="hostmask_5B_32_30_30_5D"></a><!-- doxytag: member="GLine::hostmask" ref="hostmask_5B_32_30_30_5D" args="[200]" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -57,12 +57,12 @@ Hostmask (ident) to match against May contain wildcards. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00079">79</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00084">84</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index ae1636302..bb46359fe 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#set_5Ftime">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#_7EHostItem_28_29">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index df74fc2ac..519603b37 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -186,7 +186,7 @@ Definition at line <a class="el" href="channels_8h-source.html#l00039">39</a> of </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classInspSocket-members.html b/docs/module-doc/classInspSocket-members.html index af84f1490..ba8d98eaf 100644 --- a/docs/module-doc/classInspSocket-members.html +++ b/docs/module-doc/classInspSocket-members.html @@ -39,7 +39,7 @@ <tr class="memlist"><td><a class="el" href="classInspSocket.html#timeout_5Fend">timeout_end</a></td><td><a class="el" href="classInspSocket.html">InspSocket</a></td><td><code> [private]</code></td></tr> <tr class="memlist"><td><a class="el" href="classInspSocket.html#Write_28std_3A_3Astring_20data_29">Write</a>(std::string data)</td><td><a class="el" href="classInspSocket.html">InspSocket</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classInspSocket.html#_7EInspSocket_28_29">~InspSocket</a>()</td><td><a class="el" href="classInspSocket.html">InspSocket</a></td><td><code> [virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classInspSocket.html b/docs/module-doc/classInspSocket.html index e8b83e847..755cb1ca0 100644 --- a/docs/module-doc/classInspSocket.html +++ b/docs/module-doc/classInspSocket.html @@ -151,11 +151,11 @@ The default constructor does nothing and should not be used. <p> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00049">49</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00048">48</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -References <a class="el" href="socket_8h.html#InspSocketStateI_5FDISCONNECTED">I_DISCONNECTED</a>, and <a class="el" href="socket_8h-source.html#l00072">state</a>.<div class="fragment"><pre class="fragment"><a name="l00050"></a>00050 { -<a name="l00051"></a>00051 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FDISCONNECTED">I_DISCONNECTED</a>; -<a name="l00052"></a>00052 } +References <a class="el" href="socket_8h.html#InspSocketStateI_5FDISCONNECTED">I_DISCONNECTED</a>, and <a class="el" href="socket_8h-source.html#l00072">state</a>.<div class="fragment"><pre class="fragment"><a name="l00049"></a>00049 { +<a name="l00050"></a>00050 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FDISCONNECTED">I_DISCONNECTED</a>; +<a name="l00051"></a>00051 } </pre></div> <p> </td> @@ -199,13 +199,14 @@ This constructor is used to associate an existing connecting with an InspSocket <p> The given file descriptor must be valid, and when initialized, the InspSocket will be set with the given IP address and placed in CONNECTED state. <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00054">54</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00053">53</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -References <a class="el" href="socketengine_8cpp-source.html#l00065">SocketEngine::AddFd()</a>, <a class="el" href="socket_8h-source.html#l00054">fd</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>, <a class="el" href="socket_8h-source.html#l00113">IP</a>, <a class="el" href="socket_8h-source.html#l00072">state</a>, and <a class="el" href="socketengine_8h-source.html#l00044">X_ESTAB_MODULE</a>.<div class="fragment"><pre class="fragment"><a name="l00055"></a>00055 { -<a name="l00056"></a>00056 this-><a class="code" href="classInspSocket.html#fd">fd</a> = newfd; -<a name="l00057"></a>00057 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>; -<a name="l00058"></a>00058 this-><a class="code" href="classInspSocket.html#IP">IP</a> = ip; -<a name="l00059"></a>00059 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">true</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); +References <a class="el" href="socketengine_8cpp-source.html#l00065">SocketEngine::AddFd()</a>, <a class="el" href="socket_8h-source.html#l00054">fd</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>, <a class="el" href="socket_8h-source.html#l00113">IP</a>, <a class="el" href="socket_8h-source.html#l00072">state</a>, and <a class="el" href="socketengine_8h-source.html#l00044">X_ESTAB_MODULE</a>.<div class="fragment"><pre class="fragment"><a name="l00054"></a>00054 { +<a name="l00055"></a>00055 this-><a class="code" href="classInspSocket.html#fd">fd</a> = newfd; +<a name="l00056"></a>00056 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>; +<a name="l00057"></a>00057 this-><a class="code" href="classInspSocket.html#IP">IP</a> = ip; +<a name="l00058"></a>00058 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">true</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); +<a name="l00059"></a>00059 <a class="code" href="socket_8cpp.html#socket_5Fref_5B_36_35_35_33_35_5D">socket_ref</a>[this-><a class="code" href="classInspSocket.html#fd">fd</a>] = <span class="keyword">this</span>; <a name="l00060"></a>00060 } </pre></div> <p> @@ -272,81 +273,83 @@ This constructor is used to create a new socket, either listening for connection <p> Definition at line <a class="el" href="socket_8cpp-source.html#l00062">62</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -References <a class="el" href="socketengine_8cpp-source.html#l00065">SocketEngine::AddFd()</a>, <a class="el" href="socket_8h-source.html#l00078">addr</a>, <a class="el" href="socket_8h-source.html#l00084">addy</a>, <a class="el" href="socket_8cpp-source.html#l00139">Close()</a>, <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="socket_8h-source.html#l00054">fd</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>, <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FBIND">I_ERR_BIND</a>, <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FCONNECT">I_ERR_CONNECT</a>, <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FSOCKET">I_ERR_SOCKET</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FLISTENING">I_LISTENING</a>, <a class="el" href="socket_8h-source.html#l00113">IP</a>, <a class="el" href="socket_8cpp-source.html#l00262">OnError()</a>, <a class="el" href="socket_8h-source.html#l00072">state</a>, <a class="el" href="socket_8h-source.html#l00097">timeout</a>, <a class="el" href="socket_8h-source.html#l00091">timeout_end</a>, and <a class="el" href="socketengine_8h-source.html#l00044">X_ESTAB_MODULE</a>.<div class="fragment"><pre class="fragment"><a name="l00063"></a>00063 { +References <a class="el" href="socketengine_8cpp-source.html#l00065">SocketEngine::AddFd()</a>, <a class="el" href="socket_8h-source.html#l00078">addr</a>, <a class="el" href="socket_8h-source.html#l00084">addy</a>, <a class="el" href="inspircd__io_8h.html#BindSocket_28int_20sockfd_2C_20struct_20sockaddr_5Fin_20client_2C_20struct_20sockaddr_5Fin_20server_2C_20int_20port_2C_20char_20_2Aaddr_29">BindSocket()</a>, <a class="el" href="socket_8cpp-source.html#l00141">Close()</a>, <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, <a class="el" href="socket_8h-source.html#l00054">fd</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>, <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FBIND">I_ERR_BIND</a>, <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FCONNECT">I_ERR_CONNECT</a>, <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FSOCKET">I_ERR_SOCKET</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FLISTENING">I_LISTENING</a>, <a class="el" href="socket_8h-source.html#l00113">IP</a>, <a class="el" href="socket_8cpp-source.html#l00265">OnError()</a>, <a class="el" href="inspircd__io_8h.html#OpenTCPSocket_28void_29">OpenTCPSocket()</a>, <a class="el" href="socket_8h-source.html#l00072">state</a>, <a class="el" href="socket_8h-source.html#l00097">timeout</a>, <a class="el" href="socket_8h-source.html#l00091">timeout_end</a>, and <a class="el" href="socketengine_8h-source.html#l00044">X_ESTAB_MODULE</a>.<div class="fragment"><pre class="fragment"><a name="l00063"></a>00063 { <a name="l00064"></a>00064 <span class="keywordflow">if</span> (listening) { -<a name="l00065"></a>00065 <span class="keywordflow">if</span> ((this->fd = OpenTCPSocket()) == ERROR) +<a name="l00065"></a>00065 <span class="keywordflow">if</span> ((this->fd = <a class="code" href="inspircd__io_8h.html#OpenTCPSocket_28void_29">OpenTCPSocket</a>()) == ERROR) <a name="l00066"></a>00066 { <a name="l00067"></a>00067 this-><a class="code" href="classInspSocket.html#fd">fd</a> = -1; <a name="l00068"></a>00068 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; <a name="l00069"></a>00069 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FSOCKET">I_ERR_SOCKET</a>); -<a name="l00070"></a>00070 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"OpenTCPSocket() error"</span>); +<a name="l00070"></a>00070 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"OpenTCPSocket() error"</span>); <a name="l00071"></a>00071 <span class="keywordflow">return</span>; <a name="l00072"></a>00072 } <a name="l00073"></a>00073 <span class="keywordflow">else</span> <a name="l00074"></a>00074 { -<a name="l00075"></a>00075 <span class="keywordflow">if</span> (BindSocket(this->fd,this->client,this->server,<a class="code" href="classInspSocket.html#port">port</a>,(<span class="keywordtype">char</span>*)<a class="code" href="classInspSocket.html#host">host</a>.c_str()) == ERROR) +<a name="l00075"></a>00075 <span class="keywordflow">if</span> (<a class="code" href="inspircd__io_8h.html#BindSocket_28int_20sockfd_2C_20struct_20sockaddr_5Fin_20client_2C_20struct_20sockaddr_5Fin_20server_2C_20int_20port_2C_20char_20_2Aaddr_29">BindSocket</a>(this->fd,this->client,this->server,<a class="code" href="classInspSocket.html#port">port</a>,(<span class="keywordtype">char</span>*)<a class="code" href="classInspSocket.html#host">host</a>.c_str()) == ERROR) <a name="l00076"></a>00076 { <a name="l00077"></a>00077 this-><a class="code" href="classInspSocket.html#Close_28_29">Close</a>(); <a name="l00078"></a>00078 this-><a class="code" href="classInspSocket.html#fd">fd</a> = -1; <a name="l00079"></a>00079 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; <a name="l00080"></a>00080 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FBIND">I_ERR_BIND</a>); -<a name="l00081"></a>00081 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"BindSocket() error %s"</span>,strerror(errno)); +<a name="l00081"></a>00081 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"BindSocket() error %s"</span>,strerror(errno)); <a name="l00082"></a>00082 <span class="keywordflow">return</span>; <a name="l00083"></a>00083 } <a name="l00084"></a>00084 <span class="keywordflow">else</span> <a name="l00085"></a>00085 { <a name="l00086"></a>00086 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FLISTENING">I_LISTENING</a>; <a name="l00087"></a>00087 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">true</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); -<a name="l00088"></a>00088 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"New socket now in I_LISTENING state"</span>); -<a name="l00089"></a>00089 <span class="keywordflow">return</span>; -<a name="l00090"></a>00090 } -<a name="l00091"></a>00091 } -<a name="l00092"></a>00092 } <span class="keywordflow">else</span> { -<a name="l00093"></a>00093 <span class="keywordtype">char</span>* ip; -<a name="l00094"></a>00094 this-><a class="code" href="classInspSocket.html#host">host</a> = <a class="code" href="classInspSocket.html#host">host</a>; -<a name="l00095"></a>00095 hostent* hoste = gethostbyname(<a class="code" href="classInspSocket.html#host">host</a>.c_str()); -<a name="l00096"></a>00096 <span class="keywordflow">if</span> (!hoste) { -<a name="l00097"></a>00097 ip = (<span class="keywordtype">char</span>*)<a class="code" href="classInspSocket.html#host">host</a>.c_str(); -<a name="l00098"></a>00098 } <span class="keywordflow">else</span> { -<a name="l00099"></a>00099 <span class="keyword">struct </span>in_addr* ia = (in_addr*)hoste->h_addr; -<a name="l00100"></a>00100 ip = inet_ntoa(*ia); -<a name="l00101"></a>00101 } -<a name="l00102"></a>00102 -<a name="l00103"></a>00103 this-><a class="code" href="classInspSocket.html#IP">IP</a> = ip; -<a name="l00104"></a>00104 -<a name="l00105"></a>00105 <a class="code" href="classInspSocket.html#timeout_5Fend">timeout_end</a> = time(NULL)+maxtime; -<a name="l00106"></a>00106 <a class="code" href="classInspSocket.html#timeout">timeout</a> = <span class="keyword">false</span>; -<a name="l00107"></a>00107 <span class="keywordflow">if</span> ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) -<a name="l00108"></a>00108 { -<a name="l00109"></a>00109 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; -<a name="l00110"></a>00110 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FSOCKET">I_ERR_SOCKET</a>); -<a name="l00111"></a>00111 <span class="keywordflow">return</span>; -<a name="l00112"></a>00112 } -<a name="l00113"></a>00113 this-><a class="code" href="classInspSocket.html#port">port</a> = <a class="code" href="classInspSocket.html#port">port</a>; -<a name="l00114"></a>00114 inet_aton(ip,&<a class="code" href="classInspSocket.html#addy">addy</a>); -<a name="l00115"></a>00115 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_family = AF_INET; -<a name="l00116"></a>00116 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_addr = <a class="code" href="classInspSocket.html#addy">addy</a>; -<a name="l00117"></a>00117 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_port = htons(this->port); -<a name="l00118"></a>00118 -<a name="l00119"></a>00119 <span class="keywordtype">int</span> flags; -<a name="l00120"></a>00120 flags = fcntl(this->fd, F_GETFL, 0); -<a name="l00121"></a>00121 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); -<a name="l00122"></a>00122 -<a name="l00123"></a>00123 <span class="keywordflow">if</span>(connect(this->fd, (sockaddr*)&this->addr,<span class="keyword">sizeof</span>(this->addr)) == -1) -<a name="l00124"></a>00124 { -<a name="l00125"></a>00125 <span class="keywordflow">if</span> (errno != EINPROGRESS) -<a name="l00126"></a>00126 { -<a name="l00127"></a>00127 this-><a class="code" href="classInspSocket.html#Close_28_29">Close</a>(); -<a name="l00128"></a>00128 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FCONNECT">I_ERR_CONNECT</a>); -<a name="l00129"></a>00129 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; -<a name="l00130"></a>00130 <span class="keywordflow">return</span>; -<a name="l00131"></a>00131 } -<a name="l00132"></a>00132 } -<a name="l00133"></a>00133 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>; -<a name="l00134"></a>00134 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">false</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); -<a name="l00135"></a>00135 <span class="keywordflow">return</span>; -<a name="l00136"></a>00136 } -<a name="l00137"></a>00137 } +<a name="l00088"></a>00088 <a class="code" href="socket_8cpp.html#socket_5Fref_5B_36_35_35_33_35_5D">socket_ref</a>[this-><a class="code" href="classInspSocket.html#fd">fd</a>] = <span class="keyword">this</span>; +<a name="l00089"></a>00089 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"New socket now in I_LISTENING state"</span>); +<a name="l00090"></a>00090 <span class="keywordflow">return</span>; +<a name="l00091"></a>00091 } +<a name="l00092"></a>00092 } +<a name="l00093"></a>00093 } <span class="keywordflow">else</span> { +<a name="l00094"></a>00094 <span class="keywordtype">char</span>* ip; +<a name="l00095"></a>00095 this-><a class="code" href="classInspSocket.html#host">host</a> = <a class="code" href="classInspSocket.html#host">host</a>; +<a name="l00096"></a>00096 hostent* hoste = gethostbyname(<a class="code" href="classInspSocket.html#host">host</a>.c_str()); +<a name="l00097"></a>00097 <span class="keywordflow">if</span> (!hoste) { +<a name="l00098"></a>00098 ip = (<span class="keywordtype">char</span>*)<a class="code" href="classInspSocket.html#host">host</a>.c_str(); +<a name="l00099"></a>00099 } <span class="keywordflow">else</span> { +<a name="l00100"></a>00100 <span class="keyword">struct </span>in_addr* ia = (in_addr*)hoste->h_addr; +<a name="l00101"></a>00101 ip = inet_ntoa(*ia); +<a name="l00102"></a>00102 } +<a name="l00103"></a>00103 +<a name="l00104"></a>00104 this-><a class="code" href="classInspSocket.html#IP">IP</a> = ip; +<a name="l00105"></a>00105 +<a name="l00106"></a>00106 <a class="code" href="classInspSocket.html#timeout_5Fend">timeout_end</a> = time(NULL)+maxtime; +<a name="l00107"></a>00107 <a class="code" href="classInspSocket.html#timeout">timeout</a> = <span class="keyword">false</span>; +<a name="l00108"></a>00108 <span class="keywordflow">if</span> ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) +<a name="l00109"></a>00109 { +<a name="l00110"></a>00110 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; +<a name="l00111"></a>00111 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FSOCKET">I_ERR_SOCKET</a>); +<a name="l00112"></a>00112 <span class="keywordflow">return</span>; +<a name="l00113"></a>00113 } +<a name="l00114"></a>00114 this-><a class="code" href="classInspSocket.html#port">port</a> = <a class="code" href="classInspSocket.html#port">port</a>; +<a name="l00115"></a>00115 inet_aton(ip,&<a class="code" href="classInspSocket.html#addy">addy</a>); +<a name="l00116"></a>00116 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_family = AF_INET; +<a name="l00117"></a>00117 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_addr = <a class="code" href="classInspSocket.html#addy">addy</a>; +<a name="l00118"></a>00118 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_port = htons(this->port); +<a name="l00119"></a>00119 +<a name="l00120"></a>00120 <span class="keywordtype">int</span> flags; +<a name="l00121"></a>00121 flags = fcntl(this->fd, F_GETFL, 0); +<a name="l00122"></a>00122 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); +<a name="l00123"></a>00123 +<a name="l00124"></a>00124 <span class="keywordflow">if</span>(connect(this->fd, (sockaddr*)&this->addr,<span class="keyword">sizeof</span>(this->addr)) == -1) +<a name="l00125"></a>00125 { +<a name="l00126"></a>00126 <span class="keywordflow">if</span> (errno != EINPROGRESS) +<a name="l00127"></a>00127 { +<a name="l00128"></a>00128 this-><a class="code" href="classInspSocket.html#Close_28_29">Close</a>(); +<a name="l00129"></a>00129 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FCONNECT">I_ERR_CONNECT</a>); +<a name="l00130"></a>00130 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; +<a name="l00131"></a>00131 <span class="keywordflow">return</span>; +<a name="l00132"></a>00132 } +<a name="l00133"></a>00133 } +<a name="l00134"></a>00134 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>; +<a name="l00135"></a>00135 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">false</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); +<a name="l00136"></a>00136 <a class="code" href="socket_8cpp.html#socket_5Fref_5B_36_35_35_33_35_5D">socket_ref</a>[this-><a class="code" href="classInspSocket.html#fd">fd</a>] = <span class="keyword">this</span>; +<a name="l00137"></a>00137 <span class="keywordflow">return</span>; +<a name="l00138"></a>00138 } +<a name="l00139"></a>00139 } </pre></div> <p> </td> @@ -380,11 +383,11 @@ The destructor may implicitly call <a class="el" href="classInspSocket.html#OnCl <p> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00269">269</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00272">272</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -References <a class="el" href="socket_8cpp-source.html#l00139">Close()</a>.<div class="fragment"><pre class="fragment"><a name="l00270"></a>00270 { -<a name="l00271"></a>00271 this-><a class="code" href="classInspSocket.html#Close_28_29">Close</a>(); -<a name="l00272"></a>00272 } +References <a class="el" href="socket_8cpp-source.html#l00141">Close()</a>.<div class="fragment"><pre class="fragment"><a name="l00273"></a>00273 { +<a name="l00274"></a>00274 this-><a class="code" href="classInspSocket.html#Close_28_29">Close</a>(); +<a name="l00275"></a>00275 } </pre></div> <p> </td> @@ -419,19 +422,20 @@ This method causes the socket to close, and may also be triggered by other metho <p> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00139">139</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00141">141</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -References <a class="el" href="socket_8h-source.html#l00054">fd</a>, and <a class="el" href="socket_8cpp-source.html#l00267">OnClose()</a>. +References <a class="el" href="socket_8h-source.html#l00054">fd</a>, and <a class="el" href="socket_8cpp-source.html#l00270">OnClose()</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00062">InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00269">~InspSocket()</a>.<div class="fragment"><pre class="fragment"><a name="l00140"></a>00140 { -<a name="l00141"></a>00141 <span class="keywordflow">if</span> (this->fd != -1) -<a name="l00142"></a>00142 { -<a name="l00143"></a>00143 this-><a class="code" href="classInspSocket.html#OnClose_28_29">OnClose</a>(); -<a name="l00144"></a>00144 shutdown(this->fd,2); -<a name="l00145"></a>00145 close(this->fd); -<a name="l00146"></a>00146 this-><a class="code" href="classInspSocket.html#fd">fd</a> = -1; -<a name="l00147"></a>00147 } -<a name="l00148"></a>00148 } +Referenced by <a class="el" href="socket_8cpp-source.html#l00062">InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00272">~InspSocket()</a>.<div class="fragment"><pre class="fragment"><a name="l00142"></a>00142 { +<a name="l00143"></a>00143 <span class="keywordflow">if</span> (this->fd != -1) +<a name="l00144"></a>00144 { +<a name="l00145"></a>00145 this-><a class="code" href="classInspSocket.html#OnClose_28_29">OnClose</a>(); +<a name="l00146"></a>00146 shutdown(this->fd,2); +<a name="l00147"></a>00147 close(this->fd); +<a name="l00148"></a>00148 <a class="code" href="socket_8cpp.html#socket_5Fref_5B_36_35_35_33_35_5D">socket_ref</a>[this-><a class="code" href="classInspSocket.html#fd">fd</a>] = NULL; +<a name="l00149"></a>00149 this-><a class="code" href="classInspSocket.html#fd">fd</a> = -1; +<a name="l00150"></a>00150 } +<a name="l00151"></a>00151 } </pre></div> <p> </td> @@ -465,11 +469,11 @@ This method returns the socket's file descriptor as assigned by the operating sy <p> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00256">256</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00259">259</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -References <a class="el" href="socket_8h-source.html#l00054">fd</a>.<div class="fragment"><pre class="fragment"><a name="l00257"></a>00257 { -<a name="l00258"></a>00258 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#fd">fd</a>; -<a name="l00259"></a>00259 } +References <a class="el" href="socket_8h-source.html#l00054">fd</a>.<div class="fragment"><pre class="fragment"><a name="l00260"></a>00260 { +<a name="l00261"></a>00261 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#fd">fd</a>; +<a name="l00262"></a>00262 } </pre></div> <p> </td> @@ -503,11 +507,11 @@ Returns the IP address associated with this connection, or an empty string if no <p> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00150">150</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00153">153</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -References <a class="el" href="socket_8h-source.html#l00113">IP</a>.<div class="fragment"><pre class="fragment"><a name="l00151"></a>00151 { -<a name="l00152"></a>00152 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#IP">IP</a>; -<a name="l00153"></a>00153 } +References <a class="el" href="socket_8h-source.html#l00113">IP</a>.<div class="fragment"><pre class="fragment"><a name="l00154"></a>00154 { +<a name="l00155"></a>00155 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#IP">IP</a>; +<a name="l00156"></a>00156 } </pre></div> <p> </td> @@ -541,11 +545,11 @@ Returns the current socket state. <p> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00251">251</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00254">254</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -References <a class="el" href="socket_8h-source.html#l00072">state</a>.<div class="fragment"><pre class="fragment"><a name="l00252"></a>00252 { -<a name="l00253"></a>00253 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#state">state</a>; -<a name="l00254"></a>00254 } +References <a class="el" href="socket_8h-source.html#l00072">state</a>.<div class="fragment"><pre class="fragment"><a name="l00255"></a>00255 { +<a name="l00256"></a>00256 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#state">state</a>; +<a name="l00257"></a>00257 } </pre></div> <p> </td> @@ -579,9 +583,9 @@ Whenever close() is called, <a class="el" href="classInspSocket.html#OnClose_28_ <p> Please note that this means OnClose will be called alongside <a class="el" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError()</a>, <a class="el" href="classInspSocket.html#OnTimeout_28_29">OnTimeout()</a>, and <a class="el" href="classInspSocket.html#Close_28_29">Close()</a>, and also when cancelling a listening socket by calling the destructor indirectly. <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00267">267</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00270">270</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00139">Close()</a>.<div class="fragment"><pre class="fragment"><a name="l00267"></a>00267 { <span class="keywordflow">return</span>; } +Referenced by <a class="el" href="socket_8cpp-source.html#l00141">Close()</a>.<div class="fragment"><pre class="fragment"><a name="l00270"></a>00270 { <span class="keywordflow">return</span>; } </pre></div> <p> </td> @@ -616,9 +620,9 @@ This method is called when an outbound connection on your socket is completed. <dl compact><dt><b>Returns:</b></dt><dd>false to abort the connection, true to continue</dd></dl> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00261">261</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00264">264</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00214">Poll()</a>.<div class="fragment"><pre class="fragment"><a name="l00261"></a>00261 { <span class="keywordflow">return</span> <span class="keyword">true</span>; } +Referenced by <a class="el" href="socket_8cpp-source.html#l00217">Poll()</a>.<div class="fragment"><pre class="fragment"><a name="l00264"></a>00264 { <span class="keywordflow">return</span> <span class="keyword">true</span>; } </pre></div> <p> </td> @@ -653,9 +657,9 @@ When there is data waiting to be read on a socket, the <a class="el" href="class Within this method, you *MUST* call the <a class="el" href="classInspSocket.html#Read_28_29">Read()</a> method to read any pending data. At its lowest level, this event is signalled by the core via the socket engine. If you return false from this function, the core removes your socket from its list and erases it from the socket engine, then calls <a class="el" href="classInspSocket.html#Close_28_29">InspSocket::Close()</a> and deletes it. <dl compact><dt><b>Returns:</b></dt><dd>false to close the socket</dd></dl> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00265">265</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00268">268</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00214">Poll()</a>.<div class="fragment"><pre class="fragment"><a name="l00265"></a>00265 { <span class="keywordflow">return</span> <span class="keyword">true</span>; } +Referenced by <a class="el" href="socket_8cpp-source.html#l00217">Poll()</a>.<div class="fragment"><pre class="fragment"><a name="l00268"></a>00268 { <span class="keywordflow">return</span> <span class="keyword">true</span>; } </pre></div> <p> </td> @@ -689,7 +693,7 @@ When an established connection is terminated, the OnDisconnect method is trigger <p> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00263">263</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00263"></a>00263 { <span class="keywordflow">return</span> 0; } +Definition at line <a class="el" href="socket_8cpp-source.html#l00266">266</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00266"></a>00266 { <span class="keywordflow">return</span> 0; } </pre></div> <p> </td> @@ -729,9 +733,9 @@ A closed socket in itself is not an error, however errors also generate close ev </dl> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00262">262</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00265">265</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00062">InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00197">Timeout()</a>.<div class="fragment"><pre class="fragment"><a name="l00262"></a>00262 { <span class="keywordflow">return</span>; } +Referenced by <a class="el" href="socket_8cpp-source.html#l00062">InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00200">Timeout()</a>.<div class="fragment"><pre class="fragment"><a name="l00265"></a>00265 { <span class="keywordflow">return</span>; } </pre></div> <p> </td> @@ -777,9 +781,9 @@ Given the new file descriptor in the parameters, and the IP, it is recommended y MySocket* newsocket = new MySocket(newfd,ip);<p> Once you have done this, you can then associate the new socket with the core using <a class="el" href="classServer.html#AddSocket_28InspSocket_20_2Asock_29">Server::AddSocket()</a>. <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00264">264</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00267">267</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00214">Poll()</a>.<div class="fragment"><pre class="fragment"><a name="l00264"></a>00264 { <span class="keywordflow">return</span> 0; } +Referenced by <a class="el" href="socket_8cpp-source.html#l00217">Poll()</a>.<div class="fragment"><pre class="fragment"><a name="l00267"></a>00267 { <span class="keywordflow">return</span> 0; } </pre></div> <p> </td> @@ -813,9 +817,9 @@ When an outbound connection fails, and the attempt times out, you will receive t <p> The mthod will trigger once maxtime secons are reached (as given in the constructor) just before the socket's descriptor is closed. <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00266">266</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00269">269</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00197">Timeout()</a>.<div class="fragment"><pre class="fragment"><a name="l00266"></a>00266 { <span class="keywordflow">return</span>; } +Referenced by <a class="el" href="socket_8cpp-source.html#l00200">Timeout()</a>.<div class="fragment"><pre class="fragment"><a name="l00269"></a>00269 { <span class="keywordflow">return</span>; } </pre></div> <p> </td> @@ -849,37 +853,37 @@ Only the core should call this function. <p> When called, it is assumed the socket is ready to read data, and the method call routes the event to the various methods of InspSocket for you to handle. This can also cause the socket's state to change. <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00214">214</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. -<p> -References <a class="el" href="socketengine_8cpp-source.html#l00065">SocketEngine::AddFd()</a>, <a class="el" href="socket_8h-source.html#l00119">client</a>, <a class="el" href="socketengine_8cpp-source.html#l00103">SocketEngine::DelFd()</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FLISTENING">I_LISTENING</a>, <a class="el" href="socket_8h-source.html#l00131">length</a>, <a class="el" href="socket_8cpp-source.html#l00261">OnConnected()</a>, <a class="el" href="socket_8cpp-source.html#l00265">OnDataReady()</a>, <a class="el" href="socket_8cpp-source.html#l00264">OnIncomingConnection()</a>, <a class="el" href="socket_8cpp-source.html#l00245">SetState()</a>, and <a class="el" href="socketengine_8h-source.html#l00044">X_ESTAB_MODULE</a>.<div class="fragment"><pre class="fragment"><a name="l00215"></a>00215 { -<a name="l00216"></a>00216 <span class="keywordtype">int</span> incoming = -1; -<a name="l00217"></a>00217 -<a name="l00218"></a>00218 <span class="keywordflow">switch</span> (this->state) -<a name="l00219"></a>00219 { -<a name="l00220"></a>00220 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>: -<a name="l00221"></a>00221 this-><a class="code" href="classInspSocket.html#SetState_28InspSocketState_20s_29">SetState</a>(<a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>); -<a name="l00222"></a>00222 <span class="comment">/* Our socket was in write-state, so delete it and re-add it</span> -<a name="l00223"></a>00223 <span class="comment"> * in read-state.</span> -<a name="l00224"></a>00224 <span class="comment"> */</span> -<a name="l00225"></a>00225 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#DelFd_28int_20fd_29">DelFd</a>(this->fd); -<a name="l00226"></a>00226 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">true</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); -<a name="l00227"></a>00227 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#OnConnected_28_29">OnConnected</a>(); -<a name="l00228"></a>00228 <span class="keywordflow">break</span>; -<a name="l00229"></a>00229 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FLISTENING">I_LISTENING</a>: -<a name="l00230"></a>00230 <a class="code" href="classInspSocket.html#length">length</a> = <span class="keyword">sizeof</span> (<a class="code" href="classInspSocket.html#client">client</a>); -<a name="l00231"></a>00231 incoming = accept (this->fd, (sockaddr*)&<a class="code" href="classInspSocket.html#client">client</a>,&<a class="code" href="classInspSocket.html#length">length</a>); -<a name="l00232"></a>00232 this-><a class="code" href="classInspSocket.html#OnIncomingConnection_28int_20newfd_2C_20char_20_2Aip_29">OnIncomingConnection</a>(incoming,inet_ntoa(<a class="code" href="classInspSocket.html#client">client</a>.sin_addr)); -<a name="l00233"></a>00233 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00234"></a>00234 <span class="keywordflow">break</span>; -<a name="l00235"></a>00235 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>: -<a name="l00236"></a>00236 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#OnDataReady_28_29">OnDataReady</a>(); +Definition at line <a class="el" href="socket_8cpp-source.html#l00217">217</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +<p> +References <a class="el" href="socketengine_8cpp-source.html#l00065">SocketEngine::AddFd()</a>, <a class="el" href="socket_8h-source.html#l00119">client</a>, <a class="el" href="socketengine_8cpp-source.html#l00103">SocketEngine::DelFd()</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FLISTENING">I_LISTENING</a>, <a class="el" href="socket_8h-source.html#l00131">length</a>, <a class="el" href="socket_8cpp-source.html#l00264">OnConnected()</a>, <a class="el" href="socket_8cpp-source.html#l00268">OnDataReady()</a>, <a class="el" href="socket_8cpp-source.html#l00267">OnIncomingConnection()</a>, <a class="el" href="socket_8cpp-source.html#l00248">SetState()</a>, and <a class="el" href="socketengine_8h-source.html#l00044">X_ESTAB_MODULE</a>.<div class="fragment"><pre class="fragment"><a name="l00218"></a>00218 { +<a name="l00219"></a>00219 <span class="keywordtype">int</span> incoming = -1; +<a name="l00220"></a>00220 +<a name="l00221"></a>00221 <span class="keywordflow">switch</span> (this->state) +<a name="l00222"></a>00222 { +<a name="l00223"></a>00223 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>: +<a name="l00224"></a>00224 this-><a class="code" href="classInspSocket.html#SetState_28InspSocketState_20s_29">SetState</a>(<a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>); +<a name="l00225"></a>00225 <span class="comment">/* Our socket was in write-state, so delete it and re-add it</span> +<a name="l00226"></a>00226 <span class="comment"> * in read-state.</span> +<a name="l00227"></a>00227 <span class="comment"> */</span> +<a name="l00228"></a>00228 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#DelFd_28int_20fd_29">DelFd</a>(this->fd); +<a name="l00229"></a>00229 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">true</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); +<a name="l00230"></a>00230 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#OnConnected_28_29">OnConnected</a>(); +<a name="l00231"></a>00231 <span class="keywordflow">break</span>; +<a name="l00232"></a>00232 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FLISTENING">I_LISTENING</a>: +<a name="l00233"></a>00233 <a class="code" href="classInspSocket.html#length">length</a> = <span class="keyword">sizeof</span> (<a class="code" href="classInspSocket.html#client">client</a>); +<a name="l00234"></a>00234 incoming = accept (this->fd, (sockaddr*)&<a class="code" href="classInspSocket.html#client">client</a>,&<a class="code" href="classInspSocket.html#length">length</a>); +<a name="l00235"></a>00235 this-><a class="code" href="classInspSocket.html#OnIncomingConnection_28int_20newfd_2C_20char_20_2Aip_29">OnIncomingConnection</a>(incoming,inet_ntoa(<a class="code" href="classInspSocket.html#client">client</a>.sin_addr)); +<a name="l00236"></a>00236 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00237"></a>00237 <span class="keywordflow">break</span>; -<a name="l00238"></a>00238 <span class="keywordflow">default</span>: -<a name="l00239"></a>00239 <span class="keywordflow">break</span>; -<a name="l00240"></a>00240 } -<a name="l00241"></a>00241 -<a name="l00242"></a>00242 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00243"></a>00243 } +<a name="l00238"></a>00238 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>: +<a name="l00239"></a>00239 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#OnDataReady_28_29">OnDataReady</a>(); +<a name="l00240"></a>00240 <span class="keywordflow">break</span>; +<a name="l00241"></a>00241 <span class="keywordflow">default</span>: +<a name="l00242"></a>00242 <span class="keywordflow">break</span>; +<a name="l00243"></a>00243 } +<a name="l00244"></a>00244 +<a name="l00245"></a>00245 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00246"></a>00246 } </pre></div> <p> </td> @@ -913,21 +917,21 @@ Reads all pending bytes from the socket into a char* array which can be up to 16 <p> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00155">155</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00158">158</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="socket_8h-source.html#l00106">ibuf</a>.<div class="fragment"><pre class="fragment"><a name="l00156"></a>00156 { -<a name="l00157"></a>00157 <span class="keywordtype">int</span> n = recv(this->fd,this->ibuf,<span class="keyword">sizeof</span>(this->ibuf),0); -<a name="l00158"></a>00158 <span class="keywordflow">if</span> (n > 0) -<a name="l00159"></a>00159 { -<a name="l00160"></a>00160 <a class="code" href="classInspSocket.html#ibuf_5B_31_36_33_38_34_5D">ibuf</a>[n] = 0; -<a name="l00161"></a>00161 <span class="keywordflow">return</span> <a class="code" href="classInspSocket.html#ibuf_5B_31_36_33_38_34_5D">ibuf</a>; -<a name="l00162"></a>00162 } -<a name="l00163"></a>00163 <span class="keywordflow">else</span> -<a name="l00164"></a>00164 { -<a name="l00165"></a>00165 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"EOF or error on socket"</span>); -<a name="l00166"></a>00166 <span class="keywordflow">return</span> NULL; -<a name="l00167"></a>00167 } -<a name="l00168"></a>00168 } +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, and <a class="el" href="socket_8h-source.html#l00106">ibuf</a>.<div class="fragment"><pre class="fragment"><a name="l00159"></a>00159 { +<a name="l00160"></a>00160 <span class="keywordtype">int</span> n = recv(this->fd,this->ibuf,<span class="keyword">sizeof</span>(this->ibuf),0); +<a name="l00161"></a>00161 <span class="keywordflow">if</span> (n > 0) +<a name="l00162"></a>00162 { +<a name="l00163"></a>00163 <a class="code" href="classInspSocket.html#ibuf_5B_31_36_33_38_34_5D">ibuf</a>[n] = 0; +<a name="l00164"></a>00164 <span class="keywordflow">return</span> <a class="code" href="classInspSocket.html#ibuf_5B_31_36_33_38_34_5D">ibuf</a>; +<a name="l00165"></a>00165 } +<a name="l00166"></a>00166 <span class="keywordflow">else</span> +<a name="l00167"></a>00167 { +<a name="l00168"></a>00168 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"EOF or error on socket"</span>); +<a name="l00169"></a>00169 <span class="keywordflow">return</span> NULL; +<a name="l00170"></a>00170 } +<a name="l00171"></a>00171 } </pre></div> <p> </td> @@ -962,14 +966,14 @@ Changes the socket's state. <p> The core uses this to change socket states, and you should not call it directly. <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00245">245</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +Definition at line <a class="el" href="socket_8cpp-source.html#l00248">248</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="socket_8h-source.html#l00072">state</a>. +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, and <a class="el" href="socket_8h-source.html#l00072">state</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00214">Poll()</a>.<div class="fragment"><pre class="fragment"><a name="l00246"></a>00246 { -<a name="l00247"></a>00247 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Socket state change"</span>); -<a name="l00248"></a>00248 this-><a class="code" href="classInspSocket.html#state">state</a> = s; -<a name="l00249"></a>00249 } +Referenced by <a class="el" href="socket_8cpp-source.html#l00217">Poll()</a>.<div class="fragment"><pre class="fragment"><a name="l00249"></a>00249 { +<a name="l00250"></a>00250 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Socket state change"</span>); +<a name="l00251"></a>00251 this-><a class="code" href="classInspSocket.html#state">state</a> = s; +<a name="l00252"></a>00252 } </pre></div> <p> </td> @@ -1005,23 +1009,23 @@ This function checks if the socket has timed out yet, given the current time in <dl compact><dt><b>Returns:</b></dt><dd>true if timed out, false if not timed out</dd></dl> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00197">197</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. -<p> -References <a class="el" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>, <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FTIMEOUT">I_ERR_TIMEOUT</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>, <a class="el" href="socket_8cpp-source.html#l00262">OnError()</a>, <a class="el" href="socket_8cpp-source.html#l00266">OnTimeout()</a>, <a class="el" href="socket_8h-source.html#l00072">state</a>, <a class="el" href="socket_8h-source.html#l00097">timeout</a>, and <a class="el" href="socket_8h-source.html#l00091">timeout_end</a>.<div class="fragment"><pre class="fragment"><a name="l00198"></a>00198 { -<a name="l00199"></a>00199 <span class="keywordflow">if</span> ((this->state == <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>) && (current > <a class="code" href="classInspSocket.html#timeout_5Fend">timeout_end</a>)) -<a name="l00200"></a>00200 { -<a name="l00201"></a>00201 <span class="comment">// for non-listening sockets, the timeout can occur</span> -<a name="l00202"></a>00202 <span class="comment">// which causes termination of the connection after</span> -<a name="l00203"></a>00203 <span class="comment">// the given number of seconds without a successful</span> -<a name="l00204"></a>00204 <span class="comment">// connection.</span> -<a name="l00205"></a>00205 this-><a class="code" href="classInspSocket.html#OnTimeout_28_29">OnTimeout</a>(); -<a name="l00206"></a>00206 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FTIMEOUT">I_ERR_TIMEOUT</a>); -<a name="l00207"></a>00207 <a class="code" href="classInspSocket.html#timeout">timeout</a> = <span class="keyword">true</span>; -<a name="l00208"></a>00208 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; -<a name="l00209"></a>00209 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00210"></a>00210 } -<a name="l00211"></a>00211 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00212"></a>00212 } +Definition at line <a class="el" href="socket_8cpp-source.html#l00200">200</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. +<p> +References <a class="el" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>, <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FTIMEOUT">I_ERR_TIMEOUT</a>, <a class="el" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>, <a class="el" href="socket_8cpp-source.html#l00265">OnError()</a>, <a class="el" href="socket_8cpp-source.html#l00269">OnTimeout()</a>, <a class="el" href="socket_8h-source.html#l00072">state</a>, <a class="el" href="socket_8h-source.html#l00097">timeout</a>, and <a class="el" href="socket_8h-source.html#l00091">timeout_end</a>.<div class="fragment"><pre class="fragment"><a name="l00201"></a>00201 { +<a name="l00202"></a>00202 <span class="keywordflow">if</span> ((this->state == <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>) && (current > <a class="code" href="classInspSocket.html#timeout_5Fend">timeout_end</a>)) +<a name="l00203"></a>00203 { +<a name="l00204"></a>00204 <span class="comment">// for non-listening sockets, the timeout can occur</span> +<a name="l00205"></a>00205 <span class="comment">// which causes termination of the connection after</span> +<a name="l00206"></a>00206 <span class="comment">// the given number of seconds without a successful</span> +<a name="l00207"></a>00207 <span class="comment">// connection.</span> +<a name="l00208"></a>00208 this-><a class="code" href="classInspSocket.html#OnTimeout_28_29">OnTimeout</a>(); +<a name="l00209"></a>00209 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FTIMEOUT">I_ERR_TIMEOUT</a>); +<a name="l00210"></a>00210 <a class="code" href="classInspSocket.html#timeout">timeout</a> = <span class="keyword">true</span>; +<a name="l00211"></a>00211 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; +<a name="l00212"></a>00212 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00213"></a>00213 } +<a name="l00214"></a>00214 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00215"></a>00215 } </pre></div> <p> </td> @@ -1061,27 +1065,27 @@ No carriage returns or linefeeds are appended to the string. <dl compact><dt><b> </dl> <p> -Definition at line <a class="el" href="socket_8cpp-source.html#l00174">174</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00175"></a>00175 { -<a name="l00176"></a>00176 <span class="keywordtype">char</span>* d = (<span class="keywordtype">char</span>*)data.c_str(); -<a name="l00177"></a>00177 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> written = 0; -<a name="l00178"></a>00178 <span class="keywordtype">int</span> n = 0; -<a name="l00179"></a>00179 <span class="keywordtype">int</span> s = data.length(); -<a name="l00180"></a>00180 <span class="keywordflow">while</span> ((written < data.length()) && (n >= 0)) -<a name="l00181"></a>00181 { -<a name="l00182"></a>00182 n = send(this->fd,d,s,0); -<a name="l00183"></a>00183 <span class="keywordflow">if</span> (n > 0) -<a name="l00184"></a>00184 { -<a name="l00185"></a>00185 <span class="comment">// If we didnt write everything, advance</span> -<a name="l00186"></a>00186 <span class="comment">// the pointers so that when we retry</span> -<a name="l00187"></a>00187 <span class="comment">// the next time around the loop, we try</span> -<a name="l00188"></a>00188 <span class="comment">// to write what we failed to write before.</span> -<a name="l00189"></a>00189 written += n; -<a name="l00190"></a>00190 s -= n; -<a name="l00191"></a>00191 d += n; -<a name="l00192"></a>00192 } -<a name="l00193"></a>00193 } -<a name="l00194"></a>00194 <span class="keywordflow">return</span> written; -<a name="l00195"></a>00195 } +Definition at line <a class="el" href="socket_8cpp-source.html#l00177">177</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00178"></a>00178 { +<a name="l00179"></a>00179 <span class="keywordtype">char</span>* d = (<span class="keywordtype">char</span>*)data.c_str(); +<a name="l00180"></a>00180 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> written = 0; +<a name="l00181"></a>00181 <span class="keywordtype">int</span> n = 0; +<a name="l00182"></a>00182 <span class="keywordtype">int</span> s = data.length(); +<a name="l00183"></a>00183 <span class="keywordflow">while</span> ((written < data.length()) && (n >= 0)) +<a name="l00184"></a>00184 { +<a name="l00185"></a>00185 n = send(this->fd,d,s,0); +<a name="l00186"></a>00186 <span class="keywordflow">if</span> (n > 0) +<a name="l00187"></a>00187 { +<a name="l00188"></a>00188 <span class="comment">// If we didnt write everything, advance</span> +<a name="l00189"></a>00189 <span class="comment">// the pointers so that when we retry</span> +<a name="l00190"></a>00190 <span class="comment">// the next time around the loop, we try</span> +<a name="l00191"></a>00191 <span class="comment">// to write what we failed to write before.</span> +<a name="l00192"></a>00192 written += n; +<a name="l00193"></a>00193 s -= n; +<a name="l00194"></a>00194 d += n; +<a name="l00195"></a>00195 } +<a name="l00196"></a>00196 } +<a name="l00197"></a>00197 <span class="keywordflow">return</span> written; +<a name="l00198"></a>00198 } </pre></div> <p> </td> @@ -1172,7 +1176,7 @@ Client sockaddr structure used by accept(). <p> Definition at line <a class="el" href="socket_8h-source.html#l00119">119</a> of file <a class="el" href="socket_8h-source.html">socket.h</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00214">Poll()</a>. </td> +Referenced by <a class="el" href="socket_8cpp-source.html#l00217">Poll()</a>. </td> </tr> </table> <a class="anchor" name="fd"></a><!-- doxytag: member="InspSocket::fd" ref="fd" args="" --><p> @@ -1201,7 +1205,7 @@ The file descriptor of this socket. <p> Definition at line <a class="el" href="socket_8h-source.html#l00054">54</a> of file <a class="el" href="socket_8h-source.html">socket.h</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00139">Close()</a>, <a class="el" href="socket_8cpp-source.html#l00256">GetFd()</a>, and <a class="el" href="socket_8cpp-source.html#l00054">InspSocket()</a>. </td> +Referenced by <a class="el" href="socket_8cpp-source.html#l00141">Close()</a>, <a class="el" href="socket_8cpp-source.html#l00259">GetFd()</a>, and <a class="el" href="socket_8cpp-source.html#l00053">InspSocket()</a>. </td> </tr> </table> <a class="anchor" name="host"></a><!-- doxytag: member="InspSocket::host" ref="host" args="" --><p> @@ -1257,7 +1261,7 @@ The class which extends InspSocket is expected to implement an extendable buffer <p> Definition at line <a class="el" href="socket_8h-source.html#l00106">106</a> of file <a class="el" href="socket_8h-source.html">socket.h</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00155">Read()</a>. </td> +Referenced by <a class="el" href="socket_8cpp-source.html#l00158">Read()</a>. </td> </tr> </table> <a class="anchor" name="IP"></a><!-- doxytag: member="InspSocket::IP" ref="IP" args="" --><p> @@ -1286,7 +1290,7 @@ The IP address being connected to stored in string form for easy retrieval by ac <p> Definition at line <a class="el" href="socket_8h-source.html#l00113">113</a> of file <a class="el" href="socket_8h-source.html">socket.h</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00150">GetIP()</a>, and <a class="el" href="socket_8cpp-source.html#l00054">InspSocket()</a>. </td> +Referenced by <a class="el" href="socket_8cpp-source.html#l00153">GetIP()</a>, and <a class="el" href="socket_8cpp-source.html#l00053">InspSocket()</a>. </td> </tr> </table> <a class="anchor" name="length"></a><!-- doxytag: member="InspSocket::length" ref="length" args="" --><p> @@ -1315,7 +1319,7 @@ Used by accept() to indicate the sizes of the sockaddr_in structures. <p> Definition at line <a class="el" href="socket_8h-source.html#l00131">131</a> of file <a class="el" href="socket_8h-source.html">socket.h</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00214">Poll()</a>. </td> +Referenced by <a class="el" href="socket_8cpp-source.html#l00217">Poll()</a>. </td> </tr> </table> <a class="anchor" name="port"></a><!-- doxytag: member="InspSocket::port" ref="port" args="" --><p> @@ -1398,7 +1402,7 @@ The state for this socket, either listening, connecting, connected or error. <p> Definition at line <a class="el" href="socket_8h-source.html#l00072">72</a> of file <a class="el" href="socket_8h-source.html">socket.h</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00251">GetState()</a>, <a class="el" href="socket_8cpp-source.html#l00049">InspSocket()</a>, <a class="el" href="socket_8cpp-source.html#l00245">SetState()</a>, and <a class="el" href="socket_8cpp-source.html#l00197">Timeout()</a>. </td> +Referenced by <a class="el" href="socket_8cpp-source.html#l00254">GetState()</a>, <a class="el" href="socket_8cpp-source.html#l00048">InspSocket()</a>, <a class="el" href="socket_8cpp-source.html#l00248">SetState()</a>, and <a class="el" href="socket_8cpp-source.html#l00200">Timeout()</a>. </td> </tr> </table> <a class="anchor" name="timeout"></a><!-- doxytag: member="InspSocket::timeout" ref="timeout" args="" --><p> @@ -1427,7 +1431,7 @@ This value is true if the socket has timed out. <p> Definition at line <a class="el" href="socket_8h-source.html#l00097">97</a> of file <a class="el" href="socket_8h-source.html">socket.h</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00062">InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00197">Timeout()</a>. </td> +Referenced by <a class="el" href="socket_8cpp-source.html#l00062">InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00200">Timeout()</a>. </td> </tr> </table> <a class="anchor" name="timeout_5Fend"></a><!-- doxytag: member="InspSocket::timeout_end" ref="timeout_5Fend" args="" --><p> @@ -1456,12 +1460,12 @@ When this time is reached, the socket times out if it is in the CONNECTING state <p> Definition at line <a class="el" href="socket_8h-source.html#l00091">91</a> of file <a class="el" href="socket_8h-source.html">socket.h</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00062">InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00197">Timeout()</a>. </td> +Referenced by <a class="el" href="socket_8cpp-source.html#l00062">InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00200">Timeout()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="socket_8h-source.html">socket.h</a><li><a class="el" href="socket_8cpp-source.html">socket.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index d564116eb..87fc586f3 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#set_5Ftime">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#_7EHostItem_28_29">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 9881e7bc4..da205d319 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -30,7 +30,7 @@ A subclass of <a class="el" href="classHostItem.html">HostItem</a> designed to h <p> Definition at line <a class="el" href="channels_8h-source.html#l00068">68</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index 771de3444..4483039d5 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -10,7 +10,7 @@ <tr class="memlist"><td><a class="el" href="classInvited.html#channel_5BCHANMAX_5D">channel</a></td><td><a class="el" href="classInvited.html">Invited</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#classbase_28_29">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index a185d3b2b..37855ae92 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -54,12 +54,12 @@ Definition at line <a class="el" href="users_8h-source.html#l00039">39</a> of fi <p> Definition at line <a class="el" href="users_8h-source.html#l00042">42</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00122">userrec::InviteTo()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00115">userrec::InviteTo()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="users_8h-source.html">users.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index a980ce70f..6fde9c7a7 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#set_5Ftime">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#source_5B_32_35_36_5D">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index f93e7bb89..15da3a497 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -32,7 +32,7 @@ KLine class. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00062">62</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> +Definition at line <a class="el" href="xline_8h-source.html#l00067">67</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> <a class="anchor" name="hostmask_5B_32_30_30_5D"></a><!-- doxytag: member="KLine::hostmask" ref="hostmask_5B_32_30_30_5D" args="[200]" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -57,12 +57,12 @@ Hostmask (ident) to match against May contain wildcards. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00068">68</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00073">73</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index 41f4abb78..9b29ec516 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -12,7 +12,7 @@ <tr class="memlist"><td><a class="el" href="classModeParameter.html#mode">mode</a></td><td><a class="el" href="classModeParameter.html">ModeParameter</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classModeParameter.html#parameter_5BMAXBUF_5D">parameter</a></td><td><a class="el" href="classModeParameter.html">ModeParameter</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index e11a8a631..09feccdd7 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -60,7 +60,7 @@ Definition at line <a class="el" href="channels_8h-source.html#l00077">77</a> of <p> Definition at line <a class="el" href="channels_8h-source.html#l00082">82</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00138">chanrec::SetCustomModeParam()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00110">chanrec::SetCustomModeParam()</a>. </td> </tr> </table> <a class="anchor" name="mode"></a><!-- doxytag: member="ModeParameter::mode" ref="mode" args="" --><p> @@ -87,7 +87,7 @@ Referenced by <a class="el" href="channels_8cpp-source.html#l00138">chanrec::Set <p> Definition at line <a class="el" href="channels_8h-source.html#l00080">80</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00138">chanrec::SetCustomModeParam()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00110">chanrec::SetCustomModeParam()</a>. </td> </tr> </table> <a class="anchor" name="parameter_5BMAXBUF_5D"></a><!-- doxytag: member="ModeParameter::parameter" ref="parameter_5BMAXBUF_5D" args="[MAXBUF]" --><p> @@ -114,12 +114,12 @@ Referenced by <a class="el" href="channels_8cpp-source.html#l00138">chanrec::Set <p> Definition at line <a class="el" href="channels_8h-source.html#l00081">81</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00138">chanrec::SetCustomModeParam()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00110">chanrec::SetCustomModeParam()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index d1bfe59e2..83252cb19 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -89,7 +89,7 @@ <tr class="memlist"><td><a class="el" href="classModule.html#ProtoSendMode_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20modeline_29">ProtoSendMode</a>(void *opaque, int target_type, void *target, std::string modeline)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#_7EModule_28_29">~Module</a>()</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index c3237e24c..64c512801 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -267,7 +267,7 @@ All modules must inherit from this class, its methods will be called when irc se <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00239">239</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00254">254</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="Module_28Server_20_2AMe_29"></a><!-- doxytag: member="Module::Module" ref="Module_28Server_20_2AMe_29" args="(Server *Me)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -302,7 +302,7 @@ Default constructor Creates a module class. </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00301">301</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00301"></a>00301 { } +Definition at line <a class="el" href="modules_8cpp-source.html#l00228">228</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00228"></a>00228 { } </pre></div> <p> </td> @@ -336,7 +336,7 @@ Default destructor destroys a module class. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00302">302</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00302"></a>00302 { } +Definition at line <a class="el" href="modules_8cpp-source.html#l00229">229</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00229"></a>00229 { } </pre></div> <p> </td> @@ -371,9 +371,9 @@ Returns the version number of a Module. <p> The method should return a <a class="el" href="classVersion.html">Version</a> object with its version information assigned via <a class="el" href="classVersion.html#Version_28int_20major_2C_20int_20minor_2C_20int_20revision_2C_20int_20build_2C_20int_20flags_29">Version::Version</a> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00313">313</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00240">240</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00053">VF_VENDOR</a>.<div class="fragment"><pre class="fragment"><a name="l00313"></a>00313 { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0,<a class="code" href="modules_8h.html#VF_5FVENDOR">VF_VENDOR</a>); } +References <a class="el" href="modules_8h-source.html#l00053">VF_VENDOR</a>.<div class="fragment"><pre class="fragment"><a name="l00240"></a>00240 { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0,<a class="code" href="modules_8h.html#VF_5FVENDOR">VF_VENDOR</a>); } </pre></div> <p> </td> @@ -413,7 +413,7 @@ The module should modify the 005 numeric if needed to indicate its features. <dl </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00323">323</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00323"></a>00323 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00250">250</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00250"></a>00250 { }; </pre></div> <p> </td> @@ -488,9 +488,9 @@ This function is called before many functions which check a users status on a ch </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00322">322</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00249">249</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00037">ACR_DEFAULT</a>.<div class="fragment"><pre class="fragment"><a name="l00322"></a>00322 { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#ACR_5FDEFAULT">ACR_DEFAULT</a>; }; +References <a class="el" href="modules_8h-source.html#l00037">ACR_DEFAULT</a>.<div class="fragment"><pre class="fragment"><a name="l00249"></a>00249 { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#ACR_5FDEFAULT">ACR_DEFAULT</a>; }; </pre></div> <p> </td> @@ -548,7 +548,7 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being <dl compact><dt><b>Returns:</b></dt><dd>1 to block the ban, 0 to continue as normal</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00348">348</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00348"></a>00348 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00275">275</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00275"></a>00275 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -612,7 +612,7 @@ This method is triggered after the line is added. <dl compact><dt><b>Parameters: </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00374">374</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00374"></a>00374 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00301">301</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00301"></a>00301 { }; </pre></div> <p> </td> @@ -676,7 +676,7 @@ This method is triggered after the line is added. <dl compact><dt><b>Parameters: </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00370">370</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00370"></a>00370 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00297">297</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00297"></a>00297 { }; </pre></div> <p> </td> @@ -740,7 +740,7 @@ This method is triggered after the line is added. <dl compact><dt><b>Parameters: </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00372">372</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00372"></a>00372 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00299">299</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00299"></a>00299 { }; </pre></div> <p> </td> @@ -804,7 +804,7 @@ This method is triggered after the line is added. <dl compact><dt><b>Parameters: </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00373">373</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00373"></a>00373 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00300">300</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00300"></a>00300 { }; </pre></div> <p> </td> @@ -868,7 +868,7 @@ This method is triggered after the line is added. <dl compact><dt><b>Parameters: </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00371">371</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00371"></a>00371 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00298">298</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00298"></a>00298 { }; </pre></div> <p> </td> @@ -908,7 +908,7 @@ This timer can be used to control timed features. Its period is not accurate eno </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00327">327</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00327"></a>00327 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00254">254</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00254"></a>00254 { }; </pre></div> <p> </td> @@ -958,7 +958,7 @@ This event triggers after the host has been set. <dl compact><dt><b>Parameters:< </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00368">368</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00368"></a>00368 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00295">295</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00295"></a>00295 { }; </pre></div> <p> </td> @@ -1009,7 +1009,7 @@ return 1 to deny the name change, or 0 to allow it. <dl compact><dt><b>Parameter <dl compact><dt><b>Returns:</b></dt><dd>1 to deny the GECOS change, 0 to allow</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00341">341</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00341"></a>00341 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00268">268</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00268"></a>00268 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -1060,7 +1060,7 @@ Return 1 to deny the host change, or 0 to allow it. <dl compact><dt><b>Parameter <dl compact><dt><b>Returns:</b></dt><dd>1 to deny the host change, 0 to allow</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00340">340</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00340"></a>00340 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00267">267</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00267"></a>00267 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -1110,7 +1110,7 @@ This event triggers after the name has been set. <dl compact><dt><b>Parameters:< </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00369">369</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00369"></a>00369 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00296">296</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00296"></a>00296 { }; </pre></div> <p> </td> @@ -1161,7 +1161,7 @@ This method will always be called for each join, wether or not the user actually <dl compact><dt><b>Returns:</b></dt><dd>1 to explicitly allow the join, 0 to proceed as normal</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00338">338</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00338"></a>00338 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00265">265</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00265"></a>00265 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -1212,7 +1212,7 @@ This method will always be called for each join, wether or not the channel is ac <dl compact><dt><b>Returns:</b></dt><dd>1 to explicitly allow the join, 0 to proceed as normal</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00335">335</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00335"></a>00335 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00262">262</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00262"></a>00262 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -1269,7 +1269,7 @@ This method will always be called for each join, wether or not the channel is ac <dl compact><dt><b>Returns:</b></dt><dd>1 to explicitly allow the join, 0 to proceed as normal</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00336">336</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00336"></a>00336 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00263">263</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00263"></a>00263 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -1320,7 +1320,7 @@ This method will always be called for each join, wether or not the channel is ac <dl compact><dt><b>Returns:</b></dt><dd>1 to explicitly allow the join, 0 to proceed as normal</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00337">337</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00337"></a>00337 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00264">264</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00264"></a>00264 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -1361,7 +1361,7 @@ For example a module which implements ident lookups will continue to return fals <dl compact><dt><b>Returns:</b></dt><dd>true to indicate readiness, false if otherwise</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00330">330</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00330"></a>00330 { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00257">257</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00257"></a>00257 { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; </pre></div> <p> </td> @@ -1411,7 +1411,7 @@ This method is called once for every user and channel on the network, so that wh </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00380">380</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00380"></a>00380 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00307">307</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00307"></a>00307 { }; </pre></div> <p> </td> @@ -1475,7 +1475,7 @@ Please see src/modules/m_swhois.cpp for a working example of how to use this met </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00365">365</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00365"></a>00365 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00292">292</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00292"></a>00292 { }; </pre></div> <p> </td> @@ -1533,7 +1533,7 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being <dl compact><dt><b>Returns:</b></dt><dd>1 to block the unban, 0 to continue as normal</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00349">349</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00349"></a>00349 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00276">276</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00276"></a>00276 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -1583,7 +1583,7 @@ This method is triggered after the line is deleted. <dl compact><dt><b>Parameter </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00379">379</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00379"></a>00379 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00306">306</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00306"></a>00306 { }; </pre></div> <p> </td> @@ -1633,7 +1633,7 @@ This method is triggered after the line is deleted. <dl compact><dt><b>Parameter </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00375">375</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00375"></a>00375 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00302">302</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00302"></a>00302 { }; </pre></div> <p> </td> @@ -1683,7 +1683,7 @@ This method is triggered after the line is deleted. <dl compact><dt><b>Parameter </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00377">377</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00377"></a>00377 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00304">304</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00304"></a>00304 { }; </pre></div> <p> </td> @@ -1733,7 +1733,7 @@ This method is triggered after the line is deleted. <dl compact><dt><b>Parameter </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00378">378</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00378"></a>00378 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00305">305</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00305"></a>00305 { }; </pre></div> <p> </td> @@ -1783,7 +1783,7 @@ This method is triggered after the line is deleted. <dl compact><dt><b>Parameter </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00376">376</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00376"></a>00376 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00303">303</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00303"></a>00303 { }; </pre></div> <p> </td> @@ -1823,7 +1823,7 @@ Please see the documentation of <a class="el" href="classEvent.html#Send_28_29"> </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00343">343</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00343"></a>00343 { <span class="keywordflow">return</span>; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00270">270</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00270"></a>00270 { <span class="keywordflow">return</span>; }; </pre></div> <p> </td> @@ -1901,7 +1901,7 @@ The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00311">311</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00311"></a>00311 { <span class="keywordflow">return</span> <span class="keyword">false</span>; } +Definition at line <a class="el" href="modules_8cpp-source.html#l00238">238</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00238"></a>00238 { <span class="keywordflow">return</span> <span class="keyword">false</span>; } </pre></div> <p> </td> @@ -1951,7 +1951,7 @@ You may change or define the description given in <a class="el" href="namespacei </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00359">359</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00359"></a>00359 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00286">286</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00286"></a>00286 { }; </pre></div> <p> </td> @@ -1991,7 +1991,7 @@ This event is informational only. You should not change any user information in </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00347">347</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00347"></a>00347 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00274">274</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00274"></a>00274 { }; </pre></div> <p> </td> @@ -2031,7 +2031,7 @@ You cannot override this and prevent it from happening as it is already happened </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00346">346</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00346"></a>00346 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00273">273</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00273"></a>00273 { }; </pre></div> <p> </td> @@ -2073,7 +2073,7 @@ The userrec will contain the information of the user who typed the command. Modu </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00315">315</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00315"></a>00315 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00242">242</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00242"></a>00242 { }; </pre></div> <p> </td> @@ -2131,7 +2131,7 @@ If a client is killed by a server, e.g. a nickname collision or protocol error, <dl compact><dt><b>Returns:</b></dt><dd>1 to prevent the kill, 0 to allow</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00324">324</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00324"></a>00324 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00251">251</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00251"></a>00251 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -2181,7 +2181,7 @@ mod will contain a pointer to the module, and string will contain its name, for </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00325">325</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00325"></a>00325 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00252">252</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00252"></a>00252 { }; </pre></div> <p> </td> @@ -2239,7 +2239,7 @@ Return 1 to deny the topic change, or 0 to allow it. <dl compact><dt><b>Paramete </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00342">342</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00342"></a>00342 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00269">269</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00269"></a>00269 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -2303,7 +2303,7 @@ The text variable contains the remainder of the mode string after the target, e. </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00312">312</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00312"></a>00312 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00239">239</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00239"></a>00239 { }; </pre></div> <p> </td> @@ -2353,7 +2353,7 @@ The userrec will contain the oper mode 'o' as this function is called after any </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00314">314</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00314"></a>00314 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00241">241</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00241"></a>00241 { }; </pre></div> <p> </td> @@ -2404,7 +2404,7 @@ The password field (from the config file) is in 'password' and is to be compared <dl compact><dt><b>Returns:</b></dt><dd>1 to match the passwords, 0 to do nothing</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00345">345</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00345"></a>00345 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00272">272</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00272"></a>00272 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -2461,7 +2461,7 @@ To block topic changes you must use OnLocalTopicChange instead. <dl compact><dt> </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00358">358</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00358"></a>00358 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00285">285</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00285"></a>00285 { }; </pre></div> <p> </td> @@ -2526,7 +2526,7 @@ This event occurs for all registered commands, wether they are registered in the <dl compact><dt><b>Returns:</b></dt><dd>1 to block the command, 0 to allow</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00329">329</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00329"></a>00329 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00256">256</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00256"></a>00256 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -2605,7 +2605,7 @@ Return 1 from this function to block the mode character from being processed ent <dl compact><dt><b>Returns:</b></dt><dd>1 to deny the mode, 0 to allow</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00334">334</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00334"></a>00334 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00261">261</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00261"></a>00261 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -2662,7 +2662,7 @@ This is intended for raw socket processing (e.g. modules which wrap the tcp conn </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00350">350</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00350"></a>00350 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00277">277</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00277"></a>00277 { }; </pre></div> <p> </td> @@ -2702,7 +2702,7 @@ When this event is called, shutdown() has not yet been called on the socket. <dl </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00352">352</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00352"></a>00352 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00279">279</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00279"></a>00279 { }; </pre></div> <p> </td> @@ -2767,7 +2767,7 @@ This occurs AFTER the select() or poll() so there is always data waiting to be r <dl compact><dt><b>Returns:</b></dt><dd>nonzero if the event was handled, in which case readresult must be valid on exit</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00353">353</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00353"></a>00353 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00280">280</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00280"></a>00280 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -2825,7 +2825,7 @@ Because this event is a low level event no user information is associated with i <dl compact><dt><b>Returns:</b></dt><dd>Number of characters actually written or 0 if you didn't handle the operation</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00351">351</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00351"></a>00351 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00278">278</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00278"></a>00278 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -2865,7 +2865,7 @@ This method is called prior to a /REHASH or when a SIGHUP is received from the o </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00308">308</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00308"></a>00308 { } +Definition at line <a class="el" href="modules_8cpp-source.html#l00235">235</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00235"></a>00235 { } </pre></div> <p> </td> @@ -2922,7 +2922,7 @@ Called when an oper wants to disconnect a remote user via KILL. </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00356">356</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00356"></a>00356 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00283">283</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00283"></a>00283 { }; </pre></div> <p> </td> @@ -2962,9 +2962,9 @@ Please see the documentation of <a class="el" href="classRequest.html#Send_28_29 </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00344">344</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00271">271</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00263">Request::Send()</a>.<div class="fragment"><pre class="fragment"><a name="l00344"></a>00344 { <span class="keywordflow">return</span> NULL; }; +Referenced by <a class="el" href="modules_8cpp-source.html#l00190">Request::Send()</a>.<div class="fragment"><pre class="fragment"><a name="l00271"></a>00271 { <span class="keywordflow">return</span> NULL; }; </pre></div> <p> </td> @@ -3021,7 +3021,7 @@ For example, when a /MODE channel +b (without any other parameters) is called, i </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00328">328</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00328"></a>00328 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00255">255</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00255"></a>00255 { }; </pre></div> <p> </td> @@ -3078,7 +3078,7 @@ This method is the lowest level of handler available to a module. It will be cal </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00309">309</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00309"></a>00309 { } +Definition at line <a class="el" href="modules_8cpp-source.html#l00236">236</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00236"></a>00236 { } </pre></div> <p> </td> @@ -3118,7 +3118,7 @@ Called on all /STATS commands This method is triggered for all /STATS use, inclu </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00339">339</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00339"></a>00339 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00266">266</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00266"></a>00266 { }; </pre></div> <p> </td> @@ -3177,7 +3177,7 @@ For a good example of how to use this function, please see src/modules/m_chanpro </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00361">361</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00361"></a>00361 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00288">288</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00288"></a>00288 { }; </pre></div> <p> </td> @@ -3231,7 +3231,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00361">361</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00363">363</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00363"></a>00363 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00290">290</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00290"></a>00290 { }; </pre></div> <p> </td> @@ -3288,7 +3288,7 @@ When this function is called, it will be called from the module which implements </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00360">360</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00360"></a>00360 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00287">287</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00287"></a>00287 { }; </pre></div> <p> </td> @@ -3342,7 +3342,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00360">360</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00364">364</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00364"></a>00364 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00291">291</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00291"></a>00291 { }; </pre></div> <p> </td> @@ -3392,7 +3392,7 @@ mod will contain a pointer to the module, and string will contain its name, for </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00326">326</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00326"></a>00326 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00253">253</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00253"></a>00253 { }; </pre></div> <p> </td> @@ -3432,7 +3432,7 @@ The details of the connecting user are available to you in the parameter userrec </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00303">303</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00303"></a>00303 { } +Definition at line <a class="el" href="modules_8cpp-source.html#l00230">230</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00230"></a>00230 { } </pre></div> <p> </td> @@ -3472,7 +3472,7 @@ The details of the exiting user are available to you in the parameter userrec *u </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00305">305</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00305"></a>00305 { } +Definition at line <a class="el" href="modules_8cpp-source.html#l00232">232</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00232"></a>00232 { } </pre></div> <p> </td> @@ -3529,7 +3529,7 @@ You cannot prevent the invite from occuring using this function, to do that, use </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00357">357</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00357"></a>00357 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00284">284</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00284"></a>00284 { }; </pre></div> <p> </td> @@ -3579,7 +3579,7 @@ The details of the joining user are available to you in the parameter userrec *u </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00306">306</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00306"></a>00306 { } +Definition at line <a class="el" href="modules_8cpp-source.html#l00233">233</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00233"></a>00233 { } </pre></div> <p> </td> @@ -3643,7 +3643,7 @@ If this method is called, the kick is already underway and cannot be prevented, </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00333">333</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00333"></a>00333 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00260">260</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00260"></a>00260 { }; </pre></div> <p> </td> @@ -3707,7 +3707,7 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec* </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00354">354</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00354"></a>00354 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00281">281</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00281"></a>00281 { }; </pre></div> <p> </td> @@ -3771,7 +3771,7 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec* </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00355">355</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00355"></a>00355 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00282">282</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00282"></a>00282 { }; </pre></div> <p> </td> @@ -3821,7 +3821,7 @@ The details of the leaving user are available to you in the parameter userrec *u </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00307">307</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00307"></a>00307 { } +Definition at line <a class="el" href="modules_8cpp-source.html#l00234">234</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00234"></a>00234 { } </pre></div> <p> </td> @@ -3871,7 +3871,7 @@ This can be used to track users after nickchanges have been applied. Please note </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00321">321</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00321"></a>00321 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00248">248</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00248"></a>00248 { }; </pre></div> <p> </td> @@ -3929,7 +3929,7 @@ Returning 1 from this function stops the process immediately, causing no output <dl compact><dt><b>Returns:</b></dt><dd>1 to deny the invite, 0 to allow</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00317">317</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00317"></a>00317 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00244">244</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00244"></a>00244 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -3988,7 +3988,7 @@ If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be <dl compact><dt><b>Returns:</b></dt><dd>1 To prevent the join, 0 to allow it.</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00310">310</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00310"></a>00310 { <span class="keywordflow">return</span> 0; } +Definition at line <a class="el" href="modules_8cpp-source.html#l00237">237</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00237"></a>00237 { <span class="keywordflow">return</span> 0; } </pre></div> <p> </td> @@ -4053,7 +4053,7 @@ Returning a value of 1 from this function stops the process immediately, causing <dl compact><dt><b>Returns:</b></dt><dd>1 to prevent the kick, 0 to allow it</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00332">332</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00332"></a>00332 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00259">259</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00259"></a>00259 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -4118,7 +4118,7 @@ Returning any nonzero value from this function stops the process immediately, ca <dl compact><dt><b>Returns:</b></dt><dd>1 to deny the NOTICE, 0 to allow it</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00318">318</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00318"></a>00318 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00245">245</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00245"></a>00245 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -4169,7 +4169,7 @@ This can be used to implement Q-lines etc. Please note that although you can see <dl compact><dt><b>Returns:</b></dt><dd>1 to deny the change, 0 to allow</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00320">320</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00320"></a>00320 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00247">247</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00247"></a>00247 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -4234,7 +4234,7 @@ Returning any nonzero value from this function stops the process immediately, ca <dl compact><dt><b>Returns:</b></dt><dd>1 to deny the NOTICE, 0 to allow it</dd></dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00319">319</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00319"></a>00319 { <span class="keywordflow">return</span> 0; }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00246">246</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00246"></a>00246 { <span class="keywordflow">return</span> 0; }; </pre></div> <p> </td> @@ -4284,7 +4284,7 @@ The details of the exiting user are available to you in the parameter userrec *u </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00304">304</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00304"></a>00304 { } +Definition at line <a class="el" href="modules_8cpp-source.html#l00231">231</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00231"></a>00231 { } </pre></div> <p> </td> @@ -4324,7 +4324,7 @@ before the user is sent the MOTD etc). Modules can use this method if they are p </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00331">331</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00331"></a>00331 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00258">258</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00258"></a>00258 { }; </pre></div> <p> </td> @@ -4374,7 +4374,7 @@ Called after every WALLOPS command. </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00367">367</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00367"></a>00367 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00294">294</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00294"></a>00294 { }; </pre></div> <p> </td> @@ -4424,7 +4424,7 @@ The source parameter contains the details of the user who issued the WHOIS comma </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00316">316</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00316"></a>00316 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00243">243</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00243"></a>00243 { }; </pre></div> <p> </td> @@ -4496,7 +4496,7 @@ More documentation to follow soon. Please see src/modules/m_swhois.cpp for examp </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00366">366</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00366"></a>00366 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00293">293</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00293"></a>00293 { }; </pre></div> <p> </td> @@ -4562,7 +4562,7 @@ More documentation to follow soon. Please see src/modules/m_chanprotect.cpp for </dl> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00362">362</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00362"></a>00362 { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00289">289</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00289"></a>00289 { }; </pre></div> <p> </td> @@ -4570,7 +4570,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00362">362</a> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index f70c35113..ebc250794 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -12,7 +12,7 @@ <tr class="memlist"><td><a class="el" href="classModuleFactory.html#ModuleFactory_28_29">ModuleFactory</a>()</td><td><a class="el" href="classModuleFactory.html">ModuleFactory</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModuleFactory.html#_7EModuleFactory_28_29">~ModuleFactory</a>()</td><td><a class="el" href="classModuleFactory.html">ModuleFactory</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index fc3aad4bc..9efbcdbde 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -36,7 +36,7 @@ This is to allow for modules to create many different variants of <a class="el" <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01654">1654</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l01669">1669</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="ModuleFactory_28_29"></a><!-- doxytag: member="ModuleFactory::ModuleFactory" ref="ModuleFactory_28_29" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -63,7 +63,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l01654">1654</a> o <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01657">1657</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<div class="fragment"><pre class="fragment"><a name="l01657"></a>01657 { } +Definition at line <a class="el" href="modules_8h-source.html#l01672">1672</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<div class="fragment"><pre class="fragment"><a name="l01672"></a>01672 { } </pre></div> <p> </td> @@ -95,7 +95,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l01657">1657</a> o <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01658">1658</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<div class="fragment"><pre class="fragment"><a name="l01658"></a>01658 { } +Definition at line <a class="el" href="modules_8h-source.html#l01673">1673</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<div class="fragment"><pre class="fragment"><a name="l01673"></a>01673 { } </pre></div> <p> </td> @@ -134,7 +134,7 @@ Your inherited class of ModuleFactory must return a pointer to your <a class="el </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classModuleMessage-members.html b/docs/module-doc/classModuleMessage-members.html index 5c16347db..6344dc7ec 100644 --- a/docs/module-doc/classModuleMessage-members.html +++ b/docs/module-doc/classModuleMessage-members.html @@ -11,7 +11,7 @@ <tr class="memlist"><td><a class="el" href="classModuleMessage.html#Send_28_29_3D_30">Send</a>()=0</td><td><a class="el" href="classModuleMessage.html">ModuleMessage</a></td><td><code> [pure virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModuleMessage.html#_7EModuleMessage_28_29">~ModuleMessage</a>()</td><td><a class="el" href="classModuleMessage.html">ModuleMessage</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classModuleMessage.html b/docs/module-doc/classModuleMessage.html index e6d20b4a9..15e7cf853 100644 --- a/docs/module-doc/classModuleMessage.html +++ b/docs/module-doc/classModuleMessage.html @@ -101,7 +101,7 @@ Implemented in <a class="el" href="classRequest.html#Send_28_29">Request</a>, an </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 3d316c578..42df673a3 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#set_5Ftime">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#source_5B_32_35_36_5D">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index 6631e6f64..871d00756 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -35,7 +35,7 @@ QLine class. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00108">108</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> +Definition at line <a class="el" href="xline_8h-source.html#l00113">113</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> <a class="anchor" name="is_5Fglobal"></a><!-- doxytag: member="QLine::is_global" ref="is_5Fglobal" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -60,7 +60,7 @@ Set if this is a global Z:line (e.g. <p> it came from another server) <p> -Definition at line <a class="el" href="xline_8h-source.html#l00118">118</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00123">123</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <a class="anchor" name="nick_5B_36_34_5D"></a><!-- doxytag: member="QLine::nick" ref="nick_5B_36_34_5D" args="[64]" --><p> @@ -87,12 +87,12 @@ Nickname to match against. <p> May contain wildcards. <p> -Definition at line <a class="el" href="xline_8h-source.html#l00114">114</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00119">119</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classRequest-members.html b/docs/module-doc/classRequest-members.html index 88481c0fd..8a4b1022f 100644 --- a/docs/module-doc/classRequest-members.html +++ b/docs/module-doc/classRequest-members.html @@ -18,7 +18,7 @@ <tr class="memlist"><td><a class="el" href="classRequest.html#source">source</a></td><td><a class="el" href="classRequest.html">Request</a></td><td><code> [protected]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModuleMessage.html#_7EModuleMessage_28_29">~ModuleMessage</a>()</td><td><a class="el" href="classModuleMessage.html">ModuleMessage</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classRequest.html b/docs/module-doc/classRequest.html index ed39a3912..7be89f99e 100644 --- a/docs/module-doc/classRequest.html +++ b/docs/module-doc/classRequest.html @@ -102,7 +102,7 @@ Create a new Request. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00246">246</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00246"></a>00246 : <a class="code" href="classRequest.html#data">data</a>(anydata), <a class="code" href="classRequest.html#source">source</a>(src), <a class="code" href="classRequest.html#dest">dest</a>(dst) { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00173">173</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00173"></a>00173 : <a class="code" href="classRequest.html#data">data</a>(anydata), <a class="code" href="classRequest.html#source">source</a>(src), <a class="code" href="classRequest.html#dest">dest</a>(dst) { }; </pre></div> <p> </td> @@ -137,11 +137,11 @@ Fetch the Request data. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00248">248</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00175">175</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00162">data</a>.<div class="fragment"><pre class="fragment"><a name="l00249"></a>00249 { -<a name="l00250"></a>00250 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#data">data</a>; -<a name="l00251"></a>00251 } +References <a class="el" href="modules_8h-source.html#l00162">data</a>.<div class="fragment"><pre class="fragment"><a name="l00176"></a>00176 { +<a name="l00177"></a>00177 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#data">data</a>; +<a name="l00178"></a>00178 } </pre></div> <p> </td> @@ -175,11 +175,11 @@ Fetch the request destination (should be 'this' in the receiving module). <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00258">258</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00185">185</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00169">dest</a>.<div class="fragment"><pre class="fragment"><a name="l00259"></a>00259 { -<a name="l00260"></a>00260 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#dest">dest</a>; -<a name="l00261"></a>00261 } +References <a class="el" href="modules_8h-source.html#l00169">dest</a>.<div class="fragment"><pre class="fragment"><a name="l00186"></a>00186 { +<a name="l00187"></a>00187 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#dest">dest</a>; +<a name="l00188"></a>00188 } </pre></div> <p> </td> @@ -213,11 +213,11 @@ Fetch the request source. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00253">253</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00180">180</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00166">source</a>.<div class="fragment"><pre class="fragment"><a name="l00254"></a>00254 { -<a name="l00255"></a>00255 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#source">source</a>; -<a name="l00256"></a>00256 } +References <a class="el" href="modules_8h-source.html#l00166">source</a>.<div class="fragment"><pre class="fragment"><a name="l00181"></a>00181 { +<a name="l00182"></a>00182 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#source">source</a>; +<a name="l00183"></a>00183 } </pre></div> <p> </td> @@ -253,18 +253,18 @@ Upon returning the result will be arbitary data returned by the module you sent <p> Implements <a class="el" href="classModuleMessage.html#Send_28_29_3D_30">ModuleMessage</a>. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00263">263</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00169">dest</a>, and <a class="el" href="modules_8cpp-source.html#l00344">Module::OnRequest()</a>.<div class="fragment"><pre class="fragment"><a name="l00264"></a>00264 { -<a name="l00265"></a>00265 <span class="keywordflow">if</span> (this->dest) -<a name="l00266"></a>00266 { -<a name="l00267"></a>00267 <span class="keywordflow">return</span> <a class="code" href="classRequest.html#dest">dest</a>-><a class="code" href="classModule.html#OnRequest_28Request_20_2Arequest_29">OnRequest</a>(<span class="keyword">this</span>); -<a name="l00268"></a>00268 } -<a name="l00269"></a>00269 <span class="keywordflow">else</span> -<a name="l00270"></a>00270 { -<a name="l00271"></a>00271 <span class="keywordflow">return</span> NULL; -<a name="l00272"></a>00272 } -<a name="l00273"></a>00273 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00190">190</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00169">dest</a>, and <a class="el" href="modules_8cpp-source.html#l00271">Module::OnRequest()</a>.<div class="fragment"><pre class="fragment"><a name="l00191"></a>00191 { +<a name="l00192"></a>00192 <span class="keywordflow">if</span> (this->dest) +<a name="l00193"></a>00193 { +<a name="l00194"></a>00194 <span class="keywordflow">return</span> <a class="code" href="classRequest.html#dest">dest</a>-><a class="code" href="classModule.html#OnRequest_28Request_20_2Arequest_29">OnRequest</a>(<span class="keyword">this</span>); +<a name="l00195"></a>00195 } +<a name="l00196"></a>00196 <span class="keywordflow">else</span> +<a name="l00197"></a>00197 { +<a name="l00198"></a>00198 <span class="keywordflow">return</span> NULL; +<a name="l00199"></a>00199 } +<a name="l00200"></a>00200 } </pre></div> <p> </td> @@ -297,7 +297,7 @@ This member holds a pointer to arbitary data set by the emitter of the message. <p> Definition at line <a class="el" href="modules_8h-source.html#l00162">162</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00248">GetData()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00175">GetData()</a>. </td> </tr> </table> <a class="anchor" name="dest"></a><!-- doxytag: member="Request::dest" ref="dest" args="" --><p> @@ -326,7 +326,7 @@ The single destination of the Request. <p> Definition at line <a class="el" href="modules_8h-source.html#l00169">169</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00258">GetDest()</a>, and <a class="el" href="modules_8cpp-source.html#l00263">Send()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00185">GetDest()</a>, and <a class="el" href="modules_8cpp-source.html#l00190">Send()</a>. </td> </tr> </table> <a class="anchor" name="source"></a><!-- doxytag: member="Request::source" ref="source" args="" --><p> @@ -355,12 +355,12 @@ This is a pointer to the sender of the message, which can be used to directly tr <p> Definition at line <a class="el" href="modules_8h-source.html#l00166">166</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00253">GetSource()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00180">GetSource()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 9703b14f5..5e1b87e29 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -67,7 +67,7 @@ <tr class="memlist"><td><a class="el" href="classServer.html#UserToPseudo_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">UserToPseudo</a>(userrec *user, std::string message)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#_7EServer_28_29">~Server</a>()</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:33 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 0d965160d..8b98f4482 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -201,7 +201,7 @@ All modules should instantiate at least one copy of this class, and use its memb <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01081">1081</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l01096">1096</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="Server_28_29"></a><!-- doxytag: member="Server::Server" ref="Server_28_29" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -230,8 +230,8 @@ Default constructor. <p> Creates a Server object. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00386">386</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00387"></a>00387 { -<a name="l00388"></a>00388 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00313">313</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00314"></a>00314 { +<a name="l00315"></a>00315 } </pre></div> <p> </td> @@ -265,8 +265,8 @@ Default destructor. <p> Destroys a Server object. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00390">390</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00391"></a>00391 { -<a name="l00392"></a>00392 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00317">317</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00318"></a>00318 { +<a name="l00319"></a>00319 } </pre></div> <p> </td> @@ -331,11 +331,11 @@ This allows modules to add extra commands into the command table. You must place typedef void (handlerfunc) (char**, int, userrec*); ... void <a class="el" href="commands_8h.html#handle_5Fkill_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">handle_kill(char **parameters, int pcnt, userrec *user)</a><p> When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'. The source parameter is used for resource tracking, and should contain the name of your module (with file extension) e.g. "m_blarp.so". If you place the wrong identifier here, you can cause crashes if your module is unloaded. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00487">487</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00414">414</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h.html#createcommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">createcommand()</a>.<div class="fragment"><pre class="fragment"><a name="l00488"></a>00488 { -<a name="l00489"></a>00489 <a class="code" href="modules_8h.html#createcommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">createcommand</a>(cmd,f,flags,minparams,source); -<a name="l00490"></a>00490 } +References <a class="el" href="modules_8h.html#createcommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">createcommand()</a>.<div class="fragment"><pre class="fragment"><a name="l00415"></a>00415 { +<a name="l00416"></a>00416 <a class="code" href="modules_8h.html#createcommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">createcommand</a>(cmd,f,flags,minparams,source); +<a name="l00417"></a>00417 } </pre></div> <p> </td> @@ -391,11 +391,11 @@ Adds a E-line The E-line is enforced as soon as it is added. <p> The duration must be in seconds, however you can use the <a class="el" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">Server::CalcDuration</a> method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00731">731</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00658">658</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="xline_8h.html#add_5Feline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_eline()</a>.<div class="fragment"><pre class="fragment"><a name="l00732"></a>00732 { -<a name="l00733"></a>00733 <a class="code" href="xline_8h.html#add_5Feline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_eline</a>(<a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); -<a name="l00734"></a>00734 } +References <a class="el" href="xline_8h.html#add_5Feline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_eline()</a>.<div class="fragment"><pre class="fragment"><a name="l00659"></a>00659 { +<a name="l00660"></a>00660 <a class="code" href="xline_8h.html#add_5Feline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_eline</a>(<a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); +<a name="l00661"></a>00661 } </pre></div> <p> </td> @@ -435,14 +435,14 @@ This call is used to implement modes like +q and +a. The characteristics of thes (4) The mode and its parameter are NOT stored in the channels modes structure<p> It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00655">655</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00582">582</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00215">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00225">ModeMakeList()</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>.<div class="fragment"><pre class="fragment"><a name="l00656"></a>00656 { -<a name="l00657"></a>00657 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">DoAddExtendedMode</a>(modechar,<a class="code" href="modules_8h.html#MT_5FCHANNEL">MT_CHANNEL</a>,<span class="keyword">false</span>,1,1); -<a name="l00658"></a>00658 <span class="keywordflow">if</span> (res) -<a name="l00659"></a>00659 <a class="code" href="modules_8cpp.html#ModeMakeList_28char_20modechar_29">ModeMakeList</a>(modechar); -<a name="l00660"></a>00660 <span class="keywordflow">return</span> res; -<a name="l00661"></a>00661 } +References <a class="el" href="modules_8cpp-source.html#l00142">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00152">ModeMakeList()</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>.<div class="fragment"><pre class="fragment"><a name="l00583"></a>00583 { +<a name="l00584"></a>00584 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">DoAddExtendedMode</a>(modechar,<a class="code" href="modules_8h.html#MT_5FCHANNEL">MT_CHANNEL</a>,<span class="keyword">false</span>,1,1); +<a name="l00585"></a>00585 <span class="keywordflow">if</span> (res) +<a name="l00586"></a>00586 <a class="code" href="modules_8cpp.html#ModeMakeList_28char_20modechar_29">ModeMakeList</a>(modechar); +<a name="l00587"></a>00587 <span class="keywordflow">return</span> res; +<a name="l00588"></a>00588 } </pre></div> <p> </td> @@ -504,34 +504,34 @@ Adds an extended mode letter which is parsed by a module. <p> This allows modules to add extra mode letters, e.g. +x for hostcloak. the "type" parameter is either MT_CHANNEL, MT_CLIENT, or MT_SERVER, to indicate wether the mode is a channel mode, a client mode, or a server mode. requires_oper is used with MT_CLIENT type modes only to indicate the mode can only be set or unset by an oper. If this is used for MT_CHANNEL type modes it is ignored. params_when_on is the number of modes to expect when the mode is turned on (for type MT_CHANNEL only), e.g. with mode +k, this would have a value of 1. the params_when_off value has a similar value to params_when_on, except it indicates the number of parameters to expect when the mode is disabled. Modes which act in a similar way to channel mode +l (e.g. require a parameter to enable, but not to disable) should use this parameter. The function returns false if the mode is unavailable, and will not attempt to allocate another character, as this will confuse users. This also means that as only one module can claim a specific mode character, the core does not need to keep track of which modules own which modes, which speeds up operation of the server. In this version, a mode can have at most one parameter, attempting to use more parameters will have undefined effects. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00627">627</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00215">DoAddExtendedMode()</a>, <a class="el" href="modules_8h-source.html#l00032">MT_CLIENT</a>, and <a class="el" href="modules_8h-source.html#l00033">MT_SERVER</a>.<div class="fragment"><pre class="fragment"><a name="l00628"></a>00628 { -<a name="l00629"></a>00629 <span class="keywordflow">if</span> (((modechar >= <span class="charliteral">'A'</span>) && (modechar <= <span class="charliteral">'Z'</span>)) || ((modechar >= <span class="charliteral">'a'</span>) && (modechar <= <span class="charliteral">'z'</span>))) -<a name="l00630"></a>00630 { -<a name="l00631"></a>00631 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#MT_5FSERVER">MT_SERVER</a>) -<a name="l00632"></a>00632 { -<a name="l00633"></a>00633 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); -<a name="l00634"></a>00634 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00635"></a>00635 } -<a name="l00636"></a>00636 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#MT_5FCLIENT">MT_CLIENT</a>)) -<a name="l00637"></a>00637 { -<a name="l00638"></a>00638 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); -<a name="l00639"></a>00639 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00640"></a>00640 } -<a name="l00641"></a>00641 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) -<a name="l00642"></a>00642 { -<a name="l00643"></a>00643 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); -<a name="l00644"></a>00644 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00645"></a>00645 } -<a name="l00646"></a>00646 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); -<a name="l00647"></a>00647 } -<a name="l00648"></a>00648 <span class="keywordflow">else</span> -<a name="l00649"></a>00649 { -<a name="l00650"></a>00650 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Muppet modechar detected."</span>); -<a name="l00651"></a>00651 } -<a name="l00652"></a>00652 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00653"></a>00653 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00554">554</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00142">DoAddExtendedMode()</a>, <a class="el" href="modules_8h-source.html#l00032">MT_CLIENT</a>, and <a class="el" href="modules_8h-source.html#l00033">MT_SERVER</a>.<div class="fragment"><pre class="fragment"><a name="l00555"></a>00555 { +<a name="l00556"></a>00556 <span class="keywordflow">if</span> (((modechar >= <span class="charliteral">'A'</span>) && (modechar <= <span class="charliteral">'Z'</span>)) || ((modechar >= <span class="charliteral">'a'</span>) && (modechar <= <span class="charliteral">'z'</span>))) +<a name="l00557"></a>00557 { +<a name="l00558"></a>00558 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#MT_5FSERVER">MT_SERVER</a>) +<a name="l00559"></a>00559 { +<a name="l00560"></a>00560 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); +<a name="l00561"></a>00561 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00562"></a>00562 } +<a name="l00563"></a>00563 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#MT_5FCLIENT">MT_CLIENT</a>)) +<a name="l00564"></a>00564 { +<a name="l00565"></a>00565 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); +<a name="l00566"></a>00566 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00567"></a>00567 } +<a name="l00568"></a>00568 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) +<a name="l00569"></a>00569 { +<a name="l00570"></a>00570 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); +<a name="l00571"></a>00571 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00572"></a>00572 } +<a name="l00573"></a>00573 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); +<a name="l00574"></a>00574 } +<a name="l00575"></a>00575 <span class="keywordflow">else</span> +<a name="l00576"></a>00576 { +<a name="l00577"></a>00577 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Muppet modechar detected."</span>); +<a name="l00578"></a>00578 } +<a name="l00579"></a>00579 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00580"></a>00580 } </pre></div> <p> </td> @@ -587,11 +587,11 @@ Adds a G-line The G-line is propogated to all of the servers in the mesh and enf <p> The duration must be in seconds, however you can use the <a class="el" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">Server::CalcDuration</a> method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00711">711</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00638">638</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="xline_8h.html#add_5Fgline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_gline()</a>.<div class="fragment"><pre class="fragment"><a name="l00712"></a>00712 { -<a name="l00713"></a>00713 <a class="code" href="xline_8h.html#add_5Fgline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_gline</a>(<a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); -<a name="l00714"></a>00714 } +References <a class="el" href="xline_8h.html#add_5Fgline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_gline()</a>.<div class="fragment"><pre class="fragment"><a name="l00639"></a>00639 { +<a name="l00640"></a>00640 <a class="code" href="xline_8h.html#add_5Fgline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_gline</a>(<a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); +<a name="l00641"></a>00641 } </pre></div> <p> </td> @@ -647,11 +647,11 @@ Adds a K-line The K-line is enforced as soon as it is added. <p> The duration must be in seconds, however you can use the <a class="el" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">Server::CalcDuration</a> method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00726">726</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00653">653</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="xline_8h.html#add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_kline()</a>.<div class="fragment"><pre class="fragment"><a name="l00727"></a>00727 { -<a name="l00728"></a>00728 <a class="code" href="xline_8h.html#add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_kline</a>(<a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); -<a name="l00729"></a>00729 } +References <a class="el" href="xline_8h.html#add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_kline()</a>.<div class="fragment"><pre class="fragment"><a name="l00654"></a>00654 { +<a name="l00655"></a>00655 <a class="code" href="xline_8h.html#add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_kline</a>(<a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); +<a name="l00656"></a>00656 } </pre></div> <p> </td> @@ -707,11 +707,11 @@ Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enf <p> The duration must be in seconds, however you can use the <a class="el" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">Server::CalcDuration</a> method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00716">716</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00643">643</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="xline_8h.html#add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29">add_qline()</a>.<div class="fragment"><pre class="fragment"><a name="l00717"></a>00717 { -<a name="l00718"></a>00718 <a class="code" href="xline_8h.html#add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29">add_qline</a>(<a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, source.c_str(), reason.c_str(), nickname.c_str()); -<a name="l00719"></a>00719 } +References <a class="el" href="xline_8h.html#add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29">add_qline()</a>.<div class="fragment"><pre class="fragment"><a name="l00644"></a>00644 { +<a name="l00645"></a>00645 <a class="code" href="xline_8h.html#add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29">add_qline</a>(<a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, source.c_str(), reason.c_str(), nickname.c_str()); +<a name="l00646"></a>00646 } </pre></div> <p> </td> @@ -746,11 +746,11 @@ Adds a class derived from <a class="el" href="classInspSocket.html">InspSocket</ <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00394">394</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00321">321</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.<div class="fragment"><pre class="fragment"><a name="l00395"></a>00395 { -<a name="l00396"></a>00396 <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.push_back(sock); -<a name="l00397"></a>00397 } +References <a class="el" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.<div class="fragment"><pre class="fragment"><a name="l00322"></a>00322 { +<a name="l00323"></a>00323 <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.push_back(sock); +<a name="l00324"></a>00324 } </pre></div> <p> </td> @@ -806,11 +806,11 @@ Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enf <p> The duration must be in seconds, however you can use the <a class="el" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">Server::CalcDuration</a> method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00721">721</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00648">648</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="xline_8h.html#add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29">add_zline()</a>.<div class="fragment"><pre class="fragment"><a name="l00722"></a>00722 { -<a name="l00723"></a>00723 <a class="code" href="xline_8h.html#add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29">add_zline</a>(<a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, source.c_str(), reason.c_str(), ipaddr.c_str()); -<a name="l00724"></a>00724 } +References <a class="el" href="xline_8h.html#add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29">add_zline()</a>.<div class="fragment"><pre class="fragment"><a name="l00649"></a>00649 { +<a name="l00650"></a>00650 <a class="code" href="xline_8h.html#add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29">add_zline</a>(<a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, source.c_str(), reason.c_str(), ipaddr.c_str()); +<a name="l00651"></a>00651 } </pre></div> <p> </td> @@ -845,11 +845,11 @@ Calculates a duration This method will take a string containing a formatted dura <p> "1w2d") and return its value as a total number of seconds. This is the same function used internally by /GLINE etc to set the ban times. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00761">761</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00688">688</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration()</a>.<div class="fragment"><pre class="fragment"><a name="l00762"></a>00762 { -<a name="l00763"></a>00763 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>(delta.c_str()); -<a name="l00764"></a>00764 } +References <a class="el" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration()</a>.<div class="fragment"><pre class="fragment"><a name="l00689"></a>00689 { +<a name="l00690"></a>00690 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>(delta.c_str()); +<a name="l00691"></a>00691 } </pre></div> <p> </td> @@ -906,9 +906,9 @@ Calls the handler for a command, either implemented by the core or by another mo You can use this function to trigger other commands in the ircd, such as PRIVMSG, JOIN, KICK etc, or even as a method of callback. By defining command names that are untypeable for users on irc (e.g. those which contain a or <br> ) you may use them as callback identifiers. The first parameter to this method is the name of the command handler you wish to call, e.g. PRIVMSG. This will be a command handler previously registered by the core or wih <a class="el" href="classServer.html#AddCommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">AddCommand()</a>. The second parameter is an array of parameters, and the third parameter is a count of parameters in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the functiom will silently ignore it. The final parameter is the user executing the command handler, used for privilage checks, etc. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00472">472</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00473"></a>00473 { -<a name="l00474"></a>00474 call_handler(commandname.c_str(),parameters,pcnt,user); -<a name="l00475"></a>00475 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00399">399</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00400"></a>00400 { +<a name="l00401"></a>00401 call_handler(commandname.c_str(),parameters,pcnt,user); +<a name="l00402"></a>00402 } </pre></div> <p> </td> @@ -952,11 +952,11 @@ Change GECOS (fullname) of a user. <p> You should always call this method to change a user's GECOS rather than writing directly to the fullname member of userrec, as any change applied via this method will be propogated to any linked servers. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00570">570</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00497">497</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="message_8h.html#ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29">ChangeName()</a>.<div class="fragment"><pre class="fragment"><a name="l00571"></a>00571 { -<a name="l00572"></a>00572 <a class="code" href="message_8h.html#ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29">ChangeName</a>(user,gecos.c_str()); -<a name="l00573"></a>00573 } +References <a class="el" href="message_8h.html#ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29">ChangeName()</a>.<div class="fragment"><pre class="fragment"><a name="l00498"></a>00498 { +<a name="l00499"></a>00499 <a class="code" href="message_8h.html#ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29">ChangeName</a>(user,gecos.c_str()); +<a name="l00500"></a>00500 } </pre></div> <p> </td> @@ -1000,11 +1000,11 @@ Change displayed hostname of a user. <p> You should always call this method to change a user's host rather than writing directly to the dhost member of userrec, as any change applied via this method will be propogated to any linked servers. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00565">565</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00492">492</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="message_8h.html#ChangeDisplayedHost_28userrec_20_2Auser_2C_20const_20char_20_2Ahost_29">ChangeDisplayedHost()</a>.<div class="fragment"><pre class="fragment"><a name="l00566"></a>00566 { -<a name="l00567"></a>00567 <a class="code" href="message_8h.html#ChangeDisplayedHost_28userrec_20_2Auser_2C_20const_20char_20_2Ahost_29">ChangeDisplayedHost</a>(user,host.c_str()); -<a name="l00568"></a>00568 } +References <a class="el" href="message_8h.html#ChangeDisplayedHost_28userrec_20_2Auser_2C_20const_20char_20_2Ahost_29">ChangeDisplayedHost()</a>.<div class="fragment"><pre class="fragment"><a name="l00493"></a>00493 { +<a name="l00494"></a>00494 <a class="code" href="message_8h.html#ChangeDisplayedHost_28userrec_20_2Auser_2C_20const_20char_20_2Ahost_29">ChangeDisplayedHost</a>(user,host.c_str()); +<a name="l00495"></a>00495 } </pre></div> <p> </td> @@ -1048,9 +1048,9 @@ Forces a user nickchange. <p> This command works similarly to SVSNICK, and can be used to implement Q-lines etc. If you specify an invalid nickname, the nick change will be dropped and the target user will receive the error numeric for it. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00457">457</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00458"></a>00458 { -<a name="l00459"></a>00459 force_nickchange(user,nickname.c_str()); -<a name="l00460"></a>00460 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00384">384</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00385"></a>00385 { +<a name="l00386"></a>00386 force_nickchange(user,nickname.c_str()); +<a name="l00387"></a>00387 } </pre></div> <p> </td> @@ -1094,11 +1094,11 @@ Attempts to look up a user's privilages on a channel. <p> This function will return a string containing either @, %, +, or an empty string, representing the user's privilages upon the channel you specify. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00595">595</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00522">522</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="message_8h.html#cmode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">cmode()</a>.<div class="fragment"><pre class="fragment"><a name="l00596"></a>00596 { -<a name="l00597"></a>00597 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#cmode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">cmode</a>(User,Chan); -<a name="l00598"></a>00598 } +References <a class="el" href="message_8h.html#cmode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">cmode()</a>.<div class="fragment"><pre class="fragment"><a name="l00523"></a>00523 { +<a name="l00524"></a>00524 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#cmode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">cmode</a>(User,Chan); +<a name="l00525"></a>00525 } </pre></div> <p> </td> @@ -1142,11 +1142,11 @@ Returns true if two users share a common channel. <p> This method is used internally by the NICK and QUIT commands, and the <a class="el" href="classServer.html#SendCommon_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_2C_20bool_20IncludeSender_29">Server::SendCommon</a> method. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00543">543</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00470">470</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="message_8h.html#common_5Fchannels_28userrec_20_2Au_2C_20userrec_20_2Au_32_29">common_channels()</a>.<div class="fragment"><pre class="fragment"><a name="l00544"></a>00544 { -<a name="l00545"></a>00545 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#common_5Fchannels_28userrec_20_2Au_2C_20userrec_20_2Au_32_29">common_channels</a>(u1,u2) != 0); -<a name="l00546"></a>00546 } +References <a class="el" href="message_8h.html#common_5Fchannels_28userrec_20_2Au_2C_20userrec_20_2Au_32_29">common_channels()</a>.<div class="fragment"><pre class="fragment"><a name="l00471"></a>00471 { +<a name="l00472"></a>00472 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#common_5Fchannels_28userrec_20_2Au_2C_20userrec_20_2Au_32_29">common_channels</a>(u1,u2) != 0); +<a name="l00473"></a>00473 } </pre></div> <p> </td> @@ -1181,9 +1181,9 @@ Returns a count of the number of users on a channel. <p> This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00663">663</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00664"></a>00664 { -<a name="l00665"></a>00665 <span class="keywordflow">return</span> usercount(c); -<a name="l00666"></a>00666 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00590">590</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00591"></a>00591 { +<a name="l00592"></a>00592 <span class="keywordflow">return</span> usercount(c); +<a name="l00593"></a>00593 } </pre></div> <p> </td> @@ -1218,11 +1218,11 @@ Deletes a local E-Line. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00756">756</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00683">683</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="xline_8h.html#del_5Feline_28const_20char_20_2Ahostmask_29">del_eline()</a>.<div class="fragment"><pre class="fragment"><a name="l00757"></a>00757 { -<a name="l00758"></a>00758 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Feline_28const_20char_20_2Ahostmask_29">del_eline</a>(hostmask.c_str()); -<a name="l00759"></a>00759 } +References <a class="el" href="xline_8h.html#del_5Feline_28const_20char_20_2Ahostmask_29">del_eline()</a>.<div class="fragment"><pre class="fragment"><a name="l00684"></a>00684 { +<a name="l00685"></a>00685 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Feline_28const_20char_20_2Ahostmask_29">del_eline</a>(hostmask.c_str()); +<a name="l00686"></a>00686 } </pre></div> <p> </td> @@ -1257,11 +1257,11 @@ Deletes a G-Line from all servers on the mesh. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00736">736</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00663">663</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="xline_8h.html#del_5Fgline_28const_20char_20_2Ahostmask_29">del_gline()</a>.<div class="fragment"><pre class="fragment"><a name="l00737"></a>00737 { -<a name="l00738"></a>00738 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fgline_28const_20char_20_2Ahostmask_29">del_gline</a>(hostmask.c_str()); -<a name="l00739"></a>00739 } +References <a class="el" href="xline_8h.html#del_5Fgline_28const_20char_20_2Ahostmask_29">del_gline()</a>.<div class="fragment"><pre class="fragment"><a name="l00664"></a>00664 { +<a name="l00665"></a>00665 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fgline_28const_20char_20_2Ahostmask_29">del_gline</a>(hostmask.c_str()); +<a name="l00666"></a>00666 } </pre></div> <p> </td> @@ -1296,11 +1296,11 @@ Deletes a local K-Line. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00751">751</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00678">678</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="xline_8h.html#del_5Fkline_28const_20char_20_2Ahostmask_29">del_kline()</a>.<div class="fragment"><pre class="fragment"><a name="l00752"></a>00752 { -<a name="l00753"></a>00753 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fkline_28const_20char_20_2Ahostmask_29">del_kline</a>(hostmask.c_str()); -<a name="l00754"></a>00754 } +References <a class="el" href="xline_8h.html#del_5Fkline_28const_20char_20_2Ahostmask_29">del_kline()</a>.<div class="fragment"><pre class="fragment"><a name="l00679"></a>00679 { +<a name="l00680"></a>00680 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fkline_28const_20char_20_2Ahostmask_29">del_kline</a>(hostmask.c_str()); +<a name="l00681"></a>00681 } </pre></div> <p> </td> @@ -1335,11 +1335,11 @@ Deletes a Q-Line from all servers on the mesh. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00741">741</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00668">668</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="xline_8h.html#del_5Fqline_28const_20char_20_2Anickname_29">del_qline()</a>.<div class="fragment"><pre class="fragment"><a name="l00742"></a>00742 { -<a name="l00743"></a>00743 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fqline_28const_20char_20_2Anickname_29">del_qline</a>(nickname.c_str()); -<a name="l00744"></a>00744 } +References <a class="el" href="xline_8h.html#del_5Fqline_28const_20char_20_2Anickname_29">del_qline()</a>.<div class="fragment"><pre class="fragment"><a name="l00669"></a>00669 { +<a name="l00670"></a>00670 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fqline_28const_20char_20_2Anickname_29">del_qline</a>(nickname.c_str()); +<a name="l00671"></a>00671 } </pre></div> <p> </td> @@ -1374,18 +1374,18 @@ Deletes a class derived from <a class="el" href="classInspSocket.html">InspSocke <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00405">405</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00332">332</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.<div class="fragment"><pre class="fragment"><a name="l00406"></a>00406 { -<a name="l00407"></a>00407 <span class="keywordflow">for</span> (std::vector<InspSocket*>::iterator a = <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.begin(); a < <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.end(); a++) -<a name="l00408"></a>00408 { -<a name="l00409"></a>00409 <span class="keywordflow">if</span> (*a == sock) -<a name="l00410"></a>00410 { -<a name="l00411"></a>00411 <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.erase(a); -<a name="l00412"></a>00412 <span class="keywordflow">return</span>; -<a name="l00413"></a>00413 } -<a name="l00414"></a>00414 } -<a name="l00415"></a>00415 } +References <a class="el" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.<div class="fragment"><pre class="fragment"><a name="l00333"></a>00333 { +<a name="l00334"></a>00334 <span class="keywordflow">for</span> (std::vector<InspSocket*>::iterator a = <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.begin(); a < <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.end(); a++) +<a name="l00335"></a>00335 { +<a name="l00336"></a>00336 <span class="keywordflow">if</span> (*a == sock) +<a name="l00337"></a>00337 { +<a name="l00338"></a>00338 <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.erase(a); +<a name="l00339"></a>00339 <span class="keywordflow">return</span>; +<a name="l00340"></a>00340 } +<a name="l00341"></a>00341 } +<a name="l00342"></a>00342 } </pre></div> <p> </td> @@ -1420,11 +1420,11 @@ Deletes a Z-Line from all servers on the mesh. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00746">746</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00673">673</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">del_zline()</a>.<div class="fragment"><pre class="fragment"><a name="l00747"></a>00747 { -<a name="l00748"></a>00748 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">del_zline</a>(ipaddr.c_str()); -<a name="l00749"></a>00749 } +References <a class="el" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">del_zline()</a>.<div class="fragment"><pre class="fragment"><a name="l00674"></a>00674 { +<a name="l00675"></a>00675 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">del_zline</a>(ipaddr.c_str()); +<a name="l00676"></a>00676 } </pre></div> <p> </td> @@ -1459,9 +1459,9 @@ Attempts to look up a channel and return a pointer to it. <p> This function will return NULL if the channel does not exist. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00590">590</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00591"></a>00591 { -<a name="l00592"></a>00592 <span class="keywordflow">return</span> FindChan(channel.c_str()); -<a name="l00593"></a>00593 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00517">517</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00518"></a>00518 { +<a name="l00519"></a>00519 <span class="keywordflow">return</span> FindChan(channel.c_str()); +<a name="l00520"></a>00520 } </pre></div> <p> </td> @@ -1496,9 +1496,9 @@ Attempts to look up a nick using the file descriptor associated with that nick. <p> This function will return NULL if the file descriptor is not associated with a valid user. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00585">585</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00586"></a>00586 { -<a name="l00587"></a>00587 <span class="keywordflow">return</span> (socket < 65536 ? fd_ref_table[socket] : NULL); -<a name="l00588"></a>00588 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00512">512</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00513"></a>00513 { +<a name="l00514"></a>00514 <span class="keywordflow">return</span> (socket < 65536 ? fd_ref_table[socket] : NULL); +<a name="l00515"></a>00515 } </pre></div> <p> </td> @@ -1533,18 +1533,18 @@ This function finds a module by name. <p> You must provide the filename of the module. If the module cannot be found (is not loaded) the function will return NULL. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00795">795</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8cpp-source.html#l01005">MODCOUNT</a>, <a class="el" href="channels_8cpp.html#module_5Fnames">module_names</a>, and <a class="el" href="channels_8cpp.html#modules">modules</a>.<div class="fragment"><pre class="fragment"><a name="l00796"></a>00796 { -<a name="l00797"></a>00797 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i <= <a class="code" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a>; i++) -<a name="l00798"></a>00798 { -<a name="l00799"></a>00799 <span class="keywordflow">if</span> (module_names[i] == name) -<a name="l00800"></a>00800 { -<a name="l00801"></a>00801 <span class="keywordflow">return</span> <a class="code" href="channels_8cpp.html#modules">modules</a>[i]; -<a name="l00802"></a>00802 } -<a name="l00803"></a>00803 } -<a name="l00804"></a>00804 <span class="keywordflow">return</span> NULL; -<a name="l00805"></a>00805 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00722">722</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8cpp-source.html#l00933">MODCOUNT</a>, <a class="el" href="inspircd__io_8h-source.html#l00076">ServerConfig::module_names</a>, and <a class="el" href="channels_8cpp.html#modules">modules</a>.<div class="fragment"><pre class="fragment"><a name="l00723"></a>00723 { +<a name="l00724"></a>00724 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i <= <a class="code" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a>; i++) +<a name="l00725"></a>00725 { +<a name="l00726"></a>00726 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#module_5Fnames">module_names</a>[i] == name) +<a name="l00727"></a>00727 { +<a name="l00728"></a>00728 <span class="keywordflow">return</span> <a class="code" href="channels_8cpp.html#modules">modules</a>[i]; +<a name="l00729"></a>00729 } +<a name="l00730"></a>00730 } +<a name="l00731"></a>00731 <span class="keywordflow">return</span> NULL; +<a name="l00732"></a>00732 } </pre></div> <p> </td> @@ -1579,9 +1579,9 @@ Attempts to look up a nick and return a pointer to it. <p> This function will return NULL if the nick does not exist. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00580">580</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00581"></a>00581 { -<a name="l00582"></a>00582 <span class="keywordflow">return</span> Find(nick); -<a name="l00583"></a>00583 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00507">507</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00508"></a>00508 { +<a name="l00509"></a>00509 <span class="keywordflow">return</span> Find(nick); +<a name="l00510"></a>00510 } </pre></div> <p> </td> @@ -1615,9 +1615,9 @@ Returns the information of the server as returned by the /ADMIN command. <p> See the <a class="el" href="classAdmin.html">Admin</a> class for further information of the return value. The members <a class="el" href="classAdmin.html#Nick">Admin::Nick</a>, <a class="el" href="classAdmin.html#Email">Admin::Email</a> and <a class="el" href="classAdmin.html#Name">Admin::Name</a> contain the information for the server where the module is loaded. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00620">620</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00621"></a>00621 { -<a name="l00622"></a>00622 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); -<a name="l00623"></a>00623 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00547">547</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00548"></a>00548 { +<a name="l00549"></a>00549 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); +<a name="l00550"></a>00550 } </pre></div> <p> </td> @@ -1651,9 +1651,9 @@ Returns the network name, global to all linked servers. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00610">610</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00611"></a>00611 { -<a name="l00612"></a>00612 <span class="keywordflow">return</span> getnetworkname(); -<a name="l00613"></a>00613 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00537">537</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00538"></a>00538 { +<a name="l00539"></a>00539 <span class="keywordflow">return</span> getnetworkname(); +<a name="l00540"></a>00540 } </pre></div> <p> </td> @@ -1687,9 +1687,9 @@ Returns the server description string of the local server. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00615">615</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00616"></a>00616 { -<a name="l00617"></a>00617 <span class="keywordflow">return</span> getserverdesc(); -<a name="l00618"></a>00618 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00542">542</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00543"></a>00543 { +<a name="l00544"></a>00544 <span class="keywordflow">return</span> getserverdesc(); +<a name="l00545"></a>00545 } </pre></div> <p> </td> @@ -1723,9 +1723,9 @@ Returns the server name of the server where the module is loaded. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00605">605</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00606"></a>00606 { -<a name="l00607"></a>00607 <span class="keywordflow">return</span> getservername(); -<a name="l00608"></a>00608 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00532">532</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00533"></a>00533 { +<a name="l00534"></a>00534 <span class="keywordflow">return</span> getservername(); +<a name="l00535"></a>00535 } </pre></div> <p> </td> @@ -1760,19 +1760,19 @@ Fetches the userlist of a channel. <p> This function must be here and not a member of userrec or chanrec due to include constraints. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00445">445</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="channels_8cpp-source.html#l00214">chanrec::GetUsers()</a>, and <a class="el" href="channels_8cpp.html#list_5BMAXBUF_5D">list</a>.<div class="fragment"><pre class="fragment"><a name="l00446"></a>00446 { -<a name="l00447"></a>00447 <a class="code" href="modules_8h.html#chanuserlist">chanuserlist</a> userl; -<a name="l00448"></a>00448 userl.clear(); -<a name="l00449"></a>00449 std::vector<char*> *<a class="code" href="channels_8cpp.html#list_5BMAXBUF_5D">list</a> = chan-><a class="code" href="classchanrec.html#GetUsers_28_29">GetUsers</a>(); -<a name="l00450"></a>00450 <span class="keywordflow">for</span> (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) -<a name="l00451"></a>00451 { -<a name="l00452"></a>00452 <span class="keywordtype">char</span>* o = *i; -<a name="l00453"></a>00453 userl.push_back((<a class="code" href="classuserrec.html">userrec</a>*)o); -<a name="l00454"></a>00454 } -<a name="l00455"></a>00455 <span class="keywordflow">return</span> userl; -<a name="l00456"></a>00456 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00372">372</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="channels_8cpp-source.html#l00186">chanrec::GetUsers()</a>.<div class="fragment"><pre class="fragment"><a name="l00373"></a>00373 { +<a name="l00374"></a>00374 <a class="code" href="modules_8h.html#chanuserlist">chanuserlist</a> userl; +<a name="l00375"></a>00375 userl.clear(); +<a name="l00376"></a>00376 std::vector<char*> *list = chan-><a class="code" href="classchanrec.html#GetUsers_28_29">GetUsers</a>(); +<a name="l00377"></a>00377 <span class="keywordflow">for</span> (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) +<a name="l00378"></a>00378 { +<a name="l00379"></a>00379 <span class="keywordtype">char</span>* o = *i; +<a name="l00380"></a>00380 userl.push_back((<a class="code" href="classuserrec.html">userrec</a>*)o); +<a name="l00381"></a>00381 } +<a name="l00382"></a>00382 <span class="keywordflow">return</span> userl; +<a name="l00383"></a>00383 } </pre></div> <p> </td> @@ -1807,11 +1807,11 @@ Returns true if a nick is valid. <p> Nicks for unregistered connections will return false. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00575">575</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00502">502</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="message_8h.html#isnick_28const_20char_20_2An_29">isnick()</a>.<div class="fragment"><pre class="fragment"><a name="l00576"></a>00576 { -<a name="l00577"></a>00577 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#isnick_28const_20char_20_2An_29">isnick</a>(nick.c_str()) != 0); -<a name="l00578"></a>00578 } +References <a class="el" href="message_8h.html#isnick_28const_20char_20_2An_29">isnick()</a>.<div class="fragment"><pre class="fragment"><a name="l00503"></a>00503 { +<a name="l00504"></a>00504 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#isnick_28const_20char_20_2An_29">isnick</a>(nick.c_str()) != 0); +<a name="l00505"></a>00505 } </pre></div> <p> </td> @@ -1855,11 +1855,11 @@ Checks if a user is on a channel. <p> This function will return true or false to indicate if user 'User' is on channel 'Chan'. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00600">600</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00527">527</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="message_8h.html#has_5Fchannel_28userrec_20_2Au_2C_20chanrec_20_2Ac_29">has_channel()</a>.<div class="fragment"><pre class="fragment"><a name="l00601"></a>00601 { -<a name="l00602"></a>00602 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#has_5Fchannel_28userrec_20_2Au_2C_20chanrec_20_2Ac_29">has_channel</a>(User,Chan); -<a name="l00603"></a>00603 } +References <a class="el" href="message_8h.html#has_5Fchannel_28userrec_20_2Au_2C_20chanrec_20_2Ac_29">has_channel()</a>.<div class="fragment"><pre class="fragment"><a name="l00528"></a>00528 { +<a name="l00529"></a>00529 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#has_5Fchannel_28userrec_20_2Au_2C_20chanrec_20_2Ac_29">has_channel</a>(User,Chan); +<a name="l00530"></a>00530 } </pre></div> <p> </td> @@ -1894,11 +1894,11 @@ Returns true if the servername you give is ulined. <p> ULined servers have extra privilages. They are allowed to change nicknames on remote servers, change modes of clients which are on remote servers and set modes of channels where there are no channel operators for that channel on the ulined server, amongst other things. Ulined server data is also broadcast across the mesh at all times as opposed to selectively messaged in the case of normal servers, as many ulined server types (such as services) do not support meshed links and must operate in this manner. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00467">467</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00394">394</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline()</a>.<div class="fragment"><pre class="fragment"><a name="l00468"></a>00468 { -<a name="l00469"></a>00469 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline</a>(server.c_str()); -<a name="l00470"></a>00470 } +References <a class="el" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline()</a>.<div class="fragment"><pre class="fragment"><a name="l00395"></a>00395 { +<a name="l00396"></a>00396 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline</a>(server.c_str()); +<a name="l00397"></a>00397 } </pre></div> <p> </td> @@ -1933,33 +1933,33 @@ Returns true if a nick!ident string is correctly formatted, false if otherwise. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00766">766</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00767"></a>00767 { -<a name="l00768"></a>00768 <span class="keyword">const</span> <span class="keywordtype">char</span>* dest = mask.c_str(); -<a name="l00769"></a>00769 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'!'</span>)==0) -<a name="l00770"></a>00770 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00771"></a>00771 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'@'</span>)==0) -<a name="l00772"></a>00772 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00773"></a>00773 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -<a name="l00774"></a>00774 <span class="keywordflow">if</span> (dest[i] < 32) -<a name="l00775"></a>00775 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00776"></a>00776 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -<a name="l00777"></a>00777 <span class="keywordflow">if</span> (dest[i] > 126) -<a name="l00778"></a>00778 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00779"></a>00779 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> c = 0; -<a name="l00780"></a>00780 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -<a name="l00781"></a>00781 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'!'</span>) -<a name="l00782"></a>00782 c++; -<a name="l00783"></a>00783 <span class="keywordflow">if</span> (c>1) -<a name="l00784"></a>00784 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00785"></a>00785 c = 0; -<a name="l00786"></a>00786 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -<a name="l00787"></a>00787 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'@'</span>) -<a name="l00788"></a>00788 c++; -<a name="l00789"></a>00789 <span class="keywordflow">if</span> (c>1) -<a name="l00790"></a>00790 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00791"></a>00791 -<a name="l00792"></a>00792 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00793"></a>00793 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00693">693</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00694"></a>00694 { +<a name="l00695"></a>00695 <span class="keyword">const</span> <span class="keywordtype">char</span>* dest = mask.c_str(); +<a name="l00696"></a>00696 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'!'</span>)==0) +<a name="l00697"></a>00697 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00698"></a>00698 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'@'</span>)==0) +<a name="l00699"></a>00699 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00700"></a>00700 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +<a name="l00701"></a>00701 <span class="keywordflow">if</span> (dest[i] < 32) +<a name="l00702"></a>00702 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00703"></a>00703 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +<a name="l00704"></a>00704 <span class="keywordflow">if</span> (dest[i] > 126) +<a name="l00705"></a>00705 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00706"></a>00706 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> c = 0; +<a name="l00707"></a>00707 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +<a name="l00708"></a>00708 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'!'</span>) +<a name="l00709"></a>00709 c++; +<a name="l00710"></a>00710 <span class="keywordflow">if</span> (c>1) +<a name="l00711"></a>00711 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00712"></a>00712 c = 0; +<a name="l00713"></a>00713 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +<a name="l00714"></a>00714 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'@'</span>) +<a name="l00715"></a>00715 c++; +<a name="l00716"></a>00716 <span class="keywordflow">if</span> (c>1) +<a name="l00717"></a>00717 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00718"></a>00718 +<a name="l00719"></a>00719 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00720"></a>00720 } </pre></div> <p> </td> @@ -2007,9 +2007,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00766">766</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00477">477</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00478"></a>00478 { -<a name="l00479"></a>00479 <span class="keywordflow">return</span> is_valid_cmd(commandname.c_str(), pcnt, user); -<a name="l00480"></a>00480 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00404">404</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00405"></a>00405 { +<a name="l00406"></a>00406 <span class="keywordflow">return</span> is_valid_cmd(commandname.c_str(), pcnt, user); +<a name="l00407"></a>00407 } </pre></div> <p> </td> @@ -2059,9 +2059,9 @@ Forces a user to join a channel. <p> This is similar to svsjoin and can be used to implement redirection, etc. On success, the return value is a valid pointer to a chanrec* of the channel the user was joined to. On failure, the result is NULL. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00435">435</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00436"></a>00436 { -<a name="l00437"></a>00437 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">false</span>); -<a name="l00438"></a>00438 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00362">362</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00363"></a>00363 { +<a name="l00364"></a>00364 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">false</span>); +<a name="l00365"></a>00365 } </pre></div> <p> </td> @@ -2105,9 +2105,9 @@ Writes a log string. <p> This method writes a line of text to the log. If the level given is lower than the level given in the configuration, this command has no effect. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00482">482</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00483"></a>00483 { -<a name="l00484"></a>00484 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00485"></a>00485 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00409">409</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00410"></a>00410 { +<a name="l00411"></a>00411 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00412"></a>00412 } </pre></div> <p> </td> @@ -2151,12 +2151,12 @@ Matches text against a glob pattern. <p> Uses the ircd's internal matching function to match string against a globbing pattern, e.g. *!*@*.com Returns true if the literal successfully matches the pattern, false if otherwise. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00422">422</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00423"></a>00423 { -<a name="l00424"></a>00424 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; -<a name="l00425"></a>00425 strlcpy(literal,sliteral.c_str(),MAXBUF); -<a name="l00426"></a>00426 strlcpy(pattern,spattern.c_str(),MAXBUF); -<a name="l00427"></a>00427 <span class="keywordflow">return</span> match(literal,pattern); -<a name="l00428"></a>00428 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00349">349</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00350"></a>00350 { +<a name="l00351"></a>00351 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; +<a name="l00352"></a>00352 strlcpy(literal,sliteral.c_str(),MAXBUF); +<a name="l00353"></a>00353 strlcpy(pattern,spattern.c_str(),MAXBUF); +<a name="l00354"></a>00354 <span class="keywordflow">return</span> match(literal,pattern); +<a name="l00355"></a>00355 } </pre></div> <p> </td> @@ -2206,9 +2206,9 @@ Forces a user to part a channel. <p> This is similar to svspart and can be used to implement redirection, etc. Although the return value of this function is a pointer to a channel record, the returned data is undefined and should not be read or written to. This behaviour may be changed in a future version. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00440">440</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00441"></a>00441 { -<a name="l00442"></a>00442 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); -<a name="l00443"></a>00443 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00367">367</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00368"></a>00368 { +<a name="l00369"></a>00369 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); +<a name="l00370"></a>00370 } </pre></div> <p> </td> @@ -2258,36 +2258,36 @@ This user takes one user, and switches their file descriptor with another user, <p> The user in 'alive' is booted off the server with the given message. The user referred to by 'zombie' should have previously been locked with Server::ZombifyUser, otherwise stale sockets and file descriptor leaks can occur. After this call, the pointer to alive will be invalid, and the pointer to zombie will be equivalent in effect to the old pointer to alive. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00681">681</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="channels_8h-source.html#l00252">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00149">userrec::chans</a>, <a class="el" href="users_8cpp-source.html#l00239">userrec::ClearBuffer()</a>, <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>, <a class="el" href="modules_8h-source.html#l00101">FD_MAGIC_NUMBER</a>, <a class="el" href="connection_8h-source.html#l00046">connection::host</a>, <a class="el" href="users_8h-source.html#l00129">userrec::ident</a>, <a class="el" href="channels_8h-source.html#l00106">chanrec::name</a>, <a class="el" href="users_8h-source.html#l00124">userrec::nick</a>, <a class="el" href="channels_8h-source.html#l00131">chanrec::setby</a>, <a class="el" href="channels_8h-source.html#l00120">chanrec::topic</a>, and <a class="el" href="channels_8h-source.html#l00127">chanrec::topicset</a>.<div class="fragment"><pre class="fragment"><a name="l00682"></a>00682 { -<a name="l00683"></a>00683 zombie-><a class="code" href="classconnection.html#fd">fd</a> = alive-><a class="code" href="classconnection.html#fd">fd</a>; -<a name="l00684"></a>00684 alive-><a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="modules_8h.html#FD_5FMAGIC_5FNUMBER">FD_MAGIC_NUMBER</a>; -<a name="l00685"></a>00685 alive-><a class="code" href="classuserrec.html#ClearBuffer_28_29">ClearBuffer</a>(); -<a name="l00686"></a>00686 Write(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">":%s!%s@%s NICK %s"</span>,alive-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,alive-><a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,alive-><a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); -<a name="l00687"></a>00687 kill_link(alive,message.c_str()); -<a name="l00688"></a>00688 <a class="code" href="modules_8cpp.html#fd_5Fref_5Ftable_5B_36_35_35_33_36_5D">fd_ref_table</a>[zombie-><a class="code" href="classconnection.html#fd">fd</a>] = zombie; -<a name="l00689"></a>00689 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i != MAXCHANS; i++) -<a name="l00690"></a>00690 { -<a name="l00691"></a>00691 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[i].<a class="code" href="classucrec.html#channel">channel</a> != NULL) -<a name="l00692"></a>00692 { -<a name="l00693"></a>00693 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[i].<a class="code" href="classucrec.html#channel">channel</a>-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>) -<a name="l00694"></a>00694 { -<a name="l00695"></a>00695 <a class="code" href="classchanrec.html">chanrec</a>* Ptr = zombie-><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[i].<a class="code" href="classucrec.html#channel">channel</a>; -<a name="l00696"></a>00696 WriteFrom(zombie-><a class="code" href="classconnection.html#fd">fd</a>,zombie,<span class="stringliteral">"JOIN %s"</span>,Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); -<a name="l00697"></a>00697 <span class="keywordflow">if</span> (Ptr-><a class="code" href="classchanrec.html#topicset">topicset</a>) -<a name="l00698"></a>00698 { -<a name="l00699"></a>00699 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"332 %s %s :%s"</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>, Ptr-><a class="code" href="classchanrec.html#topic_5BMAXBUF_5D">topic</a>); -<a name="l00700"></a>00700 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"333 %s %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>, Ptr-><a class="code" href="classchanrec.html#setby_5BNICKMAX_5D">setby</a>, Ptr-><a class="code" href="classchanrec.html#topicset">topicset</a>); -<a name="l00701"></a>00701 } -<a name="l00702"></a>00702 userlist(zombie,Ptr); -<a name="l00703"></a>00703 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"366 %s %s :End of /NAMES list."</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); -<a name="l00704"></a>00704 -<a name="l00705"></a>00705 } -<a name="l00706"></a>00706 } -<a name="l00707"></a>00707 } -<a name="l00708"></a>00708 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00709"></a>00709 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00608">608</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="users_8h-source.html#l00149">userrec::chans</a>, <a class="el" href="users_8cpp-source.html#l00232">userrec::ClearBuffer()</a>, <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>, <a class="el" href="modules_8h-source.html#l00101">FD_MAGIC_NUMBER</a>, <a class="el" href="connection_8h-source.html#l00046">connection::host</a>, <a class="el" href="users_8h-source.html#l00129">userrec::ident</a>, <a class="el" href="channels_8h-source.html#l00106">chanrec::name</a>, <a class="el" href="users_8h-source.html#l00124">userrec::nick</a>, <a class="el" href="channels_8h-source.html#l00131">chanrec::setby</a>, <a class="el" href="channels_8h-source.html#l00120">chanrec::topic</a>, and <a class="el" href="channels_8h-source.html#l00127">chanrec::topicset</a>.<div class="fragment"><pre class="fragment"><a name="l00609"></a>00609 { +<a name="l00610"></a>00610 zombie-><a class="code" href="classconnection.html#fd">fd</a> = alive-><a class="code" href="classconnection.html#fd">fd</a>; +<a name="l00611"></a>00611 alive-><a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="modules_8h.html#FD_5FMAGIC_5FNUMBER">FD_MAGIC_NUMBER</a>; +<a name="l00612"></a>00612 alive-><a class="code" href="classuserrec.html#ClearBuffer_28_29">ClearBuffer</a>(); +<a name="l00613"></a>00613 Write(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">":%s!%s@%s NICK %s"</span>,alive-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,alive-><a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,alive-><a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); +<a name="l00614"></a>00614 kill_link(alive,message.c_str()); +<a name="l00615"></a>00615 <a class="code" href="modules_8cpp.html#fd_5Fref_5Ftable_5B_36_35_35_33_36_5D">fd_ref_table</a>[zombie-><a class="code" href="classconnection.html#fd">fd</a>] = zombie; +<a name="l00616"></a>00616 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < zombie->chans.size(); i++) +<a name="l00617"></a>00617 { +<a name="l00618"></a>00618 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#chans">chans</a>[i].channel != NULL) +<a name="l00619"></a>00619 { +<a name="l00620"></a>00620 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#chans">chans</a>[i].channel->name) +<a name="l00621"></a>00621 { +<a name="l00622"></a>00622 <a class="code" href="classchanrec.html">chanrec</a>* Ptr = zombie-><a class="code" href="classuserrec.html#chans">chans</a>[i].channel; +<a name="l00623"></a>00623 WriteFrom(zombie-><a class="code" href="classconnection.html#fd">fd</a>,zombie,<span class="stringliteral">"JOIN %s"</span>,Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); +<a name="l00624"></a>00624 <span class="keywordflow">if</span> (Ptr-><a class="code" href="classchanrec.html#topicset">topicset</a>) +<a name="l00625"></a>00625 { +<a name="l00626"></a>00626 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"332 %s %s :%s"</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>, Ptr-><a class="code" href="classchanrec.html#topic_5BMAXBUF_5D">topic</a>); +<a name="l00627"></a>00627 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"333 %s %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>, Ptr-><a class="code" href="classchanrec.html#setby_5BNICKMAX_5D">setby</a>, Ptr-><a class="code" href="classchanrec.html#topicset">topicset</a>); +<a name="l00628"></a>00628 } +<a name="l00629"></a>00629 userlist(zombie,Ptr); +<a name="l00630"></a>00630 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"366 %s %s :End of /NAMES list."</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); +<a name="l00631"></a>00631 +<a name="l00632"></a>00632 } +<a name="l00633"></a>00633 } +<a name="l00634"></a>00634 } +<a name="l00635"></a>00635 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00636"></a>00636 } </pre></div> <p> </td> @@ -2333,9 +2333,9 @@ To the user, it will appear as if they typed /QUIT themselves, except for the fa WARNING!<p> Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00462">462</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00463"></a>00463 { -<a name="l00464"></a>00464 kill_link(user,reason.c_str()); -<a name="l00465"></a>00465 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00389">389</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00390"></a>00390 { +<a name="l00391"></a>00391 kill_link(user,reason.c_str()); +<a name="l00392"></a>00392 } </pre></div> <p> </td> @@ -2367,10 +2367,12 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00462">462</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00399">399</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00400"></a>00400 { -<a name="l00401"></a>00401 WriteOpers(<span class="stringliteral">"*** Rehashing config file"</span>); -<a name="l00402"></a>00402 ReadConfig(<span class="keyword">false</span>,NULL); -<a name="l00403"></a>00403 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00326">326</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="classServerConfig.html#Read_28bool_20bail_2C_20userrec_20_2Auser_29">ServerConfig::Read()</a>.<div class="fragment"><pre class="fragment"><a name="l00327"></a>00327 { +<a name="l00328"></a>00328 WriteOpers(<span class="stringliteral">"*** Rehashing config file"</span>); +<a name="l00329"></a>00329 <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#Read_28bool_20bail_2C_20userrec_20_2Auser_29">Read</a>(<span class="keyword">false</span>,NULL); +<a name="l00330"></a>00330 } </pre></div> <p> </td> @@ -2414,9 +2416,9 @@ Sends a line of text down a TCP/IP socket. <p> This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00497">497</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00498"></a>00498 { -<a name="l00499"></a>00499 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00500"></a>00500 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00424">424</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00425"></a>00425 { +<a name="l00426"></a>00426 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00427"></a>00427 } </pre></div> <p> </td> @@ -2472,16 +2474,16 @@ Sends text from a user to a channel (mulicast). <p> This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459). <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00531">531</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00532"></a>00532 { -<a name="l00533"></a>00533 <span class="keywordflow">if</span> (IncludeSender) -<a name="l00534"></a>00534 { -<a name="l00535"></a>00535 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00536"></a>00536 } -<a name="l00537"></a>00537 <span class="keywordflow">else</span> -<a name="l00538"></a>00538 { -<a name="l00539"></a>00539 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00540"></a>00540 } -<a name="l00541"></a>00541 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00458">458</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00459"></a>00459 { +<a name="l00460"></a>00460 <span class="keywordflow">if</span> (IncludeSender) +<a name="l00461"></a>00461 { +<a name="l00462"></a>00462 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00463"></a>00463 } +<a name="l00464"></a>00464 <span class="keywordflow">else</span> +<a name="l00465"></a>00465 { +<a name="l00466"></a>00466 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00467"></a>00467 } +<a name="l00468"></a>00468 } </pre></div> <p> </td> @@ -2531,9 +2533,9 @@ Writes text to a channel, but from a server, including all. <p> This can be used to send server notices to a group of users. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00526">526</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00527"></a>00527 { -<a name="l00528"></a>00528 WriteChannelWithServ((<span class="keywordtype">char</span>*)ServName.c_str(), Channel, <span class="stringliteral">"%s"</span>, text.c_str()); -<a name="l00529"></a>00529 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00453">453</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00454"></a>00454 { +<a name="l00455"></a>00455 WriteChannelWithServ((<span class="keywordtype">char</span>*)ServName.c_str(), Channel, <span class="stringliteral">"%s"</span>, text.c_str()); +<a name="l00456"></a>00456 } </pre></div> <p> </td> @@ -2583,16 +2585,16 @@ Sends text from a user to one or more channels (mulicast). <p> This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00548">548</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00549"></a>00549 { -<a name="l00550"></a>00550 <span class="keywordflow">if</span> (IncludeSender) -<a name="l00551"></a>00551 { -<a name="l00552"></a>00552 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); -<a name="l00553"></a>00553 } -<a name="l00554"></a>00554 <span class="keywordflow">else</span> -<a name="l00555"></a>00555 { -<a name="l00556"></a>00556 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); -<a name="l00557"></a>00557 } -<a name="l00558"></a>00558 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00475">475</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00476"></a>00476 { +<a name="l00477"></a>00477 <span class="keywordflow">if</span> (IncludeSender) +<a name="l00478"></a>00478 { +<a name="l00479"></a>00479 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); +<a name="l00480"></a>00480 } +<a name="l00481"></a>00481 <span class="keywordflow">else</span> +<a name="l00482"></a>00482 { +<a name="l00483"></a>00483 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); +<a name="l00484"></a>00484 } +<a name="l00485"></a>00485 } </pre></div> <p> </td> @@ -2642,9 +2644,9 @@ Sends text from a user to a socket. <p> This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459) <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00507">507</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00508"></a>00508 { -<a name="l00509"></a>00509 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00510"></a>00510 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00434">434</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00435"></a>00435 { +<a name="l00436"></a>00436 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00437"></a>00437 } </pre></div> <p> </td> @@ -2701,11 +2703,11 @@ modes[2] = user->nick;<p> Srv->SendMode(modes,3,user);<p> The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state! <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00492">492</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00419">419</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="mode_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">server_mode()</a>.<div class="fragment"><pre class="fragment"><a name="l00493"></a>00493 { -<a name="l00494"></a>00494 <a class="code" href="mode_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">server_mode</a>(parameters,pcnt,user); -<a name="l00495"></a>00495 } +References <a class="el" href="mode_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">server_mode()</a>.<div class="fragment"><pre class="fragment"><a name="l00420"></a>00420 { +<a name="l00421"></a>00421 <a class="code" href="mode_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">server_mode</a>(parameters,pcnt,user); +<a name="l00422"></a>00422 } </pre></div> <p> </td> @@ -2740,9 +2742,9 @@ Sends text to all opers. <p> This method sends a server notice to all opers with the usermode +s. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00417">417</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00418"></a>00418 { -<a name="l00419"></a>00419 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00420"></a>00420 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00344">344</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00345"></a>00345 { +<a name="l00346"></a>00346 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00347"></a>00347 } </pre></div> <p> </td> @@ -2786,9 +2788,9 @@ Sends text from the server to a socket. <p> This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459) <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00502">502</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00503"></a>00503 { -<a name="l00504"></a>00504 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00505"></a>00505 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00429">429</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00430"></a>00430 { +<a name="l00431"></a>00431 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00432"></a>00432 } </pre></div> <p> </td> @@ -2842,20 +2844,20 @@ The format will become:<p> :localserver TEXT<p> Which is useful for numerics and server notices to single users, etc. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00512">512</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>.<div class="fragment"><pre class="fragment"><a name="l00513"></a>00513 { -<a name="l00514"></a>00514 <span class="keywordflow">if</span> (!Source) -<a name="l00515"></a>00515 { -<a name="l00516"></a>00516 <span class="comment">// if source is NULL, then the message originates from the local server</span> -<a name="l00517"></a>00517 Write(Dest-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); -<a name="l00518"></a>00518 } -<a name="l00519"></a>00519 <span class="keywordflow">else</span> -<a name="l00520"></a>00520 { -<a name="l00521"></a>00521 <span class="comment">// otherwise it comes from the user specified</span> -<a name="l00522"></a>00522 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00523"></a>00523 } -<a name="l00524"></a>00524 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00439">439</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>.<div class="fragment"><pre class="fragment"><a name="l00440"></a>00440 { +<a name="l00441"></a>00441 <span class="keywordflow">if</span> (!Source) +<a name="l00442"></a>00442 { +<a name="l00443"></a>00443 <span class="comment">// if source is NULL, then the message originates from the local server</span> +<a name="l00444"></a>00444 Write(Dest-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); +<a name="l00445"></a>00445 } +<a name="l00446"></a>00446 <span class="keywordflow">else</span> +<a name="l00447"></a>00447 { +<a name="l00448"></a>00448 <span class="comment">// otherwise it comes from the user specified</span> +<a name="l00449"></a>00449 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00450"></a>00450 } +<a name="l00451"></a>00451 } </pre></div> <p> </td> @@ -2907,9 +2909,9 @@ These can be RFC specified modes such as +i, or module provided modes, including Serv->SendToModeMask("xi", WM_OR, "m00");<p> Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00430">430</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00431"></a>00431 { -<a name="l00432"></a>00432 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); -<a name="l00433"></a>00433 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00357">357</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00358"></a>00358 { +<a name="l00359"></a>00359 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); +<a name="l00360"></a>00360 } </pre></div> <p> </td> @@ -2953,9 +2955,9 @@ Sends a WALLOPS message. <p> This method writes a WALLOPS message to all users with the +w flag, originating from the specified user. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00560">560</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00561"></a>00561 { -<a name="l00562"></a>00562 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); -<a name="l00563"></a>00563 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00487">487</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00488"></a>00488 { +<a name="l00489"></a>00489 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); +<a name="l00490"></a>00490 } </pre></div> <p> </td> @@ -2999,18 +3001,18 @@ Remove a user's connection to the irc server, but leave their client in existenc <p> When you call this function, the user's file descriptor will be replaced with the value of FD_MAGIC_NUMBER and their old file descriptor will be closed. This idle client will remain until it is restored with a valid file descriptor, or is removed from IRC by an operator After this call, the pointer to user will be invalid. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00669">669</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="users_8cpp-source.html#l00239">userrec::ClearBuffer()</a>, <a class="el" href="socketengine_8cpp-source.html#l00103">SocketEngine::DelFd()</a>, <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>, <a class="el" href="modules_8h-source.html#l00101">FD_MAGIC_NUMBER</a>, <a class="el" href="connection_8h-source.html#l00046">connection::host</a>, and <a class="el" href="users_8h-source.html#l00129">userrec::ident</a>.<div class="fragment"><pre class="fragment"><a name="l00670"></a>00670 { -<a name="l00671"></a>00671 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> old_fd = user-><a class="code" href="classconnection.html#fd">fd</a>; -<a name="l00672"></a>00672 user-><a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="modules_8h.html#FD_5FMAGIC_5FNUMBER">FD_MAGIC_NUMBER</a>; -<a name="l00673"></a>00673 user-><a class="code" href="classuserrec.html#ClearBuffer_28_29">ClearBuffer</a>(); -<a name="l00674"></a>00674 Write(old_fd,<span class="stringliteral">"ERROR :Closing link (%s@%s) [%s]"</span>,user-><a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,user-><a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,message.c_str()); -<a name="l00675"></a>00675 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#DelFd_28int_20fd_29">DelFd</a>(old_fd); -<a name="l00676"></a>00676 shutdown(old_fd,2); -<a name="l00677"></a>00677 close(old_fd); -<a name="l00678"></a>00678 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00679"></a>00679 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00596">596</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="users_8cpp-source.html#l00232">userrec::ClearBuffer()</a>, <a class="el" href="socketengine_8cpp-source.html#l00103">SocketEngine::DelFd()</a>, <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>, <a class="el" href="modules_8h-source.html#l00101">FD_MAGIC_NUMBER</a>, <a class="el" href="connection_8h-source.html#l00046">connection::host</a>, and <a class="el" href="users_8h-source.html#l00129">userrec::ident</a>.<div class="fragment"><pre class="fragment"><a name="l00597"></a>00597 { +<a name="l00598"></a>00598 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> old_fd = user-><a class="code" href="classconnection.html#fd">fd</a>; +<a name="l00599"></a>00599 user-><a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="modules_8h.html#FD_5FMAGIC_5FNUMBER">FD_MAGIC_NUMBER</a>; +<a name="l00600"></a>00600 user-><a class="code" href="classuserrec.html#ClearBuffer_28_29">ClearBuffer</a>(); +<a name="l00601"></a>00601 Write(old_fd,<span class="stringliteral">"ERROR :Closing link (%s@%s) [%s]"</span>,user-><a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,user-><a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,message.c_str()); +<a name="l00602"></a>00602 <a class="code" href="modules_8cpp.html#SE">SE</a>-><a class="code" href="classSocketEngine.html#DelFd_28int_20fd_29">DelFd</a>(old_fd); +<a name="l00603"></a>00603 shutdown(old_fd,2); +<a name="l00604"></a>00604 close(old_fd); +<a name="l00605"></a>00605 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00606"></a>00606 } </pre></div> <p> </td> @@ -3018,7 +3020,7 @@ References <a class="el" href="users_8cpp-source.html#l00239">userrec::ClearBuff </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:33 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classServerConfig-members.html b/docs/module-doc/classServerConfig-members.html new file mode 100644 index 000000000..927a91cc5 --- /dev/null +++ b/docs/module-doc/classServerConfig-members.html @@ -0,0 +1,63 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: Member List</title> +<link href="inspircd.doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.4.4-20050815 --> +<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<h1>ServerConfig Member List</h1>This is the complete list of members for <a class="el" href="classServerConfig.html">ServerConfig</a>, including all inherited members.<p><table> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#addrs_5BMAXBUF_5D_5B_32_35_35_5D">addrs</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#AdminEmail_5BMAXBUF_5D">AdminEmail</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#AdminName_5BMAXBUF_5D">AdminName</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#AdminNick_5BMAXBUF_5D">AdminNick</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classclassbase.html#age">age</a></td><td><a class="el" href="classclassbase.html">classbase</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#AllowHalfop">AllowHalfop</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classclassbase.html#classbase_28_29">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#Classes">Classes</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#ClearStack_28_29">ClearStack</a>()</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#config_5Ff">config_f</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#ConfProcess_28char_20_2Abuffer_2C_20long_20linenumber_2C_20std_3A_3Astringstream_20_2Aerrorstream_2C_20bool_20_26error_2C_20std_3A_3Astring_20filename_29">ConfProcess</a>(char *buffer, long linenumber, std::stringstream *errorstream, bool &error, std::string filename)</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td><code> [private]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a>(char *tag, char *var, int index, char *result, std::stringstream *config)</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#ConfValueEnum_28char_20_2Atag_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValueEnum</a>(char *tag, std::stringstream *config)</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#debugging">debugging</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#DieDelay">DieDelay</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#diepass_5BMAXBUF_5D">diepass</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#DieValue_5BMAXBUF_5D">DieValue</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#DisabledCommands_5BMAXBUF_5D">DisabledCommands</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#dns_5Ftimeout">dns_timeout</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#DNSServer_5BMAXBUF_5D">DNSServer</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#EnumConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_29">EnumConf</a>(std::stringstream *config_f, const char *tag)</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#EnumValues_28std_3A_3Astringstream_20_2Aconfig_2C_20const_20char_20_2Atag_2C_20int_20index_29">EnumValues</a>(std::stringstream *config, const char *tag, int index)</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#fgets_5Fsafe_28char_20_2Abuffer_2C_20size_5Ft_20maxsize_2C_20FILE_20_2A_26file_29">fgets_safe</a>(char *buffer, size_t maxsize, FILE *&file)</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td><code> [private]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#include_5Fstack">include_stack</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td><code> [private]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">LoadConf</a>(const char *filename, std::stringstream *target, std::stringstream *errorstream)</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#log_5Ffile">log_file</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#LogLevel">LogLevel</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#MaxConn">MaxConn</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#MaxWhoResults">MaxWhoResults</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#ModPath_5B_31_30_32_34_5D">ModPath</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#module_5Fnames">module_names</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#motd_5BMAXBUF_5D">motd</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#MOTD">MOTD</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#MyExecutable_5B_31_30_32_34_5D">MyExecutable</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#NetBufferSize">NetBufferSize</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#Network_5BMAXBUF_5D">Network</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#nofork">nofork</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#PID_5B_31_30_32_34_5D">PID</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#PrefixQuit_5BMAXBUF_5D">PrefixQuit</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#Read_28bool_20bail_2C_20userrec_20_2Auser_29">Read</a>(bool bail, userrec *user)</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ReadConf</a>(std::stringstream *config_f, const char *tag, const char *var, int index, char *result)</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#restartpass_5BMAXBUF_5D">restartpass</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#RULES">RULES</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#rules_5BMAXBUF_5D">rules</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#ServerConfig_28_29">ServerConfig</a>()</td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#ServerDesc_5BMAXBUF_5D">ServerDesc</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#ServerName_5BMAXBUF_5D">ServerName</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#SoftLimit">SoftLimit</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServerConfig.html#unlimitcore">unlimitcore</a></td><td><a class="el" href="classServerConfig.html">ServerConfig</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:34 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> +</body> +</html> diff --git a/docs/module-doc/classServerConfig.html b/docs/module-doc/classServerConfig.html new file mode 100644 index 000000000..7991b1f19 --- /dev/null +++ b/docs/module-doc/classServerConfig.html @@ -0,0 +1,1512 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: ServerConfig Class Reference</title> +<link href="inspircd.doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.4.4-20050815 --> +<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<h1>ServerConfig Class Reference</h1><!-- doxytag: class="ServerConfig" --><!-- doxytag: inherits="classbase" --><code>#include <<a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>></code> +<p> +Inheritance diagram for ServerConfig:<p><center><img src="classServerConfig__inherit__graph.gif" border="0" usemap="#ServerConfig__inherit__map" alt="Inheritance graph"></center> +<map name="ServerConfig__inherit__map"> +<area href="classclassbase.html" shape="rect" coords="18,7,98,34" alt=""> +</map> +<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for ServerConfig:<p><center><img src="classServerConfig__coll__graph.gif" border="0" usemap="#ServerConfig__coll__map" alt="Collaboration graph"></center> +<map name="ServerConfig__coll__map"> +<area href="classclassbase.html" shape="rect" coords="38,11,118,37" alt=""> +</map> +<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classServerConfig-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> +<tr><td></td></tr> +<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#ServerConfig_28_29">ServerConfig</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#ClearStack_28_29">ClearStack</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#Read_28bool_20bail_2C_20userrec_20_2Auser_29">Read</a> (bool bail, <a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">LoadConf</a> (const char *filename, std::stringstream *target, std::stringstream *errorstream)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a> (char *tag, char *var, int index, char *result, std::stringstream *config)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ReadConf</a> (std::stringstream *<a class="el" href="classServerConfig.html#config_5Ff">config_f</a>, const char *tag, const char *var, int index, char *result)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#ConfValueEnum_28char_20_2Atag_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValueEnum</a> (char *tag, std::stringstream *config)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#EnumConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_29">EnumConf</a> (std::stringstream *<a class="el" href="classServerConfig.html#config_5Ff">config_f</a>, const char *tag)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#EnumValues_28std_3A_3Astringstream_20_2Aconfig_2C_20const_20char_20_2Atag_2C_20int_20index_29">EnumValues</a> (std::stringstream *config, const char *tag, int index)</td></tr> + +<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#ServerName_5BMAXBUF_5D">ServerName</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#Network_5BMAXBUF_5D">Network</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#ServerDesc_5BMAXBUF_5D">ServerDesc</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#AdminName_5BMAXBUF_5D">AdminName</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#AdminEmail_5BMAXBUF_5D">AdminEmail</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#AdminNick_5BMAXBUF_5D">AdminNick</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#diepass_5BMAXBUF_5D">diepass</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#restartpass_5BMAXBUF_5D">restartpass</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#motd_5BMAXBUF_5D">motd</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#rules_5BMAXBUF_5D">rules</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#PrefixQuit_5BMAXBUF_5D">PrefixQuit</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#DieValue_5BMAXBUF_5D">DieValue</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#DNSServer_5BMAXBUF_5D">DNSServer</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#DisabledCommands_5BMAXBUF_5D">DisabledCommands</a> [MAXBUF]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#ModPath_5B_31_30_32_34_5D">ModPath</a> [1024]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#MyExecutable_5B_31_30_32_34_5D">MyExecutable</a> [1024]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">FILE * </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#log_5Ffile">log_file</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#nofork">nofork</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#unlimitcore">unlimitcore</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#AllowHalfop">AllowHalfop</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#dns_5Ftimeout">dns_timeout</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#NetBufferSize">NetBufferSize</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#MaxConn">MaxConn</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#SoftLimit">SoftLimit</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#MaxWhoResults">MaxWhoResults</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#debugging">debugging</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#LogLevel">LogLevel</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#DieDelay">DieDelay</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#addrs_5BMAXBUF_5D_5B_32_35_35_5D">addrs</a> [MAXBUF][255]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="modules_8h.html#file_5Fcache">file_cache</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#MOTD">MOTD</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="modules_8h.html#file_5Fcache">file_cache</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#RULES">RULES</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#PID_5B_31_30_32_34_5D">PID</a> [1024]</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">std::stringstream </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#config_5Ff">config_f</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="users_8h.html#ClassVector">ClassVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#Classes">Classes</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="namespaceirc.html#string">std::string</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#module_5Fnames">module_names</a></td></tr> + +<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#fgets_5Fsafe_28char_20_2Abuffer_2C_20size_5Ft_20maxsize_2C_20FILE_20_2A_26file_29">fgets_safe</a> (char *buffer, size_t maxsize, FILE *&file)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#ConfProcess_28char_20_2Abuffer_2C_20long_20linenumber_2C_20std_3A_3Astringstream_20_2Aerrorstream_2C_20bool_20_26error_2C_20std_3A_3Astring_20filename_29">ConfProcess</a> (char *buffer, long linenumber, std::stringstream *errorstream, bool &error, <a class="el" href="namespaceirc.html#string">std::string</a> filename)</td></tr> + +<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="namespaceirc.html#string">std::string</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html#include_5Fstack">include_stack</a></td></tr> + +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00034">34</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="ServerConfig_28_29"></a><!-- doxytag: member="ServerConfig::ServerConfig" ref="ServerConfig_28_29" args="()" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">ServerConfig::ServerConfig </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="ClearStack_28_29"></a><!-- doxytag: member="ServerConfig::ClearStack" ref="ClearStack_28_29" args="()" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">void ServerConfig::ClearStack </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00734">ConfigReader::ConfigReader()</a>. </td> + </tr> +</table> +<a class="anchor" name="ConfProcess_28char_20_2Abuffer_2C_20long_20linenumber_2C_20std_3A_3Astringstream_20_2Aerrorstream_2C_20bool_20_26error_2C_20std_3A_3Astring_20filename_29"></a><!-- doxytag: member="ServerConfig::ConfProcess" ref="ConfProcess_28char_20_2Abuffer_2C_20long_20linenumber_2C_20std_3A_3Astringstream_20_2Aerrorstream_2C_20bool_20_26error_2C_20std_3A_3Astring_20filename_29" args="(char *buffer, long linenumber, std::stringstream *errorstream, bool &error, std::string filename)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> ServerConfig::ConfProcess </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> <em>buffer</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>long </td> + <td class="mdname" nowrap> <em>linenumber</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>std::stringstream * </td> + <td class="mdname" nowrap> <em>errorstream</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>bool & </td> + <td class="mdname" nowrap> <em>error</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap><a class="el" href="namespaceirc.html#string">std::string</a> </td> + <td class="mdname" nowrap> <em>filename</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private]</code></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29"></a><!-- doxytag: member="ServerConfig::ConfValue" ref="ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29" args="(char *tag, char *var, int index, char *result, std::stringstream *config)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int ServerConfig::ConfValue </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> <em>tag</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>var</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>int </td> + <td class="mdname" nowrap> <em>index</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>result</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>std::stringstream * </td> + <td class="mdname" nowrap> <em>config</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="users_8cpp-source.html#l00144">userrec::HasPermission()</a>. </td> + </tr> +</table> +<a class="anchor" name="ConfValueEnum_28char_20_2Atag_2C_20std_3A_3Astringstream_20_2Aconfig_29"></a><!-- doxytag: member="ServerConfig::ConfValueEnum" ref="ConfValueEnum_28char_20_2Atag_2C_20std_3A_3Astringstream_20_2Aconfig_29" args="(char *tag, std::stringstream *config)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int ServerConfig::ConfValueEnum </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> <em>tag</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>std::stringstream * </td> + <td class="mdname" nowrap> <em>config</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="EnumConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_29"></a><!-- doxytag: member="ServerConfig::EnumConf" ref="EnumConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_29" args="(std::stringstream *config_f, const char *tag)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int ServerConfig::EnumConf </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::stringstream * </td> + <td class="mdname" nowrap> <em>config_f</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>tag</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00866">ConfigReader::Enumerate()</a>. </td> + </tr> +</table> +<a class="anchor" name="EnumValues_28std_3A_3Astringstream_20_2Aconfig_2C_20const_20char_20_2Atag_2C_20int_20index_29"></a><!-- doxytag: member="ServerConfig::EnumValues" ref="EnumValues_28std_3A_3Astringstream_20_2Aconfig_2C_20const_20char_20_2Atag_2C_20int_20index_29" args="(std::stringstream *config, const char *tag, int index)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int ServerConfig::EnumValues </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::stringstream * </td> + <td class="mdname" nowrap> <em>config</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>tag</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>int </td> + <td class="mdname" nowrap> <em>index</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00871">ConfigReader::EnumerateValues()</a>. </td> + </tr> +</table> +<a class="anchor" name="fgets_5Fsafe_28char_20_2Abuffer_2C_20size_5Ft_20maxsize_2C_20FILE_20_2A_26file_29"></a><!-- doxytag: member="ServerConfig::fgets_safe" ref="fgets_5Fsafe_28char_20_2Abuffer_2C_20size_5Ft_20maxsize_2C_20FILE_20_2A_26file_29" args="(char *buffer, size_t maxsize, FILE *&file)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int ServerConfig::fgets_safe </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> <em>buffer</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>size_t </td> + <td class="mdname" nowrap> <em>maxsize</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>FILE *& </td> + <td class="mdname" nowrap> <em>file</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private]</code></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29"></a><!-- doxytag: member="ServerConfig::LoadConf" ref="LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29" args="(const char *filename, std::stringstream *target, std::stringstream *errorstream)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">bool ServerConfig::LoadConf </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname" nowrap> <em>filename</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>std::stringstream * </td> + <td class="mdname" nowrap> <em>target</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>std::stringstream * </td> + <td class="mdname" nowrap> <em>errorstream</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00734">ConfigReader::ConfigReader()</a>. </td> + </tr> +</table> +<a class="anchor" name="Read_28bool_20bail_2C_20userrec_20_2Auser_29"></a><!-- doxytag: member="ServerConfig::Read" ref="Read_28bool_20bail_2C_20userrec_20_2Auser_29" args="(bool bail, userrec *user)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">void ServerConfig::Read </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname" nowrap> <em>bail</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td> + <td class="mdname" nowrap> <em>user</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00326">Server::RehashServer()</a>. </td> + </tr> +</table> +<a class="anchor" name="ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29"></a><!-- doxytag: member="ServerConfig::ReadConf" ref="ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29" args="(std::stringstream *config_f, const char *tag, const char *var, int index, char *result)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int ServerConfig::ReadConf </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::stringstream * </td> + <td class="mdname" nowrap> <em>config_f</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>tag</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>var</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>int </td> + <td class="mdname" nowrap> <em>index</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>result</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00780">ConfigReader::ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00797">ConfigReader::ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00764">ConfigReader::ReadValue()</a>. </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a class="anchor" name="addrs_5BMAXBUF_5D_5B_32_35_35_5D"></a><!-- doxytag: member="ServerConfig::addrs" ref="addrs_5BMAXBUF_5D_5B_32_35_35_5D" args="[MAXBUF][255]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#addrs_5BMAXBUF_5D_5B_32_35_35_5D">ServerConfig::addrs</a>[MAXBUF][255] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00070">70</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="AdminEmail_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::AdminEmail" ref="AdminEmail_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#AdminEmail_5BMAXBUF_5D">ServerConfig::AdminEmail</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00046">46</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="AdminName_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::AdminName" ref="AdminName_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#AdminName_5BMAXBUF_5D">ServerConfig::AdminName</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00045">45</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="AdminNick_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::AdminNick" ref="AdminNick_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#AdminNick_5BMAXBUF_5D">ServerConfig::AdminNick</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00047">47</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="AllowHalfop"></a><!-- doxytag: member="ServerConfig::AllowHalfop" ref="AllowHalfop" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">bool <a class="el" href="classServerConfig.html#AllowHalfop">ServerConfig::AllowHalfop</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00061">61</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="Classes"></a><!-- doxytag: member="ServerConfig::Classes" ref="Classes" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"><a class="el" href="users_8h.html#ClassVector">ClassVector</a> <a class="el" href="classServerConfig.html#Classes">ServerConfig::Classes</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00075">75</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="config_5Ff"></a><!-- doxytag: member="ServerConfig::config_f" ref="config_5Ff" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">std::stringstream <a class="el" href="classServerConfig.html#config_5Ff">ServerConfig::config_f</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00074">74</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. +<p> +Referenced by <a class="el" href="users_8cpp-source.html#l00144">userrec::HasPermission()</a>. </td> + </tr> +</table> +<a class="anchor" name="debugging"></a><!-- doxytag: member="ServerConfig::debugging" ref="debugging" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int <a class="el" href="classServerConfig.html#debugging">ServerConfig::debugging</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00067">67</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="DieDelay"></a><!-- doxytag: member="ServerConfig::DieDelay" ref="DieDelay" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int <a class="el" href="classServerConfig.html#DieDelay">ServerConfig::DieDelay</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00069">69</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="diepass_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::diepass" ref="diepass_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#diepass_5BMAXBUF_5D">ServerConfig::diepass</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00048">48</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="DieValue_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::DieValue" ref="DieValue_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#DieValue_5BMAXBUF_5D">ServerConfig::DieValue</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00053">53</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="DisabledCommands_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::DisabledCommands" ref="DisabledCommands_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#DisabledCommands_5BMAXBUF_5D">ServerConfig::DisabledCommands</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00055">55</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="dns_5Ftimeout"></a><!-- doxytag: member="ServerConfig::dns_timeout" ref="dns_5Ftimeout" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int <a class="el" href="classServerConfig.html#dns_5Ftimeout">ServerConfig::dns_timeout</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00062">62</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="DNSServer_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::DNSServer" ref="DNSServer_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#DNSServer_5BMAXBUF_5D">ServerConfig::DNSServer</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00054">54</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="include_5Fstack"></a><!-- doxytag: member="ServerConfig::include_stack" ref="include_5Fstack" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">std::vector<<a class="el" href="namespaceirc.html#string">std::string</a>> <a class="el" href="classServerConfig.html#include_5Fstack">ServerConfig::include_stack</a><code> [private]</code> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00037">37</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="log_5Ffile"></a><!-- doxytag: member="ServerConfig::log_file" ref="log_5Ffile" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">FILE* <a class="el" href="classServerConfig.html#log_5Ffile">ServerConfig::log_file</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00058">58</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="LogLevel"></a><!-- doxytag: member="ServerConfig::LogLevel" ref="LogLevel" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int <a class="el" href="classServerConfig.html#LogLevel">ServerConfig::LogLevel</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00068">68</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="MaxConn"></a><!-- doxytag: member="ServerConfig::MaxConn" ref="MaxConn" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int <a class="el" href="classServerConfig.html#MaxConn">ServerConfig::MaxConn</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00064">64</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="MaxWhoResults"></a><!-- doxytag: member="ServerConfig::MaxWhoResults" ref="MaxWhoResults" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int <a class="el" href="classServerConfig.html#MaxWhoResults">ServerConfig::MaxWhoResults</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00066">66</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="ModPath_5B_31_30_32_34_5D"></a><!-- doxytag: member="ServerConfig::ModPath" ref="ModPath_5B_31_30_32_34_5D" args="[1024]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#ModPath_5B_31_30_32_34_5D">ServerConfig::ModPath</a>[1024] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00056">56</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="module_5Fnames"></a><!-- doxytag: member="ServerConfig::module_names" ref="module_5Fnames" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">std::vector<<a class="el" href="namespaceirc.html#string">std::string</a>> <a class="el" href="classServerConfig.html#module_5Fnames">ServerConfig::module_names</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00076">76</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00722">Server::FindModule()</a>. </td> + </tr> +</table> +<a class="anchor" name="MOTD"></a><!-- doxytag: member="ServerConfig::MOTD" ref="MOTD" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"><a class="el" href="modules_8h.html#file_5Fcache">file_cache</a> <a class="el" href="classServerConfig.html#MOTD">ServerConfig::MOTD</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00071">71</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="motd_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::motd" ref="motd_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#motd_5BMAXBUF_5D">ServerConfig::motd</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00050">50</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="MyExecutable_5B_31_30_32_34_5D"></a><!-- doxytag: member="ServerConfig::MyExecutable" ref="MyExecutable_5B_31_30_32_34_5D" args="[1024]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#MyExecutable_5B_31_30_32_34_5D">ServerConfig::MyExecutable</a>[1024] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00057">57</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NetBufferSize"></a><!-- doxytag: member="ServerConfig::NetBufferSize" ref="NetBufferSize" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int <a class="el" href="classServerConfig.html#NetBufferSize">ServerConfig::NetBufferSize</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00063">63</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="Network_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::Network" ref="Network_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#Network_5BMAXBUF_5D">ServerConfig::Network</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00043">43</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="nofork"></a><!-- doxytag: member="ServerConfig::nofork" ref="nofork" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">bool <a class="el" href="classServerConfig.html#nofork">ServerConfig::nofork</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00059">59</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="PID_5B_31_30_32_34_5D"></a><!-- doxytag: member="ServerConfig::PID" ref="PID_5B_31_30_32_34_5D" args="[1024]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#PID_5B_31_30_32_34_5D">ServerConfig::PID</a>[1024] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00073">73</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="PrefixQuit_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::PrefixQuit" ref="PrefixQuit_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#PrefixQuit_5BMAXBUF_5D">ServerConfig::PrefixQuit</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00052">52</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="restartpass_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::restartpass" ref="restartpass_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#restartpass_5BMAXBUF_5D">ServerConfig::restartpass</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00049">49</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="RULES"></a><!-- doxytag: member="ServerConfig::RULES" ref="RULES" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"><a class="el" href="modules_8h.html#file_5Fcache">file_cache</a> <a class="el" href="classServerConfig.html#RULES">ServerConfig::RULES</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00072">72</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="rules_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::rules" ref="rules_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#rules_5BMAXBUF_5D">ServerConfig::rules</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00051">51</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="ServerDesc_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::ServerDesc" ref="ServerDesc_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#ServerDesc_5BMAXBUF_5D">ServerConfig::ServerDesc</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00044">44</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="ServerName_5BMAXBUF_5D"></a><!-- doxytag: member="ServerConfig::ServerName" ref="ServerName_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">char <a class="el" href="classServerConfig.html#ServerName_5BMAXBUF_5D">ServerConfig::ServerName</a>[MAXBUF] </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00042">42</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. +<p> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> + </tr> +</table> +<a class="anchor" name="SoftLimit"></a><!-- doxytag: member="ServerConfig::SoftLimit" ref="SoftLimit" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">unsigned int <a class="el" href="classServerConfig.html#SoftLimit">ServerConfig::SoftLimit</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00065">65</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="unlimitcore"></a><!-- doxytag: member="ServerConfig::unlimitcore" ref="unlimitcore" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">bool <a class="el" href="classServerConfig.html#unlimitcore">ServerConfig::unlimitcore</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00060">60</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following file:<ul> +<li><a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:34 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> +</body> +</html> diff --git a/docs/module-doc/classServerConfig__coll__graph.gif b/docs/module-doc/classServerConfig__coll__graph.gif Binary files differnew file mode 100644 index 000000000..299c2a369 --- /dev/null +++ b/docs/module-doc/classServerConfig__coll__graph.gif diff --git a/docs/module-doc/classServerConfig__coll__graph.map b/docs/module-doc/classServerConfig__coll__graph.map new file mode 100644 index 000000000..026a524ee --- /dev/null +++ b/docs/module-doc/classServerConfig__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 38,11 118,37 diff --git a/docs/module-doc/classServerConfig__coll__graph.md5 b/docs/module-doc/classServerConfig__coll__graph.md5 new file mode 100644 index 000000000..7c238fb05 --- /dev/null +++ b/docs/module-doc/classServerConfig__coll__graph.md5 @@ -0,0 +1 @@ +2e10a0ef0c4d0446b103d1c843d9b249
\ No newline at end of file diff --git a/docs/module-doc/classServerConfig__inherit__graph.gif b/docs/module-doc/classServerConfig__inherit__graph.gif Binary files differnew file mode 100644 index 000000000..4972f14c2 --- /dev/null +++ b/docs/module-doc/classServerConfig__inherit__graph.gif diff --git a/docs/module-doc/classServerConfig__inherit__graph.map b/docs/module-doc/classServerConfig__inherit__graph.map new file mode 100644 index 000000000..f176cb530 --- /dev/null +++ b/docs/module-doc/classServerConfig__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 18,7 98,34 diff --git a/docs/module-doc/classServerConfig__inherit__graph.md5 b/docs/module-doc/classServerConfig__inherit__graph.md5 new file mode 100644 index 000000000..6756d2a5d --- /dev/null +++ b/docs/module-doc/classServerConfig__inherit__graph.md5 @@ -0,0 +1 @@ +a3af96cfe8dd557f11a5c19346d12442
\ No newline at end of file diff --git a/docs/module-doc/classSocketEngine-members.html b/docs/module-doc/classSocketEngine-members.html index b34cedb34..920035deb 100644 --- a/docs/module-doc/classSocketEngine-members.html +++ b/docs/module-doc/classSocketEngine-members.html @@ -17,7 +17,7 @@ <tr class="memlist"><td><a class="el" href="classSocketEngine.html#ts">ts</a></td><td><a class="el" href="classSocketEngine.html">SocketEngine</a></td><td><code> [private]</code></td></tr> <tr class="memlist"><td><a class="el" href="classSocketEngine.html#Wait_28std_3A_3Avector_3C_20int_20_3E_20_26fdlist_29">Wait</a>(std::vector< int > &fdlist)</td><td><a class="el" href="classSocketEngine.html">SocketEngine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classSocketEngine.html#_7ESocketEngine_28_29">~SocketEngine</a>()</td><td><a class="el" href="classSocketEngine.html">SocketEngine</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:34 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classSocketEngine.html b/docs/module-doc/classSocketEngine.html index 50de26e7d..96c5a96e2 100644 --- a/docs/module-doc/classSocketEngine.html +++ b/docs/module-doc/classSocketEngine.html @@ -83,8 +83,8 @@ Please note that if there is a catastrophic failure (for example, you try and en <p> Definition at line <a class="el" href="socketengine_8cpp-source.html#l00035">35</a> of file <a class="el" href="socketengine_8cpp-source.html">socketengine.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="socketengine_8h-source.html#l00069">EngineHandle</a>.<div class="fragment"><pre class="fragment"><a name="l00036"></a>00036 { -<a name="l00037"></a>00037 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::SocketEngine()"</span>); +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, and <a class="el" href="socketengine_8h-source.html#l00069">EngineHandle</a>.<div class="fragment"><pre class="fragment"><a name="l00036"></a>00036 { +<a name="l00037"></a>00037 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::SocketEngine()"</span>); <a name="l00038"></a>00038 <span class="preprocessor">#ifdef USE_EPOLL</span> <a name="l00039"></a>00039 <span class="preprocessor"></span> <a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a> = epoll_create(65535); <a name="l00040"></a>00040 <span class="preprocessor">#endif</span> @@ -127,8 +127,8 @@ Destructor The destructor transparently tidies up any resources used by the sock <p> Definition at line <a class="el" href="socketengine_8cpp-source.html#l00046">46</a> of file <a class="el" href="socketengine_8cpp-source.html">socketengine.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="socketengine_8h-source.html#l00069">EngineHandle</a>.<div class="fragment"><pre class="fragment"><a name="l00047"></a>00047 { -<a name="l00048"></a>00048 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::~SocketEngine()"</span>); +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, and <a class="el" href="socketengine_8h-source.html#l00069">EngineHandle</a>.<div class="fragment"><pre class="fragment"><a name="l00047"></a>00047 { +<a name="l00048"></a>00048 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::~SocketEngine()"</span>); <a name="l00049"></a>00049 <span class="preprocessor">#ifdef USE_EPOLL</span> <a name="l00050"></a>00050 <span class="preprocessor"></span> close(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>); <a name="l00051"></a>00051 <span class="preprocessor">#endif</span> @@ -188,39 +188,39 @@ You must provide a type (see the consts in <a class="el" href="socketengine_8h.h <p> Definition at line <a class="el" href="socketengine_8cpp-source.html#l00065">65</a> of file <a class="el" href="socketengine_8cpp-source.html">socketengine.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="socketengine_8h-source.html#l00069">EngineHandle</a>, <a class="el" href="socketengine_8h-source.html#l00068">fds</a>, <a class="el" href="socketengine_8cpp-source.html#l00033">ref</a>, and <a class="el" href="socketengine_8h-source.html#l00055">X_READBIT</a>. +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, <a class="el" href="socketengine_8h-source.html#l00069">EngineHandle</a>, <a class="el" href="socketengine_8h-source.html#l00068">fds</a>, <a class="el" href="socketengine_8cpp-source.html#l00033">ref</a>, and <a class="el" href="socketengine_8h-source.html#l00055">X_READBIT</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00054">InspSocket::InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00214">InspSocket::Poll()</a>.<div class="fragment"><pre class="fragment"><a name="l00066"></a>00066 { +Referenced by <a class="el" href="socket_8cpp-source.html#l00053">InspSocket::InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00217">InspSocket::Poll()</a>.<div class="fragment"><pre class="fragment"><a name="l00066"></a>00066 { <a name="l00067"></a>00067 <span class="keywordflow">if</span> ((fd < 0) || (fd > 65535)) <a name="l00068"></a>00068 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00069"></a>00069 this-><a class="code" href="classSocketEngine.html#fds">fds</a>.push_back(fd); <a name="l00070"></a>00070 <a class="code" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">ref</a>[fd] = type; <a name="l00071"></a>00071 <span class="keywordflow">if</span> (readable) <a name="l00072"></a>00072 { -<a name="l00073"></a>00073 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Set readbit"</span>); +<a name="l00073"></a>00073 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Set readbit"</span>); <a name="l00074"></a>00074 <a class="code" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">ref</a>[fd] |= <a class="code" href="socketengine_8h.html#X_5FREADBIT">X_READBIT</a>; <a name="l00075"></a>00075 } -<a name="l00076"></a>00076 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Add socket %d"</span>,fd); +<a name="l00076"></a>00076 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Add socket %d"</span>,fd); <a name="l00077"></a>00077 <span class="preprocessor">#ifdef USE_EPOLL</span> <a name="l00078"></a>00078 <span class="preprocessor"></span> <span class="keyword">struct </span>epoll_event ev; -<a name="l00079"></a>00079 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: Add socket to events, ep=%d socket=%d"</span>,<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>,fd); +<a name="l00079"></a>00079 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: Add socket to events, ep=%d socket=%d"</span>,<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>,fd); <a name="l00080"></a>00080 readable ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET; <a name="l00081"></a>00081 ev.data.fd = fd; <a name="l00082"></a>00082 <span class="keywordtype">int</span> i = epoll_ctl(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, EPOLL_CTL_ADD, fd, &ev); <a name="l00083"></a>00083 <span class="keywordflow">if</span> (i < 0) <a name="l00084"></a>00084 { -<a name="l00085"></a>00085 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: List insertion failure!"</span>); +<a name="l00085"></a>00085 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: List insertion failure!"</span>); <a name="l00086"></a>00086 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00087"></a>00087 } <a name="l00088"></a>00088 <span class="preprocessor">#endif</span> <a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_KQUEUE</span> <a name="l00090"></a>00090 <span class="preprocessor"></span> <span class="keyword">struct </span>kevent ke; -<a name="l00091"></a>00091 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: Add socket to events, kq=%d socket=%d"</span>,<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>,fd); +<a name="l00091"></a>00091 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: Add socket to events, kq=%d socket=%d"</span>,<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>,fd); <a name="l00092"></a>00092 EV_SET(&ke, fd, readable ? EVFILT_READ : EVFILT_WRITE, EV_ADD, 0, 0, NULL); <a name="l00093"></a>00093 <span class="keywordtype">int</span> i = kevent(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, &ke, 1, 0, 0, NULL); <a name="l00094"></a>00094 <span class="keywordflow">if</span> (i == -1) <a name="l00095"></a>00095 { -<a name="l00096"></a>00096 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: List insertion failure!"</span>); +<a name="l00096"></a>00096 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: List insertion failure!"</span>); <a name="l00097"></a>00097 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00098"></a>00098 } <a name="l00099"></a>00099 <span class="preprocessor">#endif</span> @@ -262,10 +262,10 @@ Delete a file descriptor f rom the engine This function call deletes a file desc <p> Definition at line <a class="el" href="socketengine_8cpp-source.html#l00103">103</a> of file <a class="el" href="socketengine_8cpp-source.html">socketengine.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="socketengine_8h-source.html#l00069">EngineHandle</a>, <a class="el" href="socketengine_8h-source.html#l00068">fds</a>, <a class="el" href="socketengine_8cpp-source.html#l00033">ref</a>, and <a class="el" href="socketengine_8h-source.html#l00055">X_READBIT</a>. +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, <a class="el" href="socketengine_8h-source.html#l00069">EngineHandle</a>, <a class="el" href="socketengine_8h-source.html#l00068">fds</a>, <a class="el" href="socketengine_8cpp-source.html#l00033">ref</a>, and <a class="el" href="socketengine_8h-source.html#l00055">X_READBIT</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00214">InspSocket::Poll()</a>, and <a class="el" href="modules_8cpp-source.html#l00669">Server::UserToPseudo()</a>.<div class="fragment"><pre class="fragment"><a name="l00104"></a>00104 { -<a name="l00105"></a>00105 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::DelFd(%d)"</span>,fd); +Referenced by <a class="el" href="socket_8cpp-source.html#l00217">InspSocket::Poll()</a>, and <a class="el" href="modules_8cpp-source.html#l00596">Server::UserToPseudo()</a>.<div class="fragment"><pre class="fragment"><a name="l00104"></a>00104 { +<a name="l00105"></a>00105 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::DelFd(%d)"</span>,fd); <a name="l00106"></a>00106 <a name="l00107"></a>00107 <span class="keywordflow">if</span> ((fd < 0) || (fd > 65535)) <a name="l00108"></a>00108 <span class="keywordflow">return</span> <span class="keyword">false</span>; @@ -276,18 +276,18 @@ Referenced by <a class="el" href="socket_8cpp-source.html#l00214">InspSocket::Po <a name="l00113"></a>00113 <span class="keywordflow">if</span> (*i == fd) <a name="l00114"></a>00114 { <a name="l00115"></a>00115 <a class="code" href="classSocketEngine.html#fds">fds</a>.erase(i); -<a name="l00116"></a>00116 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Deleted fd %d"</span>,fd); +<a name="l00116"></a>00116 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Deleted fd %d"</span>,fd); <a name="l00117"></a>00117 found = <span class="keyword">true</span>; <a name="l00118"></a>00118 <span class="keywordflow">break</span>; <a name="l00119"></a>00119 } <a name="l00120"></a>00120 } <a name="l00121"></a>00121 <span class="preprocessor">#ifdef USE_KQUEUE</span> <a name="l00122"></a>00122 <span class="preprocessor"></span> <span class="keyword">struct </span>kevent ke; -<a name="l00123"></a>00123 EV_SET(&ke, fd, <a class="code" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">ref</a>[fd] && <a class="code" href="socketengine_8h.html#X_5FREADBIT">X_READBIT</a> ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); +<a name="l00123"></a>00123 EV_SET(&ke, fd, <a class="code" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">ref</a>[fd] & <a class="code" href="socketengine_8h.html#X_5FREADBIT">X_READBIT</a> ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); <a name="l00124"></a>00124 <span class="keywordtype">int</span> i = kevent(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, &ke, 1, 0, 0, NULL); <a name="l00125"></a>00125 <span class="keywordflow">if</span> (i == -1) <a name="l00126"></a>00126 { -<a name="l00127"></a>00127 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: Failed to remove socket from queue!"</span>); +<a name="l00127"></a>00127 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: Failed to remove socket from queue!"</span>); <a name="l00128"></a>00128 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00129"></a>00129 } <a name="l00130"></a>00130 <span class="preprocessor">#endif</span> @@ -298,7 +298,7 @@ Referenced by <a class="el" href="socket_8cpp-source.html#l00214">InspSocket::Po <a name="l00135"></a>00135 <span class="keywordtype">int</span> i = epoll_ctl(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, EPOLL_CTL_DEL, fd, &ev); <a name="l00136"></a>00136 <span class="keywordflow">if</span> (i < 0) <a name="l00137"></a>00137 { -<a name="l00138"></a>00138 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: List deletion failure!"</span>); +<a name="l00138"></a>00138 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: List deletion failure!"</span>); <a name="l00139"></a>00139 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00140"></a>00140 } <a name="l00141"></a>00141 <span class="preprocessor">#endif</span> @@ -338,18 +338,18 @@ Returns the socket engines name This returns the name of the engine for use in / <p> <p> -Definition at line <a class="el" href="socketengine_8cpp-source.html#l00196">196</a> of file <a class="el" href="socketengine_8cpp-source.html">socketengine.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00197"></a>00197 { -<a name="l00198"></a>00198 <span class="preprocessor">#ifdef USE_SELECT</span> -<a name="l00199"></a>00199 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"select"</span>; +Definition at line <a class="el" href="socketengine_8cpp-source.html#l00193">193</a> of file <a class="el" href="socketengine_8cpp-source.html">socketengine.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00194"></a>00194 { +<a name="l00195"></a>00195 <span class="preprocessor">#ifdef USE_SELECT</span> +<a name="l00196"></a>00196 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"select"</span>; +<a name="l00197"></a>00197 <span class="preprocessor">#endif</span> +<a name="l00198"></a>00198 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_KQUEUE</span> +<a name="l00199"></a>00199 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"kqueue"</span>; <a name="l00200"></a>00200 <span class="preprocessor">#endif</span> -<a name="l00201"></a>00201 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_KQUEUE</span> -<a name="l00202"></a>00202 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"kqueue"</span>; +<a name="l00201"></a>00201 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_EPOLL</span> +<a name="l00202"></a>00202 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"epoll"</span>; <a name="l00203"></a>00203 <span class="preprocessor">#endif</span> -<a name="l00204"></a>00204 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_EPOLL</span> -<a name="l00205"></a>00205 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"epoll"</span>; -<a name="l00206"></a>00206 <span class="preprocessor">#endif</span> -<a name="l00207"></a>00207 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"misconfigured"</span>; -<a name="l00208"></a>00208 } +<a name="l00204"></a>00204 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"misconfigured"</span>; +<a name="l00205"></a>00205 } </pre></div> <p> </td> @@ -428,7 +428,7 @@ Please note that this doesnt wait long, only a couple of milliseconds. It return <p> Definition at line <a class="el" href="socketengine_8cpp-source.html#l00146">146</a> of file <a class="el" href="socketengine_8cpp-source.html">socketengine.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="socketengine_8h-source.html#l00069">EngineHandle</a>, <a class="el" href="socketengine_8h-source.html#l00068">fds</a>, <a class="el" href="socketengine_8h-source.html#l00074">ke_list</a>, <a class="el" href="socketengine_8cpp-source.html#l00033">ref</a>, <a class="el" href="socketengine_8h-source.html#l00075">ts</a>, and <a class="el" href="socketengine_8h-source.html#l00055">X_READBIT</a>.<div class="fragment"><pre class="fragment"><a name="l00147"></a>00147 { +References <a class="el" href="socketengine_8h-source.html#l00069">EngineHandle</a>, <a class="el" href="socketengine_8h-source.html#l00068">fds</a>, <a class="el" href="socketengine_8h-source.html#l00074">ke_list</a>, <a class="el" href="socketengine_8cpp-source.html#l00033">ref</a>, <a class="el" href="socketengine_8h-source.html#l00075">ts</a>, and <a class="el" href="socketengine_8h-source.html#l00055">X_READBIT</a>.<div class="fragment"><pre class="fragment"><a name="l00147"></a>00147 { <a name="l00148"></a>00148 fdlist.clear(); <a name="l00149"></a>00149 <span class="preprocessor">#ifdef USE_SELECT</span> <a name="l00150"></a>00150 <span class="preprocessor"></span> FD_ZERO(&wfdset); @@ -455,27 +455,24 @@ References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a clas <a name="l00171"></a>00171 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> a = 0; a < <a class="code" href="classSocketEngine.html#fds">fds</a>.size(); a++) <a name="l00172"></a>00172 { <a name="l00173"></a>00173 <span class="keywordflow">if</span> ((FD_ISSET (<a class="code" href="classSocketEngine.html#fds">fds</a>[a], &rfdset)) || (FD_ISSET (<a class="code" href="classSocketEngine.html#fds">fds</a>[a], &wfdset))) -<a name="l00174"></a>00174 { -<a name="l00175"></a>00175 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"...Adding active %d"</span>,<a class="code" href="classSocketEngine.html#fds">fds</a>[a]); -<a name="l00176"></a>00176 fdlist.push_back(<a class="code" href="classSocketEngine.html#fds">fds</a>[a]); -<a name="l00177"></a>00177 } -<a name="l00178"></a>00178 } -<a name="l00179"></a>00179 } -<a name="l00180"></a>00180 <span class="preprocessor">#endif</span> -<a name="l00181"></a>00181 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_KQUEUE</span> -<a name="l00182"></a>00182 <span class="preprocessor"></span> <a class="code" href="classSocketEngine.html#ts">ts</a>.tv_nsec = 10000L; -<a name="l00183"></a>00183 <a class="code" href="classSocketEngine.html#ts">ts</a>.tv_sec = 0; -<a name="l00184"></a>00184 <span class="keywordtype">int</span> i = kevent(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, NULL, 0, &<a class="code" href="classSocketEngine.html#ke_5Flist_5B_36_35_35_33_35_5D">ke_list</a>[0], 65535, &<a class="code" href="classSocketEngine.html#ts">ts</a>); -<a name="l00185"></a>00185 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < i; j++) -<a name="l00186"></a>00186 fdlist.push_back(<a class="code" href="classSocketEngine.html#ke_5Flist_5B_36_35_35_33_35_5D">ke_list</a>[j].ident); -<a name="l00187"></a>00187 <span class="preprocessor">#endif</span> -<a name="l00188"></a>00188 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_EPOLL</span> -<a name="l00189"></a>00189 <span class="preprocessor"></span> <span class="keywordtype">int</span> i = epoll_wait(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, events, 65535, 100); -<a name="l00190"></a>00190 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < i; j++) -<a name="l00191"></a>00191 fdlist.push_back(events[j].data.fd); -<a name="l00192"></a>00192 <span class="preprocessor">#endif</span> -<a name="l00193"></a>00193 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00194"></a>00194 } +<a name="l00174"></a>00174 fdlist.push_back(<a class="code" href="classSocketEngine.html#fds">fds</a>[a]); +<a name="l00175"></a>00175 } +<a name="l00176"></a>00176 } +<a name="l00177"></a>00177 <span class="preprocessor">#endif</span> +<a name="l00178"></a>00178 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_KQUEUE</span> +<a name="l00179"></a>00179 <span class="preprocessor"></span> <a class="code" href="classSocketEngine.html#ts">ts</a>.tv_nsec = 10000L; +<a name="l00180"></a>00180 <a class="code" href="classSocketEngine.html#ts">ts</a>.tv_sec = 0; +<a name="l00181"></a>00181 <span class="keywordtype">int</span> i = kevent(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, NULL, 0, &<a class="code" href="classSocketEngine.html#ke_5Flist_5B_36_35_35_33_35_5D">ke_list</a>[0], 65535, &<a class="code" href="classSocketEngine.html#ts">ts</a>); +<a name="l00182"></a>00182 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < i; j++) +<a name="l00183"></a>00183 fdlist.push_back(<a class="code" href="classSocketEngine.html#ke_5Flist_5B_36_35_35_33_35_5D">ke_list</a>[j].ident); +<a name="l00184"></a>00184 <span class="preprocessor">#endif</span> +<a name="l00185"></a>00185 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_EPOLL</span> +<a name="l00186"></a>00186 <span class="preprocessor"></span> <span class="keywordtype">int</span> i = epoll_wait(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, events, 65535, 100); +<a name="l00187"></a>00187 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < i; j++) +<a name="l00188"></a>00188 fdlist.push_back(events[j].data.fd); +<a name="l00189"></a>00189 <span class="preprocessor">#endif</span> +<a name="l00190"></a>00190 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00191"></a>00191 } </pre></div> <p> </td> @@ -592,7 +589,7 @@ Referenced by <a class="el" href="socketengine_8cpp-source.html#l00146">Wait()</ </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="socketengine_8h-source.html">socketengine.h</a><li><a class="el" href="socketengine_8cpp-source.html">socketengine.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:34 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index db5c65d7f..cfb859e88 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classVersion.html#Revision">Revision</a></td><td><a class="el" href="classVersion.html">Version</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classVersion.html#Version_28int_20major_2C_20int_20minor_2C_20int_20revision_2C_20int_20build_2C_20int_20flags_29">Version</a>(int major, int minor, int revision, int build, int flags)</td><td><a class="el" href="classVersion.html">Version</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 816354c08..07fa12a14 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -97,7 +97,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00113">113</a> of <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00240">240</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00240"></a>00240 : <a class="code" href="classVersion.html#Major">Major</a>(major), <a class="code" href="classVersion.html#Minor">Minor</a>(minor), <a class="code" href="classVersion.html#Revision">Revision</a>(revision), <a class="code" href="classVersion.html#Build">Build</a>(build), <a class="code" href="classVersion.html#Flags">Flags</a>(flags) { }; +Definition at line <a class="el" href="modules_8cpp-source.html#l00167">167</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00167"></a>00167 : <a class="code" href="classVersion.html#Major">Major</a>(major), <a class="code" href="classVersion.html#Minor">Minor</a>(minor), <a class="code" href="classVersion.html#Revision">Revision</a>(revision), <a class="code" href="classVersion.html#Build">Build</a>(build), <a class="code" href="classVersion.html#Flags">Flags</a>(flags) { }; </pre></div> <p> </td> @@ -231,7 +231,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00116">116</a> of </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classWhoWasUser-members.html b/docs/module-doc/classWhoWasUser-members.html index 196b71daa..3e9351ddc 100644 --- a/docs/module-doc/classWhoWasUser-members.html +++ b/docs/module-doc/classWhoWasUser-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classWhoWasUser.html#nick_5BNICKMAX_5D">nick</a></td><td><a class="el" href="classWhoWasUser.html">WhoWasUser</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classWhoWasUser.html#server_5B_32_35_36_5D">server</a></td><td><a class="el" href="classWhoWasUser.html">WhoWasUser</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classWhoWasUser.html#signon">signon</a></td><td><a class="el" href="classWhoWasUser.html">WhoWasUser</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classWhoWasUser.html b/docs/module-doc/classWhoWasUser.html index 2e5bd0e18..6fdfa0518 100644 --- a/docs/module-doc/classWhoWasUser.html +++ b/docs/module-doc/classWhoWasUser.html @@ -212,7 +212,7 @@ Definition at line <a class="el" href="users_8h-source.html#l00341">341</a> of f </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="users_8h-source.html">users.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index 50cb070a9..ef2188e8e 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#set_5Ftime">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#source_5B_32_35_36_5D">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 084f334d6..2f9771cb2 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -47,7 +47,7 @@ XLine is the base class for ban lines such as G lines and K lines. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00034">34</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> +Definition at line <a class="el" href="xline_8h-source.html#l00039">39</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> <a class="anchor" name="duration"></a><!-- doxytag: member="XLine::duration" ref="duration" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -72,7 +72,7 @@ The duration of the ban, or 0 if permenant. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00044">44</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00049">49</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <a class="anchor" name="n_5Fmatches"></a><!-- doxytag: member="XLine::n_matches" ref="n_5Fmatches" args="" --><p> @@ -99,7 +99,7 @@ Number of times the core matches the ban, for statistics. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00056">56</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00061">61</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <a class="anchor" name="reason_5BMAXBUF_5D"></a><!-- doxytag: member="XLine::reason" ref="reason_5BMAXBUF_5D" args="[MAXBUF]" --><p> @@ -126,7 +126,7 @@ Reason for the ban. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00052">52</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00057">57</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <a class="anchor" name="set_5Ftime"></a><!-- doxytag: member="XLine::set_time" ref="set_5Ftime" args="" --><p> @@ -153,7 +153,7 @@ The time the line was added. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00040">40</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00045">45</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <a class="anchor" name="source_5B_32_35_36_5D"></a><!-- doxytag: member="XLine::source" ref="source_5B_32_35_36_5D" args="[256]" --><p> @@ -180,12 +180,12 @@ Source of the ban. <p> This can be a servername or an oper nickname <p> -Definition at line <a class="el" href="xline_8h-source.html#l00048">48</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00053">53</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index 4ad178371..fc8645ecf 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#set_5Ftime">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#source_5B_32_35_36_5D">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index 69600b14b..84dfd5be4 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -35,7 +35,7 @@ ZLine class. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00093">93</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> +Definition at line <a class="el" href="xline_8h-source.html#l00098">98</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>.<hr><h2>Member Data Documentation</h2> <a class="anchor" name="ipaddr_5B_34_30_5D"></a><!-- doxytag: member="ZLine::ipaddr" ref="ipaddr_5B_34_30_5D" args="[40]" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -60,7 +60,7 @@ IP Address (xx.yy.zz.aa) to match against May contain wildcards. <p> <p> -Definition at line <a class="el" href="xline_8h-source.html#l00099">99</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00104">104</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <a class="anchor" name="is_5Fglobal"></a><!-- doxytag: member="ZLine::is_global" ref="is_5Fglobal" args="" --><p> @@ -87,12 +87,12 @@ Set if this is a global Z:line (e.g. <p> it came from another server) <p> -Definition at line <a class="el" href="xline_8h-source.html#l00103">103</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> +Definition at line <a class="el" href="xline_8h-source.html#l00108">108</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index 4a99c5512..11464dd07 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -34,7 +34,7 @@ <tr class="memlist"><td><a class="el" href="classchanrec.html#topicset">topicset</a></td><td><a class="el" href="classchanrec.html">chanrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classchanrec.html#_7Echanrec_28_29">~chanrec</a>()</td><td><a class="el" href="classchanrec.html">chanrec</a></td><td><code> [inline, virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index efda184a8..808cabf95 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -123,18 +123,18 @@ Creates a channel record and initialises it with default values. <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00101">101</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. -<p> -References <a class="el" href="channels_8h-source.html#l00145">binarymodes</a>, <a class="el" href="channels_8h-source.html#l00123">created</a>, <a class="el" href="channels_8h-source.html#l00110">custom_modes</a>, <a class="el" href="channels_8h-source.html#l00115">internal_userlist</a>, <a class="el" href="channels_8h-source.html#l00141">key</a>, <a class="el" href="channels_8h-source.html#l00136">limit</a>, <a class="el" href="channels_8h-source.html#l00106">name</a>, <a class="el" href="channels_8h-source.html#l00131">setby</a>, <a class="el" href="channels_8h-source.html#l00120">topic</a>, and <a class="el" href="channels_8h-source.html#l00127">topicset</a>.<div class="fragment"><pre class="fragment"><a name="l00102"></a>00102 { -<a name="l00103"></a>00103 strcpy(<a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>,<span class="stringliteral">""</span>); -<a name="l00104"></a>00104 strcpy(<a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>,<span class="stringliteral">""</span>); -<a name="l00105"></a>00105 strcpy(<a class="code" href="classchanrec.html#topic_5BMAXBUF_5D">topic</a>,<span class="stringliteral">""</span>); -<a name="l00106"></a>00106 strcpy(<a class="code" href="classchanrec.html#setby_5BNICKMAX_5D">setby</a>,<span class="stringliteral">""</span>); -<a name="l00107"></a>00107 strcpy(<a class="code" href="classchanrec.html#key_5B_33_32_5D">key</a>,<span class="stringliteral">""</span>); -<a name="l00108"></a>00108 <a class="code" href="classchanrec.html#created">created</a> = <a class="code" href="classchanrec.html#topicset">topicset</a> = <a class="code" href="classchanrec.html#limit">limit</a> = 0; -<a name="l00109"></a>00109 <a class="code" href="classchanrec.html#binarymodes">binarymodes</a> = 0; -<a name="l00110"></a>00110 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.clear(); -<a name="l00111"></a>00111 } +Definition at line <a class="el" href="channels_8cpp-source.html#l00073">73</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +<p> +References <a class="el" href="channels_8h-source.html#l00145">binarymodes</a>, <a class="el" href="channels_8h-source.html#l00123">created</a>, <a class="el" href="channels_8h-source.html#l00110">custom_modes</a>, <a class="el" href="channels_8h-source.html#l00115">internal_userlist</a>, <a class="el" href="channels_8h-source.html#l00141">key</a>, <a class="el" href="channels_8h-source.html#l00136">limit</a>, <a class="el" href="channels_8h-source.html#l00106">name</a>, <a class="el" href="channels_8h-source.html#l00131">setby</a>, <a class="el" href="channels_8h-source.html#l00120">topic</a>, and <a class="el" href="channels_8h-source.html#l00127">topicset</a>.<div class="fragment"><pre class="fragment"><a name="l00074"></a>00074 { +<a name="l00075"></a>00075 strcpy(<a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>,<span class="stringliteral">""</span>); +<a name="l00076"></a>00076 strcpy(<a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>,<span class="stringliteral">""</span>); +<a name="l00077"></a>00077 strcpy(<a class="code" href="classchanrec.html#topic_5BMAXBUF_5D">topic</a>,<span class="stringliteral">""</span>); +<a name="l00078"></a>00078 strcpy(<a class="code" href="classchanrec.html#setby_5BNICKMAX_5D">setby</a>,<span class="stringliteral">""</span>); +<a name="l00079"></a>00079 strcpy(<a class="code" href="classchanrec.html#key_5B_33_32_5D">key</a>,<span class="stringliteral">""</span>); +<a name="l00080"></a>00080 <a class="code" href="classchanrec.html#created">created</a> = <a class="code" href="classchanrec.html#topicset">topicset</a> = <a class="code" href="classchanrec.html#limit">limit</a> = 0; +<a name="l00081"></a>00081 <a class="code" href="classchanrec.html#binarymodes">binarymodes</a> = 0; +<a name="l00082"></a>00082 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.clear(); +<a name="l00083"></a>00083 } </pre></div> <p> </td> @@ -207,12 +207,12 @@ Add a user pointer to the internal reference list. </dl> The data inserted into the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison. <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00194">194</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +Definition at line <a class="el" href="channels_8cpp-source.html#l00166">166</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="channels_8h-source.html#l00115">internal_userlist</a>.<div class="fragment"><pre class="fragment"><a name="l00195"></a>00195 { -<a name="l00196"></a>00196 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.push_back(castuser); -<a name="l00197"></a>00197 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Added casted user to channel's internal list"</span>); -<a name="l00198"></a>00198 } +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, and <a class="el" href="channels_8h-source.html#l00115">internal_userlist</a>.<div class="fragment"><pre class="fragment"><a name="l00167"></a>00167 { +<a name="l00168"></a>00168 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.push_back(castuser); +<a name="l00169"></a>00169 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Added casted user to channel's internal list"</span>); +<a name="l00170"></a>00170 } </pre></div> <p> </td> @@ -252,20 +252,20 @@ Delete a user pointer to the internal reference list. </dl> The data removed from the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison. <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00200">200</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="channels_8h-source.html#l00115">internal_userlist</a>, and <a class="el" href="channels_8h-source.html#l00106">name</a>.<div class="fragment"><pre class="fragment"><a name="l00201"></a>00201 { -<a name="l00202"></a>00202 <span class="keywordflow">for</span> (std::vector<char*>::iterator a = <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.begin(); a < <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.end(); a++) -<a name="l00203"></a>00203 { -<a name="l00204"></a>00204 <span class="keywordflow">if</span> (*a == castuser) -<a name="l00205"></a>00205 { -<a name="l00206"></a>00206 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Removed casted user from channel's internal list"</span>); -<a name="l00207"></a>00207 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.erase(a); -<a name="l00208"></a>00208 <span class="keywordflow">return</span>; -<a name="l00209"></a>00209 } -<a name="l00210"></a>00210 } -<a name="l00211"></a>00211 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!"</span>,<a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); -<a name="l00212"></a>00212 } +Definition at line <a class="el" href="channels_8cpp-source.html#l00172">172</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +<p> +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, <a class="el" href="channels_8h-source.html#l00115">internal_userlist</a>, and <a class="el" href="channels_8h-source.html#l00106">name</a>.<div class="fragment"><pre class="fragment"><a name="l00173"></a>00173 { +<a name="l00174"></a>00174 <span class="keywordflow">for</span> (std::vector<char*>::iterator a = <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.begin(); a < <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.end(); a++) +<a name="l00175"></a>00175 { +<a name="l00176"></a>00176 <span class="keywordflow">if</span> (*a == castuser) +<a name="l00177"></a>00177 { +<a name="l00178"></a>00178 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Removed casted user from channel's internal list"</span>); +<a name="l00179"></a>00179 <a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>.erase(a); +<a name="l00180"></a>00180 <span class="keywordflow">return</span>; +<a name="l00181"></a>00181 } +<a name="l00182"></a>00182 } +<a name="l00183"></a>00183 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!"</span>,<a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); +<a name="l00184"></a>00184 } </pre></div> <p> </td> @@ -307,21 +307,21 @@ For example if "+L #foo" is set, and you pass this method 'L', it will return 'f <dl compact><dt><b>Returns:</b></dt><dd>The parameter for this mode is returned, or an empty string</dd></dl> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00174">174</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. -<p> -References <a class="el" href="channels_8cpp-source.html#l00099">custom_mode_params</a>.<div class="fragment"><pre class="fragment"><a name="l00175"></a>00175 { -<a name="l00176"></a>00176 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.size()) -<a name="l00177"></a>00177 { -<a name="l00178"></a>00178 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.end(); i++) -<a name="l00179"></a>00179 { -<a name="l00180"></a>00180 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -<a name="l00181"></a>00181 { -<a name="l00182"></a>00182 <span class="keywordflow">return</span> i->parameter; -<a name="l00183"></a>00183 } -<a name="l00184"></a>00184 } -<a name="l00185"></a>00185 } -<a name="l00186"></a>00186 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -<a name="l00187"></a>00187 } +Definition at line <a class="el" href="channels_8cpp-source.html#l00146">146</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +<p> +References <a class="el" href="channels_8cpp-source.html#l00071">custom_mode_params</a>.<div class="fragment"><pre class="fragment"><a name="l00147"></a>00147 { +<a name="l00148"></a>00148 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.size()) +<a name="l00149"></a>00149 { +<a name="l00150"></a>00150 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.end(); i++) +<a name="l00151"></a>00151 { +<a name="l00152"></a>00152 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +<a name="l00153"></a>00153 { +<a name="l00154"></a>00154 <span class="keywordflow">return</span> i->parameter; +<a name="l00155"></a>00155 } +<a name="l00156"></a>00156 } +<a name="l00157"></a>00157 } +<a name="l00158"></a>00158 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +<a name="l00159"></a>00159 } </pre></div> <p> </td> @@ -356,9 +356,9 @@ Obtain the channel "user counter" This returns the channel reference counter, wh <dl compact><dt><b>Returns:</b></dt><dd>The number of users on this channel</dd></dl> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00189">189</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00190"></a>00190 { -<a name="l00191"></a>00191 <span class="keywordflow">return</span> (this->internal_userlist.size()); -<a name="l00192"></a>00192 } +Definition at line <a class="el" href="channels_8cpp-source.html#l00161">161</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00162"></a>00162 { +<a name="l00163"></a>00163 <span class="keywordflow">return</span> (this->internal_userlist.size()); +<a name="l00164"></a>00164 } </pre></div> <p> </td> @@ -394,13 +394,13 @@ These are used for rapid comparison to determine channel membership for PRIVMSG, <dl compact><dt><b>Returns:</b></dt><dd>This function returns a vector of userrec pointers, each of which has been casted to char* to prevent circular references</dd></dl> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00214">214</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +Definition at line <a class="el" href="channels_8cpp-source.html#l00186">186</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. <p> References <a class="el" href="channels_8h-source.html#l00115">internal_userlist</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00445">Server::GetUsers()</a>.<div class="fragment"><pre class="fragment"><a name="l00215"></a>00215 { -<a name="l00216"></a>00216 <span class="keywordflow">return</span> &<a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>; -<a name="l00217"></a>00217 } +Referenced by <a class="el" href="modules_8cpp-source.html#l00372">Server::GetUsers()</a>.<div class="fragment"><pre class="fragment"><a name="l00187"></a>00187 { +<a name="l00188"></a>00188 <span class="keywordflow">return</span> &<a class="code" href="classchanrec.html#internal_5Fuserlist">internal_userlist</a>; +<a name="l00189"></a>00189 } </pre></div> <p> </td> @@ -441,9 +441,9 @@ Returns true if a custom mode is set on a channel. <dl compact><dt><b>Returns:</b></dt><dd>True if the custom mode is set, false if otherwise</dd></dl> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00169">169</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00170"></a>00170 { -<a name="l00171"></a>00171 <span class="keywordflow">return</span> (strchr(this->custom_modes,mode)); -<a name="l00172"></a>00172 } +Definition at line <a class="el" href="channels_8cpp-source.html#l00141">141</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00142"></a>00142 { +<a name="l00143"></a>00143 <span class="keywordflow">return</span> (strchr(this->custom_modes,mode)); +<a name="l00144"></a>00144 } </pre></div> <p> </td> @@ -493,30 +493,30 @@ Sets or unsets a custom mode in the channels info. </dl> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00113">113</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. -<p> -References <a class="el" href="channels_8h-source.html#l00110">custom_modes</a>, <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="channels_8cpp-source.html#l00138">SetCustomModeParam()</a>.<div class="fragment"><pre class="fragment"><a name="l00114"></a>00114 { -<a name="l00115"></a>00115 <span class="keywordflow">if</span> (mode_on) { -<a name="l00116"></a>00116 <span class="keyword">static</span> <span class="keywordtype">char</span> m[3]; -<a name="l00117"></a>00117 m[0] = mode; -<a name="l00118"></a>00118 m[1] = <span class="charliteral">'\0'</span>; -<a name="l00119"></a>00119 <span class="keywordflow">if</span> (!strchr(this->custom_modes,mode)) -<a name="l00120"></a>00120 { -<a name="l00121"></a>00121 strlcat(<a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>,m,MAXMODES); -<a name="l00122"></a>00122 } -<a name="l00123"></a>00123 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode %c set"</span>,mode); -<a name="l00124"></a>00124 } -<a name="l00125"></a>00125 <span class="keywordflow">else</span> { -<a name="l00126"></a>00126 -<a name="l00127"></a>00127 <a class="code" href="namespaceirc.html#string">std::string</a> a = this-><a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>; -<a name="l00128"></a>00128 <span class="keywordtype">int</span> pos = a.find(mode); -<a name="l00129"></a>00129 a.erase(pos,1); -<a name="l00130"></a>00130 strncpy(this->custom_modes,a.c_str(),MAXMODES); -<a name="l00131"></a>00131 -<a name="l00132"></a>00132 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this->custom_modes); -<a name="l00133"></a>00133 this-><a class="code" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>); -<a name="l00134"></a>00134 } -<a name="l00135"></a>00135 } +Definition at line <a class="el" href="channels_8cpp-source.html#l00085">85</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +<p> +References <a class="el" href="channels_8h-source.html#l00110">custom_modes</a>, <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, and <a class="el" href="channels_8cpp-source.html#l00110">SetCustomModeParam()</a>.<div class="fragment"><pre class="fragment"><a name="l00086"></a>00086 { +<a name="l00087"></a>00087 <span class="keywordflow">if</span> (mode_on) { +<a name="l00088"></a>00088 <span class="keyword">static</span> <span class="keywordtype">char</span> m[3]; +<a name="l00089"></a>00089 m[0] = mode; +<a name="l00090"></a>00090 m[1] = <span class="charliteral">'\0'</span>; +<a name="l00091"></a>00091 <span class="keywordflow">if</span> (!strchr(this->custom_modes,mode)) +<a name="l00092"></a>00092 { +<a name="l00093"></a>00093 strlcat(<a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>,m,MAXMODES); +<a name="l00094"></a>00094 } +<a name="l00095"></a>00095 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode %c set"</span>,mode); +<a name="l00096"></a>00096 } +<a name="l00097"></a>00097 <span class="keywordflow">else</span> { +<a name="l00098"></a>00098 +<a name="l00099"></a>00099 <a class="code" href="namespaceirc.html#string">std::string</a> a = this-><a class="code" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">custom_modes</a>; +<a name="l00100"></a>00100 <span class="keywordtype">int</span> pos = a.find(mode); +<a name="l00101"></a>00101 a.erase(pos,1); +<a name="l00102"></a>00102 strncpy(this->custom_modes,a.c_str(),MAXMODES); +<a name="l00103"></a>00103 +<a name="l00104"></a>00104 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this->custom_modes); +<a name="l00105"></a>00105 this-><a class="code" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>); +<a name="l00106"></a>00106 } +<a name="l00107"></a>00107 } </pre></div> <p> </td> @@ -573,39 +573,39 @@ Sets or unsets the parameters for a custom mode in a channels info. </dl> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00138">138</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. -<p> -References <a class="el" href="channels_8h-source.html#l00082">ModeParameter::channel</a>, <a class="el" href="channels_8cpp-source.html#l00099">custom_mode_params</a>, <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="channels_8h-source.html#l00080">ModeParameter::mode</a>, and <a class="el" href="channels_8h-source.html#l00081">ModeParameter::parameter</a>. -<p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00113">SetCustomMode()</a>.<div class="fragment"><pre class="fragment"><a name="l00139"></a>00139 { -<a name="l00140"></a>00140 -<a name="l00141"></a>00141 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SetCustomModeParam called"</span>); -<a name="l00142"></a>00142 <a class="code" href="classModeParameter.html">ModeParameter</a> M; -<a name="l00143"></a>00143 M.<a class="code" href="classModeParameter.html#mode">mode</a> = mode; -<a name="l00144"></a>00144 strlcpy(M.<a class="code" href="classModeParameter.html#channel_5BCHANMAX_5D">channel</a>,this->name,CHANMAX); -<a name="l00145"></a>00145 strlcpy(M.<a class="code" href="classModeParameter.html#parameter_5BMAXBUF_5D">parameter</a>,parameter,MAXBUF); -<a name="l00146"></a>00146 <span class="keywordflow">if</span> (mode_on) -<a name="l00147"></a>00147 { -<a name="l00148"></a>00148 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter); -<a name="l00149"></a>00149 <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.push_back(M); -<a name="l00150"></a>00150 } -<a name="l00151"></a>00151 <span class="keywordflow">else</span> -<a name="l00152"></a>00152 { -<a name="l00153"></a>00153 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.size()) -<a name="l00154"></a>00154 { -<a name="l00155"></a>00155 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.end(); i++) -<a name="l00156"></a>00156 { -<a name="l00157"></a>00157 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -<a name="l00158"></a>00158 { -<a name="l00159"></a>00159 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter); -<a name="l00160"></a>00160 <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.erase(i); -<a name="l00161"></a>00161 <span class="keywordflow">return</span>; -<a name="l00162"></a>00162 } -<a name="l00163"></a>00163 } -<a name="l00164"></a>00164 } -<a name="l00165"></a>00165 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>); -<a name="l00166"></a>00166 } -<a name="l00167"></a>00167 } +Definition at line <a class="el" href="channels_8cpp-source.html#l00110">110</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +<p> +References <a class="el" href="channels_8h-source.html#l00082">ModeParameter::channel</a>, <a class="el" href="channels_8cpp-source.html#l00071">custom_mode_params</a>, <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, <a class="el" href="channels_8h-source.html#l00080">ModeParameter::mode</a>, and <a class="el" href="channels_8h-source.html#l00081">ModeParameter::parameter</a>. +<p> +Referenced by <a class="el" href="channels_8cpp-source.html#l00085">SetCustomMode()</a>.<div class="fragment"><pre class="fragment"><a name="l00111"></a>00111 { +<a name="l00112"></a>00112 +<a name="l00113"></a>00113 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SetCustomModeParam called"</span>); +<a name="l00114"></a>00114 <a class="code" href="classModeParameter.html">ModeParameter</a> M; +<a name="l00115"></a>00115 M.<a class="code" href="classModeParameter.html#mode">mode</a> = mode; +<a name="l00116"></a>00116 strlcpy(M.<a class="code" href="classModeParameter.html#channel_5BCHANMAX_5D">channel</a>,this->name,CHANMAX); +<a name="l00117"></a>00117 strlcpy(M.<a class="code" href="classModeParameter.html#parameter_5BMAXBUF_5D">parameter</a>,parameter,MAXBUF); +<a name="l00118"></a>00118 <span class="keywordflow">if</span> (mode_on) +<a name="l00119"></a>00119 { +<a name="l00120"></a>00120 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter); +<a name="l00121"></a>00121 <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.push_back(M); +<a name="l00122"></a>00122 } +<a name="l00123"></a>00123 <span class="keywordflow">else</span> +<a name="l00124"></a>00124 { +<a name="l00125"></a>00125 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.size()) +<a name="l00126"></a>00126 { +<a name="l00127"></a>00127 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.end(); i++) +<a name="l00128"></a>00128 { +<a name="l00129"></a>00129 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +<a name="l00130"></a>00130 { +<a name="l00131"></a>00131 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter); +<a name="l00132"></a>00132 <a class="code" href="channels_8cpp.html#custom_5Fmode_5Fparams">custom_mode_params</a>.erase(i); +<a name="l00133"></a>00133 <span class="keywordflow">return</span>; +<a name="l00134"></a>00134 } +<a name="l00135"></a>00135 } +<a name="l00136"></a>00136 } +<a name="l00137"></a>00137 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>); +<a name="l00138"></a>00138 } +<a name="l00139"></a>00139 } </pre></div> <p> </td> @@ -665,7 +665,7 @@ Contains a bitmask of the CM_* builtin (RFC) binary mode symbols. <p> Definition at line <a class="el" href="channels_8h-source.html#l00145">145</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00101">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00073">chanrec()</a>. </td> </tr> </table> <a class="anchor" name="created"></a><!-- doxytag: member="chanrec::created" ref="created" args="" --><p> @@ -694,7 +694,7 @@ Creation time. <p> Definition at line <a class="el" href="channels_8h-source.html#l00123">123</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00101">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00073">chanrec()</a>. </td> </tr> </table> <a class="anchor" name="custom_5Fmodes_5BMAXMODES_5D"></a><!-- doxytag: member="chanrec::custom_modes" ref="custom_5Fmodes_5BMAXMODES_5D" args="[MAXMODES]" --><p> @@ -723,7 +723,7 @@ Plugins may use this field in any way they see fit. <p> Definition at line <a class="el" href="channels_8h-source.html#l00110">110</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00101">chanrec()</a>, and <a class="el" href="channels_8cpp-source.html#l00113">SetCustomMode()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00073">chanrec()</a>, and <a class="el" href="channels_8cpp-source.html#l00085">SetCustomMode()</a>. </td> </tr> </table> <a class="anchor" name="internal_5Fuserlist"></a><!-- doxytag: member="chanrec::internal_userlist" ref="internal_5Fuserlist" args="" --><p> @@ -752,7 +752,7 @@ User list (casted to char*'s to stop forward declaration stuff) (chicken and egg <p> Definition at line <a class="el" href="channels_8h-source.html#l00115">115</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00194">AddUser()</a>, <a class="el" href="channels_8cpp-source.html#l00101">chanrec()</a>, <a class="el" href="channels_8cpp-source.html#l00200">DelUser()</a>, and <a class="el" href="channels_8cpp-source.html#l00214">GetUsers()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00166">AddUser()</a>, <a class="el" href="channels_8cpp-source.html#l00073">chanrec()</a>, <a class="el" href="channels_8cpp-source.html#l00172">DelUser()</a>, and <a class="el" href="channels_8cpp-source.html#l00186">GetUsers()</a>. </td> </tr> </table> <a class="anchor" name="key_5B_33_32_5D"></a><!-- doxytag: member="chanrec::key" ref="key_5B_33_32_5D" args="[32]" --><p> @@ -781,7 +781,7 @@ If this value is an empty string, there is no channel key in place. <p> Definition at line <a class="el" href="channels_8h-source.html#l00141">141</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00101">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00073">chanrec()</a>. </td> </tr> </table> <a class="anchor" name="limit"></a><!-- doxytag: member="chanrec::limit" ref="limit" args="" --><p> @@ -810,7 +810,7 @@ If this value is zero, there is no limit in place. <p> Definition at line <a class="el" href="channels_8h-source.html#l00136">136</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00101">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00073">chanrec()</a>. </td> </tr> </table> <a class="anchor" name="name_5BCHANMAX_5D"></a><!-- doxytag: member="chanrec::name" ref="name_5BCHANMAX_5D" args="[CHANMAX]" --><p> @@ -839,7 +839,7 @@ The channels name. <p> Definition at line <a class="el" href="channels_8h-source.html#l00106">106</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00101">chanrec()</a>, <a class="el" href="channels_8cpp-source.html#l00200">DelUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00073">chanrec()</a>, <a class="el" href="channels_8cpp-source.html#l00172">DelUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>. </td> </tr> </table> <a class="anchor" name="setby_5BNICKMAX_5D"></a><!-- doxytag: member="chanrec::setby" ref="setby_5BNICKMAX_5D" args="[NICKMAX]" --><p> @@ -868,7 +868,7 @@ If this member is an empty string, no topic was ever set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00131">131</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00101">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00073">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>. </td> </tr> </table> <a class="anchor" name="topic_5BMAXBUF_5D"></a><!-- doxytag: member="chanrec::topic" ref="topic_5BMAXBUF_5D" args="[MAXBUF]" --><p> @@ -897,7 +897,7 @@ If this is an empty string, no channel topic is set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00120">120</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00101">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00073">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>. </td> </tr> </table> <a class="anchor" name="topicset"></a><!-- doxytag: member="chanrec::topicset" ref="topicset" args="" --><p> @@ -926,12 +926,12 @@ If no topic was ever set, this will be equal to <a class="el" href="classchanrec <p> Definition at line <a class="el" href="channels_8h-source.html#l00127">127</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00101">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00073">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a><li><a class="el" href="channels_8cpp-source.html">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index c2be5d4e8..970fa0896 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -9,7 +9,7 @@ <tr class="memlist"><td><a class="el" href="classclassbase.html#age">age</a></td><td><a class="el" href="classclassbase.html">classbase</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#classbase_28_29">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index daa0a5d26..b5c474bf1 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -12,22 +12,23 @@ <p> Inheritance diagram for classbase:<p><center><img src="classclassbase__inherit__graph.gif" border="0" usemap="#classbase__inherit__map" alt="Inheritance graph"></center> <map name="classbase__inherit__map"> -<area href="classAdmin.html" shape="rect" coords="167,7,228,33" alt=""> -<area href="classConfigReader.html" shape="rect" coords="145,57,249,84" alt=""> +<area href="classAdmin.html" shape="rect" coords="167,7,228,34" alt=""> +<area href="classConfigReader.html" shape="rect" coords="145,58,249,84" alt=""> <area href="classConnectClass.html" shape="rect" coords="145,108,249,135" alt=""> -<area href="classExtensible.html" shape="rect" coords="156,159,239,185" alt=""> -<area href="classExtMode.html" shape="rect" coords="160,209,235,236" alt=""> +<area href="classExtensible.html" shape="rect" coords="156,159,239,186" alt=""> +<area href="classExtMode.html" shape="rect" coords="160,210,235,236" alt=""> <area href="classFileReader.html" shape="rect" coords="153,260,241,287" alt=""> -<area href="classHostItem.html" shape="rect" coords="160,311,235,337" alt=""> -<area href="classInvited.html" shape="rect" coords="167,361,228,388" alt=""> +<area href="classHostItem.html" shape="rect" coords="160,311,235,338" alt=""> +<area href="classInvited.html" shape="rect" coords="167,362,228,388" alt=""> <area href="classModeParameter.html" shape="rect" coords="139,412,256,439" alt=""> -<area href="classModule.html" shape="rect" coords="164,463,231,489" alt=""> -<area href="classModuleFactory.html" shape="rect" coords="143,513,252,540" alt=""> +<area href="classModule.html" shape="rect" coords="164,463,231,490" alt=""> +<area href="classModuleFactory.html" shape="rect" coords="143,514,252,540" alt=""> <area href="classModuleMessage.html" shape="rect" coords="137,564,257,591" alt=""> -<area href="classServer.html" shape="rect" coords="167,615,228,641" alt=""> -<area href="classucrec.html" shape="rect" coords="171,665,224,692" alt=""> -<area href="classVersion.html" shape="rect" coords="164,716,231,743" alt=""> -<area href="classXLine.html" shape="rect" coords="169,767,225,793" alt=""> +<area href="classServer.html" shape="rect" coords="167,615,228,642" alt=""> +<area href="classServerConfig.html" shape="rect" coords="147,666,248,692" alt=""> +<area href="classucrec.html" shape="rect" coords="171,716,224,743" alt=""> +<area href="classVersion.html" shape="rect" coords="164,767,231,794" alt=""> +<area href="classXLine.html" shape="rect" coords="169,818,225,844" alt=""> </map> <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for classbase:<p><center><img src="classclassbase__coll__graph.gif" border="0" usemap="#classbase__coll__map" alt="Collaboration graph"></center> <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classclassbase-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> @@ -149,7 +150,7 @@ Referenced by <a class="el" href="base_8h-source.html#l00040">classbase()</a>. </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="base_8h-source.html">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classclassbase__inherit__graph.gif b/docs/module-doc/classclassbase__inherit__graph.gif Binary files differindex f31018bb8..5f6fdd3fd 100644 --- a/docs/module-doc/classclassbase__inherit__graph.gif +++ b/docs/module-doc/classclassbase__inherit__graph.gif diff --git a/docs/module-doc/classclassbase__inherit__graph.map b/docs/module-doc/classclassbase__inherit__graph.map index 60738fc27..63be230b4 100644 --- a/docs/module-doc/classclassbase__inherit__graph.map +++ b/docs/module-doc/classclassbase__inherit__graph.map @@ -1,17 +1,18 @@ base referer -rect $classAdmin.html 167,7 228,33 -rect $classConfigReader.html 145,57 249,84 +rect $classAdmin.html 167,7 228,34 +rect $classConfigReader.html 145,58 249,84 rect $classConnectClass.html 145,108 249,135 -rect $classExtensible.html 156,159 239,185 -rect $classExtMode.html 160,209 235,236 +rect $classExtensible.html 156,159 239,186 +rect $classExtMode.html 160,210 235,236 rect $classFileReader.html 153,260 241,287 -rect $classHostItem.html 160,311 235,337 -rect $classInvited.html 167,361 228,388 +rect $classHostItem.html 160,311 235,338 +rect $classInvited.html 167,362 228,388 rect $classModeParameter.html 139,412 256,439 -rect $classModule.html 164,463 231,489 -rect $classModuleFactory.html 143,513 252,540 +rect $classModule.html 164,463 231,490 +rect $classModuleFactory.html 143,514 252,540 rect $classModuleMessage.html 137,564 257,591 -rect $classServer.html 167,615 228,641 -rect $classucrec.html 171,665 224,692 -rect $classVersion.html 164,716 231,743 -rect $classXLine.html 169,767 225,793 +rect $classServer.html 167,615 228,642 +rect $classServerConfig.html 147,666 248,692 +rect $classucrec.html 171,716 224,743 +rect $classVersion.html 164,767 231,794 +rect $classXLine.html 169,818 225,844 diff --git a/docs/module-doc/classclassbase__inherit__graph.md5 b/docs/module-doc/classclassbase__inherit__graph.md5 index 6f7c9a558..f544ba5d8 100644 --- a/docs/module-doc/classclassbase__inherit__graph.md5 +++ b/docs/module-doc/classclassbase__inherit__graph.md5 @@ -1 +1 @@ -9ba08cccc68a6425b7a7fee87f20249b
\ No newline at end of file +2dcead24293b96c88fe586688d98dbf1
\ No newline at end of file diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index 93f4ec932..e6a640d17 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -20,7 +20,7 @@ <tr class="memlist"><td><a class="el" href="classcommand__t.html#total_5Fbytes">total_bytes</a></td><td><a class="el" href="classcommand__t.html">command_t</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classcommand__t.html#use_5Fcount">use_count</a></td><td><a class="el" href="classcommand__t.html">command_t</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index efc44e6cc..4442940b4 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -242,7 +242,7 @@ Definition at line <a class="el" href="ctables_8h-source.html#l00043">43</a> of </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="ctables_8h-source.html">ctables.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index d903847ef..f2d0f5a26 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -28,7 +28,7 @@ <tr class="memlist"><td><a class="el" href="classExtensible.html#Shrink_28std_3A_3Astring_20key_29">Shrink</a>(std::string key)</td><td><a class="el" href="classExtensible.html">Extensible</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classconnection.html#signon">signon</a></td><td><a class="el" href="classconnection.html">connection</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index e445d4bd1..b412af793 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -142,7 +142,7 @@ Stats counter for bytes inbound. <p> Definition at line <a class="el" href="connection_8h-source.html#l00054">54</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="bytes_5Fout"></a><!-- doxytag: member="connection::bytes_out" ref="bytes_5Fout" args="" --><p> @@ -171,7 +171,7 @@ Stats counter for bytes outbound. <p> Definition at line <a class="el" href="connection_8h-source.html#l00058">58</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00277">userrec::FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00270">userrec::FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="cmds_5Fin"></a><!-- doxytag: member="connection::cmds_in" ref="cmds_5Fin" args="" --><p> @@ -200,7 +200,7 @@ Stats counter for commands inbound. <p> Definition at line <a class="el" href="connection_8h-source.html#l00062">62</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="cmds_5Fout"></a><!-- doxytag: member="connection::cmds_out" ref="cmds_5Fout" args="" --><p> @@ -229,7 +229,7 @@ Stats counter for commands outbound. <p> Definition at line <a class="el" href="connection_8h-source.html#l00066">66</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00277">userrec::FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00270">userrec::FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="fd"></a><!-- doxytag: member="connection::fd" ref="fd" args="" --><p> @@ -258,7 +258,7 @@ File descriptor of the connection. <p> Definition at line <a class="el" href="connection_8h-source.html#l00042">42</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="connection_8h-source.html#l00100">connection()</a>, <a class="el" href="modules_8cpp-source.html#l00905">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00512">Server::SendTo()</a>, <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00669">Server::UserToPseudo()</a>. </td> +Referenced by <a class="el" href="connection_8h-source.html#l00100">connection()</a>, <a class="el" href="modules_8cpp-source.html#l00833">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00439">Server::SendTo()</a>, <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00596">Server::UserToPseudo()</a>. </td> </tr> </table> <a class="anchor" name="haspassed"></a><!-- doxytag: member="connection::haspassed" ref="haspassed" args="" --><p> @@ -287,7 +287,7 @@ True if server/user has authenticated, false if otherwise. <p> Definition at line <a class="el" href="connection_8h-source.html#l00070">70</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="host_5B_31_36_30_5D"></a><!-- doxytag: member="connection::host" ref="host_5B_31_36_30_5D" args="[160]" --><p> @@ -316,7 +316,7 @@ Not used if this is a serverrec <p> Definition at line <a class="el" href="connection_8h-source.html#l00046">46</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00096">userrec::GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00669">Server::UserToPseudo()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00089">userrec::GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00596">Server::UserToPseudo()</a>. </td> </tr> </table> <a class="anchor" name="idle_5Flastmsg"></a><!-- doxytag: member="connection::idle_lastmsg" ref="idle_5Flastmsg" args="" --><p> @@ -345,7 +345,7 @@ Time that the connection last sent data, used to calculate idle time. <p> Definition at line <a class="el" href="connection_8h-source.html#l00092">92</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="ip_5B_31_36_5D"></a><!-- doxytag: member="connection::ip" ref="ip_5B_31_36_5D" args="[16]" --><p> @@ -374,7 +374,7 @@ IP of connection. <p> Definition at line <a class="el" href="connection_8h-source.html#l00050">50</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="lastping"></a><!-- doxytag: member="connection::lastping" ref="lastping" args="" --><p> @@ -403,7 +403,7 @@ Time the connection was last pinged. <p> Definition at line <a class="el" href="connection_8h-source.html#l00084">84</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="nping"></a><!-- doxytag: member="connection::nping" ref="nping" args="" --><p> @@ -432,7 +432,7 @@ Used by PING checks with clients. <p> Definition at line <a class="el" href="connection_8h-source.html#l00096">96</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="port"></a><!-- doxytag: member="connection::port" ref="port" args="" --><p> @@ -461,7 +461,7 @@ For a serverrec this is the current listening port of the serverrec object. <p> Definition at line <a class="el" href="connection_8h-source.html#l00076">76</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="registered"></a><!-- doxytag: member="connection::registered" ref="registered" args="" --><p> @@ -490,7 +490,7 @@ Used by userrec to indicate the registration status of the connection. <p> Definition at line <a class="el" href="connection_8h-source.html#l00080">80</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <a class="anchor" name="signon"></a><!-- doxytag: member="connection::signon" ref="signon" args="" --><p> @@ -519,12 +519,12 @@ Time the connection was created, set in the constructor. <p> Definition at line <a class="el" href="connection_8h-source.html#l00088">88</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec::userrec()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="connection_8h-source.html">connection.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 53e8a3548..29a5189f7 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -10,24 +10,24 @@ <tr><td><a name="letter_A"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> A </div></td></tr></table> </td><td><a name="letter_D"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> D </div></td></tr></table> </td><td><a name="letter_H"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> H </div></td></tr></table> -</td><td><a name="letter_M"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> M </div></td></tr></table> -</td><td><a class="el" href="structirc_1_1StrHashComp.html">StrHashComp</a> (<a class="el" href="namespaceirc.html">irc</a>) </td></tr><tr><td><a class="el" href="classAdmin.html">Admin</a> </td><td><a class="el" href="classDNS.html">DNS</a> </td><td><a class="el" href="structnspace_1_1hash_3_01in__addr_01_4.html">hash< in_addr ></a> (<a class="el" href="namespacenspace.html">nspace</a>) </td><td><a class="el" href="classModeParameter.html">ModeParameter</a> </td><td><a name="letter_U"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> U </div></td></tr></table> +</td><td><a class="el" href="classModeParameter.html">ModeParameter</a> </td><td><a class="el" href="structirc_1_1StrHashComp.html">StrHashComp</a> (<a class="el" href="namespaceirc.html">irc</a>) </td></tr><tr><td><a class="el" href="classAdmin.html">Admin</a> </td><td><a class="el" href="classDNS.html">DNS</a> </td><td><a class="el" href="structnspace_1_1hash_3_01in__addr_01_4.html">hash< in_addr ></a> (<a class="el" href="namespacenspace.html">nspace</a>) </td><td><a class="el" href="classModule.html">Module</a> </td><td><a name="letter_U"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> U </div></td></tr></table> </td></tr><tr><td><a name="letter_B"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> B </div></td></tr></table> -</td><td><a class="el" href="structdns__ip4list.html">dns_ip4list</a> </td><td><a class="el" href="structnspace_1_1hash_3_01string_01_4.html">hash< string ></a> (<a class="el" href="namespacenspace.html">nspace</a>) </td><td><a class="el" href="classModule.html">Module</a> </td><td><a class="el" href="classucrec.html">ucrec</a> </td></tr><tr><td><a class="el" href="classBanItem.html">BanItem</a> </td><td><a name="letter_E"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> E </div></td></tr></table> -</td><td><a class="el" href="classHostItem.html">HostItem</a> </td><td><a class="el" href="classModuleFactory.html">ModuleFactory</a> </td><td><a class="el" href="classuserrec.html">userrec</a> </td></tr><tr><td><a class="el" href="classBoolSet.html">BoolSet</a> </td><td><a class="el" href="classELine.html">ELine</a> </td><td><a name="letter_I"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> I </div></td></tr></table> -</td><td><a class="el" href="classModuleMessage.html">ModuleMessage</a> </td><td><a name="letter_V"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> V </div></td></tr></table> +</td><td><a class="el" href="structdns__ip4list.html">dns_ip4list</a> </td><td><a class="el" href="structnspace_1_1hash_3_01string_01_4.html">hash< string ></a> (<a class="el" href="namespacenspace.html">nspace</a>) </td><td><a class="el" href="classModuleFactory.html">ModuleFactory</a> </td><td><a class="el" href="classucrec.html">ucrec</a> </td></tr><tr><td><a class="el" href="classBanItem.html">BanItem</a> </td><td><a name="letter_E"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> E </div></td></tr></table> +</td><td><a class="el" href="classHostItem.html">HostItem</a> </td><td><a class="el" href="classModuleMessage.html">ModuleMessage</a> </td><td><a class="el" href="classuserrec.html">userrec</a> </td></tr><tr><td><a class="el" href="classBoolSet.html">BoolSet</a> </td><td><a class="el" href="classELine.html">ELine</a> </td><td><a name="letter_I"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> I </div></td></tr></table> +</td><td><a name="letter_Q"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> Q </div></td></tr></table> +</td><td><a name="letter_V"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> V </div></td></tr></table> </td></tr><tr><td><a name="letter_C"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> C </div></td></tr></table> -</td><td><a class="el" href="classEvent.html">Event</a> </td><td><a class="el" href="structirc_1_1InAddr__HashComp.html">InAddr_HashComp</a> (<a class="el" href="namespaceirc.html">irc</a>) </td><td><a name="letter_Q"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> Q </div></td></tr></table> -</td><td><a class="el" href="classVersion.html">Version</a> </td></tr><tr><td><a class="el" href="classchanrec.html">chanrec</a> </td><td><a class="el" href="classExemptItem.html">ExemptItem</a> </td><td><a class="el" href="classInspSocket.html">InspSocket</a> </td><td><a class="el" href="classQLine.html">QLine</a> </td><td><a name="letter_W"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> W </div></td></tr></table> -</td></tr><tr><td><a class="el" href="classstd_1_1char__traits.html">char_traits</a> (<a class="el" href="namespacestd.html">std</a>) </td><td><a class="el" href="classExtensible.html">Extensible</a> </td><td><a class="el" href="classInvited.html">Invited</a> </td><td><a name="letter_R"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> R </div></td></tr></table> -</td><td><a class="el" href="classWhoWasUser.html">WhoWasUser</a> </td></tr><tr><td><a class="el" href="classclassbase.html">classbase</a> </td><td><a class="el" href="classExtMode.html">ExtMode</a> </td><td><a class="el" href="classInviteItem.html">InviteItem</a> </td><td><a class="el" href="classRequest.html">Request</a> </td><td><a name="letter_X"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> X </div></td></tr></table> +</td><td><a class="el" href="classEvent.html">Event</a> </td><td><a class="el" href="structirc_1_1InAddr__HashComp.html">InAddr_HashComp</a> (<a class="el" href="namespaceirc.html">irc</a>) </td><td><a class="el" href="classQLine.html">QLine</a> </td><td><a class="el" href="classVersion.html">Version</a> </td></tr><tr><td><a class="el" href="classchanrec.html">chanrec</a> </td><td><a class="el" href="classExemptItem.html">ExemptItem</a> </td><td><a class="el" href="classInspSocket.html">InspSocket</a> </td><td><a name="letter_R"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> R </div></td></tr></table> +</td><td><a name="letter_W"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> W </div></td></tr></table> +</td></tr><tr><td><a class="el" href="classstd_1_1char__traits.html">char_traits</a> (<a class="el" href="namespacestd.html">std</a>) </td><td><a class="el" href="classExtensible.html">Extensible</a> </td><td><a class="el" href="classInvited.html">Invited</a> </td><td><a class="el" href="classRequest.html">Request</a> </td><td><a class="el" href="classWhoWasUser.html">WhoWasUser</a> </td></tr><tr><td><a class="el" href="classclassbase.html">classbase</a> </td><td><a class="el" href="classExtMode.html">ExtMode</a> </td><td><a class="el" href="classInviteItem.html">InviteItem</a> </td><td><a name="letter_S"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> S </div></td></tr></table> +</td><td><a name="letter_X"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> X </div></td></tr></table> </td></tr><tr><td><a class="el" href="classcommand__t.html">command_t</a> </td><td><a name="letter_F"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> F </div></td></tr></table> -</td><td><a class="el" href="structirc_1_1irc__char__traits.html">irc_char_traits</a> (<a class="el" href="namespaceirc.html">irc</a>) </td><td><a name="letter_S"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> S </div></td></tr></table> -</td><td><a class="el" href="classXLine.html">XLine</a> </td></tr><tr><td><a class="el" href="classConfigReader.html">ConfigReader</a> </td><td><a class="el" href="classFileReader.html">FileReader</a> </td><td><a name="letter_K"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> K </div></td></tr></table> -</td><td><a class="el" href="classServer.html">Server</a> </td><td><a name="letter_Z"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> Z </div></td></tr></table> +</td><td><a class="el" href="structirc_1_1irc__char__traits.html">irc_char_traits</a> (<a class="el" href="namespaceirc.html">irc</a>) </td><td><a class="el" href="classServer.html">Server</a> </td><td><a class="el" href="classXLine.html">XLine</a> </td></tr><tr><td><a class="el" href="classConfigReader.html">ConfigReader</a> </td><td><a class="el" href="classFileReader.html">FileReader</a> </td><td><a name="letter_K"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> K </div></td></tr></table> +</td><td><a class="el" href="classServerConfig.html">ServerConfig</a> </td><td><a name="letter_Z"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> Z </div></td></tr></table> </td></tr><tr><td><a class="el" href="classConnectClass.html">ConnectClass</a> </td><td><a name="letter_G"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> G </div></td></tr></table> -</td><td><a class="el" href="classKLine.html">KLine</a> </td><td><a class="el" href="classSocketEngine.html">SocketEngine</a> </td><td><a class="el" href="classZLine.html">ZLine</a> </td></tr><tr><td><a class="el" href="classconnection.html">connection</a> </td><td><a class="el" href="classGLine.html">GLine</a> </td></tr></table><p><div class="qindex"><a class="qindex" href="#letter_A">A</a> | <a class="qindex" href="#letter_B">B</a> | <a class="qindex" href="#letter_C">C</a> | <a class="qindex" href="#letter_D">D</a> | <a class="qindex" href="#letter_E">E</a> | <a class="qindex" href="#letter_F">F</a> | <a class="qindex" href="#letter_G">G</a> | <a class="qindex" href="#letter_H">H</a> | <a class="qindex" href="#letter_I">I</a> | <a class="qindex" href="#letter_K">K</a> | <a class="qindex" href="#letter_M">M</a> | <a class="qindex" href="#letter_Q">Q</a> | <a class="qindex" href="#letter_R">R</a> | <a class="qindex" href="#letter_S">S</a> | <a class="qindex" href="#letter_U">U</a> | <a class="qindex" href="#letter_V">V</a> | <a class="qindex" href="#letter_W">W</a> | <a class="qindex" href="#letter_X">X</a> | <a class="qindex" href="#letter_Z">Z</a></div><p> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +</td><td><a class="el" href="classKLine.html">KLine</a> </td><td><a class="el" href="classSocketEngine.html">SocketEngine</a> </td><td><a class="el" href="classZLine.html">ZLine</a> </td></tr><tr><td><a class="el" href="classconnection.html">connection</a> </td><td><a class="el" href="classGLine.html">GLine</a> </td><td><a name="letter_M"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> M </div></td></tr></table> +</td></tr></table><p><div class="qindex"><a class="qindex" href="#letter_A">A</a> | <a class="qindex" href="#letter_B">B</a> | <a class="qindex" href="#letter_C">C</a> | <a class="qindex" href="#letter_D">D</a> | <a class="qindex" href="#letter_E">E</a> | <a class="qindex" href="#letter_F">F</a> | <a class="qindex" href="#letter_G">G</a> | <a class="qindex" href="#letter_H">H</a> | <a class="qindex" href="#letter_I">I</a> | <a class="qindex" href="#letter_K">K</a> | <a class="qindex" href="#letter_M">M</a> | <a class="qindex" href="#letter_Q">Q</a> | <a class="qindex" href="#letter_R">R</a> | <a class="qindex" href="#letter_S">S</a> | <a class="qindex" href="#letter_U">U</a> | <a class="qindex" href="#letter_V">V</a> | <a class="qindex" href="#letter_W">W</a> | <a class="qindex" href="#letter_X">X</a> | <a class="qindex" href="#letter_Z">Z</a></div><p> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classstd_1_1char__traits.html b/docs/module-doc/classstd_1_1char__traits.html index 5bab456d9..211fbdbb3 100644 --- a/docs/module-doc/classstd_1_1char__traits.html +++ b/docs/module-doc/classstd_1_1char__traits.html @@ -14,7 +14,7 @@ </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="hashcomp_8h-source.html">hashcomp.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index 3b0fa6f47..74bc24deb 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classucrec.html#ucrec_28_29">ucrec</a>()</td><td><a class="el" href="classucrec.html">ucrec</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classucrec.html#_7Eucrec_28_29">~ucrec</a>()</td><td><a class="el" href="classucrec.html">ucrec</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:34 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index ba8cd0d85..73fd8c3d4 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -131,9 +131,7 @@ Points to the channel record where the given modes apply. <p> If the record is not in use, this value will be NULL. <p> -Definition at line <a class="el" href="channels_8h-source.html#l00252">252</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. -<p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Definition at line <a class="el" href="channels_8h-source.html#l00252">252</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. </td> </tr> </table> <a class="anchor" name="uc_5Fmodes"></a><!-- doxytag: member="ucrec::uc_modes" ref="uc_5Fmodes" args="" --><p> @@ -160,14 +158,12 @@ Contains a bitmask of the UCMODE_OP . <p> .. UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel. <p> -Definition at line <a class="el" href="channels_8h-source.html#l00247">247</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. -<p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec::userrec()</a>. </td> +Definition at line <a class="el" href="channels_8h-source.html#l00247">247</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:34 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index 6f14fc7a6..284a62c2d 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classuserrec.html#BufferIsReady_28_29">BufferIsReady</a>()</td><td><a class="el" href="classuserrec.html">userrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classconnection.html#bytes_5Fin">bytes_in</a></td><td><a class="el" href="classconnection.html">connection</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classconnection.html#bytes_5Fout">bytes_out</a></td><td><a class="el" href="classconnection.html">connection</a></td><td></td></tr> - <tr class="memlist"><td><a class="el" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a></td><td><a class="el" href="classuserrec.html">userrec</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classuserrec.html#chans">chans</a></td><td><a class="el" href="classuserrec.html">userrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#classbase_28_29">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classuserrec.html#ClearBuffer_28_29">ClearBuffer</a>()</td><td><a class="el" href="classuserrec.html">userrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classuserrec.html#CloseSocket_28_29">CloseSocket</a>()</td><td><a class="el" href="classuserrec.html">userrec</a></td><td></td></tr> @@ -70,7 +70,7 @@ <tr class="memlist"><td><a class="el" href="classuserrec.html#WriteError">WriteError</a></td><td><a class="el" href="classuserrec.html">userrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#_7Eclassbase_28_29">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classuserrec.html#_7Euserrec_28_29">~userrec</a>()</td><td><a class="el" href="classuserrec.html">userrec</a></td><td><code> [virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index d7992bf63..e6360b99e 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -18,8 +18,7 @@ Inheritance diagram for userrec:<p><center><img src="classuserrec__inherit__grap </map> <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for userrec:<p><center><img src="classuserrec__coll__graph.gif" border="0" usemap="#userrec__coll__map" alt="Collaboration graph"></center> <map name="userrec__coll__map"> -<area href="classconnection.html" shape="rect" coords="199,429,284,456" alt=""> -<area href="classucrec.html" shape="rect" coords="215,7,268,33" alt=""> +<area href="classconnection.html" shape="rect" coords="209,355,295,382" alt=""> </map> <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classuserrec-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> @@ -95,7 +94,7 @@ Inheritance diagram for userrec:<p><center><img src="classuserrec__inherit__grap <tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classuserrec.html#modes_5B_35_34_5D">modes</a> [54]</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The user's mode string. <a href="#modes_5B_35_34_5D"></a><br></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classucrec.html">ucrec</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a> [MAXCHANS]</td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="classucrec.html">ucrec</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classuserrec.html#chans">chans</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classuserrec.html#server">server</a></td></tr> @@ -181,36 +180,32 @@ Definition at line <a class="el" href="users_8h-source.html#l00111">111</a> of f <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00038">38</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -References <a class="el" href="users_8h-source.html#l00158">awaymsg</a>, <a class="el" href="connection_8h-source.html#l00054">connection::bytes_in</a>, <a class="el" href="connection_8h-source.html#l00058">connection::bytes_out</a>, <a class="el" href="channels_8h-source.html#l00252">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00149">chans</a>, <a class="el" href="connection_8h-source.html#l00062">connection::cmds_in</a>, <a class="el" href="connection_8h-source.html#l00066">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00134">dhost</a>, <a class="el" href="users_8h-source.html#l00181">dns_done</a>, <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>, <a class="el" href="users_8h-source.html#l00164">flood</a>, <a class="el" href="users_8h-source.html#l00138">fullname</a>, <a class="el" href="connection_8h-source.html#l00070">connection::haspassed</a>, <a class="el" href="connection_8h-source.html#l00046">connection::host</a>, <a class="el" href="users_8h-source.html#l00129">ident</a>, <a class="el" href="connection_8h-source.html#l00092">connection::idle_lastmsg</a>, <a class="el" href="users_8h-source.html#l00117">invites</a>, <a class="el" href="connection_8h-source.html#l00050">connection::ip</a>, <a class="el" href="connection_8h-source.html#l00084">connection::lastping</a>, <a class="el" href="users_8h-source.html#l00206">lines_in</a>, <a class="el" href="users_8h-source.html#l00147">modes</a>, <a class="el" href="users_8h-source.html#l00124">nick</a>, <a class="el" href="connection_8h-source.html#l00096">connection::nping</a>, <a class="el" href="users_8h-source.html#l00177">oper</a>, <a class="el" href="connection_8h-source.html#l00076">connection::port</a>, <a class="el" href="users_8h-source.html#l00197">recvq</a>, <a class="el" href="connection_8h-source.html#l00080">connection::registered</a>, <a class="el" href="users_8h-source.html#l00207">reset_due</a>, <a class="el" href="users_8h-source.html#l00202">sendq</a>, <a class="el" href="users_8h-source.html#l00153">server</a>, <a class="el" href="channels_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a>, <a class="el" href="connection_8h-source.html#l00088">connection::signon</a>, <a class="el" href="channels_8cpp.html#TIME">TIME</a>, <a class="el" href="users_8h-source.html#l00170">timeout</a>, and <a class="el" href="channels_8h-source.html#l00247">ucrec::uc_modes</a>.<div class="fragment"><pre class="fragment"><a name="l00039"></a>00039 { -<a name="l00040"></a>00040 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> -<a name="l00041"></a>00041 strcpy(<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<span class="stringliteral">""</span>); -<a name="l00042"></a>00042 strcpy(<a class="code" href="classconnection.html#ip_5B_31_36_5D">ip</a>,<span class="stringliteral">"127.0.0.1"</span>); -<a name="l00043"></a>00043 <a class="code" href="classuserrec.html#timeout">timeout</a> = 0; -<a name="l00044"></a>00044 strcpy(<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<span class="stringliteral">""</span>); -<a name="l00045"></a>00045 strcpy(<a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,<span class="stringliteral">""</span>); -<a name="l00046"></a>00046 strcpy(<a class="code" href="classuserrec.html#dhost_5B_31_36_30_5D">dhost</a>,<span class="stringliteral">""</span>); -<a name="l00047"></a>00047 strcpy(<a class="code" href="classuserrec.html#fullname_5BMAXGECOS_2B_31_5D">fullname</a>,<span class="stringliteral">""</span>); -<a name="l00048"></a>00048 strcpy(<a class="code" href="classuserrec.html#modes_5B_35_34_5D">modes</a>,<span class="stringliteral">""</span>); -<a name="l00049"></a>00049 <a class="code" href="classuserrec.html#server">server</a> = (<span class="keywordtype">char</span>*)FindServerNamePtr(ServerName); -<a name="l00050"></a>00050 strcpy(<a class="code" href="classuserrec.html#awaymsg_5BMAXAWAY_2B_31_5D">awaymsg</a>,<span class="stringliteral">""</span>); -<a name="l00051"></a>00051 strcpy(<a class="code" href="classuserrec.html#oper_5BNICKMAX_5D">oper</a>,<span class="stringliteral">""</span>); -<a name="l00052"></a>00052 <a class="code" href="classuserrec.html#reset_5Fdue">reset_due</a> = <a class="code" href="channels_8cpp.html#TIME">TIME</a>; -<a name="l00053"></a>00053 <a class="code" href="classuserrec.html#lines_5Fin">lines_in</a> = 0; -<a name="l00054"></a>00054 <a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="classconnection.html#lastping">lastping</a> = <a class="code" href="classconnection.html#signon">signon</a> = <a class="code" href="classconnection.html#idle_5Flastmsg">idle_lastmsg</a> = <a class="code" href="classconnection.html#nping">nping</a> = <a class="code" href="classconnection.html#registered">registered</a> = 0; -<a name="l00055"></a>00055 <a class="code" href="classuserrec.html#flood">flood</a> = <a class="code" href="classconnection.html#port">port</a> = <a class="code" href="classconnection.html#bytes_5Fin">bytes_in</a> = <a class="code" href="classconnection.html#bytes_5Fout">bytes_out</a> = <a class="code" href="classconnection.html#cmds_5Fin">cmds_in</a> = <a class="code" href="classconnection.html#cmds_5Fout">cmds_out</a> = 0; -<a name="l00056"></a>00056 <a class="code" href="classconnection.html#haspassed">haspassed</a> = <span class="keyword">false</span>; -<a name="l00057"></a>00057 <a class="code" href="classuserrec.html#dns_5Fdone">dns_done</a> = <span class="keyword">false</span>; -<a name="l00058"></a>00058 <a class="code" href="classuserrec.html#recvq">recvq</a> = <span class="stringliteral">""</span>; -<a name="l00059"></a>00059 <a class="code" href="classuserrec.html#sendq">sendq</a> = <span class="stringliteral">""</span>; -<a name="l00060"></a>00060 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < MAXCHANS; i++) -<a name="l00061"></a>00061 { -<a name="l00062"></a>00062 this-><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[i].<a class="code" href="classucrec.html#channel">channel</a> = NULL; -<a name="l00063"></a>00063 this-><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[i].<a class="code" href="classucrec.html#uc_5Fmodes">uc_modes</a> = 0; -<a name="l00064"></a>00064 } -<a name="l00065"></a>00065 <a class="code" href="classuserrec.html#invites">invites</a>.clear(); -<a name="l00066"></a>00066 } +Definition at line <a class="el" href="users_8cpp-source.html#l00036">36</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +<p> +References <a class="el" href="users_8h-source.html#l00158">awaymsg</a>, <a class="el" href="connection_8h-source.html#l00054">connection::bytes_in</a>, <a class="el" href="connection_8h-source.html#l00058">connection::bytes_out</a>, <a class="el" href="users_8h-source.html#l00149">chans</a>, <a class="el" href="connection_8h-source.html#l00062">connection::cmds_in</a>, <a class="el" href="connection_8h-source.html#l00066">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00134">dhost</a>, <a class="el" href="users_8h-source.html#l00181">dns_done</a>, <a class="el" href="connection_8h-source.html#l00042">connection::fd</a>, <a class="el" href="users_8h-source.html#l00164">flood</a>, <a class="el" href="users_8h-source.html#l00138">fullname</a>, <a class="el" href="connection_8h-source.html#l00070">connection::haspassed</a>, <a class="el" href="connection_8h-source.html#l00046">connection::host</a>, <a class="el" href="users_8h-source.html#l00129">ident</a>, <a class="el" href="connection_8h-source.html#l00092">connection::idle_lastmsg</a>, <a class="el" href="users_8h-source.html#l00117">invites</a>, <a class="el" href="connection_8h-source.html#l00050">connection::ip</a>, <a class="el" href="connection_8h-source.html#l00084">connection::lastping</a>, <a class="el" href="users_8h-source.html#l00206">lines_in</a>, <a class="el" href="users_8h-source.html#l00147">modes</a>, <a class="el" href="users_8h-source.html#l00124">nick</a>, <a class="el" href="connection_8h-source.html#l00096">connection::nping</a>, <a class="el" href="users_8h-source.html#l00177">oper</a>, <a class="el" href="connection_8h-source.html#l00076">connection::port</a>, <a class="el" href="users_8h-source.html#l00197">recvq</a>, <a class="el" href="connection_8h-source.html#l00080">connection::registered</a>, <a class="el" href="users_8h-source.html#l00207">reset_due</a>, <a class="el" href="users_8h-source.html#l00202">sendq</a>, <a class="el" href="users_8h-source.html#l00153">server</a>, <a class="el" href="inspircd__io_8h-source.html#l00042">ServerConfig::ServerName</a>, <a class="el" href="connection_8h-source.html#l00088">connection::signon</a>, <a class="el" href="channels_8cpp.html#TIME">TIME</a>, and <a class="el" href="users_8h-source.html#l00170">timeout</a>.<div class="fragment"><pre class="fragment"><a name="l00037"></a>00037 { +<a name="l00038"></a>00038 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> +<a name="l00039"></a>00039 strcpy(<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<span class="stringliteral">""</span>); +<a name="l00040"></a>00040 strcpy(<a class="code" href="classconnection.html#ip_5B_31_36_5D">ip</a>,<span class="stringliteral">"127.0.0.1"</span>); +<a name="l00041"></a>00041 <a class="code" href="classuserrec.html#timeout">timeout</a> = 0; +<a name="l00042"></a>00042 strcpy(<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<span class="stringliteral">""</span>); +<a name="l00043"></a>00043 strcpy(<a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,<span class="stringliteral">""</span>); +<a name="l00044"></a>00044 strcpy(<a class="code" href="classuserrec.html#dhost_5B_31_36_30_5D">dhost</a>,<span class="stringliteral">""</span>); +<a name="l00045"></a>00045 strcpy(<a class="code" href="classuserrec.html#fullname_5BMAXGECOS_2B_31_5D">fullname</a>,<span class="stringliteral">""</span>); +<a name="l00046"></a>00046 strcpy(<a class="code" href="classuserrec.html#modes_5B_35_34_5D">modes</a>,<span class="stringliteral">""</span>); +<a name="l00047"></a>00047 <a class="code" href="classuserrec.html#server">server</a> = (<span class="keywordtype">char</span>*)FindServerNamePtr(<a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#ServerName_5BMAXBUF_5D">ServerName</a>); +<a name="l00048"></a>00048 strcpy(<a class="code" href="classuserrec.html#awaymsg_5BMAXAWAY_2B_31_5D">awaymsg</a>,<span class="stringliteral">""</span>); +<a name="l00049"></a>00049 strcpy(<a class="code" href="classuserrec.html#oper_5BNICKMAX_5D">oper</a>,<span class="stringliteral">""</span>); +<a name="l00050"></a>00050 <a class="code" href="classuserrec.html#reset_5Fdue">reset_due</a> = <a class="code" href="channels_8cpp.html#TIME">TIME</a>; +<a name="l00051"></a>00051 <a class="code" href="classuserrec.html#lines_5Fin">lines_in</a> = 0; +<a name="l00052"></a>00052 <a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="classconnection.html#lastping">lastping</a> = <a class="code" href="classconnection.html#signon">signon</a> = <a class="code" href="classconnection.html#idle_5Flastmsg">idle_lastmsg</a> = <a class="code" href="classconnection.html#nping">nping</a> = <a class="code" href="classconnection.html#registered">registered</a> = 0; +<a name="l00053"></a>00053 <a class="code" href="classuserrec.html#flood">flood</a> = <a class="code" href="classconnection.html#port">port</a> = <a class="code" href="classconnection.html#bytes_5Fin">bytes_in</a> = <a class="code" href="classconnection.html#bytes_5Fout">bytes_out</a> = <a class="code" href="classconnection.html#cmds_5Fin">cmds_in</a> = <a class="code" href="classconnection.html#cmds_5Fout">cmds_out</a> = 0; +<a name="l00054"></a>00054 <a class="code" href="classconnection.html#haspassed">haspassed</a> = <span class="keyword">false</span>; +<a name="l00055"></a>00055 <a class="code" href="classuserrec.html#dns_5Fdone">dns_done</a> = <span class="keyword">false</span>; +<a name="l00056"></a>00056 <a class="code" href="classuserrec.html#recvq">recvq</a> = <span class="stringliteral">""</span>; +<a name="l00057"></a>00057 <a class="code" href="classuserrec.html#sendq">sendq</a> = <span class="stringliteral">""</span>; +<a name="l00058"></a>00058 <a class="code" href="classuserrec.html#chans">chans</a>.clear(); +<a name="l00059"></a>00059 <a class="code" href="classuserrec.html#invites">invites</a>.clear(); +<a name="l00060"></a>00060 } </pre></div> <p> </td> @@ -242,8 +237,8 @@ References <a class="el" href="users_8h-source.html#l00158">awaymsg</a>, <a clas <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00068">68</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00069"></a>00069 { -<a name="l00070"></a>00070 } +Definition at line <a class="el" href="users_8cpp-source.html#l00062">62</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00063"></a>00063 { +<a name="l00064"></a>00064 } </pre></div> <p> </td> @@ -279,32 +274,32 @@ This method adds data to the buffer of the user. <p> The buffer can grow to any size within limits of the available memory, managed by the size of a <a class="el" href="namespaceirc.html#string">std::string</a>, however if any individual line in the buffer grows over 600 bytes in length (which is 88 chars over the RFC-specified limit per line) then the method will return false and the text will not be inserted. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00205">205</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -References <a class="el" href="users_8h-source.html#l00197">recvq</a>, <a class="el" href="users_8h-source.html#l00220">recvqmax</a>, and <a class="el" href="users_8cpp-source.html#l00299">SetWriteError()</a>.<div class="fragment"><pre class="fragment"><a name="l00206"></a>00206 { -<a name="l00207"></a>00207 <a class="code" href="namespaceirc.html#string">std::string</a> b = <span class="stringliteral">""</span>; -<a name="l00208"></a>00208 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < a.length(); i++) -<a name="l00209"></a>00209 <span class="keywordflow">if</span> ((a[i] != <span class="charliteral">'\r'</span>) && (a[i] != <span class="charliteral">'\0'</span>) && (a[i] != 7)) -<a name="l00210"></a>00210 b = b + a[i]; -<a name="l00211"></a>00211 std::stringstream stream(<a class="code" href="classuserrec.html#recvq">recvq</a>); -<a name="l00212"></a>00212 stream << b; -<a name="l00213"></a>00213 <a class="code" href="classuserrec.html#recvq">recvq</a> = stream.str(); -<a name="l00214"></a>00214 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; -<a name="l00215"></a>00215 <span class="comment">// count the size of the first line in the buffer.</span> -<a name="l00216"></a>00216 <span class="keywordflow">while</span> (i < <a class="code" href="classuserrec.html#recvq">recvq</a>.length()) -<a name="l00217"></a>00217 { -<a name="l00218"></a>00218 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>[i++] == <span class="charliteral">'\n'</span>) -<a name="l00219"></a>00219 <span class="keywordflow">break</span>; -<a name="l00220"></a>00220 } -<a name="l00221"></a>00221 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>.length() > (unsigned)this-><a class="code" href="classuserrec.html#recvqmax">recvqmax</a>) -<a name="l00222"></a>00222 { -<a name="l00223"></a>00223 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(<span class="stringliteral">"RecvQ exceeded"</span>); -<a name="l00224"></a>00224 WriteOpers(<span class="stringliteral">"*** User %s RecvQ of %d exceeds connect class maximum of %d"</span>,this->nick,<a class="code" href="classuserrec.html#recvq">recvq</a>.length(),this-><a class="code" href="classuserrec.html#recvqmax">recvqmax</a>); -<a name="l00225"></a>00225 } -<a name="l00226"></a>00226 <span class="comment">// return false if we've had more than 600 characters WITHOUT</span> -<a name="l00227"></a>00227 <span class="comment">// a carriage return (this is BAD, drop the socket)</span> -<a name="l00228"></a>00228 <span class="keywordflow">return</span> (i < 600); -<a name="l00229"></a>00229 } +Definition at line <a class="el" href="users_8cpp-source.html#l00198">198</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +<p> +References <a class="el" href="users_8h-source.html#l00197">recvq</a>, <a class="el" href="users_8h-source.html#l00220">recvqmax</a>, and <a class="el" href="users_8cpp-source.html#l00292">SetWriteError()</a>.<div class="fragment"><pre class="fragment"><a name="l00199"></a>00199 { +<a name="l00200"></a>00200 <a class="code" href="namespaceirc.html#string">std::string</a> b = <span class="stringliteral">""</span>; +<a name="l00201"></a>00201 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < a.length(); i++) +<a name="l00202"></a>00202 <span class="keywordflow">if</span> ((a[i] != <span class="charliteral">'\r'</span>) && (a[i] != <span class="charliteral">'\0'</span>) && (a[i] != 7)) +<a name="l00203"></a>00203 b = b + a[i]; +<a name="l00204"></a>00204 std::stringstream stream(<a class="code" href="classuserrec.html#recvq">recvq</a>); +<a name="l00205"></a>00205 stream << b; +<a name="l00206"></a>00206 <a class="code" href="classuserrec.html#recvq">recvq</a> = stream.str(); +<a name="l00207"></a>00207 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; +<a name="l00208"></a>00208 <span class="comment">// count the size of the first line in the buffer.</span> +<a name="l00209"></a>00209 <span class="keywordflow">while</span> (i < <a class="code" href="classuserrec.html#recvq">recvq</a>.length()) +<a name="l00210"></a>00210 { +<a name="l00211"></a>00211 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>[i++] == <span class="charliteral">'\n'</span>) +<a name="l00212"></a>00212 <span class="keywordflow">break</span>; +<a name="l00213"></a>00213 } +<a name="l00214"></a>00214 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>.length() > (unsigned)this-><a class="code" href="classuserrec.html#recvqmax">recvqmax</a>) +<a name="l00215"></a>00215 { +<a name="l00216"></a>00216 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(<span class="stringliteral">"RecvQ exceeded"</span>); +<a name="l00217"></a>00217 WriteOpers(<span class="stringliteral">"*** User %s RecvQ of %d exceeds connect class maximum of %d"</span>,this->nick,<a class="code" href="classuserrec.html#recvq">recvq</a>.length(),this-><a class="code" href="classuserrec.html#recvqmax">recvqmax</a>); +<a name="l00218"></a>00218 } +<a name="l00219"></a>00219 <span class="comment">// return false if we've had more than 600 characters WITHOUT</span> +<a name="l00220"></a>00220 <span class="comment">// a carriage return (this is BAD, drop the socket)</span> +<a name="l00221"></a>00221 <span class="keywordflow">return</span> (i < 600); +<a name="l00222"></a>00222 } </pre></div> <p> </td> @@ -339,21 +334,21 @@ Adds to the user's write buffer. <p> You may add any amount of text up to this users sendq value, if you exceed the sendq value, <a class="el" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError()</a> will be called to set the users error string to "SendQ exceeded", and further buffer adds will be dropped. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00261">261</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -References <a class="el" href="users_8h-source.html#l00202">sendq</a>, <a class="el" href="users_8h-source.html#l00216">sendqmax</a>, and <a class="el" href="users_8cpp-source.html#l00299">SetWriteError()</a>.<div class="fragment"><pre class="fragment"><a name="l00262"></a>00262 { -<a name="l00263"></a>00263 <span class="keywordflow">if</span> (this->GetWriteError() != <span class="stringliteral">""</span>) -<a name="l00264"></a>00264 <span class="keywordflow">return</span>; -<a name="l00265"></a>00265 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#sendq">sendq</a>.length() + data.length() > (unsigned)this-><a class="code" href="classuserrec.html#sendqmax">sendqmax</a>) -<a name="l00266"></a>00266 { -<a name="l00267"></a>00267 WriteOpers(<span class="stringliteral">"*** User %s SendQ of %d exceeds connect class maximum of %d"</span>,this->nick,<a class="code" href="classuserrec.html#sendq">sendq</a>.length() + data.length(),this-><a class="code" href="classuserrec.html#sendqmax">sendqmax</a>); -<a name="l00268"></a>00268 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(<span class="stringliteral">"SendQ exceeded"</span>); -<a name="l00269"></a>00269 <span class="keywordflow">return</span>; -<a name="l00270"></a>00270 } -<a name="l00271"></a>00271 std::stringstream stream; -<a name="l00272"></a>00272 stream << <a class="code" href="classuserrec.html#sendq">sendq</a> << data; -<a name="l00273"></a>00273 <a class="code" href="classuserrec.html#sendq">sendq</a> = stream.str(); -<a name="l00274"></a>00274 } +Definition at line <a class="el" href="users_8cpp-source.html#l00254">254</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +<p> +References <a class="el" href="users_8h-source.html#l00202">sendq</a>, <a class="el" href="users_8h-source.html#l00216">sendqmax</a>, and <a class="el" href="users_8cpp-source.html#l00292">SetWriteError()</a>.<div class="fragment"><pre class="fragment"><a name="l00255"></a>00255 { +<a name="l00256"></a>00256 <span class="keywordflow">if</span> (this->GetWriteError() != <span class="stringliteral">""</span>) +<a name="l00257"></a>00257 <span class="keywordflow">return</span>; +<a name="l00258"></a>00258 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#sendq">sendq</a>.length() + data.length() > (unsigned)this-><a class="code" href="classuserrec.html#sendqmax">sendqmax</a>) +<a name="l00259"></a>00259 { +<a name="l00260"></a>00260 WriteOpers(<span class="stringliteral">"*** User %s SendQ of %d exceeds connect class maximum of %d"</span>,this->nick,<a class="code" href="classuserrec.html#sendq">sendq</a>.length() + data.length(),this-><a class="code" href="classuserrec.html#sendqmax">sendqmax</a>); +<a name="l00261"></a>00261 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(<span class="stringliteral">"SendQ exceeded"</span>); +<a name="l00262"></a>00262 <span class="keywordflow">return</span>; +<a name="l00263"></a>00263 } +<a name="l00264"></a>00264 std::stringstream stream; +<a name="l00265"></a>00265 stream << <a class="code" href="classuserrec.html#sendq">sendq</a> << data; +<a name="l00266"></a>00266 <a class="code" href="classuserrec.html#sendq">sendq</a> = stream.str(); +<a name="l00267"></a>00267 } </pre></div> <p> </td> @@ -387,14 +382,14 @@ This method returns true if the buffer contains at least one carriage return cha <p> one complete line may be read) <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00231">231</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00224">224</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="users_8h-source.html#l00197">recvq</a>.<div class="fragment"><pre class="fragment"><a name="l00232"></a>00232 { -<a name="l00233"></a>00233 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < <a class="code" href="classuserrec.html#recvq">recvq</a>.length(); i++) -<a name="l00234"></a>00234 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>[i] == <span class="charliteral">'\n'</span>) -<a name="l00235"></a>00235 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00236"></a>00236 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00237"></a>00237 } +References <a class="el" href="users_8h-source.html#l00197">recvq</a>.<div class="fragment"><pre class="fragment"><a name="l00225"></a>00225 { +<a name="l00226"></a>00226 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < <a class="code" href="classuserrec.html#recvq">recvq</a>.length(); i++) +<a name="l00227"></a>00227 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>[i] == <span class="charliteral">'\n'</span>) +<a name="l00228"></a>00228 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00229"></a>00229 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00230"></a>00230 } </pre></div> <p> </td> @@ -428,13 +423,13 @@ This function clears the entire buffer by setting it to an empty string. <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00239">239</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00232">232</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> References <a class="el" href="users_8h-source.html#l00197">recvq</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00669">Server::UserToPseudo()</a>.<div class="fragment"><pre class="fragment"><a name="l00240"></a>00240 { -<a name="l00241"></a>00241 <a class="code" href="classuserrec.html#recvq">recvq</a> = <span class="stringliteral">""</span>; -<a name="l00242"></a>00242 } +Referenced by <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00596">Server::UserToPseudo()</a>.<div class="fragment"><pre class="fragment"><a name="l00233"></a>00233 { +<a name="l00234"></a>00234 <a class="code" href="classuserrec.html#recvq">recvq</a> = <span class="stringliteral">""</span>; +<a name="l00235"></a>00235 } </pre></div> <p> </td> @@ -468,10 +463,10 @@ Shuts down and closes the user's socket. <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00072">72</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00073"></a>00073 { -<a name="l00074"></a>00074 shutdown(this->fd,2); -<a name="l00075"></a>00075 close(this->fd); -<a name="l00076"></a>00076 } +Definition at line <a class="el" href="users_8cpp-source.html#l00066">66</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00067"></a>00067 { +<a name="l00068"></a>00068 shutdown(this->fd,2); +<a name="l00069"></a>00069 close(this->fd); +<a name="l00070"></a>00070 } </pre></div> <p> </td> @@ -505,28 +500,28 @@ Flushes as much of the user's buffer to the file descriptor as possible. <p> This function may not always flush the entire buffer, rather instead as much of it as it possibly can. If the send() call fails to send the entire buffer, the buffer position is advanced forwards and the rest of the data sent at the next call to this method. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00277">277</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -References <a class="el" href="connection_8h-source.html#l00058">connection::bytes_out</a>, <a class="el" href="connection_8h-source.html#l00066">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00202">sendq</a>, and <a class="el" href="users_8cpp-source.html#l00299">SetWriteError()</a>.<div class="fragment"><pre class="fragment"><a name="l00278"></a>00278 { -<a name="l00279"></a>00279 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#sendq">sendq</a>.length()) -<a name="l00280"></a>00280 { -<a name="l00281"></a>00281 <span class="keywordtype">char</span>* tb = (<span class="keywordtype">char</span>*)this-><a class="code" href="classuserrec.html#sendq">sendq</a>.c_str(); -<a name="l00282"></a>00282 <span class="keywordtype">int</span> n_sent = write(this->fd,tb,this->sendq.length()); -<a name="l00283"></a>00283 <span class="keywordflow">if</span> (n_sent == -1) -<a name="l00284"></a>00284 { -<a name="l00285"></a>00285 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(strerror(errno)); -<a name="l00286"></a>00286 } -<a name="l00287"></a>00287 <span class="keywordflow">else</span> -<a name="l00288"></a>00288 { -<a name="l00289"></a>00289 <span class="comment">// advance the queue</span> -<a name="l00290"></a>00290 tb += n_sent; -<a name="l00291"></a>00291 this-><a class="code" href="classuserrec.html#sendq">sendq</a> = tb; -<a name="l00292"></a>00292 <span class="comment">// update the user's stats counters</span> -<a name="l00293"></a>00293 this-><a class="code" href="classconnection.html#bytes_5Fout">bytes_out</a> += n_sent; -<a name="l00294"></a>00294 this-><a class="code" href="classconnection.html#cmds_5Fout">cmds_out</a>++; -<a name="l00295"></a>00295 } -<a name="l00296"></a>00296 } -<a name="l00297"></a>00297 } +Definition at line <a class="el" href="users_8cpp-source.html#l00270">270</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +<p> +References <a class="el" href="connection_8h-source.html#l00058">connection::bytes_out</a>, <a class="el" href="connection_8h-source.html#l00066">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00202">sendq</a>, and <a class="el" href="users_8cpp-source.html#l00292">SetWriteError()</a>.<div class="fragment"><pre class="fragment"><a name="l00271"></a>00271 { +<a name="l00272"></a>00272 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#sendq">sendq</a>.length()) +<a name="l00273"></a>00273 { +<a name="l00274"></a>00274 <span class="keywordtype">char</span>* tb = (<span class="keywordtype">char</span>*)this-><a class="code" href="classuserrec.html#sendq">sendq</a>.c_str(); +<a name="l00275"></a>00275 <span class="keywordtype">int</span> n_sent = write(this->fd,tb,this->sendq.length()); +<a name="l00276"></a>00276 <span class="keywordflow">if</span> (n_sent == -1) +<a name="l00277"></a>00277 { +<a name="l00278"></a>00278 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(strerror(errno)); +<a name="l00279"></a>00279 } +<a name="l00280"></a>00280 <span class="keywordflow">else</span> +<a name="l00281"></a>00281 { +<a name="l00282"></a>00282 <span class="comment">// advance the queue</span> +<a name="l00283"></a>00283 tb += n_sent; +<a name="l00284"></a>00284 this-><a class="code" href="classuserrec.html#sendq">sendq</a> = tb; +<a name="l00285"></a>00285 <span class="comment">// update the user's stats counters</span> +<a name="l00286"></a>00286 this-><a class="code" href="classconnection.html#bytes_5Fout">bytes_out</a> += n_sent; +<a name="l00287"></a>00287 this-><a class="code" href="classconnection.html#cmds_5Fout">cmds_out</a>++; +<a name="l00288"></a>00288 } +<a name="l00289"></a>00289 } +<a name="l00290"></a>00290 } </pre></div> <p> </td> @@ -560,23 +555,23 @@ This method returns the first available string at the tail end of the buffer and <p> This means it is a one way operation in a similar way to strtok(), and multiple calls return multiple lines if they are available. The results of this function if there are no lines to be read are unknown, always use <a class="el" href="classuserrec.html#BufferIsReady_28_29">BufferIsReady()</a> to check if it is ok to read the buffer before calling <a class="el" href="classuserrec.html#GetBuffer_28_29">GetBuffer()</a>. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00244">244</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -References <a class="el" href="users_8h-source.html#l00197">recvq</a>.<div class="fragment"><pre class="fragment"><a name="l00245"></a>00245 { -<a name="l00246"></a>00246 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a> == <span class="stringliteral">""</span>) -<a name="l00247"></a>00247 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -<a name="l00248"></a>00248 <span class="keywordtype">char</span>* line = (<span class="keywordtype">char</span>*)<a class="code" href="classuserrec.html#recvq">recvq</a>.c_str(); -<a name="l00249"></a>00249 <a class="code" href="namespaceirc.html#string">std::string</a> ret = <span class="stringliteral">""</span>; -<a name="l00250"></a>00250 <span class="keywordflow">while</span> ((*line != <span class="charliteral">'\n'</span>) && (strlen(line))) -<a name="l00251"></a>00251 { -<a name="l00252"></a>00252 ret = ret + *line; -<a name="l00253"></a>00253 line++; -<a name="l00254"></a>00254 } -<a name="l00255"></a>00255 <span class="keywordflow">if</span> ((*line == <span class="charliteral">'\n'</span>) || (*line == <span class="charliteral">'\r'</span>)) -<a name="l00256"></a>00256 line++; -<a name="l00257"></a>00257 <a class="code" href="classuserrec.html#recvq">recvq</a> = line; -<a name="l00258"></a>00258 <span class="keywordflow">return</span> ret; -<a name="l00259"></a>00259 } +Definition at line <a class="el" href="users_8cpp-source.html#l00237">237</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +<p> +References <a class="el" href="users_8h-source.html#l00197">recvq</a>.<div class="fragment"><pre class="fragment"><a name="l00238"></a>00238 { +<a name="l00239"></a>00239 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a> == <span class="stringliteral">""</span>) +<a name="l00240"></a>00240 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +<a name="l00241"></a>00241 <span class="keywordtype">char</span>* line = (<span class="keywordtype">char</span>*)<a class="code" href="classuserrec.html#recvq">recvq</a>.c_str(); +<a name="l00242"></a>00242 <a class="code" href="namespaceirc.html#string">std::string</a> ret = <span class="stringliteral">""</span>; +<a name="l00243"></a>00243 <span class="keywordflow">while</span> ((*line != <span class="charliteral">'\n'</span>) && (strlen(line))) +<a name="l00244"></a>00244 { +<a name="l00245"></a>00245 ret = ret + *line; +<a name="l00246"></a>00246 line++; +<a name="l00247"></a>00247 } +<a name="l00248"></a>00248 <span class="keywordflow">if</span> ((*line == <span class="charliteral">'\n'</span>) || (*line == <span class="charliteral">'\r'</span>)) +<a name="l00249"></a>00249 line++; +<a name="l00250"></a>00250 <a class="code" href="classuserrec.html#recvq">recvq</a> = line; +<a name="l00251"></a>00251 <span class="keywordflow">return</span> ret; +<a name="l00252"></a>00252 } </pre></div> <p> </td> @@ -610,13 +605,13 @@ Returns the full displayed host of the user This member function returns the hos <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00078">78</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00072">72</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="users_8h-source.html#l00134">dhost</a>, <a class="el" href="users_8h-source.html#l00129">ident</a>, and <a class="el" href="users_8h-source.html#l00124">nick</a>.<div class="fragment"><pre class="fragment"><a name="l00079"></a>00079 { -<a name="l00080"></a>00080 <span class="keyword">static</span> <span class="keywordtype">char</span> result[MAXBUF]; -<a name="l00081"></a>00081 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<a class="code" href="classuserrec.html#dhost_5B_31_36_30_5D">dhost</a>); -<a name="l00082"></a>00082 <span class="keywordflow">return</span> result; -<a name="l00083"></a>00083 } +References <a class="el" href="users_8h-source.html#l00134">dhost</a>, <a class="el" href="users_8h-source.html#l00129">ident</a>, and <a class="el" href="users_8h-source.html#l00124">nick</a>.<div class="fragment"><pre class="fragment"><a name="l00073"></a>00073 { +<a name="l00074"></a>00074 <span class="keyword">static</span> <span class="keywordtype">char</span> result[MAXBUF]; +<a name="l00075"></a>00075 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<a class="code" href="classuserrec.html#dhost_5B_31_36_30_5D">dhost</a>); +<a name="l00076"></a>00076 <span class="keywordflow">return</span> result; +<a name="l00077"></a>00077 } </pre></div> <p> </td> @@ -650,13 +645,13 @@ Returns the full real host of the user This member function returns the hostname <p> If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00096">96</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00089">89</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="connection_8h-source.html#l00046">connection::host</a>, <a class="el" href="users_8h-source.html#l00129">ident</a>, and <a class="el" href="users_8h-source.html#l00124">nick</a>.<div class="fragment"><pre class="fragment"><a name="l00097"></a>00097 { -<a name="l00098"></a>00098 <span class="keyword">static</span> <span class="keywordtype">char</span> fresult[MAXBUF]; -<a name="l00099"></a>00099 snprintf(fresult,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>); -<a name="l00100"></a>00100 <span class="keywordflow">return</span> fresult; -<a name="l00101"></a>00101 } +References <a class="el" href="connection_8h-source.html#l00046">connection::host</a>, <a class="el" href="users_8h-source.html#l00129">ident</a>, and <a class="el" href="users_8h-source.html#l00124">nick</a>.<div class="fragment"><pre class="fragment"><a name="l00090"></a>00090 { +<a name="l00091"></a>00091 <span class="keyword">static</span> <span class="keywordtype">char</span> fresult[MAXBUF]; +<a name="l00092"></a>00092 snprintf(fresult,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>); +<a name="l00093"></a>00093 <span class="keywordflow">return</span> fresult; +<a name="l00094"></a>00094 } </pre></div> <p> </td> @@ -690,11 +685,11 @@ Returns the list of channels this user has been invited to but has not yet joine <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00117">117</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00110">110</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="users_8h-source.html#l00117">invites</a>.<div class="fragment"><pre class="fragment"><a name="l00118"></a>00118 { -<a name="l00119"></a>00119 <span class="keywordflow">return</span> &<a class="code" href="classuserrec.html#invites">invites</a>; -<a name="l00120"></a>00120 } +References <a class="el" href="users_8h-source.html#l00117">invites</a>.<div class="fragment"><pre class="fragment"><a name="l00111"></a>00111 { +<a name="l00112"></a>00112 <span class="keywordflow">return</span> &<a class="code" href="classuserrec.html#invites">invites</a>; +<a name="l00113"></a>00113 } </pre></div> <p> </td> @@ -728,11 +723,11 @@ Returns the write error which last occured on this connection or an empty string <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00307">307</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00300">300</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="users_8h-source.html#l00212">WriteError</a>.<div class="fragment"><pre class="fragment"><a name="l00308"></a>00308 { -<a name="l00309"></a>00309 <span class="keywordflow">return</span> this-><a class="code" href="classuserrec.html#WriteError">WriteError</a>; -<a name="l00310"></a>00310 } +References <a class="el" href="users_8h-source.html#l00212">WriteError</a>.<div class="fragment"><pre class="fragment"><a name="l00301"></a>00301 { +<a name="l00302"></a>00302 <span class="keywordflow">return</span> this-><a class="code" href="classuserrec.html#WriteError">WriteError</a>; +<a name="l00303"></a>00303 } </pre></div> <p> </td> @@ -767,59 +762,59 @@ Returns true or false for if a user can execute a privilaged oper command. <p> This is done by looking up their oper type from <a class="el" href="classuserrec.html#oper_5BNICKMAX_5D">userrec::oper</a>, then referencing this to their oper classes and checking the commands they can execute. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00151">151</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -References <a class="el" href="channels_8cpp.html#config_5Ff">config_f</a>, and <a class="el" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline()</a>.<div class="fragment"><pre class="fragment"><a name="l00152"></a>00152 { -<a name="l00153"></a>00153 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -<a name="l00154"></a>00154 <span class="keywordtype">char</span>* mycmd; -<a name="l00155"></a>00155 <span class="keywordtype">char</span>* savept; -<a name="l00156"></a>00156 <span class="keywordtype">char</span>* savept2; -<a name="l00157"></a>00157 -<a name="l00158"></a>00158 <span class="comment">// users on u-lined servers can completely bypass</span> -<a name="l00159"></a>00159 <span class="comment">// all permissions based checks.</span> -<a name="l00160"></a>00160 <span class="comment">//</span> -<a name="l00161"></a>00161 <span class="comment">// of course, if this is sent to a remote server and this</span> -<a name="l00162"></a>00162 <span class="comment">// server is not ulined there, then that other server</span> -<a name="l00163"></a>00163 <span class="comment">// silently drops the command.</span> -<a name="l00164"></a>00164 <span class="keywordflow">if</span> (<a class="code" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline</a>(this->server)) -<a name="l00165"></a>00165 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00166"></a>00166 -<a name="l00167"></a>00167 <span class="comment">// are they even an oper at all?</span> -<a name="l00168"></a>00168 <span class="keywordflow">if</span> (strchr(this->modes,<span class="charliteral">'o'</span>)) -<a name="l00169"></a>00169 { -<a name="l00170"></a>00170 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j < ConfValueEnum(<span class="stringliteral">"type"</span>,&config_f); j++) -<a name="l00171"></a>00171 { -<a name="l00172"></a>00172 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&config_f); -<a name="l00173"></a>00173 <span class="keywordflow">if</span> (!strcmp(TypeName,this->oper)) -<a name="l00174"></a>00174 { -<a name="l00175"></a>00175 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&config_f); -<a name="l00176"></a>00176 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); -<a name="l00177"></a>00177 <span class="keywordflow">while</span> (myclass) -<a name="l00178"></a>00178 { -<a name="l00179"></a>00179 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < ConfValueEnum(<span class="stringliteral">"class"</span>,&config_f); k++) -<a name="l00180"></a>00180 { -<a name="l00181"></a>00181 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&config_f); -<a name="l00182"></a>00182 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) -<a name="l00183"></a>00183 { -<a name="l00184"></a>00184 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&config_f); -<a name="l00185"></a>00185 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); -<a name="l00186"></a>00186 <span class="keywordflow">while</span> (mycmd) -<a name="l00187"></a>00187 { -<a name="l00188"></a>00188 <span class="keywordflow">if</span> ((!strcasecmp(mycmd,command)) || (*mycmd == <span class="charliteral">'*'</span>)) -<a name="l00189"></a>00189 { -<a name="l00190"></a>00190 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00191"></a>00191 } -<a name="l00192"></a>00192 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); -<a name="l00193"></a>00193 } -<a name="l00194"></a>00194 } -<a name="l00195"></a>00195 } -<a name="l00196"></a>00196 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); -<a name="l00197"></a>00197 } -<a name="l00198"></a>00198 } -<a name="l00199"></a>00199 } -<a name="l00200"></a>00200 } -<a name="l00201"></a>00201 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00202"></a>00202 } +Definition at line <a class="el" href="users_8cpp-source.html#l00144">144</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +<p> +References <a class="el" href="inspircd__io_8h-source.html#l00074">ServerConfig::config_f</a>, <a class="el" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ServerConfig::ConfValue()</a>, and <a class="el" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline()</a>.<div class="fragment"><pre class="fragment"><a name="l00145"></a>00145 { +<a name="l00146"></a>00146 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +<a name="l00147"></a>00147 <span class="keywordtype">char</span>* mycmd; +<a name="l00148"></a>00148 <span class="keywordtype">char</span>* savept; +<a name="l00149"></a>00149 <span class="keywordtype">char</span>* savept2; +<a name="l00150"></a>00150 +<a name="l00151"></a>00151 <span class="comment">// users on u-lined servers can completely bypass</span> +<a name="l00152"></a>00152 <span class="comment">// all permissions based checks.</span> +<a name="l00153"></a>00153 <span class="comment">//</span> +<a name="l00154"></a>00154 <span class="comment">// of course, if this is sent to a remote server and this</span> +<a name="l00155"></a>00155 <span class="comment">// server is not ulined there, then that other server</span> +<a name="l00156"></a>00156 <span class="comment">// silently drops the command.</span> +<a name="l00157"></a>00157 <span class="keywordflow">if</span> (<a class="code" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline</a>(this->server)) +<a name="l00158"></a>00158 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00159"></a>00159 +<a name="l00160"></a>00160 <span class="comment">// are they even an oper at all?</span> +<a name="l00161"></a>00161 <span class="keywordflow">if</span> (strchr(this->modes,<span class="charliteral">'o'</span>)) +<a name="l00162"></a>00162 { +<a name="l00163"></a>00163 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j < Config->ConfValueEnum(<span class="stringliteral">"type"</span>,&<a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); j++) +<a name="l00164"></a>00164 { +<a name="l00165"></a>00165 <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a>(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&<a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); +<a name="l00166"></a>00166 <span class="keywordflow">if</span> (!strcmp(TypeName,this->oper)) +<a name="l00167"></a>00167 { +<a name="l00168"></a>00168 <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a>(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&<a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); +<a name="l00169"></a>00169 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); +<a name="l00170"></a>00170 <span class="keywordflow">while</span> (myclass) +<a name="l00171"></a>00171 { +<a name="l00172"></a>00172 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < Config->ConfValueEnum(<span class="stringliteral">"class"</span>,&<a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); k++) +<a name="l00173"></a>00173 { +<a name="l00174"></a>00174 <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a>(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&<a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); +<a name="l00175"></a>00175 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) +<a name="l00176"></a>00176 { +<a name="l00177"></a>00177 <a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a>(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&<a class="code" href="channels_8cpp.html#Config">Config</a>-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); +<a name="l00178"></a>00178 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); +<a name="l00179"></a>00179 <span class="keywordflow">while</span> (mycmd) +<a name="l00180"></a>00180 { +<a name="l00181"></a>00181 <span class="keywordflow">if</span> ((!strcasecmp(mycmd,command)) || (*mycmd == <span class="charliteral">'*'</span>)) +<a name="l00182"></a>00182 { +<a name="l00183"></a>00183 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00184"></a>00184 } +<a name="l00185"></a>00185 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); +<a name="l00186"></a>00186 } +<a name="l00187"></a>00187 } +<a name="l00188"></a>00188 } +<a name="l00189"></a>00189 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); +<a name="l00190"></a>00190 } +<a name="l00191"></a>00191 } +<a name="l00192"></a>00192 } +<a name="l00193"></a>00193 } +<a name="l00194"></a>00194 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00195"></a>00195 } </pre></div> <p> </td> @@ -854,13 +849,13 @@ Adds a channel to a users invite list (invites them to a channel). <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00122">122</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00115">115</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="users_8h-source.html#l00042">Invited::channel</a>, and <a class="el" href="users_8h-source.html#l00117">invites</a>.<div class="fragment"><pre class="fragment"><a name="l00123"></a>00123 { -<a name="l00124"></a>00124 <a class="code" href="classInvited.html">Invited</a> i; -<a name="l00125"></a>00125 strlcpy(i.<a class="code" href="classInvited.html#channel_5BCHANMAX_5D">channel</a>,channel,CHANMAX); -<a name="l00126"></a>00126 <a class="code" href="classuserrec.html#invites">invites</a>.push_back(i); -<a name="l00127"></a>00127 } +References <a class="el" href="users_8h-source.html#l00042">Invited::channel</a>, and <a class="el" href="users_8h-source.html#l00117">invites</a>.<div class="fragment"><pre class="fragment"><a name="l00116"></a>00116 { +<a name="l00117"></a>00117 <a class="code" href="classInvited.html">Invited</a> i; +<a name="l00118"></a>00118 strlcpy(i.<a class="code" href="classInvited.html#channel_5BCHANMAX_5D">channel</a>,channel,CHANMAX); +<a name="l00119"></a>00119 <a class="code" href="classuserrec.html#invites">invites</a>.push_back(i); +<a name="l00120"></a>00120 } </pre></div> <p> </td> @@ -895,20 +890,20 @@ Returns true if a user is invited to a channel. <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00103">103</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00096">96</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="users_8h-source.html#l00117">invites</a>.<div class="fragment"><pre class="fragment"><a name="l00104"></a>00104 { -<a name="l00105"></a>00105 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#invites">invites</a>.begin(); i != <a class="code" href="classuserrec.html#invites">invites</a>.end(); i++) -<a name="l00106"></a>00106 { -<a name="l00107"></a>00107 <span class="keywordflow">if</span> (i->channel) { -<a name="l00108"></a>00108 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -<a name="l00109"></a>00109 { -<a name="l00110"></a>00110 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00111"></a>00111 } -<a name="l00112"></a>00112 } -<a name="l00113"></a>00113 } -<a name="l00114"></a>00114 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00115"></a>00115 } +References <a class="el" href="users_8h-source.html#l00117">invites</a>.<div class="fragment"><pre class="fragment"><a name="l00097"></a>00097 { +<a name="l00098"></a>00098 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#invites">invites</a>.begin(); i != <a class="code" href="classuserrec.html#invites">invites</a>.end(); i++) +<a name="l00099"></a>00099 { +<a name="l00100"></a>00100 <span class="keywordflow">if</span> (i->channel) { +<a name="l00101"></a>00101 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +<a name="l00102"></a>00102 { +<a name="l00103"></a>00103 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00104"></a>00104 } +<a name="l00105"></a>00105 } +<a name="l00106"></a>00106 } +<a name="l00107"></a>00107 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00108"></a>00108 } </pre></div> <p> </td> @@ -952,16 +947,13 @@ Calls read() to read some data for this user using their fd. <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00085">85</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>.<div class="fragment"><pre class="fragment"><a name="l00086"></a>00086 { -<a name="l00087"></a>00087 <span class="keywordflow">if</span> (this->fd > -1) -<a name="l00088"></a>00088 { -<a name="l00089"></a>00089 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"userrec::ReadData on fd %d"</span>,this->fd); -<a name="l00090"></a>00090 <span class="keywordflow">return</span> read(this->fd, buffer, size); -<a name="l00091"></a>00091 } -<a name="l00092"></a>00092 <span class="keywordflow">else</span> <span class="keywordflow">return</span> 0; -<a name="l00093"></a>00093 } +Definition at line <a class="el" href="users_8cpp-source.html#l00079">79</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00080"></a>00080 { +<a name="l00081"></a>00081 <span class="keywordflow">if</span> (this->fd > -1) +<a name="l00082"></a>00082 { +<a name="l00083"></a>00083 <span class="keywordflow">return</span> read(this->fd, buffer, size); +<a name="l00084"></a>00084 } +<a name="l00085"></a>00085 <span class="keywordflow">else</span> <span class="keywordflow">return</span> 0; +<a name="l00086"></a>00086 } </pre></div> <p> </td> @@ -996,28 +988,28 @@ Removes a channel from a users invite list. <p> This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00129">129</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="users_8h-source.html#l00117">invites</a>.<div class="fragment"><pre class="fragment"><a name="l00130"></a>00130 { -<a name="l00131"></a>00131 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Removing invites"</span>); -<a name="l00132"></a>00132 <span class="keywordflow">if</span> (channel) -<a name="l00133"></a>00133 { -<a name="l00134"></a>00134 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#invites">invites</a>.size()) -<a name="l00135"></a>00135 { -<a name="l00136"></a>00136 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#invites">invites</a>.begin(); i != <a class="code" href="classuserrec.html#invites">invites</a>.end(); i++) -<a name="l00137"></a>00137 { -<a name="l00138"></a>00138 <span class="keywordflow">if</span> (i->channel) -<a name="l00139"></a>00139 { -<a name="l00140"></a>00140 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -<a name="l00141"></a>00141 { -<a name="l00142"></a>00142 <a class="code" href="classuserrec.html#invites">invites</a>.erase(i); -<a name="l00143"></a>00143 <span class="keywordflow">return</span>; -<a name="l00144"></a>00144 } -<a name="l00145"></a>00145 } -<a name="l00146"></a>00146 } -<a name="l00147"></a>00147 } -<a name="l00148"></a>00148 } -<a name="l00149"></a>00149 } +Definition at line <a class="el" href="users_8cpp-source.html#l00122">122</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +<p> +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, and <a class="el" href="users_8h-source.html#l00117">invites</a>.<div class="fragment"><pre class="fragment"><a name="l00123"></a>00123 { +<a name="l00124"></a>00124 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Removing invites"</span>); +<a name="l00125"></a>00125 <span class="keywordflow">if</span> (channel) +<a name="l00126"></a>00126 { +<a name="l00127"></a>00127 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#invites">invites</a>.size()) +<a name="l00128"></a>00128 { +<a name="l00129"></a>00129 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#invites">invites</a>.begin(); i != <a class="code" href="classuserrec.html#invites">invites</a>.end(); i++) +<a name="l00130"></a>00130 { +<a name="l00131"></a>00131 <span class="keywordflow">if</span> (i->channel) +<a name="l00132"></a>00132 { +<a name="l00133"></a>00133 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +<a name="l00134"></a>00134 { +<a name="l00135"></a>00135 <a class="code" href="classuserrec.html#invites">invites</a>.erase(i); +<a name="l00136"></a>00136 <span class="keywordflow">return</span>; +<a name="l00137"></a>00137 } +<a name="l00138"></a>00138 } +<a name="l00139"></a>00139 } +<a name="l00140"></a>00140 } +<a name="l00141"></a>00141 } +<a name="l00142"></a>00142 } </pre></div> <p> </td> @@ -1052,16 +1044,16 @@ Sets the write error for a connection. <p> This is done because the actual disconnect of a client may occur at an inopportune time such as half way through /LIST output. The WriteErrors of clients are checked at a more ideal time (in the mainloop) and errored clients purged. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00299">299</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00292">292</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="users_8h-source.html#l00212">WriteError</a>. +References <a class="el" href="inspircd__io_8h-source.html#l00028">DEBUG</a>, and <a class="el" href="users_8h-source.html#l00212">WriteError</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00205">AddBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00261">AddWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00277">FlushWriteBuf()</a>.<div class="fragment"><pre class="fragment"><a name="l00300"></a>00300 { -<a name="l00301"></a>00301 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Setting error string for %s to '%s'"</span>,this->nick,error.c_str()); -<a name="l00302"></a>00302 <span class="comment">// don't try to set the error twice, its already set take the first string.</span> -<a name="l00303"></a>00303 <span class="keywordflow">if</span> (this->WriteError == <span class="stringliteral">""</span>) -<a name="l00304"></a>00304 this-><a class="code" href="classuserrec.html#WriteError">WriteError</a> = error; -<a name="l00305"></a>00305 } +Referenced by <a class="el" href="users_8cpp-source.html#l00198">AddBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00254">AddWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00270">FlushWriteBuf()</a>.<div class="fragment"><pre class="fragment"><a name="l00293"></a>00293 { +<a name="l00294"></a>00294 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Setting error string for %s to '%s'"</span>,this->nick,error.c_str()); +<a name="l00295"></a>00295 <span class="comment">// don't try to set the error twice, its already set take the first string.</span> +<a name="l00296"></a>00296 <span class="keywordflow">if</span> (this->WriteError == <span class="stringliteral">""</span>) +<a name="l00297"></a>00297 this-><a class="code" href="classuserrec.html#WriteError">WriteError</a> = error; +<a name="l00298"></a>00298 } </pre></div> <p> </td> @@ -1094,16 +1086,16 @@ If this string is empty, the user is not marked as away. <p> Definition at line <a class="el" href="users_8h-source.html#l00158">158</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> -<a class="anchor" name="chans_5BMAXCHANS_5D"></a><!-- doxytag: member="userrec::chans" ref="chans_5BMAXCHANS_5D" args="[MAXCHANS]" --><p> +<a class="anchor" name="chans"></a><!-- doxytag: member="userrec::chans" ref="chans" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"><a class="el" href="classucrec.html">ucrec</a> <a class="el" href="classuserrec.html#chans_5BMAXCHANS_5D">userrec::chans</a>[MAXCHANS] </td> + <td class="md" nowrap valign="top">std::vector<<a class="el" href="classucrec.html">ucrec</a>> <a class="el" href="classuserrec.html#chans">userrec::chans</a> </td> </tr> </table> </td> @@ -1121,7 +1113,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. <p> Definition at line <a class="el" href="users_8h-source.html#l00149">149</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="dhost_5B_31_36_30_5D"></a><!-- doxytag: member="userrec::dhost" ref="dhost_5B_31_36_30_5D" args="[160]" --><p> @@ -1150,7 +1142,7 @@ This usually matches the value of <a class="el" href="classconnection.html#host_ <p> Definition at line <a class="el" href="users_8h-source.html#l00134">134</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00078">GetFullHost()</a>, and <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00072">GetFullHost()</a>, and <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="dns_5Fdone"></a><!-- doxytag: member="userrec::dns_done" ref="dns_5Fdone" args="" --><p> @@ -1179,7 +1171,7 @@ True when <a class="el" href="classDNS.html">DNS</a> lookups are completed. <p> Definition at line <a class="el" href="users_8h-source.html#l00181">181</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="flood"></a><!-- doxytag: member="userrec::flood" ref="flood" args="" --><p> @@ -1208,7 +1200,7 @@ Number of lines the user can place into the buffer (up to the global NetBufferSi <p> Definition at line <a class="el" href="users_8h-source.html#l00164">164</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="fullname_5BMAXGECOS_2B_31_5D"></a><!-- doxytag: member="userrec::fullname" ref="fullname_5BMAXGECOS_2B_31_5D" args="[MAXGECOS+1]" --><p> @@ -1237,7 +1229,7 @@ The users full name. <p> Definition at line <a class="el" href="users_8h-source.html#l00138">138</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="ident_5BIDENTMAX_2B_32_5D"></a><!-- doxytag: member="userrec::ident" ref="ident_5BIDENTMAX_2B_32_5D" args="[IDENTMAX+2]" --><p> @@ -1266,7 +1258,7 @@ Two characters are added to the user-defined limit to compensate for the tilde e <p> Definition at line <a class="el" href="users_8h-source.html#l00129">129</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00078">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00096">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00669">Server::UserToPseudo()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00072">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00089">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00596">Server::UserToPseudo()</a>. </td> </tr> </table> <a class="anchor" name="invites"></a><!-- doxytag: member="userrec::invites" ref="invites" args="" --><p> @@ -1295,7 +1287,7 @@ A list of channels the user has a pending invite to. <p> Definition at line <a class="el" href="users_8h-source.html#l00117">117</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00117">GetInviteList()</a>, <a class="el" href="users_8cpp-source.html#l00122">InviteTo()</a>, <a class="el" href="users_8cpp-source.html#l00103">IsInvited()</a>, <a class="el" href="users_8cpp-source.html#l00129">RemoveInvite()</a>, and <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00110">GetInviteList()</a>, <a class="el" href="users_8cpp-source.html#l00115">InviteTo()</a>, <a class="el" href="users_8cpp-source.html#l00096">IsInvited()</a>, <a class="el" href="users_8cpp-source.html#l00122">RemoveInvite()</a>, and <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="lines_5Fin"></a><!-- doxytag: member="userrec::lines_in" ref="lines_5Fin" args="" --><p> @@ -1324,7 +1316,7 @@ Flood counters. <p> Definition at line <a class="el" href="users_8h-source.html#l00206">206</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="modes_5B_35_34_5D"></a><!-- doxytag: member="userrec::modes" ref="modes_5B_35_34_5D" args="[54]" --><p> @@ -1353,7 +1345,7 @@ This may contain any of the following RFC characters: o, w, s, i Your module may <p> Definition at line <a class="el" href="users_8h-source.html#l00147">147</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="nick_5BNICKMAX_5D"></a><!-- doxytag: member="userrec::nick" ref="nick_5BNICKMAX_5D" args="[NICKMAX]" --><p> @@ -1382,7 +1374,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma <p> Definition at line <a class="el" href="users_8h-source.html#l00124">124</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00905">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00078">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00096">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00833">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00072">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00089">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="oper_5BNICKMAX_5D"></a><!-- doxytag: member="userrec::oper" ref="oper_5BNICKMAX_5D" args="[NICKMAX]" --><p> @@ -1411,7 +1403,7 @@ This is used to check permissions in operclasses, so that we can say 'yay' or 'n <p> Definition at line <a class="el" href="users_8h-source.html#l00177">177</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="password_5BMAXBUF_5D"></a><!-- doxytag: member="userrec::password" ref="password_5BMAXBUF_5D" args="[MAXBUF]" --><p> @@ -1494,7 +1486,7 @@ Lines from the IRCd awaiting processing are stored here. Upgraded april 2005, ol <p> Definition at line <a class="el" href="users_8h-source.html#l00197">197</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00205">AddBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00231">BufferIsReady()</a>, <a class="el" href="users_8cpp-source.html#l00239">ClearBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00244">GetBuffer()</a>, and <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00198">AddBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00224">BufferIsReady()</a>, <a class="el" href="users_8cpp-source.html#l00232">ClearBuffer()</a>, <a class="el" href="users_8cpp-source.html#l00237">GetBuffer()</a>, and <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="recvqmax"></a><!-- doxytag: member="userrec::recvqmax" ref="recvqmax" args="" --><p> @@ -1523,7 +1515,7 @@ Maximum size this user's recvq can become. <p> Definition at line <a class="el" href="users_8h-source.html#l00220">220</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00205">AddBuffer()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00198">AddBuffer()</a>. </td> </tr> </table> <a class="anchor" name="reset_5Fdue"></a><!-- doxytag: member="userrec::reset_due" ref="reset_5Fdue" args="" --><p> @@ -1550,7 +1542,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00205">AddBuffer()</a> <p> Definition at line <a class="el" href="users_8h-source.html#l00207">207</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="sendq"></a><!-- doxytag: member="userrec::sendq" ref="sendq" args="" --><p> @@ -1579,7 +1571,7 @@ Lines waiting to be sent are stored here until their buffer is flushed. <p> Definition at line <a class="el" href="users_8h-source.html#l00202">202</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00261">AddWriteBuf()</a>, <a class="el" href="users_8cpp-source.html#l00277">FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00254">AddWriteBuf()</a>, <a class="el" href="users_8cpp-source.html#l00270">FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="sendqmax"></a><!-- doxytag: member="userrec::sendqmax" ref="sendqmax" args="" --><p> @@ -1608,7 +1600,7 @@ Maximum size this user's sendq can become. <p> Definition at line <a class="el" href="users_8h-source.html#l00216">216</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00261">AddWriteBuf()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00254">AddWriteBuf()</a>. </td> </tr> </table> <a class="anchor" name="server"></a><!-- doxytag: member="userrec::server" ref="server" args="" --><p> @@ -1637,7 +1629,7 @@ The server the user is connected to. <p> Definition at line <a class="el" href="users_8h-source.html#l00153">153</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="threshold"></a><!-- doxytag: member="userrec::threshold" ref="threshold" args="" --><p> @@ -1691,7 +1683,7 @@ Number of seconds this user is given to send USER/NICK If they do not send their <p> Definition at line <a class="el" href="users_8h-source.html#l00170">170</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00036">userrec()</a>. </td> </tr> </table> <a class="anchor" name="WriteError"></a><!-- doxytag: member="userrec::WriteError" ref="WriteError" args="" --><p> @@ -1718,12 +1710,12 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00038">userrec()</a>. <p> Definition at line <a class="el" href="users_8h-source.html#l00212">212</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00307">GetWriteError()</a>, and <a class="el" href="users_8cpp-source.html#l00299">SetWriteError()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00300">GetWriteError()</a>, and <a class="el" href="users_8cpp-source.html#l00292">SetWriteError()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="users_8h-source.html">users.h</a><li><a class="el" href="users_8cpp-source.html">users.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/classuserrec__coll__graph.gif b/docs/module-doc/classuserrec__coll__graph.gif Binary files differindex c04b77ecc..956286835 100644 --- a/docs/module-doc/classuserrec__coll__graph.gif +++ b/docs/module-doc/classuserrec__coll__graph.gif diff --git a/docs/module-doc/classuserrec__coll__graph.map b/docs/module-doc/classuserrec__coll__graph.map index 0c1aa906e..4bdefc2dc 100644 --- a/docs/module-doc/classuserrec__coll__graph.map +++ b/docs/module-doc/classuserrec__coll__graph.map @@ -1,3 +1,2 @@ base referer -rect $classconnection.html 199,429 284,456 -rect $classucrec.html 215,7 268,33 +rect $classconnection.html 209,355 295,382 diff --git a/docs/module-doc/classuserrec__coll__graph.md5 b/docs/module-doc/classuserrec__coll__graph.md5 index 4ad527f15..a057083b0 100644 --- a/docs/module-doc/classuserrec__coll__graph.md5 +++ b/docs/module-doc/classuserrec__coll__graph.md5 @@ -1 +1 @@ -e23f71aec70c162678f86988d6926812
\ No newline at end of file +b466bb927c1e2d01107d80d37ebcffbc
\ No newline at end of file diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index 6a85ce6b1..2439e45c3 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -97,7 +97,7 @@ <a name="l00094"></a>00094 <span class="keywordtype">void</span> <a class="code" href="commands_8h.html#do_5Fwhois_28userrec_20_2Auser_2C_20userrec_20_2Adest_2C_20unsigned_20long_20signon_2C_20unsigned_20long_20idle_2C_20char_20_2Anick_29">do_whois</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classuserrec.html">userrec</a>* dest,<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> signon, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> idle, <span class="keywordtype">char</span>* nick); <a name="l00095"></a>00095 <a name="l00096"></a>00096 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index 037c66c72..6fc6be221 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -232,7 +232,7 @@ Other useful functions. <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00761">Server::CalcDuration()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00688">Server::CalcDuration()</a>. </td> </tr> </table> <a class="anchor" name="handle_5Fadmin_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29"></a><!-- doxytag: member="commands.h::handle_admin" ref="handle_5Fadmin_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29" args="(char **parameters, int pcnt, userrec *user)" --><p> @@ -2459,10 +2459,10 @@ Functions for u:lined servers. <p> <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00151">userrec::HasPermission()</a>, and <a class="el" href="modules_8cpp-source.html#l00467">Server::IsUlined()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00144">userrec::HasPermission()</a>, and <a class="el" href="modules_8cpp-source.html#l00394">Server::IsUlined()</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:20 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 58b10d566..d4440247a 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -82,7 +82,7 @@ <a name="l00107"></a>00107 <span class="preprocessor">#endif</span> <a name="l00108"></a>00108 <span class="preprocessor"></span> <a name="l00109"></a>00109 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index 81dcda960..fa0594791 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -31,14 +31,16 @@ Include dependency graph for connection.h:<p><center><img src="connection_8h__in <p> This graph shows which files directly or indirectly include this file:<p><center><img src="connection_8h__dep__incl.gif" border="0" usemap="#connection.hdep_map" alt=""></center> <map name="connection.hdep_map"> -<area href="users_8cpp-source.html" shape="rect" coords="426,58,506,84" alt=""> -<area href="users_8h-source.html" shape="rect" coords="155,184,219,211" alt=""> -<area href="channels_8cpp-source.html" shape="rect" coords="416,286,515,312" alt=""> -<area href="modules_8cpp-source.html" shape="rect" coords="416,210,515,236" alt=""> -<area href="commands_8h-source.html" shape="rect" coords="268,108,367,135" alt=""> -<area href="message_8h-source.html" shape="rect" coords="275,210,360,236" alt=""> -<area href="mode_8h-source.html" shape="rect" coords="284,260,351,287" alt=""> -<area href="xline_8h-source.html" shape="rect" coords="287,311,348,338" alt=""> +<area href="users_8cpp-source.html" shape="rect" coords="434,57,514,84" alt=""> +<area href="users_8h-source.html" shape="rect" coords="155,235,219,261" alt=""> +<area href="channels_8cpp-source.html" shape="rect" coords="424,387,523,413" alt=""> +<area href="modules_8cpp-source.html" shape="rect" coords="424,285,523,312" alt=""> +<area href="commands_8h-source.html" shape="rect" coords="272,108,371,135" alt=""> +<area href="message_8h-source.html" shape="rect" coords="279,361,364,388" alt=""> +<area href="mode_8h-source.html" shape="rect" coords="288,412,355,439" alt=""> +<area href="typedefs_8h-source.html" shape="rect" coords="279,159,364,185" alt=""> +<area href="userprocess_8h-source.html" shape="rect" coords="270,209,374,236" alt=""> +<area href="xline_8h-source.html" shape="rect" coords="291,311,352,337" alt=""> </map> <p> @@ -49,7 +51,7 @@ This graph shows which files directly or indirectly include this file:<p><center <tr><td class="mdescLeft"> </td><td class="mdescRight">Please note: classes serverrec and userrec both inherit from class connection. <a href="classconnection.html#_details">More...</a><br></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/connection_8h__dep__incl.gif b/docs/module-doc/connection_8h__dep__incl.gif Binary files differindex 6955c5eeb..c64a82a3c 100644 --- a/docs/module-doc/connection_8h__dep__incl.gif +++ b/docs/module-doc/connection_8h__dep__incl.gif diff --git a/docs/module-doc/connection_8h__dep__incl.map b/docs/module-doc/connection_8h__dep__incl.map index e2eda6b4d..c3efed18d 100644 --- a/docs/module-doc/connection_8h__dep__incl.map +++ b/docs/module-doc/connection_8h__dep__incl.map @@ -1,9 +1,11 @@ base referer -rect $users_8cpp-source.html 426,58 506,84 -rect $users_8h-source.html 155,184 219,211 -rect $channels_8cpp-source.html 416,286 515,312 -rect $modules_8cpp-source.html 416,210 515,236 -rect $commands_8h-source.html 268,108 367,135 -rect $message_8h-source.html 275,210 360,236 -rect $mode_8h-source.html 284,260 351,287 -rect $xline_8h-source.html 287,311 348,338 +rect $users_8cpp-source.html 434,57 514,84 +rect $users_8h-source.html 155,235 219,261 +rect $channels_8cpp-source.html 424,387 523,413 +rect $modules_8cpp-source.html 424,285 523,312 +rect $commands_8h-source.html 272,108 371,135 +rect $message_8h-source.html 279,361 364,388 +rect $mode_8h-source.html 288,412 355,439 +rect $typedefs_8h-source.html 279,159 364,185 +rect $userprocess_8h-source.html 270,209 374,236 +rect $xline_8h-source.html 291,311 352,337 diff --git a/docs/module-doc/connection_8h__dep__incl.md5 b/docs/module-doc/connection_8h__dep__incl.md5 index d38e2fed2..613f1d7f7 100644 --- a/docs/module-doc/connection_8h__dep__incl.md5 +++ b/docs/module-doc/connection_8h__dep__incl.md5 @@ -1 +1 @@ -e7f8b1061bdad90c2835adfcfbc5d84e
\ No newline at end of file +c5ffe3853fdba64837971f3d30d71f14
\ No newline at end of file diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index b657e40fe..c69bbe5ce 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -44,7 +44,7 @@ <a name="l00051"></a>00051 <a name="l00052"></a>00052 <span class="preprocessor">#endif</span> <a name="l00053"></a>00053 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index 87933639b..299e74444 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -20,9 +20,10 @@ Include dependency graph for ctables.h:<p><center><img src="ctables_8h__incl.gif <p> This graph shows which files directly or indirectly include this file:<p><center><img src="ctables_8h__dep__incl.gif" border="0" usemap="#ctables.hdep_map" alt=""></center> <map name="ctables.hdep_map"> -<area href="channels_8cpp-source.html" shape="rect" coords="267,32,365,59" alt=""> -<area href="modules_8cpp-source.html" shape="rect" coords="267,95,365,121" alt=""> +<area href="channels_8cpp-source.html" shape="rect" coords="267,7,365,33" alt=""> +<area href="modules_8cpp-source.html" shape="rect" coords="415,108,513,135" alt=""> <area href="modules_8h-source.html" shape="rect" coords="133,57,216,84" alt=""> +<area href="typedefs_8h-source.html" shape="rect" coords="273,108,359,135" alt=""> </map> <p> @@ -33,7 +34,7 @@ This graph shows which files directly or indirectly include this file:<p><center <tr><td class="mdescLeft"> </td><td class="mdescRight">A structure that defines a command. <a href="classcommand__t.html#_details">More...</a><br></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:22 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/ctables_8h__dep__incl.gif b/docs/module-doc/ctables_8h__dep__incl.gif Binary files differindex f94b83651..175dc53ee 100644 --- a/docs/module-doc/ctables_8h__dep__incl.gif +++ b/docs/module-doc/ctables_8h__dep__incl.gif diff --git a/docs/module-doc/ctables_8h__dep__incl.map b/docs/module-doc/ctables_8h__dep__incl.map index ed00ae9d1..2b918e669 100644 --- a/docs/module-doc/ctables_8h__dep__incl.map +++ b/docs/module-doc/ctables_8h__dep__incl.map @@ -1,4 +1,5 @@ base referer -rect $channels_8cpp-source.html 267,32 365,59 -rect $modules_8cpp-source.html 267,95 365,121 +rect $channels_8cpp-source.html 267,7 365,33 +rect $modules_8cpp-source.html 415,108 513,135 rect $modules_8h-source.html 133,57 216,84 +rect $typedefs_8h-source.html 273,108 359,135 diff --git a/docs/module-doc/ctables_8h__dep__incl.md5 b/docs/module-doc/ctables_8h__dep__incl.md5 index 7b340a242..5b3718c8e 100644 --- a/docs/module-doc/ctables_8h__dep__incl.md5 +++ b/docs/module-doc/ctables_8h__dep__incl.md5 @@ -1 +1 @@ -80b5bb648ec2e7f34f52355a033ea5d8
\ No newline at end of file +7aa3594f0112e287bece8166ab6a151c
\ No newline at end of file diff --git a/docs/module-doc/dir_000000.html b/docs/module-doc/dir_000000.html index 9b76522eb..ac517be3a 100644 --- a/docs/module-doc/dir_000000.html +++ b/docs/module-doc/dir_000000.html @@ -20,7 +20,7 @@ <tr><td class="memItemLeft" nowrap align="right" valign="top">directory </td><td class="memItemRight" valign="bottom"><a class="el" href="dir_000001.html">brain</a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/dir_000001.html b/docs/module-doc/dir_000001.html index 5c9758f6e..e0d09e519 100644 --- a/docs/module-doc/dir_000001.html +++ b/docs/module-doc/dir_000001.html @@ -21,7 +21,7 @@ <tr><td class="memItemLeft" nowrap align="right" valign="top">directory </td><td class="memItemRight" valign="bottom"><a class="el" href="dir_000002.html">inspircd-cvs</a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/dir_000002.html b/docs/module-doc/dir_000002.html index 40e2805ec..a3add89ff 100644 --- a/docs/module-doc/dir_000002.html +++ b/docs/module-doc/dir_000002.html @@ -21,7 +21,7 @@ <tr><td class="memItemLeft" nowrap align="right" valign="top">directory </td><td class="memItemRight" valign="bottom"><a class="el" href="dir_000003.html">inspircd</a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/dir_000003.html b/docs/module-doc/dir_000003.html index 98968c648..85a188e03 100644 --- a/docs/module-doc/dir_000003.html +++ b/docs/module-doc/dir_000003.html @@ -26,7 +26,7 @@ <tr><td class="memItemLeft" nowrap align="right" valign="top">directory </td><td class="memItemRight" valign="bottom"><a class="el" href="dir_000005.html">src</a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/dir_000003_dep.gif b/docs/module-doc/dir_000003_dep.gif Binary files differindex ee9742f9e..8f270fee0 100644 --- a/docs/module-doc/dir_000003_dep.gif +++ b/docs/module-doc/dir_000003_dep.gif diff --git a/docs/module-doc/dir_000004.html b/docs/module-doc/dir_000004.html index 4ef26a681..7e8fbc290 100644 --- a/docs/module-doc/dir_000004.html +++ b/docs/module-doc/dir_000004.html @@ -31,6 +31,8 @@ <tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="hashcomp_8h.html">hashcomp.h</a> <a href="hashcomp_8h-source.html">[code]</a></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html">inspircd_io.h</a> <a href="inspircd__io_8h-source.html">[code]</a></td></tr> + <tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="message_8h.html">message.h</a> <a href="message_8h-source.html">[code]</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="mode_8h.html">mode.h</a> <a href="mode_8h-source.html">[code]</a></td></tr> @@ -41,12 +43,16 @@ <tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="socketengine_8h.html">socketengine.h</a> <a href="socketengine_8h-source.html">[code]</a></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="typedefs_8h.html">typedefs.h</a> <a href="typedefs_8h-source.html">[code]</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="userprocess_8h.html">userprocess.h</a> <a href="userprocess_8h-source.html">[code]</a></td></tr> + <tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="users_8h.html">users.h</a> <a href="users_8h-source.html">[code]</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html">xline.h</a> <a href="xline_8h-source.html">[code]</a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/dir_000005.html b/docs/module-doc/dir_000005.html index 56cdf44c6..d1c9ad25f 100644 --- a/docs/module-doc/dir_000005.html +++ b/docs/module-doc/dir_000005.html @@ -31,7 +31,7 @@ <tr><td class="memItemLeft" nowrap align="right" valign="top">file </td><td class="memItemRight" valign="bottom"><a class="el" href="users_8cpp.html">users.cpp</a> <a href="users_8cpp-source.html">[code]</a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/dir_000005_000004.html b/docs/module-doc/dir_000005_000004.html index f9d56056d..f4aabd513 100644 --- a/docs/module-doc/dir_000005_000004.html +++ b/docs/module-doc/dir_000005_000004.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <div class="nav"> <a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000005.html">src</a></div> -<h3>src → include Relation</h3><table class="dirtab"><tr class="dirtab"><th class="dirtab">File in <a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000005.html">src</a></th><th class="dirtab">Includes file in <a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000004.html">include</a></th></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="ctables_8h.html">ctables.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="message_8h.html">message.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="mode_8h.html">mode.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="modules_8h.html">modules.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="users_8h.html">users.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="xline_8h.html">xline.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="commands_8h.html">commands.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="ctables_8h.html">ctables.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="hashcomp_8h.html">hashcomp.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="message_8h.html">message.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="mode_8h.html">mode.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="modules_8h.html">modules.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="socket_8h.html">socket.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="socketengine_8h.html">socketengine.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="users_8h.html">users.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="xline_8h.html">xline.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="socket_8cpp.html">socket.cpp</a></td><td class="dirtab"><a class="el" href="socket_8h.html">socket.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="socket_8cpp.html">socket.cpp</a></td><td class="dirtab"><a class="el" href="socketengine_8h.html">socketengine.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="socketengine_8cpp.html">socketengine.cpp</a></td><td class="dirtab"><a class="el" href="socketengine_8h.html">socketengine.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="users_8cpp.html">users.cpp</a></td><td class="dirtab"><a class="el" href="channels_8h.html">channels.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="users_8cpp.html">users.cpp</a></td><td class="dirtab"><a class="el" href="commands_8h.html">commands.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="users_8cpp.html">users.cpp</a></td><td class="dirtab"><a class="el" href="connection_8h.html">connection.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="users_8cpp.html">users.cpp</a></td><td class="dirtab"><a class="el" href="users_8h.html">users.h</a></td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<h3>src → include Relation</h3><table class="dirtab"><tr class="dirtab"><th class="dirtab">File in <a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000005.html">src</a></th><th class="dirtab">Includes file in <a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000004.html">include</a></th></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="ctables_8h.html">ctables.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="inspircd__io_8h.html">inspircd_io.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="message_8h.html">message.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="mode_8h.html">mode.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="modules_8h.html">modules.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="users_8h.html">users.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="channels_8cpp.html">channels.cpp</a></td><td class="dirtab"><a class="el" href="xline_8h.html">xline.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="commands_8h.html">commands.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="ctables_8h.html">ctables.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="hashcomp_8h.html">hashcomp.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="inspircd__io_8h.html">inspircd_io.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="message_8h.html">message.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="mode_8h.html">mode.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="modules_8h.html">modules.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="socket_8h.html">socket.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="socketengine_8h.html">socketengine.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="typedefs_8h.html">typedefs.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="users_8h.html">users.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="modules_8cpp.html">modules.cpp</a></td><td class="dirtab"><a class="el" href="xline_8h.html">xline.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="socket_8cpp.html">socket.cpp</a></td><td class="dirtab"><a class="el" href="inspircd__io_8h.html">inspircd_io.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="socket_8cpp.html">socket.cpp</a></td><td class="dirtab"><a class="el" href="socket_8h.html">socket.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="socket_8cpp.html">socket.cpp</a></td><td class="dirtab"><a class="el" href="socketengine_8h.html">socketengine.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="socketengine_8cpp.html">socketengine.cpp</a></td><td class="dirtab"><a class="el" href="socketengine_8h.html">socketengine.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="users_8cpp.html">users.cpp</a></td><td class="dirtab"><a class="el" href="channels_8h.html">channels.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="users_8cpp.html">users.cpp</a></td><td class="dirtab"><a class="el" href="commands_8h.html">commands.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="users_8cpp.html">users.cpp</a></td><td class="dirtab"><a class="el" href="connection_8h.html">connection.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="users_8cpp.html">users.cpp</a></td><td class="dirtab"><a class="el" href="users_8h.html">users.h</a></td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/dir_000005_dep.gif b/docs/module-doc/dir_000005_dep.gif Binary files differindex e6c88b20b..41c07d90f 100644 --- a/docs/module-doc/dir_000005_dep.gif +++ b/docs/module-doc/dir_000005_dep.gif diff --git a/docs/module-doc/dirs.html b/docs/module-doc/dirs.html index a5dd1aa54..8b6681f4b 100644 --- a/docs/module-doc/dirs.html +++ b/docs/module-doc/dirs.html @@ -21,7 +21,7 @@ </ul> </ul> </ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/dns_8h-source.html b/docs/module-doc/dns_8h-source.html index 81a851b2f..8419d55ac 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -75,7 +75,7 @@ <a name="l00098"></a>00098 }; <a name="l00099"></a>00099 <a name="l00100"></a>00100 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/dns_8h.html b/docs/module-doc/dns_8h.html index 20c5da73b..d7c8b4325 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -25,7 +25,7 @@ Include dependency graph for dns.h:<p><center><img src="dns_8h__incl.gif" border <tr><td class="mdescLeft"> </td><td class="mdescRight">The DNS class allows fast nonblocking resolution of hostnames and ip addresses. <a href="classDNS.html#_details">More...</a><br></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:22 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 3c6256c82..645b1618f 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -14,6 +14,7 @@ <tr><td class="indexkey"><a class="el" href="ctables_8h.html">ctables.h</a> <a href="ctables_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="dns_8h.html">dns.h</a> <a href="dns_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="hashcomp_8h.html">hashcomp.h</a> <a href="hashcomp_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> + <tr><td class="indexkey"><a class="el" href="inspircd__io_8h.html">inspircd_io.h</a> <a href="inspircd__io_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="message_8h.html">message.h</a> <a href="message_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="mode_8h.html">mode.h</a> <a href="mode_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="modules_8cpp.html">modules.cpp</a> <a href="modules_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr> @@ -22,11 +23,13 @@ <tr><td class="indexkey"><a class="el" href="socket_8h.html">socket.h</a> <a href="socket_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="socketengine_8cpp.html">socketengine.cpp</a> <a href="socketengine_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="socketengine_8h.html">socketengine.h</a> <a href="socketengine_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> + <tr><td class="indexkey"><a class="el" href="typedefs_8h.html">typedefs.h</a> <a href="typedefs_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> + <tr><td class="indexkey"><a class="el" href="userprocess_8h.html">userprocess.h</a> <a href="userprocess_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="users_8cpp.html">users.cpp</a> <a href="users_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="users_8h.html">users.h</a> <a href="users_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="xline_8h.html">xline.h</a> <a href="xline_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index a979e1956..b52346652 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -22,16 +22,21 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classServer.html#AddGLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Server</a><li>AddKLine() : <a class="el" href="classServer.html#AddKLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Server</a><li>AddQLine() : <a class="el" href="classServer.html#AddQLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickname_29">Server</a><li>addr -: <a class="el" href="classInspSocket.html#addr">InspSocket</a><li>AddSocket() +: <a class="el" href="classInspSocket.html#addr">InspSocket</a><li>addrs +: <a class="el" href="classServerConfig.html#addrs_5BMAXBUF_5D_5B_32_35_35_5D">ServerConfig</a><li>AddSocket() : <a class="el" href="classServer.html#AddSocket_28InspSocket_20_2Asock_29">Server</a><li>AddUser() : <a class="el" href="classchanrec.html#AddUser_28char_20_2Acastuser_29">chanrec</a><li>AddWriteBuf() : <a class="el" href="classuserrec.html#AddWriteBuf_28std_3A_3Astring_20data_29">userrec</a><li>addy : <a class="el" href="classInspSocket.html#addy">InspSocket</a><li>AddZLine() : <a class="el" href="classServer.html#AddZLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipaddr_29">Server</a><li>Admin() -: <a class="el" href="classAdmin.html#Admin_28std_3A_3Astring_20name_2C_20std_3A_3Astring_20email_2C_20std_3A_3Astring_20nick_29">Admin</a><li>age -: <a class="el" href="classclassbase.html#age">classbase</a><li>awaymsg +: <a class="el" href="classAdmin.html#Admin_28std_3A_3Astring_20name_2C_20std_3A_3Astring_20email_2C_20std_3A_3Astring_20nick_29">Admin</a><li>AdminEmail +: <a class="el" href="classServerConfig.html#AdminEmail_5BMAXBUF_5D">ServerConfig</a><li>AdminName +: <a class="el" href="classServerConfig.html#AdminName_5BMAXBUF_5D">ServerConfig</a><li>AdminNick +: <a class="el" href="classServerConfig.html#AdminNick_5BMAXBUF_5D">ServerConfig</a><li>age +: <a class="el" href="classclassbase.html#age">classbase</a><li>AllowHalfop +: <a class="el" href="classServerConfig.html#AllowHalfop">ServerConfig</a><li>awaymsg : <a class="el" href="classuserrec.html#awaymsg_5BMAXAWAY_2B_31_5D">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x62.html b/docs/module-doc/functions_0x62.html index 98fec13c3..f333302fb 100644 --- a/docs/module-doc/functions_0x62.html +++ b/docs/module-doc/functions_0x62.html @@ -22,7 +22,7 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classVersion.html#Build">Version</a><li>bytes_in : <a class="el" href="classconnection.html#bytes_5Fin">connection</a><li>bytes_out : <a class="el" href="classconnection.html#bytes_5Fout">connection</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x63.html b/docs/module-doc/functions_0x63.html index 3016de1e8..3fe20333f 100644 --- a/docs/module-doc/functions_0x63.html +++ b/docs/module-doc/functions_0x63.html @@ -22,9 +22,11 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classServer.html#ChanMode_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">Server</a><li>channel : <a class="el" href="classInvited.html#channel_5BCHANMAX_5D">Invited</a>, <a class="el" href="classucrec.html#channel">ucrec</a>, <a class="el" href="classModeParameter.html#channel_5BCHANMAX_5D">ModeParameter</a><li>chanrec() : <a class="el" href="classchanrec.html#chanrec_28_29">chanrec</a><li>chans -: <a class="el" href="classuserrec.html#chans_5BMAXCHANS_5D">userrec</a><li>classbase() -: <a class="el" href="classclassbase.html#classbase_28_29">classbase</a><li>ClearBuffer() -: <a class="el" href="classuserrec.html#ClearBuffer_28_29">userrec</a><li>client +: <a class="el" href="classuserrec.html#chans">userrec</a><li>classbase() +: <a class="el" href="classclassbase.html#classbase_28_29">classbase</a><li>Classes +: <a class="el" href="classServerConfig.html#Classes">ServerConfig</a><li>ClearBuffer() +: <a class="el" href="classuserrec.html#ClearBuffer_28_29">userrec</a><li>ClearStack() +: <a class="el" href="classServerConfig.html#ClearStack_28_29">ServerConfig</a><li>client : <a class="el" href="classInspSocket.html#client">InspSocket</a><li>Close() : <a class="el" href="classInspSocket.html#Close_28_29">InspSocket</a><li>CloseSocket() : <a class="el" href="classuserrec.html#CloseSocket_28_29">userrec</a><li>cmds_in @@ -32,15 +34,19 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classconnection.html#cmds_5Fout">connection</a><li>command : <a class="el" href="classcommand__t.html#command_5BMAXBUF_5D">command_t</a><li>CommonChannels() : <a class="el" href="classServer.html#CommonChannels_28userrec_20_2Au_31_2C_20userrec_20_2Au_32_29">Server</a><li>compare() -: <a class="el" href="structirc_1_1irc__char__traits.html#compare_28const_20char_20_2Astr_31_2C_20const_20char_20_2Astr_32_2C_20size_5Ft_20n_29">irc::irc_char_traits</a><li>ConfigReader() -: <a class="el" href="classConfigReader.html#ConfigReader_28std_3A_3Astring_20filename_29">ConfigReader</a><li>ConnectClass() +: <a class="el" href="structirc_1_1irc__char__traits.html#compare_28const_20char_20_2Astr_31_2C_20const_20char_20_2Astr_32_2C_20size_5Ft_20n_29">irc::irc_char_traits</a><li>config_f +: <a class="el" href="classServerConfig.html#config_5Ff">ServerConfig</a><li>ConfigReader() +: <a class="el" href="classConfigReader.html#ConfigReader_28std_3A_3Astring_20filename_29">ConfigReader</a><li>ConfProcess() +: <a class="el" href="classServerConfig.html#ConfProcess_28char_20_2Abuffer_2C_20long_20linenumber_2C_20std_3A_3Astringstream_20_2Aerrorstream_2C_20bool_20_26error_2C_20std_3A_3Astring_20filename_29">ServerConfig</a><li>ConfValue() +: <a class="el" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ServerConfig</a><li>ConfValueEnum() +: <a class="el" href="classServerConfig.html#ConfValueEnum_28char_20_2Atag_2C_20std_3A_3Astringstream_20_2Aconfig_29">ServerConfig</a><li>ConnectClass() : <a class="el" href="classConnectClass.html#ConnectClass_28_29">ConnectClass</a><li>connection() : <a class="el" href="classconnection.html#connection_28_29">connection</a><li>CountUsers() : <a class="el" href="classServer.html#CountUsers_28chanrec_20_2Ac_29">Server</a><li>created : <a class="el" href="classchanrec.html#created">chanrec</a><li>CreateModule() : <a class="el" href="classModuleFactory.html#CreateModule_28Server_20_2AMe_29_3D_30">ModuleFactory</a><li>custom_modes : <a class="el" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">chanrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x64.html b/docs/module-doc/functions_0x64.html index 64457b2f0..b486d1deb 100644 --- a/docs/module-doc/functions_0x64.html +++ b/docs/module-doc/functions_0x64.html @@ -13,7 +13,8 @@ Here is a list of all class members with links to the classes they belong to: <p> <h3><a class="anchor" name="index_d">- d -</a></h3><ul> <li>data -: <a class="el" href="classEvent.html#data">Event</a>, <a class="el" href="classRequest.html#data">Request</a>, <a class="el" href="classHostItem.html#data_5BMAXBUF_5D">HostItem</a><li>DelELine() +: <a class="el" href="classEvent.html#data">Event</a>, <a class="el" href="classRequest.html#data">Request</a>, <a class="el" href="classHostItem.html#data_5BMAXBUF_5D">HostItem</a><li>debugging +: <a class="el" href="classServerConfig.html#debugging">ServerConfig</a><li>DelELine() : <a class="el" href="classServer.html#DelELine_28std_3A_3Astring_20hostmask_29">Server</a><li>DelFd() : <a class="el" href="classSocketEngine.html#DelFd_28int_20fd_29">SocketEngine</a><li>DelGLine() : <a class="el" href="classServer.html#DelGLine_28std_3A_3Astring_20hostmask_29">Server</a><li>DelKLine() @@ -23,7 +24,11 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classchanrec.html#DelUser_28char_20_2Acastuser_29">chanrec</a><li>DelZLine() : <a class="el" href="classServer.html#DelZLine_28std_3A_3Astring_20ipaddr_29">Server</a><li>dest : <a class="el" href="classRequest.html#dest">Request</a><li>dhost -: <a class="el" href="classWhoWasUser.html#dhost_5B_31_36_30_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#dhost_5B_31_36_30_5D">userrec</a><li>DNS() +: <a class="el" href="classWhoWasUser.html#dhost_5B_31_36_30_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#dhost_5B_31_36_30_5D">userrec</a><li>DieDelay +: <a class="el" href="classServerConfig.html#DieDelay">ServerConfig</a><li>diepass +: <a class="el" href="classServerConfig.html#diepass_5BMAXBUF_5D">ServerConfig</a><li>DieValue +: <a class="el" href="classServerConfig.html#DieValue_5BMAXBUF_5D">ServerConfig</a><li>DisabledCommands +: <a class="el" href="classServerConfig.html#DisabledCommands_5BMAXBUF_5D">ServerConfig</a><li>DNS() : <a class="el" href="classDNS.html#DNS_28std_3A_3Astring_20dnsserver_29">DNS</a><li>dns_aton4() : <a class="el" href="classDNS.html#dns_5Faton_34_28const_20char_20_2Aconst_20ipstring_29">DNS</a><li>dns_aton4_r() : <a class="el" href="classDNS.html#dns_5Faton_34_5Fr_28const_20char_20_2Aconst_20ipstring_29">DNS</a><li>dns_aton4_s() @@ -39,10 +44,12 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classDNS.html#dns_5Finit_5F_32_28const_20char_20_2Adnsserver_29">DNS</a><li>dns_ntoa4() : <a class="el" href="classDNS.html#dns_5Fntoa_34_28const_20in_5Faddr_20_2Aconst_20ip_29">DNS</a><li>dns_ntoa4_r() : <a class="el" href="classDNS.html#dns_5Fntoa_34_5Fr_28const_20in_5Faddr_20_2Aconst_20ip_29">DNS</a><li>dns_ntoa4_s() -: <a class="el" href="classDNS.html#dns_5Fntoa_34_5Fs_28const_20in_5Faddr_20_2Aconst_20ip_2C_20char_20_2Aconst_20result_29">DNS</a><li>DumpErrors() +: <a class="el" href="classDNS.html#dns_5Fntoa_34_5Fs_28const_20in_5Faddr_20_2Aconst_20ip_2C_20char_20_2Aconst_20result_29">DNS</a><li>dns_timeout +: <a class="el" href="classServerConfig.html#dns_5Ftimeout">ServerConfig</a><li>DNSServer +: <a class="el" href="classServerConfig.html#DNSServer_5BMAXBUF_5D">ServerConfig</a><li>DumpErrors() : <a class="el" href="classConfigReader.html#DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29">ConfigReader</a><li>duration : <a class="el" href="classXLine.html#duration">XLine</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x65.html b/docs/module-doc/functions_0x65.html index ae170d403..2af57be17 100644 --- a/docs/module-doc/functions_0x65.html +++ b/docs/module-doc/functions_0x65.html @@ -14,9 +14,11 @@ Here is a list of all class members with links to the classes they belong to: <h3><a class="anchor" name="index_e">- e -</a></h3><ul> <li>Email : <a class="el" href="classAdmin.html#Email">Admin</a><li>EngineHandle -: <a class="el" href="classSocketEngine.html#EngineHandle">SocketEngine</a><li>Enumerate() +: <a class="el" href="classSocketEngine.html#EngineHandle">SocketEngine</a><li>EnumConf() +: <a class="el" href="classServerConfig.html#EnumConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_29">ServerConfig</a><li>Enumerate() : <a class="el" href="classConfigReader.html#Enumerate_28std_3A_3Astring_20tag_29">ConfigReader</a><li>EnumerateValues() -: <a class="el" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">ConfigReader</a><li>eq() +: <a class="el" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">ConfigReader</a><li>EnumValues() +: <a class="el" href="classServerConfig.html#EnumValues_28std_3A_3Astringstream_20_2Aconfig_2C_20const_20char_20_2Atag_2C_20int_20index_29">ServerConfig</a><li>eq() : <a class="el" href="structirc_1_1irc__char__traits.html#eq_28char_20c_31st_2C_20char_20c_32nd_29">irc::irc_char_traits</a><li>error : <a class="el" href="classConfigReader.html#error">ConfigReader</a><li>errorlog : <a class="el" href="classConfigReader.html#errorlog">ConfigReader</a><li>Event() @@ -25,7 +27,7 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classExtensible.html#Extend_28std_3A_3Astring_20key_2C_20char_20_2Ap_29">Extensible</a><li>Extension_Items : <a class="el" href="classExtensible.html#Extension_5FItems">Extensible</a><li>ExtMode() : <a class="el" href="classExtMode.html#ExtMode_28char_20mc_2C_20int_20ty_2C_20bool_20oper_2C_20int_20p_5Fon_2C_20int_20p_5Foff_29">ExtMode</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x66.html b/docs/module-doc/functions_0x66.html index 4054c8b2e..cbd3f80e6 100644 --- a/docs/module-doc/functions_0x66.html +++ b/docs/module-doc/functions_0x66.html @@ -15,7 +15,8 @@ Here is a list of all class members with links to the classes they belong to: <li>fc : <a class="el" href="classFileReader.html#fc">FileReader</a><li>fd : <a class="el" href="classInspSocket.html#fd">InspSocket</a>, <a class="el" href="classconnection.html#fd">connection</a><li>fds -: <a class="el" href="classSocketEngine.html#fds">SocketEngine</a><li>FileReader() +: <a class="el" href="classSocketEngine.html#fds">SocketEngine</a><li>fgets_safe() +: <a class="el" href="classServerConfig.html#fgets_5Fsafe_28char_20_2Abuffer_2C_20size_5Ft_20maxsize_2C_20FILE_20_2A_26file_29">ServerConfig</a><li>FileReader() : <a class="el" href="classFileReader.html#FileReader_28std_3A_3Astring_20filename_29">FileReader</a><li>FileSize() : <a class="el" href="classFileReader.html#FileSize_28_29">FileReader</a><li>find() : <a class="el" href="structirc_1_1irc__char__traits.html#find_28const_20char_20_2As_31_2C_20int_20n_2C_20char_20c_29">irc::irc_char_traits</a><li>FindChannel() @@ -29,7 +30,7 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classuserrec.html#FlushWriteBuf_28_29">userrec</a><li>ForwardLookup() : <a class="el" href="classDNS.html#ForwardLookup_28std_3A_3Astring_20host_29">DNS</a><li>fullname : <a class="el" href="classWhoWasUser.html#fullname_5BMAXGECOS_2B_31_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#fullname_5BMAXGECOS_2B_31_5D">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x67.html b/docs/module-doc/functions_0x67.html index c15f14af6..84208512d 100644 --- a/docs/module-doc/functions_0x67.html +++ b/docs/module-doc/functions_0x67.html @@ -43,7 +43,7 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classServer.html#GetUsers_28chanrec_20_2Achan_29">Server</a>, <a class="el" href="classchanrec.html#GetUsers_28_29">chanrec</a><li>GetVersion() : <a class="el" href="classModule.html#GetVersion_28_29">Module</a><li>GetWriteError() : <a class="el" href="classuserrec.html#GetWriteError_28_29">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x68.html b/docs/module-doc/functions_0x68.html index a114700c4..7a3f1f224 100644 --- a/docs/module-doc/functions_0x68.html +++ b/docs/module-doc/functions_0x68.html @@ -20,7 +20,7 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classWhoWasUser.html#host_5B_31_36_30_5D">WhoWasUser</a>, <a class="el" href="classConnectClass.html#host_5BMAXBUF_5D">ConnectClass</a>, <a class="el" href="classInspSocket.html#host">InspSocket</a>, <a class="el" href="classconnection.html#host_5B_31_36_30_5D">connection</a><li>HostItem() : <a class="el" href="classHostItem.html#HostItem_28_29">HostItem</a><li>hostmask : <a class="el" href="classELine.html#hostmask_5B_32_30_30_5D">ELine</a>, <a class="el" href="classGLine.html#hostmask_5B_32_30_30_5D">GLine</a>, <a class="el" href="classKLine.html#hostmask_5B_32_30_30_5D">KLine</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x69.html b/docs/module-doc/functions_0x69.html index 4eb320b23..d49e30262 100644 --- a/docs/module-doc/functions_0x69.html +++ b/docs/module-doc/functions_0x69.html @@ -16,14 +16,15 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classInspSocket.html#ibuf_5B_31_36_33_38_34_5D">InspSocket</a><li>id : <a class="el" href="classEvent.html#id">Event</a><li>ident : <a class="el" href="classWhoWasUser.html#ident_5BIDENTMAX_2B_31_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">userrec</a><li>idle_lastmsg -: <a class="el" href="classconnection.html#idle_5Flastmsg">connection</a><li>InspSocket() +: <a class="el" href="classconnection.html#idle_5Flastmsg">connection</a><li>include_stack +: <a class="el" href="classServerConfig.html#include_5Fstack">ServerConfig</a><li>InspSocket() : <a class="el" href="classInspSocket.html#InspSocket_28std_3A_3Astring_20host_2C_20int_20port_2C_20bool_20listening_2C_20unsigned_20long_20maxtime_29">InspSocket</a><li>internal_userlist : <a class="el" href="classchanrec.html#internal_5Fuserlist">chanrec</a><li>Invert() : <a class="el" href="classBoolSet.html#Invert_28int_20number_29">BoolSet</a><li>invites : <a class="el" href="classuserrec.html#invites">userrec</a><li>InviteTo() -: <a class="el" href="classuserrec.html#InviteTo_28char_20_2Achannel_29">userrec</a><li>IP -: <a class="el" href="classInspSocket.html#IP">InspSocket</a><li>ip -: <a class="el" href="structdns__ip4list.html#ip">dns_ip4list</a>, <a class="el" href="classconnection.html#ip_5B_31_36_5D">connection</a><li>ipaddr +: <a class="el" href="classuserrec.html#InviteTo_28char_20_2Achannel_29">userrec</a><li>ip +: <a class="el" href="structdns__ip4list.html#ip">dns_ip4list</a>, <a class="el" href="classconnection.html#ip_5B_31_36_5D">connection</a><li>IP +: <a class="el" href="classInspSocket.html#IP">InspSocket</a><li>ipaddr : <a class="el" href="classZLine.html#ipaddr_5B_34_30_5D">ZLine</a><li>is_global : <a class="el" href="classQLine.html#is_5Fglobal">QLine</a>, <a class="el" href="classZLine.html#is_5Fglobal">ZLine</a><li>IsCustomModeSet() : <a class="el" href="classchanrec.html#IsCustomModeSet_28char_20mode_29">chanrec</a><li>IsInvited() @@ -33,7 +34,7 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classServer.html#IsUlined_28std_3A_3Astring_20server_29">Server</a><li>IsValidMask() : <a class="el" href="classServer.html#IsValidMask_28std_3A_3Astring_20mask_29">Server</a><li>IsValidModuleCommand() : <a class="el" href="classServer.html#IsValidModuleCommand_28std_3A_3Astring_20commandname_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">Server</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x6a.html b/docs/module-doc/functions_0x6a.html index 180793afe..5830615d0 100644 --- a/docs/module-doc/functions_0x6a.html +++ b/docs/module-doc/functions_0x6a.html @@ -14,7 +14,7 @@ Here is a list of all class members with links to the classes they belong to: <h3><a class="anchor" name="index_j">- j -</a></h3><ul> <li>JoinUserToChannel() : <a class="el" href="classServer.html#JoinUserToChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20key_29">Server</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x6b.html b/docs/module-doc/functions_0x6b.html index 6c4b08018..171af41b5 100644 --- a/docs/module-doc/functions_0x6b.html +++ b/docs/module-doc/functions_0x6b.html @@ -15,7 +15,7 @@ Here is a list of all class members with links to the classes they belong to: <li>ke_list : <a class="el" href="classSocketEngine.html#ke_5Flist_5B_36_35_35_33_35_5D">SocketEngine</a><li>key : <a class="el" href="classchanrec.html#key_5B_33_32_5D">chanrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x6c.html b/docs/module-doc/functions_0x6c.html index 1693d2b47..8192b194d 100644 --- a/docs/module-doc/functions_0x6c.html +++ b/docs/module-doc/functions_0x6c.html @@ -17,12 +17,15 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classInspSocket.html#length">InspSocket</a><li>limit : <a class="el" href="classchanrec.html#limit">chanrec</a><li>lines_in : <a class="el" href="classuserrec.html#lines_5Fin">userrec</a><li>list -: <a class="el" href="classExtMode.html#list">ExtMode</a><li>LoadFile() +: <a class="el" href="classExtMode.html#list">ExtMode</a><li>LoadConf() +: <a class="el" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">ServerConfig</a><li>LoadFile() : <a class="el" href="classFileReader.html#LoadFile_28std_3A_3Astring_20filename_29">FileReader</a><li>localbuf : <a class="el" href="classDNS.html#localbuf_5B_31_30_32_34_5D">DNS</a><li>Log() -: <a class="el" href="classServer.html#Log_28int_20level_2C_20std_3A_3Astring_20s_29">Server</a><li>lt() +: <a class="el" href="classServer.html#Log_28int_20level_2C_20std_3A_3Astring_20s_29">Server</a><li>log_file +: <a class="el" href="classServerConfig.html#log_5Ffile">ServerConfig</a><li>LogLevel +: <a class="el" href="classServerConfig.html#LogLevel">ServerConfig</a><li>lt() : <a class="el" href="structirc_1_1irc__char__traits.html#lt_28char_20c_31st_2C_20char_20c_32nd_29">irc::irc_char_traits</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x6d.html b/docs/module-doc/functions_0x6d.html index 2085008d3..b6093d0d0 100644 --- a/docs/module-doc/functions_0x6d.html +++ b/docs/module-doc/functions_0x6d.html @@ -14,16 +14,23 @@ Here is a list of all class members with links to the classes they belong to: <h3><a class="anchor" name="index_m">- m -</a></h3><ul> <li>Major : <a class="el" href="classVersion.html#Major">Version</a><li>MatchText() -: <a class="el" href="classServer.html#MatchText_28std_3A_3Astring_20sliteral_2C_20std_3A_3Astring_20spattern_29">Server</a><li>min_params +: <a class="el" href="classServer.html#MatchText_28std_3A_3Astring_20sliteral_2C_20std_3A_3Astring_20spattern_29">Server</a><li>MaxConn +: <a class="el" href="classServerConfig.html#MaxConn">ServerConfig</a><li>MaxWhoResults +: <a class="el" href="classServerConfig.html#MaxWhoResults">ServerConfig</a><li>min_params : <a class="el" href="classcommand__t.html#min_5Fparams">command_t</a><li>Minor : <a class="el" href="classVersion.html#Minor">Version</a><li>mode : <a class="el" href="classModeParameter.html#mode">ModeParameter</a><li>modechar : <a class="el" href="classExtMode.html#modechar">ExtMode</a><li>modes -: <a class="el" href="classuserrec.html#modes_5B_35_34_5D">userrec</a><li>Module() -: <a class="el" href="classModule.html#Module_28Server_20_2AMe_29">Module</a><li>ModuleFactory() -: <a class="el" href="classModuleFactory.html#ModuleFactory_28_29">ModuleFactory</a><li>myfd +: <a class="el" href="classuserrec.html#modes_5B_35_34_5D">userrec</a><li>ModPath +: <a class="el" href="classServerConfig.html#ModPath_5B_31_30_32_34_5D">ServerConfig</a><li>Module() +: <a class="el" href="classModule.html#Module_28Server_20_2AMe_29">Module</a><li>module_names +: <a class="el" href="classServerConfig.html#module_5Fnames">ServerConfig</a><li>ModuleFactory() +: <a class="el" href="classModuleFactory.html#ModuleFactory_28_29">ModuleFactory</a><li>MOTD +: <a class="el" href="classServerConfig.html#MOTD">ServerConfig</a><li>motd +: <a class="el" href="classServerConfig.html#motd_5BMAXBUF_5D">ServerConfig</a><li>MyExecutable +: <a class="el" href="classServerConfig.html#MyExecutable_5B_31_30_32_34_5D">ServerConfig</a><li>myfd : <a class="el" href="classDNS.html#myfd">DNS</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x6e.html b/docs/module-doc/functions_0x6e.html index 81e70ea10..ca6207929 100644 --- a/docs/module-doc/functions_0x6e.html +++ b/docs/module-doc/functions_0x6e.html @@ -17,12 +17,15 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classchanrec.html#name_5BCHANMAX_5D">chanrec</a><li>Name : <a class="el" href="classAdmin.html#Name">Admin</a><li>ne() : <a class="el" href="structirc_1_1irc__char__traits.html#ne_28char_20c_31st_2C_20char_20c_32nd_29">irc::irc_char_traits</a><li>needsoper -: <a class="el" href="classExtMode.html#needsoper">ExtMode</a><li>next +: <a class="el" href="classExtMode.html#needsoper">ExtMode</a><li>NetBufferSize +: <a class="el" href="classServerConfig.html#NetBufferSize">ServerConfig</a><li>Network +: <a class="el" href="classServerConfig.html#Network_5BMAXBUF_5D">ServerConfig</a><li>next : <a class="el" href="structdns__ip4list.html#next">dns_ip4list</a><li>nick : <a class="el" href="classQLine.html#nick_5B_36_34_5D">QLine</a>, <a class="el" href="classWhoWasUser.html#nick_5BNICKMAX_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#nick_5BNICKMAX_5D">userrec</a><li>Nick -: <a class="el" href="classAdmin.html#Nick">Admin</a><li>nping +: <a class="el" href="classAdmin.html#Nick">Admin</a><li>nofork +: <a class="el" href="classServerConfig.html#nofork">ServerConfig</a><li>nping : <a class="el" href="classconnection.html#nping">connection</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x6f.html b/docs/module-doc/functions_0x6f.html index 96cf3b4c2..f51e50ade 100644 --- a/docs/module-doc/functions_0x6f.html +++ b/docs/module-doc/functions_0x6f.html @@ -101,7 +101,7 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classBoolSet.html#operator_3D_28BoolSet_20other_29">BoolSet</a><li>operator==() : <a class="el" href="classBoolSet.html#operator_3D_3D_28BoolSet_20other_29">BoolSet</a><li>operator|() : <a class="el" href="classBoolSet.html#operator_7C_28BoolSet_20other_29">BoolSet</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x70.html b/docs/module-doc/functions_0x70.html index a525f99ae..49e7020ad 100644 --- a/docs/module-doc/functions_0x70.html +++ b/docs/module-doc/functions_0x70.html @@ -18,15 +18,17 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classExtMode.html#params_5Fwhen_5Fon">ExtMode</a><li>PartUserFromChannel() : <a class="el" href="classServer.html#PartUserFromChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20reason_29">Server</a><li>pass : <a class="el" href="classConnectClass.html#pass_5BMAXBUF_5D">ConnectClass</a><li>password -: <a class="el" href="classuserrec.html#password_5BMAXBUF_5D">userrec</a><li>pingmax +: <a class="el" href="classuserrec.html#password_5BMAXBUF_5D">userrec</a><li>PID +: <a class="el" href="classServerConfig.html#PID_5B_31_30_32_34_5D">ServerConfig</a><li>pingmax : <a class="el" href="classuserrec.html#pingmax">userrec</a><li>pingtime : <a class="el" href="classConnectClass.html#pingtime">ConnectClass</a><li>Poll() : <a class="el" href="classInspSocket.html#Poll_28_29">InspSocket</a><li>port -: <a class="el" href="classInspSocket.html#port">InspSocket</a>, <a class="el" href="classconnection.html#port">connection</a><li>ProtoSendMetaData() +: <a class="el" href="classInspSocket.html#port">InspSocket</a>, <a class="el" href="classconnection.html#port">connection</a><li>PrefixQuit +: <a class="el" href="classServerConfig.html#PrefixQuit_5BMAXBUF_5D">ServerConfig</a><li>ProtoSendMetaData() : <a class="el" href="classModule.html#ProtoSendMetaData_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">Module</a><li>ProtoSendMode() : <a class="el" href="classModule.html#ProtoSendMode_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20modeline_29">Module</a><li>PseudoToUser() : <a class="el" href="classServer.html#PseudoToUser_28userrec_20_2Aalive_2C_20userrec_20_2Azombie_2C_20std_3A_3Astring_20message_29">Server</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x71.html b/docs/module-doc/functions_0x71.html index 0d0f0c958..47f71a836 100644 --- a/docs/module-doc/functions_0x71.html +++ b/docs/module-doc/functions_0x71.html @@ -14,7 +14,7 @@ Here is a list of all class members with links to the classes they belong to: <h3><a class="anchor" name="index_q">- q -</a></h3><ul> <li>QuitUser() : <a class="el" href="classServer.html#QuitUser_28userrec_20_2Auser_2C_20std_3A_3Astring_20reason_29">Server</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x72.html b/docs/module-doc/functions_0x72.html index 26c478856..5a5585f90 100644 --- a/docs/module-doc/functions_0x72.html +++ b/docs/module-doc/functions_0x72.html @@ -13,7 +13,8 @@ Here is a list of all class members with links to the classes they belong to: <p> <h3><a class="anchor" name="index_r">- r -</a></h3><ul> <li>Read() -: <a class="el" href="classInspSocket.html#Read_28_29">InspSocket</a><li>ReadData() +: <a class="el" href="classInspSocket.html#Read_28_29">InspSocket</a>, <a class="el" href="classServerConfig.html#Read_28bool_20bail_2C_20userrec_20_2Auser_29">ServerConfig</a><li>ReadConf() +: <a class="el" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ServerConfig</a><li>ReadData() : <a class="el" href="classuserrec.html#ReadData_28void_20_2Abuffer_2C_20size_5Ft_20size_29">userrec</a><li>readerror : <a class="el" href="classConfigReader.html#readerror">ConfigReader</a><li>ReadFlag() : <a class="el" href="classConfigReader.html#ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ConfigReader</a><li>ReadInteger() @@ -27,11 +28,14 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classServer.html#RehashServer_28_29">Server</a><li>RemoveInvite() : <a class="el" href="classuserrec.html#RemoveInvite_28char_20_2Achannel_29">userrec</a><li>Request() : <a class="el" href="classRequest.html#Request_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20Module_20_2Adst_29">Request</a><li>reset_due -: <a class="el" href="classuserrec.html#reset_5Fdue">userrec</a><li>result +: <a class="el" href="classuserrec.html#reset_5Fdue">userrec</a><li>restartpass +: <a class="el" href="classServerConfig.html#restartpass_5BMAXBUF_5D">ServerConfig</a><li>result : <a class="el" href="classDNS.html#result">DNS</a><li>ReverseLookup() : <a class="el" href="classDNS.html#ReverseLookup_28std_3A_3Astring_20ip_29">DNS</a><li>Revision -: <a class="el" href="classVersion.html#Revision">Version</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +: <a class="el" href="classVersion.html#Revision">Version</a><li>rules +: <a class="el" href="classServerConfig.html#rules_5BMAXBUF_5D">ServerConfig</a><li>RULES +: <a class="el" href="classServerConfig.html#RULES">ServerConfig</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x73.html b/docs/module-doc/functions_0x73.html index 90825f1ff..ff0059cad 100644 --- a/docs/module-doc/functions_0x73.html +++ b/docs/module-doc/functions_0x73.html @@ -27,7 +27,10 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classServer.html#SendToModeMask_28std_3A_3Astring_20modes_2C_20int_20flags_2C_20std_3A_3Astring_20text_29">Server</a><li>SendWallops() : <a class="el" href="classServer.html#SendWallops_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_29">Server</a><li>Server() : <a class="el" href="classServer.html#Server_28_29">Server</a><li>server -: <a class="el" href="classWhoWasUser.html#server_5B_32_35_36_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#server">userrec</a>, <a class="el" href="classInspSocket.html#server">InspSocket</a><li>Set() +: <a class="el" href="classWhoWasUser.html#server_5B_32_35_36_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#server">userrec</a>, <a class="el" href="classInspSocket.html#server">InspSocket</a><li>ServerConfig() +: <a class="el" href="classServerConfig.html#ServerConfig_28_29">ServerConfig</a><li>ServerDesc +: <a class="el" href="classServerConfig.html#ServerDesc_5BMAXBUF_5D">ServerConfig</a><li>ServerName +: <a class="el" href="classServerConfig.html#ServerName_5BMAXBUF_5D">ServerConfig</a><li>Set() : <a class="el" href="classBoolSet.html#Set_28int_20number_29">BoolSet</a><li>set_by : <a class="el" href="classHostItem.html#set_5Fby_5BNICKMAX_5D">HostItem</a><li>set_time : <a class="el" href="classXLine.html#set_5Ftime">XLine</a>, <a class="el" href="classHostItem.html#set_5Ftime">HostItem</a><li>setby @@ -39,10 +42,11 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">userrec</a><li>Shrink() : <a class="el" href="classExtensible.html#Shrink_28std_3A_3Astring_20key_29">Extensible</a><li>signon : <a class="el" href="classWhoWasUser.html#signon">WhoWasUser</a>, <a class="el" href="classconnection.html#signon">connection</a><li>SocketEngine() -: <a class="el" href="classSocketEngine.html#SocketEngine_28_29">SocketEngine</a><li>source +: <a class="el" href="classSocketEngine.html#SocketEngine_28_29">SocketEngine</a><li>SoftLimit +: <a class="el" href="classServerConfig.html#SoftLimit">ServerConfig</a><li>source : <a class="el" href="classXLine.html#source_5B_32_35_36_5D">XLine</a>, <a class="el" href="classEvent.html#source">Event</a>, <a class="el" href="classRequest.html#source">Request</a>, <a class="el" href="classcommand__t.html#source_5BMAXBUF_5D">command_t</a><li>state : <a class="el" href="classInspSocket.html#state">InspSocket</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x74.html b/docs/module-doc/functions_0x74.html index c876e6189..628fe57a4 100644 --- a/docs/module-doc/functions_0x74.html +++ b/docs/module-doc/functions_0x74.html @@ -14,16 +14,16 @@ Here is a list of all class members with links to the classes they belong to: <h3><a class="anchor" name="index_t">- t -</a></h3><ul> <li>t : <a class="el" href="classDNS.html#t">DNS</a><li>threshold -: <a class="el" href="classuserrec.html#threshold">userrec</a>, <a class="el" href="classConnectClass.html#threshold">ConnectClass</a><li>timeout -: <a class="el" href="classuserrec.html#timeout">userrec</a>, <a class="el" href="classInspSocket.html#timeout">InspSocket</a><li>Timeout() -: <a class="el" href="classInspSocket.html#Timeout_28time_5Ft_20current_29">InspSocket</a><li>timeout_end +: <a class="el" href="classuserrec.html#threshold">userrec</a>, <a class="el" href="classConnectClass.html#threshold">ConnectClass</a><li>Timeout() +: <a class="el" href="classInspSocket.html#Timeout_28time_5Ft_20current_29">InspSocket</a><li>timeout +: <a class="el" href="classuserrec.html#timeout">userrec</a>, <a class="el" href="classInspSocket.html#timeout">InspSocket</a><li>timeout_end : <a class="el" href="classInspSocket.html#timeout_5Fend">InspSocket</a><li>topic : <a class="el" href="classchanrec.html#topic_5BMAXBUF_5D">chanrec</a><li>topicset : <a class="el" href="classchanrec.html#topicset">chanrec</a><li>total_bytes : <a class="el" href="classcommand__t.html#total_5Fbytes">command_t</a><li>ts : <a class="el" href="classSocketEngine.html#ts">SocketEngine</a><li>type : <a class="el" href="classConnectClass.html#type">ConnectClass</a>, <a class="el" href="classExtMode.html#type">ExtMode</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x75.html b/docs/module-doc/functions_0x75.html index 1ac82c26e..c1c6931dd 100644 --- a/docs/module-doc/functions_0x75.html +++ b/docs/module-doc/functions_0x75.html @@ -14,12 +14,13 @@ Here is a list of all class members with links to the classes they belong to: <h3><a class="anchor" name="index_u">- u -</a></h3><ul> <li>uc_modes : <a class="el" href="classucrec.html#uc_5Fmodes">ucrec</a><li>ucrec() -: <a class="el" href="classucrec.html#ucrec_28_29">ucrec</a><li>Unset() +: <a class="el" href="classucrec.html#ucrec_28_29">ucrec</a><li>unlimitcore +: <a class="el" href="classServerConfig.html#unlimitcore">ServerConfig</a><li>Unset() : <a class="el" href="classBoolSet.html#Unset_28int_20number_29">BoolSet</a><li>use_count : <a class="el" href="classcommand__t.html#use_5Fcount">command_t</a><li>userrec() : <a class="el" href="classuserrec.html#userrec_28_29">userrec</a><li>UserToPseudo() : <a class="el" href="classServer.html#UserToPseudo_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">Server</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x76.html b/docs/module-doc/functions_0x76.html index 21c00f111..31fec288f 100644 --- a/docs/module-doc/functions_0x76.html +++ b/docs/module-doc/functions_0x76.html @@ -15,7 +15,7 @@ Here is a list of all class members with links to the classes they belong to: <li>Verify() : <a class="el" href="classConfigReader.html#Verify_28_29">ConfigReader</a><li>Version() : <a class="el" href="classVersion.html#Version_28int_20major_2C_20int_20minor_2C_20int_20revision_2C_20int_20build_2C_20int_20flags_29">Version</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x77.html b/docs/module-doc/functions_0x77.html index ef31577b6..6ca8111cf 100644 --- a/docs/module-doc/functions_0x77.html +++ b/docs/module-doc/functions_0x77.html @@ -16,7 +16,7 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classSocketEngine.html#Wait_28std_3A_3Avector_3C_20int_20_3E_20_26fdlist_29">SocketEngine</a><li>Write() : <a class="el" href="classInspSocket.html#Write_28std_3A_3Astring_20data_29">InspSocket</a><li>WriteError : <a class="el" href="classuserrec.html#WriteError">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_0x7e.html b/docs/module-doc/functions_0x7e.html index 90ae5d686..db3305a53 100644 --- a/docs/module-doc/functions_0x7e.html +++ b/docs/module-doc/functions_0x7e.html @@ -27,7 +27,7 @@ Here is a list of all class members with links to the classes they belong to: : <a class="el" href="classSocketEngine.html#_7ESocketEngine_28_29">SocketEngine</a><li>~ucrec() : <a class="el" href="classucrec.html#_7Eucrec_28_29">ucrec</a><li>~userrec() : <a class="el" href="classuserrec.html#_7Euserrec_28_29">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index 241298cec..ad0b484df 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -27,7 +27,7 @@ : <a class="el" href="classuserrec.html#AddWriteBuf_28std_3A_3Astring_20data_29">userrec</a><li>AddZLine() : <a class="el" href="classServer.html#AddZLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipaddr_29">Server</a><li>Admin() : <a class="el" href="classAdmin.html#Admin_28std_3A_3Astring_20name_2C_20std_3A_3Astring_20email_2C_20std_3A_3Astring_20nick_29">Admin</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x62.html b/docs/module-doc/functions_func_0x62.html index c9adac83a..c30d20d1c 100644 --- a/docs/module-doc/functions_func_0x62.html +++ b/docs/module-doc/functions_func_0x62.html @@ -15,7 +15,7 @@ <li>BoolSet() : <a class="el" href="classBoolSet.html#BoolSet_28char_20bitmask_29">BoolSet</a><li>BufferIsReady() : <a class="el" href="classuserrec.html#BufferIsReady_28_29">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x63.html b/docs/module-doc/functions_func_0x63.html index 69ef12564..640cc3cf5 100644 --- a/docs/module-doc/functions_func_0x63.html +++ b/docs/module-doc/functions_func_0x63.html @@ -21,17 +21,21 @@ : <a class="el" href="classServer.html#ChanMode_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">Server</a><li>chanrec() : <a class="el" href="classchanrec.html#chanrec_28_29">chanrec</a><li>classbase() : <a class="el" href="classclassbase.html#classbase_28_29">classbase</a><li>ClearBuffer() -: <a class="el" href="classuserrec.html#ClearBuffer_28_29">userrec</a><li>Close() +: <a class="el" href="classuserrec.html#ClearBuffer_28_29">userrec</a><li>ClearStack() +: <a class="el" href="classServerConfig.html#ClearStack_28_29">ServerConfig</a><li>Close() : <a class="el" href="classInspSocket.html#Close_28_29">InspSocket</a><li>CloseSocket() : <a class="el" href="classuserrec.html#CloseSocket_28_29">userrec</a><li>CommonChannels() : <a class="el" href="classServer.html#CommonChannels_28userrec_20_2Au_31_2C_20userrec_20_2Au_32_29">Server</a><li>compare() : <a class="el" href="structirc_1_1irc__char__traits.html#compare_28const_20char_20_2Astr_31_2C_20const_20char_20_2Astr_32_2C_20size_5Ft_20n_29">irc::irc_char_traits</a><li>ConfigReader() -: <a class="el" href="classConfigReader.html#ConfigReader_28std_3A_3Astring_20filename_29">ConfigReader</a><li>ConnectClass() +: <a class="el" href="classConfigReader.html#ConfigReader_28std_3A_3Astring_20filename_29">ConfigReader</a><li>ConfProcess() +: <a class="el" href="classServerConfig.html#ConfProcess_28char_20_2Abuffer_2C_20long_20linenumber_2C_20std_3A_3Astringstream_20_2Aerrorstream_2C_20bool_20_26error_2C_20std_3A_3Astring_20filename_29">ServerConfig</a><li>ConfValue() +: <a class="el" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ServerConfig</a><li>ConfValueEnum() +: <a class="el" href="classServerConfig.html#ConfValueEnum_28char_20_2Atag_2C_20std_3A_3Astringstream_20_2Aconfig_29">ServerConfig</a><li>ConnectClass() : <a class="el" href="classConnectClass.html#ConnectClass_28_29">ConnectClass</a><li>connection() : <a class="el" href="classconnection.html#connection_28_29">connection</a><li>CountUsers() : <a class="el" href="classServer.html#CountUsers_28chanrec_20_2Ac_29">Server</a><li>CreateModule() : <a class="el" href="classModuleFactory.html#CreateModule_28Server_20_2AMe_29_3D_30">ModuleFactory</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x64.html b/docs/module-doc/functions_func_0x64.html index c2613283a..2ab41542c 100644 --- a/docs/module-doc/functions_func_0x64.html +++ b/docs/module-doc/functions_func_0x64.html @@ -37,7 +37,7 @@ : <a class="el" href="classDNS.html#dns_5Fntoa_34_5Fr_28const_20in_5Faddr_20_2Aconst_20ip_29">DNS</a><li>dns_ntoa4_s() : <a class="el" href="classDNS.html#dns_5Fntoa_34_5Fs_28const_20in_5Faddr_20_2Aconst_20ip_2C_20char_20_2Aconst_20result_29">DNS</a><li>DumpErrors() : <a class="el" href="classConfigReader.html#DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29">ConfigReader</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x65.html b/docs/module-doc/functions_func_0x65.html index b528824d5..e23bdecfb 100644 --- a/docs/module-doc/functions_func_0x65.html +++ b/docs/module-doc/functions_func_0x65.html @@ -12,15 +12,17 @@ <p> <h3><a class="anchor" name="index_e">- e -</a></h3><ul> -<li>Enumerate() +<li>EnumConf() +: <a class="el" href="classServerConfig.html#EnumConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_29">ServerConfig</a><li>Enumerate() : <a class="el" href="classConfigReader.html#Enumerate_28std_3A_3Astring_20tag_29">ConfigReader</a><li>EnumerateValues() -: <a class="el" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">ConfigReader</a><li>eq() +: <a class="el" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">ConfigReader</a><li>EnumValues() +: <a class="el" href="classServerConfig.html#EnumValues_28std_3A_3Astringstream_20_2Aconfig_2C_20const_20char_20_2Atag_2C_20int_20index_29">ServerConfig</a><li>eq() : <a class="el" href="structirc_1_1irc__char__traits.html#eq_28char_20c_31st_2C_20char_20c_32nd_29">irc::irc_char_traits</a><li>Event() : <a class="el" href="classEvent.html#Event_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20std_3A_3Astring_20eventid_29">Event</a><li>Exists() : <a class="el" href="classFileReader.html#Exists_28_29">FileReader</a><li>Extend() : <a class="el" href="classExtensible.html#Extend_28std_3A_3Astring_20key_2C_20char_20_2Ap_29">Extensible</a><li>ExtMode() : <a class="el" href="classExtMode.html#ExtMode_28char_20mc_2C_20int_20ty_2C_20bool_20oper_2C_20int_20p_5Fon_2C_20int_20p_5Foff_29">ExtMode</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x66.html b/docs/module-doc/functions_func_0x66.html index b3ab50f95..0e2d42193 100644 --- a/docs/module-doc/functions_func_0x66.html +++ b/docs/module-doc/functions_func_0x66.html @@ -12,7 +12,8 @@ <p> <h3><a class="anchor" name="index_f">- f -</a></h3><ul> -<li>FileReader() +<li>fgets_safe() +: <a class="el" href="classServerConfig.html#fgets_5Fsafe_28char_20_2Abuffer_2C_20size_5Ft_20maxsize_2C_20FILE_20_2A_26file_29">ServerConfig</a><li>FileReader() : <a class="el" href="classFileReader.html#FileReader_28std_3A_3Astring_20filename_29">FileReader</a><li>FileSize() : <a class="el" href="classFileReader.html#FileSize_28_29">FileReader</a><li>find() : <a class="el" href="structirc_1_1irc__char__traits.html#find_28const_20char_20_2As_31_2C_20int_20n_2C_20char_20c_29">irc::irc_char_traits</a><li>FindChannel() @@ -22,7 +23,7 @@ : <a class="el" href="classServer.html#FindNick_28std_3A_3Astring_20nick_29">Server</a><li>FlushWriteBuf() : <a class="el" href="classuserrec.html#FlushWriteBuf_28_29">userrec</a><li>ForwardLookup() : <a class="el" href="classDNS.html#ForwardLookup_28std_3A_3Astring_20host_29">DNS</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x67.html b/docs/module-doc/functions_func_0x67.html index b86d92703..e1f310d6b 100644 --- a/docs/module-doc/functions_func_0x67.html +++ b/docs/module-doc/functions_func_0x67.html @@ -43,7 +43,7 @@ : <a class="el" href="classServer.html#GetUsers_28chanrec_20_2Achan_29">Server</a>, <a class="el" href="classchanrec.html#GetUsers_28_29">chanrec</a><li>GetVersion() : <a class="el" href="classModule.html#GetVersion_28_29">Module</a><li>GetWriteError() : <a class="el" href="classuserrec.html#GetWriteError_28_29">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x68.html b/docs/module-doc/functions_func_0x68.html index e54ac98e4..82953a94a 100644 --- a/docs/module-doc/functions_func_0x68.html +++ b/docs/module-doc/functions_func_0x68.html @@ -16,7 +16,7 @@ : <a class="el" href="classuserrec.html#HasPermission_28char_20_2Acommand_29">userrec</a><li>HasResult() : <a class="el" href="classDNS.html#HasResult_28int_20fd_29">DNS</a><li>HostItem() : <a class="el" href="classHostItem.html#HostItem_28_29">HostItem</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x69.html b/docs/module-doc/functions_func_0x69.html index 3cd18c72d..f7b844dc7 100644 --- a/docs/module-doc/functions_func_0x69.html +++ b/docs/module-doc/functions_func_0x69.html @@ -23,7 +23,7 @@ : <a class="el" href="classServer.html#IsUlined_28std_3A_3Astring_20server_29">Server</a><li>IsValidMask() : <a class="el" href="classServer.html#IsValidMask_28std_3A_3Astring_20mask_29">Server</a><li>IsValidModuleCommand() : <a class="el" href="classServer.html#IsValidModuleCommand_28std_3A_3Astring_20commandname_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">Server</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x6a.html b/docs/module-doc/functions_func_0x6a.html index e9391da95..2a881d52f 100644 --- a/docs/module-doc/functions_func_0x6a.html +++ b/docs/module-doc/functions_func_0x6a.html @@ -14,7 +14,7 @@ <h3><a class="anchor" name="index_j">- j -</a></h3><ul> <li>JoinUserToChannel() : <a class="el" href="classServer.html#JoinUserToChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20key_29">Server</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x6c.html b/docs/module-doc/functions_func_0x6c.html index a9f1d57a6..1e3cd2bf6 100644 --- a/docs/module-doc/functions_func_0x6c.html +++ b/docs/module-doc/functions_func_0x6c.html @@ -12,11 +12,12 @@ <p> <h3><a class="anchor" name="index_l">- l -</a></h3><ul> -<li>LoadFile() +<li>LoadConf() +: <a class="el" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">ServerConfig</a><li>LoadFile() : <a class="el" href="classFileReader.html#LoadFile_28std_3A_3Astring_20filename_29">FileReader</a><li>Log() : <a class="el" href="classServer.html#Log_28int_20level_2C_20std_3A_3Astring_20s_29">Server</a><li>lt() : <a class="el" href="structirc_1_1irc__char__traits.html#lt_28char_20c_31st_2C_20char_20c_32nd_29">irc::irc_char_traits</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x6d.html b/docs/module-doc/functions_func_0x6d.html index bcc47d127..35a36040a 100644 --- a/docs/module-doc/functions_func_0x6d.html +++ b/docs/module-doc/functions_func_0x6d.html @@ -16,7 +16,7 @@ : <a class="el" href="classServer.html#MatchText_28std_3A_3Astring_20sliteral_2C_20std_3A_3Astring_20spattern_29">Server</a><li>Module() : <a class="el" href="classModule.html#Module_28Server_20_2AMe_29">Module</a><li>ModuleFactory() : <a class="el" href="classModuleFactory.html#ModuleFactory_28_29">ModuleFactory</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x6e.html b/docs/module-doc/functions_func_0x6e.html index 60400f2aa..79765436c 100644 --- a/docs/module-doc/functions_func_0x6e.html +++ b/docs/module-doc/functions_func_0x6e.html @@ -14,7 +14,7 @@ <h3><a class="anchor" name="index_n">- n -</a></h3><ul> <li>ne() : <a class="el" href="structirc_1_1irc__char__traits.html#ne_28char_20c_31st_2C_20char_20c_32nd_29">irc::irc_char_traits</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x6f.html b/docs/module-doc/functions_func_0x6f.html index e62b423cc..55b1e196d 100644 --- a/docs/module-doc/functions_func_0x6f.html +++ b/docs/module-doc/functions_func_0x6f.html @@ -100,7 +100,7 @@ : <a class="el" href="classBoolSet.html#operator_3D_28BoolSet_20other_29">BoolSet</a><li>operator==() : <a class="el" href="classBoolSet.html#operator_3D_3D_28BoolSet_20other_29">BoolSet</a><li>operator|() : <a class="el" href="classBoolSet.html#operator_7C_28BoolSet_20other_29">BoolSet</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x70.html b/docs/module-doc/functions_func_0x70.html index 8cbc4acdd..e955bc3c0 100644 --- a/docs/module-doc/functions_func_0x70.html +++ b/docs/module-doc/functions_func_0x70.html @@ -18,7 +18,7 @@ : <a class="el" href="classModule.html#ProtoSendMetaData_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">Module</a><li>ProtoSendMode() : <a class="el" href="classModule.html#ProtoSendMode_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20modeline_29">Module</a><li>PseudoToUser() : <a class="el" href="classServer.html#PseudoToUser_28userrec_20_2Aalive_2C_20userrec_20_2Azombie_2C_20std_3A_3Astring_20message_29">Server</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x71.html b/docs/module-doc/functions_func_0x71.html index cc50c55b2..71a14778e 100644 --- a/docs/module-doc/functions_func_0x71.html +++ b/docs/module-doc/functions_func_0x71.html @@ -14,7 +14,7 @@ <h3><a class="anchor" name="index_q">- q -</a></h3><ul> <li>QuitUser() : <a class="el" href="classServer.html#QuitUser_28userrec_20_2Auser_2C_20std_3A_3Astring_20reason_29">Server</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x72.html b/docs/module-doc/functions_func_0x72.html index ad2ea97bc..ae30a71bb 100644 --- a/docs/module-doc/functions_func_0x72.html +++ b/docs/module-doc/functions_func_0x72.html @@ -13,7 +13,8 @@ <p> <h3><a class="anchor" name="index_r">- r -</a></h3><ul> <li>Read() -: <a class="el" href="classInspSocket.html#Read_28_29">InspSocket</a><li>ReadData() +: <a class="el" href="classInspSocket.html#Read_28_29">InspSocket</a>, <a class="el" href="classServerConfig.html#Read_28bool_20bail_2C_20userrec_20_2Auser_29">ServerConfig</a><li>ReadConf() +: <a class="el" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ServerConfig</a><li>ReadData() : <a class="el" href="classuserrec.html#ReadData_28void_20_2Abuffer_2C_20size_5Ft_20size_29">userrec</a><li>ReadFlag() : <a class="el" href="classConfigReader.html#ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ConfigReader</a><li>ReadInteger() : <a class="el" href="classConfigReader.html#ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29">ConfigReader</a><li>ReadValue() @@ -22,7 +23,7 @@ : <a class="el" href="classuserrec.html#RemoveInvite_28char_20_2Achannel_29">userrec</a><li>Request() : <a class="el" href="classRequest.html#Request_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20Module_20_2Adst_29">Request</a><li>ReverseLookup() : <a class="el" href="classDNS.html#ReverseLookup_28std_3A_3Astring_20ip_29">DNS</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x73.html b/docs/module-doc/functions_func_0x73.html index 49383e229..d8411a688 100644 --- a/docs/module-doc/functions_func_0x73.html +++ b/docs/module-doc/functions_func_0x73.html @@ -24,7 +24,8 @@ : <a class="el" href="classServer.html#SendTo_28userrec_20_2ASource_2C_20userrec_20_2ADest_2C_20std_3A_3Astring_20s_29">Server</a><li>SendToModeMask() : <a class="el" href="classServer.html#SendToModeMask_28std_3A_3Astring_20modes_2C_20int_20flags_2C_20std_3A_3Astring_20text_29">Server</a><li>SendWallops() : <a class="el" href="classServer.html#SendWallops_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_29">Server</a><li>Server() -: <a class="el" href="classServer.html#Server_28_29">Server</a><li>Set() +: <a class="el" href="classServer.html#Server_28_29">Server</a><li>ServerConfig() +: <a class="el" href="classServerConfig.html#ServerConfig_28_29">ServerConfig</a><li>Set() : <a class="el" href="classBoolSet.html#Set_28int_20number_29">BoolSet</a><li>SetCustomMode() : <a class="el" href="classchanrec.html#SetCustomMode_28char_20mode_2C_20bool_20mode_5Fon_29">chanrec</a><li>SetCustomModeParam() : <a class="el" href="classchanrec.html#SetCustomModeParam_28char_20mode_2C_20char_20_2Aparameter_2C_20bool_20mode_5Fon_29">chanrec</a><li>SetNS() @@ -33,7 +34,7 @@ : <a class="el" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">userrec</a><li>Shrink() : <a class="el" href="classExtensible.html#Shrink_28std_3A_3Astring_20key_29">Extensible</a><li>SocketEngine() : <a class="el" href="classSocketEngine.html#SocketEngine_28_29">SocketEngine</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x74.html b/docs/module-doc/functions_func_0x74.html index ba9318fb6..e6e95fd87 100644 --- a/docs/module-doc/functions_func_0x74.html +++ b/docs/module-doc/functions_func_0x74.html @@ -14,7 +14,7 @@ <h3><a class="anchor" name="index_t">- t -</a></h3><ul> <li>Timeout() : <a class="el" href="classInspSocket.html#Timeout_28time_5Ft_20current_29">InspSocket</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x75.html b/docs/module-doc/functions_func_0x75.html index 98febe922..e58b673d0 100644 --- a/docs/module-doc/functions_func_0x75.html +++ b/docs/module-doc/functions_func_0x75.html @@ -17,7 +17,7 @@ : <a class="el" href="classBoolSet.html#Unset_28int_20number_29">BoolSet</a><li>userrec() : <a class="el" href="classuserrec.html#userrec_28_29">userrec</a><li>UserToPseudo() : <a class="el" href="classServer.html#UserToPseudo_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">Server</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x76.html b/docs/module-doc/functions_func_0x76.html index 4fbdb9794..6c1009524 100644 --- a/docs/module-doc/functions_func_0x76.html +++ b/docs/module-doc/functions_func_0x76.html @@ -15,7 +15,7 @@ <li>Verify() : <a class="el" href="classConfigReader.html#Verify_28_29">ConfigReader</a><li>Version() : <a class="el" href="classVersion.html#Version_28int_20major_2C_20int_20minor_2C_20int_20revision_2C_20int_20build_2C_20int_20flags_29">Version</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x77.html b/docs/module-doc/functions_func_0x77.html index 2fa91d850..057b8a056 100644 --- a/docs/module-doc/functions_func_0x77.html +++ b/docs/module-doc/functions_func_0x77.html @@ -15,7 +15,7 @@ <li>Wait() : <a class="el" href="classSocketEngine.html#Wait_28std_3A_3Avector_3C_20int_20_3E_20_26fdlist_29">SocketEngine</a><li>Write() : <a class="el" href="classInspSocket.html#Write_28std_3A_3Astring_20data_29">InspSocket</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_func_0x7e.html b/docs/module-doc/functions_func_0x7e.html index dc5fe8245..a5df81d15 100644 --- a/docs/module-doc/functions_func_0x7e.html +++ b/docs/module-doc/functions_func_0x7e.html @@ -27,7 +27,7 @@ : <a class="el" href="classSocketEngine.html#_7ESocketEngine_28_29">SocketEngine</a><li>~ucrec() : <a class="el" href="classucrec.html#_7Eucrec_28_29">ucrec</a><li>~userrec() : <a class="el" href="classuserrec.html#_7Euserrec_28_29">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index e4f24c594..9fb59da5d 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -13,9 +13,14 @@ <p> <h3><a class="anchor" name="index_a">- a -</a></h3><ul> <li>addr -: <a class="el" href="classInspSocket.html#addr">InspSocket</a><li>addy -: <a class="el" href="classInspSocket.html#addy">InspSocket</a><li>age -: <a class="el" href="classclassbase.html#age">classbase</a><li>awaymsg +: <a class="el" href="classInspSocket.html#addr">InspSocket</a><li>addrs +: <a class="el" href="classServerConfig.html#addrs_5BMAXBUF_5D_5B_32_35_35_5D">ServerConfig</a><li>addy +: <a class="el" href="classInspSocket.html#addy">InspSocket</a><li>AdminEmail +: <a class="el" href="classServerConfig.html#AdminEmail_5BMAXBUF_5D">ServerConfig</a><li>AdminName +: <a class="el" href="classServerConfig.html#AdminName_5BMAXBUF_5D">ServerConfig</a><li>AdminNick +: <a class="el" href="classServerConfig.html#AdminNick_5BMAXBUF_5D">ServerConfig</a><li>age +: <a class="el" href="classclassbase.html#age">classbase</a><li>AllowHalfop +: <a class="el" href="classServerConfig.html#AllowHalfop">ServerConfig</a><li>awaymsg : <a class="el" href="classuserrec.html#awaymsg_5BMAXAWAY_2B_31_5D">userrec</a></ul> <h3><a class="anchor" name="index_b">- b -</a></h3><ul> <li>bans @@ -30,19 +35,28 @@ <li>cache : <a class="el" href="classConfigReader.html#cache">ConfigReader</a><li>channel : <a class="el" href="classInvited.html#channel_5BCHANMAX_5D">Invited</a>, <a class="el" href="classucrec.html#channel">ucrec</a>, <a class="el" href="classModeParameter.html#channel_5BCHANMAX_5D">ModeParameter</a><li>chans -: <a class="el" href="classuserrec.html#chans_5BMAXCHANS_5D">userrec</a><li>client +: <a class="el" href="classuserrec.html#chans">userrec</a><li>Classes +: <a class="el" href="classServerConfig.html#Classes">ServerConfig</a><li>client : <a class="el" href="classInspSocket.html#client">InspSocket</a><li>cmds_in : <a class="el" href="classconnection.html#cmds_5Fin">connection</a><li>cmds_out : <a class="el" href="classconnection.html#cmds_5Fout">connection</a><li>command -: <a class="el" href="classcommand__t.html#command_5BMAXBUF_5D">command_t</a><li>created +: <a class="el" href="classcommand__t.html#command_5BMAXBUF_5D">command_t</a><li>config_f +: <a class="el" href="classServerConfig.html#config_5Ff">ServerConfig</a><li>created : <a class="el" href="classchanrec.html#created">chanrec</a><li>custom_modes : <a class="el" href="classchanrec.html#custom_5Fmodes_5BMAXMODES_5D">chanrec</a></ul> <h3><a class="anchor" name="index_d">- d -</a></h3><ul> <li>data -: <a class="el" href="classEvent.html#data">Event</a>, <a class="el" href="classRequest.html#data">Request</a>, <a class="el" href="classHostItem.html#data_5BMAXBUF_5D">HostItem</a><li>dest +: <a class="el" href="classEvent.html#data">Event</a>, <a class="el" href="classRequest.html#data">Request</a>, <a class="el" href="classHostItem.html#data_5BMAXBUF_5D">HostItem</a><li>debugging +: <a class="el" href="classServerConfig.html#debugging">ServerConfig</a><li>dest : <a class="el" href="classRequest.html#dest">Request</a><li>dhost -: <a class="el" href="classWhoWasUser.html#dhost_5B_31_36_30_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#dhost_5B_31_36_30_5D">userrec</a><li>dns_done -: <a class="el" href="classuserrec.html#dns_5Fdone">userrec</a><li>duration +: <a class="el" href="classWhoWasUser.html#dhost_5B_31_36_30_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#dhost_5B_31_36_30_5D">userrec</a><li>DieDelay +: <a class="el" href="classServerConfig.html#DieDelay">ServerConfig</a><li>diepass +: <a class="el" href="classServerConfig.html#diepass_5BMAXBUF_5D">ServerConfig</a><li>DieValue +: <a class="el" href="classServerConfig.html#DieValue_5BMAXBUF_5D">ServerConfig</a><li>DisabledCommands +: <a class="el" href="classServerConfig.html#DisabledCommands_5BMAXBUF_5D">ServerConfig</a><li>dns_done +: <a class="el" href="classuserrec.html#dns_5Fdone">userrec</a><li>dns_timeout +: <a class="el" href="classServerConfig.html#dns_5Ftimeout">ServerConfig</a><li>DNSServer +: <a class="el" href="classServerConfig.html#DNSServer_5BMAXBUF_5D">ServerConfig</a><li>duration : <a class="el" href="classXLine.html#duration">XLine</a></ul> <h3><a class="anchor" name="index_e">- e -</a></h3><ul> <li>Email @@ -71,11 +85,12 @@ : <a class="el" href="classInspSocket.html#ibuf_5B_31_36_33_38_34_5D">InspSocket</a><li>id : <a class="el" href="classEvent.html#id">Event</a><li>ident : <a class="el" href="classWhoWasUser.html#ident_5BIDENTMAX_2B_31_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">userrec</a><li>idle_lastmsg -: <a class="el" href="classconnection.html#idle_5Flastmsg">connection</a><li>internal_userlist +: <a class="el" href="classconnection.html#idle_5Flastmsg">connection</a><li>include_stack +: <a class="el" href="classServerConfig.html#include_5Fstack">ServerConfig</a><li>internal_userlist : <a class="el" href="classchanrec.html#internal_5Fuserlist">chanrec</a><li>invites -: <a class="el" href="classuserrec.html#invites">userrec</a><li>IP -: <a class="el" href="classInspSocket.html#IP">InspSocket</a><li>ip -: <a class="el" href="structdns__ip4list.html#ip">dns_ip4list</a>, <a class="el" href="classconnection.html#ip_5B_31_36_5D">connection</a><li>ipaddr +: <a class="el" href="classuserrec.html#invites">userrec</a><li>ip +: <a class="el" href="structdns__ip4list.html#ip">dns_ip4list</a>, <a class="el" href="classconnection.html#ip_5B_31_36_5D">connection</a><li>IP +: <a class="el" href="classInspSocket.html#IP">InspSocket</a><li>ipaddr : <a class="el" href="classZLine.html#ipaddr_5B_34_30_5D">ZLine</a><li>is_global : <a class="el" href="classQLine.html#is_5Fglobal">QLine</a>, <a class="el" href="classZLine.html#is_5Fglobal">ZLine</a></ul> <h3><a class="anchor" name="index_k">- k -</a></h3><ul> @@ -89,25 +104,37 @@ : <a class="el" href="classchanrec.html#limit">chanrec</a><li>lines_in : <a class="el" href="classuserrec.html#lines_5Fin">userrec</a><li>list : <a class="el" href="classExtMode.html#list">ExtMode</a><li>localbuf -: <a class="el" href="classDNS.html#localbuf_5B_31_30_32_34_5D">DNS</a></ul> +: <a class="el" href="classDNS.html#localbuf_5B_31_30_32_34_5D">DNS</a><li>log_file +: <a class="el" href="classServerConfig.html#log_5Ffile">ServerConfig</a><li>LogLevel +: <a class="el" href="classServerConfig.html#LogLevel">ServerConfig</a></ul> <h3><a class="anchor" name="index_m">- m -</a></h3><ul> <li>Major -: <a class="el" href="classVersion.html#Major">Version</a><li>min_params +: <a class="el" href="classVersion.html#Major">Version</a><li>MaxConn +: <a class="el" href="classServerConfig.html#MaxConn">ServerConfig</a><li>MaxWhoResults +: <a class="el" href="classServerConfig.html#MaxWhoResults">ServerConfig</a><li>min_params : <a class="el" href="classcommand__t.html#min_5Fparams">command_t</a><li>Minor : <a class="el" href="classVersion.html#Minor">Version</a><li>mode : <a class="el" href="classModeParameter.html#mode">ModeParameter</a><li>modechar : <a class="el" href="classExtMode.html#modechar">ExtMode</a><li>modes -: <a class="el" href="classuserrec.html#modes_5B_35_34_5D">userrec</a><li>myfd +: <a class="el" href="classuserrec.html#modes_5B_35_34_5D">userrec</a><li>ModPath +: <a class="el" href="classServerConfig.html#ModPath_5B_31_30_32_34_5D">ServerConfig</a><li>module_names +: <a class="el" href="classServerConfig.html#module_5Fnames">ServerConfig</a><li>MOTD +: <a class="el" href="classServerConfig.html#MOTD">ServerConfig</a><li>motd +: <a class="el" href="classServerConfig.html#motd_5BMAXBUF_5D">ServerConfig</a><li>MyExecutable +: <a class="el" href="classServerConfig.html#MyExecutable_5B_31_30_32_34_5D">ServerConfig</a><li>myfd : <a class="el" href="classDNS.html#myfd">DNS</a></ul> <h3><a class="anchor" name="index_n">- n -</a></h3><ul> <li>n_matches : <a class="el" href="classXLine.html#n_5Fmatches">XLine</a><li>name : <a class="el" href="classchanrec.html#name_5BCHANMAX_5D">chanrec</a><li>Name : <a class="el" href="classAdmin.html#Name">Admin</a><li>needsoper -: <a class="el" href="classExtMode.html#needsoper">ExtMode</a><li>next +: <a class="el" href="classExtMode.html#needsoper">ExtMode</a><li>NetBufferSize +: <a class="el" href="classServerConfig.html#NetBufferSize">ServerConfig</a><li>Network +: <a class="el" href="classServerConfig.html#Network_5BMAXBUF_5D">ServerConfig</a><li>next : <a class="el" href="structdns__ip4list.html#next">dns_ip4list</a><li>nick : <a class="el" href="classQLine.html#nick_5B_36_34_5D">QLine</a>, <a class="el" href="classWhoWasUser.html#nick_5BNICKMAX_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#nick_5BNICKMAX_5D">userrec</a><li>Nick -: <a class="el" href="classAdmin.html#Nick">Admin</a><li>nping +: <a class="el" href="classAdmin.html#Nick">Admin</a><li>nofork +: <a class="el" href="classServerConfig.html#nofork">ServerConfig</a><li>nping : <a class="el" href="classconnection.html#nping">connection</a></ul> <h3><a class="anchor" name="index_o">- o -</a></h3><ul> <li>oper @@ -118,10 +145,12 @@ : <a class="el" href="classExtMode.html#params_5Fwhen_5Foff">ExtMode</a><li>params_when_on : <a class="el" href="classExtMode.html#params_5Fwhen_5Fon">ExtMode</a><li>pass : <a class="el" href="classConnectClass.html#pass_5BMAXBUF_5D">ConnectClass</a><li>password -: <a class="el" href="classuserrec.html#password_5BMAXBUF_5D">userrec</a><li>pingmax +: <a class="el" href="classuserrec.html#password_5BMAXBUF_5D">userrec</a><li>PID +: <a class="el" href="classServerConfig.html#PID_5B_31_30_32_34_5D">ServerConfig</a><li>pingmax : <a class="el" href="classuserrec.html#pingmax">userrec</a><li>pingtime : <a class="el" href="classConnectClass.html#pingtime">ConnectClass</a><li>port -: <a class="el" href="classInspSocket.html#port">InspSocket</a>, <a class="el" href="classconnection.html#port">connection</a></ul> +: <a class="el" href="classInspSocket.html#port">InspSocket</a>, <a class="el" href="classconnection.html#port">connection</a><li>PrefixQuit +: <a class="el" href="classServerConfig.html#PrefixQuit_5BMAXBUF_5D">ServerConfig</a></ul> <h3><a class="anchor" name="index_r">- r -</a></h3><ul> <li>readerror : <a class="el" href="classConfigReader.html#readerror">ConfigReader</a><li>reason @@ -130,18 +159,24 @@ : <a class="el" href="classuserrec.html#recvqmax">userrec</a>, <a class="el" href="classConnectClass.html#recvqmax">ConnectClass</a><li>registered : <a class="el" href="classconnection.html#registered">connection</a><li>registration_timeout : <a class="el" href="classConnectClass.html#registration_5Ftimeout">ConnectClass</a><li>reset_due -: <a class="el" href="classuserrec.html#reset_5Fdue">userrec</a><li>result +: <a class="el" href="classuserrec.html#reset_5Fdue">userrec</a><li>restartpass +: <a class="el" href="classServerConfig.html#restartpass_5BMAXBUF_5D">ServerConfig</a><li>result : <a class="el" href="classDNS.html#result">DNS</a><li>Revision -: <a class="el" href="classVersion.html#Revision">Version</a></ul> +: <a class="el" href="classVersion.html#Revision">Version</a><li>rules +: <a class="el" href="classServerConfig.html#rules_5BMAXBUF_5D">ServerConfig</a><li>RULES +: <a class="el" href="classServerConfig.html#RULES">ServerConfig</a></ul> <h3><a class="anchor" name="index_s">- s -</a></h3><ul> <li>sendq : <a class="el" href="classuserrec.html#sendq">userrec</a><li>sendqmax : <a class="el" href="classuserrec.html#sendqmax">userrec</a>, <a class="el" href="classConnectClass.html#sendqmax">ConnectClass</a><li>server -: <a class="el" href="classWhoWasUser.html#server_5B_32_35_36_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#server">userrec</a>, <a class="el" href="classInspSocket.html#server">InspSocket</a><li>set_by +: <a class="el" href="classWhoWasUser.html#server_5B_32_35_36_5D">WhoWasUser</a>, <a class="el" href="classuserrec.html#server">userrec</a>, <a class="el" href="classInspSocket.html#server">InspSocket</a><li>ServerDesc +: <a class="el" href="classServerConfig.html#ServerDesc_5BMAXBUF_5D">ServerConfig</a><li>ServerName +: <a class="el" href="classServerConfig.html#ServerName_5BMAXBUF_5D">ServerConfig</a><li>set_by : <a class="el" href="classHostItem.html#set_5Fby_5BNICKMAX_5D">HostItem</a><li>set_time : <a class="el" href="classXLine.html#set_5Ftime">XLine</a>, <a class="el" href="classHostItem.html#set_5Ftime">HostItem</a><li>setby : <a class="el" href="classchanrec.html#setby_5BNICKMAX_5D">chanrec</a><li>signon -: <a class="el" href="classWhoWasUser.html#signon">WhoWasUser</a>, <a class="el" href="classconnection.html#signon">connection</a><li>source +: <a class="el" href="classWhoWasUser.html#signon">WhoWasUser</a>, <a class="el" href="classconnection.html#signon">connection</a><li>SoftLimit +: <a class="el" href="classServerConfig.html#SoftLimit">ServerConfig</a><li>source : <a class="el" href="classXLine.html#source_5B_32_35_36_5D">XLine</a>, <a class="el" href="classEvent.html#source">Event</a>, <a class="el" href="classRequest.html#source">Request</a>, <a class="el" href="classcommand__t.html#source_5BMAXBUF_5D">command_t</a><li>state : <a class="el" href="classInspSocket.html#state">InspSocket</a></ul> <h3><a class="anchor" name="index_t">- t -</a></h3><ul> @@ -157,12 +192,13 @@ : <a class="el" href="classConnectClass.html#type">ConnectClass</a>, <a class="el" href="classExtMode.html#type">ExtMode</a></ul> <h3><a class="anchor" name="index_u">- u -</a></h3><ul> <li>uc_modes -: <a class="el" href="classucrec.html#uc_5Fmodes">ucrec</a><li>use_count +: <a class="el" href="classucrec.html#uc_5Fmodes">ucrec</a><li>unlimitcore +: <a class="el" href="classServerConfig.html#unlimitcore">ServerConfig</a><li>use_count : <a class="el" href="classcommand__t.html#use_5Fcount">command_t</a></ul> <h3><a class="anchor" name="index_w">- w -</a></h3><ul> <li>WriteError : <a class="el" href="classuserrec.html#WriteError">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 878fe151f..32ed3bd7b 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -31,13 +31,15 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="xline_8h.html#add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">xline.h</a><li>add_qline() : <a class="el" href="xline_8h.html#add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29">xline.h</a><li>add_zline() : <a class="el" href="xline_8h.html#add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29">xline.h</a><li>address_cache -: <a class="el" href="modules_8cpp.html#address_5Fcache">modules.cpp</a><li>AdminEmail -: <a class="el" href="modules_8cpp.html#AdminEmail_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#AdminEmail_5BMAXBUF_5D">channels.cpp</a><li>AdminName -: <a class="el" href="modules_8cpp.html#AdminName_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#AdminName_5BMAXBUF_5D">channels.cpp</a><li>AdminNick -: <a class="el" href="modules_8cpp.html#AdminNick_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#AdminNick_5BMAXBUF_5D">channels.cpp</a><li>allowed_umode() -: <a class="el" href="mode_8h.html#allowed_5Fumode_28char_20umode_2C_20char_20_2Asourcemodes_2C_20bool_20adding_29">mode.h</a><li>apply_lines() -: <a class="el" href="xline_8h.html#apply_5Flines_28_29">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +: <a class="el" href="typedefs_8h.html#address_5Fcache">typedefs.h</a><li>allowed_umode() +: <a class="el" href="mode_8h.html#allowed_5Fumode_28char_20umode_2C_20char_20_2Asourcemodes_2C_20bool_20adding_29">mode.h</a><li>APPLY_ALL +: <a class="el" href="xline_8h.html#APPLY_5FALL">xline.h</a><li>APPLY_GLINES +: <a class="el" href="xline_8h.html#APPLY_5FGLINES">xline.h</a><li>APPLY_KLINES +: <a class="el" href="xline_8h.html#APPLY_5FKLINES">xline.h</a><li>apply_lines() +: <a class="el" href="xline_8h.html#apply_5Flines_28const_20int_20What_29">xline.h</a><li>APPLY_QLINES +: <a class="el" href="xline_8h.html#APPLY_5FQLINES">xline.h</a><li>APPLY_ZLINES +: <a class="el" href="xline_8h.html#APPLY_5FZLINES">xline.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x62.html b/docs/module-doc/globals_0x62.html index 26e544fd9..426e8c622 100644 --- a/docs/module-doc/globals_0x62.html +++ b/docs/module-doc/globals_0x62.html @@ -13,10 +13,11 @@ Here is a list of all file members with links to the files they belong to: <p> <h3><a class="anchor" name="index_b">- b -</a></h3><ul> <li>BanList -: <a class="el" href="channels_8h.html#BanList">channels.h</a><li>Blocking() +: <a class="el" href="channels_8h.html#BanList">channels.h</a><li>BindSocket() +: <a class="el" href="inspircd__io_8h.html#BindSocket_28int_20sockfd_2C_20struct_20sockaddr_5Fin_20client_2C_20struct_20sockaddr_5Fin_20server_2C_20int_20port_2C_20char_20_2Aaddr_29">inspircd_io.h</a><li>Blocking() : <a class="el" href="message_8h.html#Blocking_28int_20s_29">message.h</a><li>boundPortCount : <a class="el" href="socket_8cpp.html#boundPortCount">socket.cpp</a>, <a class="el" href="modules_8cpp.html#boundPortCount">modules.cpp</a>, <a class="el" href="channels_8cpp.html#boundPortCount">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x63.html b/docs/module-doc/globals_0x63.html index a89c9cfc8..d7d0a80ff 100644 --- a/docs/module-doc/globals_0x63.html +++ b/docs/module-doc/globals_0x63.html @@ -16,11 +16,13 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="message_8h.html#c_5Fcount_28userrec_20_2Au_29">message.h</a><li>CC_ALLOW : <a class="el" href="users_8h.html#CC_5FALLOW">users.h</a><li>CC_DENY : <a class="el" href="users_8h.html#CC_5FDENY">users.h</a><li>chan_hash -: <a class="el" href="modules_8cpp.html#chan_5Fhash">modules.cpp</a><li>ChangeDisplayedHost() +: <a class="el" href="typedefs_8h.html#chan_5Fhash">typedefs.h</a><li>ChangeDisplayedHost() : <a class="el" href="message_8h.html#ChangeDisplayedHost_28userrec_20_2Auser_2C_20const_20char_20_2Ahost_29">message.h</a><li>ChangeName() : <a class="el" href="message_8h.html#ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29">message.h</a><li>chanlist : <a class="el" href="modules_8cpp.html#chanlist">modules.cpp</a><li>chanuserlist -: <a class="el" href="modules_8h.html#chanuserlist">modules.h</a><li>chlist() +: <a class="el" href="modules_8h.html#chanuserlist">modules.h</a><li>CheckDie() +: <a class="el" href="userprocess_8h.html#CheckDie_28_29">userprocess.h</a><li>CheckRoot() +: <a class="el" href="userprocess_8h.html#CheckRoot_28_29">userprocess.h</a><li>chlist() : <a class="el" href="message_8h.html#chlist_28userrec_20_2Auser_2C_20userrec_20_2Asource_29">message.h</a><li>chop() : <a class="el" href="message_8h.html#chop_28char_20_2Astr_29">message.h</a><li>ClassVector : <a class="el" href="users_8h.html#ClassVector">users.h</a><li>CleanAndResolve() @@ -34,17 +36,18 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="channels_8h.html#CM_5FTOPICLOCK">channels.h</a><li>cmdlist : <a class="el" href="modules_8cpp.html#cmdlist">modules.cpp</a><li>cmode() : <a class="el" href="message_8h.html#cmode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">message.h</a><li>command_table -: <a class="el" href="modules_8cpp.html#command_5Ftable">modules.cpp</a><li>common_channels() +: <a class="el" href="typedefs_8h.html#command_5Ftable">typedefs.h</a><li>common_channels() : <a class="el" href="message_8h.html#common_5Fchannels_28userrec_20_2Au_2C_20userrec_20_2Au_32_29">message.h</a><li>CONF_FILE_NOT_FOUND : <a class="el" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">modules.h</a><li>CONF_NOT_A_NUMBER : <a class="el" href="modules_8h.html#CONF_5FNOT_5FA_5FNUMBER">modules.h</a><li>CONF_NOT_UNSIGNED : <a class="el" href="modules_8h.html#CONF_5FNOT_5FUNSIGNED">modules.h</a><li>CONF_VALUE_NOT_FOUND -: <a class="el" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">modules.h</a><li>config_f -: <a class="el" href="users_8cpp.html#config_5Ff">users.cpp</a>, <a class="el" href="modules_8cpp.html#config_5Ff">modules.cpp</a>, <a class="el" href="channels_8cpp.html#config_5Ff">channels.cpp</a><li>createcommand() +: <a class="el" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">modules.h</a><li>Config +: <a class="el" href="users_8cpp.html#Config">users.cpp</a>, <a class="el" href="modules_8cpp.html#Config">modules.cpp</a>, <a class="el" href="channels_8cpp.html#Config">channels.cpp</a><li>config_f +: <a class="el" href="channels_8cpp.html#config_5Ff">channels.cpp</a><li>createcommand() : <a class="el" href="modules_8h.html#createcommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">modules.h</a><li>cstatus() : <a class="el" href="message_8h.html#cstatus_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">message.h</a><li>custom_mode_params : <a class="el" href="channels_8cpp.html#custom_5Fmode_5Fparams">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x64.html b/docs/module-doc/globals_0x64.html index f14ae2ce5..2920aa66c 100644 --- a/docs/module-doc/globals_0x64.html +++ b/docs/module-doc/globals_0x64.html @@ -12,22 +12,20 @@ Here is a list of all file members with links to the files they belong to: <p> <h3><a class="anchor" name="index_d">- d -</a></h3><ul> -<li>DEBUG -: <a class="el" href="modules_8h.html#DEBUG">modules.h</a><li>debugging -: <a class="el" href="modules_8cpp.html#debugging">modules.cpp</a>, <a class="el" href="channels_8cpp.html#debugging">channels.cpp</a><li>DEFAULT -: <a class="el" href="modules_8h.html#DEFAULT">modules.h</a><li>del_eline() +<li>DaemonSeed() +: <a class="el" href="inspircd__io_8h.html#DaemonSeed_28void_29">inspircd_io.h</a><li>DEBUG +: <a class="el" href="modules_8h.html#DEBUG">modules.h</a>, <a class="el" href="inspircd__io_8h.html#DEBUG">inspircd_io.h</a><li>DEFAULT +: <a class="el" href="modules_8h.html#DEFAULT">modules.h</a>, <a class="el" href="inspircd__io_8h.html#DEFAULT">inspircd_io.h</a><li>del_eline() : <a class="el" href="xline_8h.html#del_5Feline_28const_20char_20_2Ahostmask_29">xline.h</a><li>del_gline() : <a class="el" href="xline_8h.html#del_5Fgline_28const_20char_20_2Ahostmask_29">xline.h</a><li>del_kline() : <a class="el" href="xline_8h.html#del_5Fkline_28const_20char_20_2Ahostmask_29">xline.h</a><li>del_qline() : <a class="el" href="xline_8h.html#del_5Fqline_28const_20char_20_2Anickname_29">xline.h</a><li>del_zline() -: <a class="el" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">xline.h</a><li>DieDelay -: <a class="el" href="modules_8cpp.html#DieDelay">modules.cpp</a>, <a class="el" href="channels_8cpp.html#DieDelay">channels.cpp</a><li>diepass -: <a class="el" href="modules_8cpp.html#diepass_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#diepass_5BMAXBUF_5D">channels.cpp</a><li>DieValue -: <a class="el" href="modules_8cpp.html#DieValue_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#DieValue_5BMAXBUF_5D">channels.cpp</a><li>do_whois() +: <a class="el" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">xline.h</a><li>do_whois() : <a class="el" href="commands_8h.html#do_5Fwhois_28userrec_20_2Auser_2C_20userrec_20_2Adest_2C_20unsigned_20long_20signon_2C_20unsigned_20long_20idle_2C_20char_20_2Anick_29">commands.h</a><li>DoAddExtendedMode() -: <a class="el" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">modules.cpp</a><li>duration() +: <a class="el" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">modules.cpp</a><li>DoBackgroundUserStuff() +: <a class="el" href="userprocess_8h.html#DoBackgroundUserStuff_28time_5Ft_20TIME_29">userprocess.h</a><li>duration() : <a class="el" href="commands_8h.html#duration_28const_20char_20_2Astr_29">commands.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x65.html b/docs/module-doc/globals_0x65.html index 893387027..3a2cf9570 100644 --- a/docs/module-doc/globals_0x65.html +++ b/docs/module-doc/globals_0x65.html @@ -15,11 +15,12 @@ Here is a list of all file members with links to the files they belong to: <li>eline_set_creation_time() : <a class="el" href="xline_8h.html#eline_5Fset_5Fcreation_5Ftime_28char_20_2Ahost_2C_20time_5Ft_20create_5Ftime_29">xline.h</a><li>EMode : <a class="el" href="modules_8cpp.html#EMode">modules.cpp</a><li>ExemptList -: <a class="el" href="channels_8h.html#ExemptList">channels.h</a><li>expire_lines() +: <a class="el" href="channels_8h.html#ExemptList">channels.h</a><li>Exit() +: <a class="el" href="inspircd__io_8h.html#Exit_28int_29">inspircd_io.h</a><li>expire_lines() : <a class="el" href="xline_8h.html#expire_5Flines_28_29">xline.h</a><li>ExtModeList -: <a class="el" href="modules_8cpp.html#ExtModeList">modules.cpp</a><li>ExtModeListIter -: <a class="el" href="modules_8cpp.html#ExtModeListIter">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +: <a class="el" href="typedefs_8h.html#ExtModeList">typedefs.h</a><li>ExtModeListIter +: <a class="el" href="typedefs_8h.html#ExtModeListIter">typedefs.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x66.html b/docs/module-doc/globals_0x66.html index 715bba81a..cb4013876 100644 --- a/docs/module-doc/globals_0x66.html +++ b/docs/module-doc/globals_0x66.html @@ -16,10 +16,11 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="modules_8cpp.html#factory_28_32_35_35_29">modules.cpp</a>, <a class="el" href="channels_8cpp.html#factory">channels.cpp</a><li>FD_MAGIC_NUMBER : <a class="el" href="modules_8h.html#FD_5FMAGIC_5FNUMBER">modules.h</a><li>fd_ref_table : <a class="el" href="modules_8cpp.html#fd_5Fref_5Ftable_5B_36_35_35_33_36_5D">modules.cpp</a><li>file_cache -: <a class="el" href="modules_8h.html#file_5Fcache">modules.h</a><li>FOREACH_MOD +: <a class="el" href="modules_8h.html#file_5Fcache">modules.h</a><li>FileExists() +: <a class="el" href="inspircd__io_8h.html#FileExists_28const_20char_20_2Afile_29">inspircd_io.h</a><li>FOREACH_MOD : <a class="el" href="modules_8h.html#FOREACH_5FMOD">modules.h</a><li>FOREACH_RESULT : <a class="el" href="modules_8h.html#FOREACH_5FRESULT_28x_29">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x67.html b/docs/module-doc/globals_0x67.html index 56cad4d97..388bdfb1b 100644 --- a/docs/module-doc/globals_0x67.html +++ b/docs/module-doc/globals_0x67.html @@ -17,7 +17,7 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="mode_8h.html#give_5Fops_28userrec_20_2Auser_2C_20char_20_2Adest_2C_20chanrec_20_2Achan_2C_20int_20status_29">mode.h</a><li>give_voice() : <a class="el" href="mode_8h.html#give_5Fvoice_28userrec_20_2Auser_2C_20char_20_2Adest_2C_20chanrec_20_2Achan_2C_20int_20status_29">mode.h</a><li>gline_set_creation_time() : <a class="el" href="xline_8h.html#gline_5Fset_5Fcreation_5Ftime_28char_20_2Ahost_2C_20time_5Ft_20create_5Ftime_29">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x68.html b/docs/module-doc/globals_0x68.html index e33f32940..daa1712b6 100644 --- a/docs/module-doc/globals_0x68.html +++ b/docs/module-doc/globals_0x68.html @@ -67,7 +67,7 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="commands_8h.html#handle_5Fzline_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">commands.h</a><li>has_channel() : <a class="el" href="message_8h.html#has_5Fchannel_28userrec_20_2Au_2C_20chanrec_20_2Ac_29">message.h</a><li>hasumode() : <a class="el" href="message_8h.html#hasumode_28userrec_20_2Auser_2C_20char_20mode_29">message.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x69.html b/docs/module-doc/globals_0x69.html index 0b83a0dda..da6ab59dc 100644 --- a/docs/module-doc/globals_0x69.html +++ b/docs/module-doc/globals_0x69.html @@ -21,8 +21,7 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FSOCKET">socket.h</a><li>I_ERR_TIMEOUT : <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FTIMEOUT">socket.h</a><li>I_ERROR : <a class="el" href="socket_8h.html#InspSocketStateI_5FERROR">socket.h</a><li>I_LISTENING -: <a class="el" href="socket_8h.html#InspSocketStateI_5FLISTENING">socket.h</a><li>include_stack -: <a class="el" href="modules_8cpp.html#include_5Fstack">modules.cpp</a><li>InspSocketError +: <a class="el" href="socket_8h.html#InspSocketStateI_5FLISTENING">socket.h</a><li>InspSocketError : <a class="el" href="socket_8h.html#InspSocketError">socket.h</a><li>InspSocketState : <a class="el" href="socket_8h.html#InspSocketState">socket.h</a><li>InvitedList : <a class="el" href="users_8h.html#InvitedList">users.h</a><li>InviteList @@ -32,7 +31,7 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">commands.h</a><li>isident() : <a class="el" href="message_8h.html#isident_28const_20char_20_2An_29">message.h</a><li>isnick() : <a class="el" href="message_8h.html#isnick_28const_20char_20_2An_29">message.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x6c.html b/docs/module-doc/globals_0x6c.html index 1902cda06..0af135f9c 100644 --- a/docs/module-doc/globals_0x6c.html +++ b/docs/module-doc/globals_0x6c.html @@ -12,11 +12,9 @@ Here is a list of all file members with links to the files they belong to: <p> <h3><a class="anchor" name="index_l">- l -</a></h3><ul> -<li>list -: <a class="el" href="modules_8cpp.html#list_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#list_5BMAXBUF_5D">channels.cpp</a><li>log_file -: <a class="el" href="socket_8cpp.html#log_5Ffile">socket.cpp</a>, <a class="el" href="modules_8cpp.html#log_5Ffile">modules.cpp</a>, <a class="el" href="channels_8cpp.html#log_5Ffile">channels.cpp</a><li>LogLevel -: <a class="el" href="modules_8cpp.html#LogLevel">modules.cpp</a>, <a class="el" href="channels_8cpp.html#LogLevel">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<li>LoadAllModules() +: <a class="el" href="userprocess_8h.html#LoadAllModules_28_29">userprocess.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x6d.html b/docs/module-doc/globals_0x6d.html index e5e550282..55a3cc39f 100644 --- a/docs/module-doc/globals_0x6d.html +++ b/docs/module-doc/globals_0x6d.html @@ -17,9 +17,7 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="xline_8h.html#matches_5Fgline_28const_20char_20_2Ahost_29">xline.h</a><li>matches_kline() : <a class="el" href="xline_8h.html#matches_5Fkline_28const_20char_20_2Ahost_29">xline.h</a><li>matches_qline() : <a class="el" href="xline_8h.html#matches_5Fqline_28const_20char_20_2Anick_29">xline.h</a><li>matches_zline() -: <a class="el" href="xline_8h.html#matches_5Fzline_28const_20char_20_2Aipaddr_29">xline.h</a><li>MaxConn -: <a class="el" href="socket_8cpp.html#MaxConn">socket.cpp</a><li>MaxWhoResults -: <a class="el" href="modules_8cpp.html#MaxWhoResults">modules.cpp</a>, <a class="el" href="channels_8cpp.html#MaxWhoResults">channels.cpp</a><li>merge_mode() +: <a class="el" href="xline_8h.html#matches_5Fzline_28const_20char_20_2Aipaddr_29">xline.h</a><li>merge_mode() : <a class="el" href="mode_8h.html#merge_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_29">mode.h</a><li>merge_mode2() : <a class="el" href="mode_8h.html#merge_5Fmode_32_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">mode.h</a><li>MODCOUNT : <a class="el" href="modules_8cpp.html#MODCOUNT">modules.cpp</a>, <a class="el" href="channels_8cpp.html#MODCOUNT">channels.cpp</a><li>ModeDefined() @@ -29,15 +27,13 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="modules_8cpp.html#ModeDefinedOper_28char_20modechar_2C_20int_20type_29">modules.cpp</a><li>ModeIsListMode() : <a class="el" href="modules_8cpp.html#ModeIsListMode_28char_20modechar_2C_20int_20type_29">modules.cpp</a><li>ModeMakeList() : <a class="el" href="modules_8cpp.html#ModeMakeList_28char_20modechar_29">modules.cpp</a><li>module_names -: <a class="el" href="modules_8cpp.html#module_5Fnames">modules.cpp</a>, <a class="el" href="channels_8cpp.html#module_5Fnames">channels.cpp</a><li>module_sockets +: <a class="el" href="channels_8cpp.html#module_5Fnames">channels.cpp</a><li>module_sockets : <a class="el" href="modules_8cpp.html#module_5Fsockets">modules.cpp</a><li>modules -: <a class="el" href="modules_8cpp.html#modules_28_32_35_35_29">modules.cpp</a>, <a class="el" href="channels_8cpp.html#modules">channels.cpp</a><li>MOTD -: <a class="el" href="modules_8cpp.html#MOTD">modules.cpp</a><li>motd -: <a class="el" href="modules_8cpp.html#motd_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#motd_5BMAXBUF_5D">channels.cpp</a><li>MT_CHANNEL +: <a class="el" href="modules_8cpp.html#modules_28_32_35_35_29">modules.cpp</a>, <a class="el" href="channels_8cpp.html#modules">channels.cpp</a><li>MT_CHANNEL : <a class="el" href="modules_8h.html#MT_5FCHANNEL">modules.h</a><li>MT_CLIENT : <a class="el" href="modules_8h.html#MT_5FCLIENT">modules.h</a><li>MT_SERVER : <a class="el" href="modules_8h.html#MT_5FSERVER">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x6e.html b/docs/module-doc/globals_0x6e.html index a15d7a912..bda58d3d6 100644 --- a/docs/module-doc/globals_0x6e.html +++ b/docs/module-doc/globals_0x6e.html @@ -12,14 +12,11 @@ Here is a list of all file members with links to the files they belong to: <p> <h3><a class="anchor" name="index_n">- n -</a></h3><ul> -<li>nb_start -: <a class="el" href="modules_8cpp.html#nb_5Fstart">modules.cpp</a>, <a class="el" href="channels_8cpp.html#nb_5Fstart">channels.cpp</a><li>NetBufferSize -: <a class="el" href="modules_8cpp.html#NetBufferSize">modules.cpp</a>, <a class="el" href="channels_8cpp.html#NetBufferSize">channels.cpp</a><li>Network -: <a class="el" href="modules_8cpp.html#Network_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#Network_5BMAXBUF_5D">channels.cpp</a><li>NonBlocking() +<li>NonBlocking() : <a class="el" href="message_8h.html#NonBlocking_28int_20s_29">message.h</a><li>NONE -: <a class="el" href="modules_8h.html#NONE">modules.h</a><li>nspace +: <a class="el" href="modules_8h.html#NONE">modules.h</a>, <a class="el" href="inspircd__io_8h.html#NONE">inspircd_io.h</a><li>nspace : <a class="el" href="hashcomp_8h.html#nspace">hashcomp.h</a>, <a class="el" href="channels_8cpp.html#nspace">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x6f.html b/docs/module-doc/globals_0x6f.html index 3701656e8..82748c8bb 100644 --- a/docs/module-doc/globals_0x6f.html +++ b/docs/module-doc/globals_0x6f.html @@ -12,9 +12,11 @@ Here is a list of all file members with links to the files they belong to: <p> <h3><a class="anchor" name="index_o">- o -</a></h3><ul> -<li>openSockfd -: <a class="el" href="socket_8cpp.html#openSockfd_5BMAXSOCKS_5D">socket.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<li>OpenLog() +: <a class="el" href="userprocess_8h.html#OpenLog_28char_20_2A_2Aargv_2C_20int_20argc_29">userprocess.h</a><li>openSockfd +: <a class="el" href="socket_8cpp.html#openSockfd_5BMAXSOCKS_5D">socket.cpp</a><li>OpenTCPSocket() +: <a class="el" href="inspircd__io_8h.html#OpenTCPSocket_28void_29">inspircd_io.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x70.html b/docs/module-doc/globals_0x70.html index 6d913f2d7..3fe8470ee 100644 --- a/docs/module-doc/globals_0x70.html +++ b/docs/module-doc/globals_0x70.html @@ -13,12 +13,12 @@ Here is a list of all file members with links to the files they belong to: <p> <h3><a class="anchor" name="index_p">- p -</a></h3><ul> <li>portCount -: <a class="el" href="modules_8cpp.html#portCount">modules.cpp</a>, <a class="el" href="channels_8cpp.html#portCount">channels.cpp</a><li>ports -: <a class="el" href="modules_8cpp.html#ports_5BMAXSOCKS_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#ports_5BMAXSOCKS_5D">channels.cpp</a><li>PrefixQuit -: <a class="el" href="modules_8cpp.html#PrefixQuit_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#PrefixQuit_5BMAXBUF_5D">channels.cpp</a><li>process_modes() +: <a class="el" href="modules_8cpp.html#portCount">modules.cpp</a><li>ports +: <a class="el" href="modules_8cpp.html#ports_5BMAXSOCKS_5D">modules.cpp</a><li>process_modes() : <a class="el" href="mode_8h.html#process_5Fmodes_28char_20_2A_2Aparameters_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20int_20status_2C_20int_20pcnt_2C_20bool_20servermode_2C_20bool_20silent_2C_20bool_20local_29">mode.h</a><li>process_module_umode() -: <a class="el" href="mode_8h.html#process_5Fmodule_5Fumode_28char_20umode_2C_20userrec_20_2Asource_2C_20void_20_2Adest_2C_20bool_20adding_29">mode.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +: <a class="el" href="mode_8h.html#process_5Fmodule_5Fumode_28char_20umode_2C_20userrec_20_2Asource_2C_20void_20_2Adest_2C_20bool_20adding_29">mode.h</a><li>ProcessUser() +: <a class="el" href="userprocess_8h.html#ProcessUser_28userrec_20_2Acu_29">userprocess.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x71.html b/docs/module-doc/globals_0x71.html index 434bc765d..80788e913 100644 --- a/docs/module-doc/globals_0x71.html +++ b/docs/module-doc/globals_0x71.html @@ -15,7 +15,7 @@ Here is a list of all file members with links to the files they belong to: <li>qline_make_global() : <a class="el" href="xline_8h.html#qline_5Fmake_5Fglobal_28const_20char_20_2Anickname_29">xline.h</a><li>qline_set_creation_time() : <a class="el" href="xline_8h.html#qline_5Fset_5Fcreation_5Ftime_28char_20_2Anick_2C_20time_5Ft_20create_5Ftime_29">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x72.html b/docs/module-doc/globals_0x72.html index 86e4d731e..2b5acd8d5 100644 --- a/docs/module-doc/globals_0x72.html +++ b/docs/module-doc/globals_0x72.html @@ -14,11 +14,8 @@ Here is a list of all file members with links to the files they belong to: <h3><a class="anchor" name="index_r">- r -</a></h3><ul> <li>read_xline_defaults() : <a class="el" href="xline_8h.html#read_5Fxline_5Fdefaults_28_29">xline.h</a><li>ref -: <a class="el" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">socketengine.cpp</a><li>restartpass -: <a class="el" href="modules_8cpp.html#restartpass_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#restartpass_5BMAXBUF_5D">channels.cpp</a><li>RULES -: <a class="el" href="modules_8cpp.html#RULES">modules.cpp</a><li>rules -: <a class="el" href="modules_8cpp.html#rules_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#rules_5BMAXBUF_5D">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +: <a class="el" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">socketengine.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x73.html b/docs/module-doc/globals_0x73.html index 041882958..701b40539 100644 --- a/docs/module-doc/globals_0x73.html +++ b/docs/module-doc/globals_0x73.html @@ -15,10 +15,11 @@ Here is a list of all file members with links to the files they belong to: <li>SE : <a class="el" href="socket_8cpp.html#SE">socket.cpp</a>, <a class="el" href="modules_8cpp.html#SE">modules.cpp</a><li>send_network_quit() : <a class="el" href="message_8h.html#send_5Fnetwork_5Fquit_28const_20char_20_2Anick_2C_20const_20char_20_2Areason_29">message.h</a><li>server_mode() -: <a class="el" href="modules_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">modules.h</a>, <a class="el" href="mode_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">mode.h</a><li>ServerDesc -: <a class="el" href="modules_8cpp.html#ServerDesc_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#ServerDesc_5BMAXBUF_5D">channels.cpp</a><li>ServerName -: <a class="el" href="users_8cpp.html#ServerName_5BMAXBUF_5D">users.cpp</a>, <a class="el" href="modules_8cpp.html#ServerName_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#ServerName_5BMAXBUF_5D">channels.cpp</a><li>SPARSE -: <a class="el" href="modules_8h.html#SPARSE">modules.h</a><li>startup_time +: <a class="el" href="modules_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">modules.h</a>, <a class="el" href="mode_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">mode.h</a><li>servernamelist +: <a class="el" href="typedefs_8h.html#servernamelist">typedefs.h</a><li>socket_ref +: <a class="el" href="socket_8cpp.html#socket_5Fref_5B_36_35_35_33_35_5D">socket.cpp</a><li>SPARSE +: <a class="el" href="modules_8h.html#SPARSE">modules.h</a>, <a class="el" href="inspircd__io_8h.html#SPARSE">inspircd_io.h</a><li>Start() +: <a class="el" href="inspircd__io_8h.html#Start_28void_29">inspircd_io.h</a><li>startup_time : <a class="el" href="modules_8cpp.html#startup_5Ftime">modules.cpp</a>, <a class="el" href="channels_8cpp.html#startup_5Ftime">channels.cpp</a><li>stats_e() : <a class="el" href="xline_8h.html#stats_5Fe_28userrec_20_2Auser_29">xline.h</a><li>stats_g() : <a class="el" href="xline_8h.html#stats_5Fg_28userrec_20_2Auser_29">xline.h</a><li>stats_k() @@ -31,7 +32,7 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="users_8h.html#STATUS_5FVOICE">users.h</a><li>string : <a class="el" href="namespaceirc.html#string">hashcomp.h</a><li>string_list : <a class="el" href="modules_8h.html#string_5Flist">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x74.html b/docs/module-doc/globals_0x74.html index d3f574ece..c5928f80e 100644 --- a/docs/module-doc/globals_0x74.html +++ b/docs/module-doc/globals_0x74.html @@ -20,7 +20,7 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="message_8h.html#TidyBan_28char_20_2Aban_29">message.h</a><li>tidystring() : <a class="el" href="message_8h.html#tidystring_28char_20_2Astr_29">message.h</a><li>TIME : <a class="el" href="users_8cpp.html#TIME">users.cpp</a>, <a class="el" href="socket_8cpp.html#TIME">socket.cpp</a>, <a class="el" href="modules_8cpp.html#TIME">modules.cpp</a>, <a class="el" href="channels_8cpp.html#TIME">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x75.html b/docs/module-doc/globals_0x75.html index 50533a42a..bd8905e78 100644 --- a/docs/module-doc/globals_0x75.html +++ b/docs/module-doc/globals_0x75.html @@ -17,10 +17,9 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="channels_8h.html#UCMODE_5FHOP">channels.h</a><li>UCMODE_OP : <a class="el" href="channels_8h.html#UCMODE_5FOP">channels.h</a><li>UCMODE_PROTECT : <a class="el" href="channels_8h.html#UCMODE_5FPROTECT">channels.h</a><li>UCMODE_VOICE -: <a class="el" href="channels_8h.html#UCMODE_5FVOICE">channels.h</a><li>unlimitcore -: <a class="el" href="socket_8cpp.html#unlimitcore">socket.cpp</a><li>user_hash -: <a class="el" href="modules_8cpp.html#user_5Fhash">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +: <a class="el" href="channels_8h.html#UCMODE_5FVOICE">channels.h</a><li>user_hash +: <a class="el" href="typedefs_8h.html#user_5Fhash">typedefs.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x76.html b/docs/module-doc/globals_0x76.html index a19d21959..61ed3360c 100644 --- a/docs/module-doc/globals_0x76.html +++ b/docs/module-doc/globals_0x76.html @@ -13,13 +13,13 @@ Here is a list of all file members with links to the files they belong to: <p> <h3><a class="anchor" name="index_v">- v -</a></h3><ul> <li>VERBOSE -: <a class="el" href="modules_8h.html#VERBOSE">modules.h</a><li>VF_COMMON +: <a class="el" href="modules_8h.html#VERBOSE">modules.h</a>, <a class="el" href="inspircd__io_8h.html#VERBOSE">inspircd_io.h</a><li>VF_COMMON : <a class="el" href="modules_8h.html#VF_5FCOMMON">modules.h</a><li>VF_SERVICEPROVIDER : <a class="el" href="modules_8h.html#VF_5FSERVICEPROVIDER">modules.h</a><li>VF_STATIC : <a class="el" href="modules_8h.html#VF_5FSTATIC">modules.h</a><li>VF_VENDOR : <a class="el" href="modules_8h.html#VF_5FVENDOR">modules.h</a><li>VoidPointer : <a class="el" href="base_8h.html#VoidPointer">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x77.html b/docs/module-doc/globals_0x77.html index 3eeec7149..5b03af87a 100644 --- a/docs/module-doc/globals_0x77.html +++ b/docs/module-doc/globals_0x77.html @@ -14,10 +14,11 @@ Here is a list of all file members with links to the files they belong to: <h3><a class="anchor" name="index_w">- w -</a></h3><ul> <li>whowas : <a class="el" href="modules_8cpp.html#whowas">modules.cpp</a><li>whowas_hash -: <a class="el" href="modules_8cpp.html#whowas_5Fhash">modules.cpp</a><li>WHOWAS_MAX +: <a class="el" href="typedefs_8h.html#whowas_5Fhash">typedefs.h</a><li>WHOWAS_MAX : <a class="el" href="modules_8cpp.html#WHOWAS_5FMAX">modules.cpp</a>, <a class="el" href="channels_8cpp.html#WHOWAS_5FMAX">channels.cpp</a><li>WHOWAS_STALE -: <a class="el" href="modules_8cpp.html#WHOWAS_5FSTALE">modules.cpp</a>, <a class="el" href="channels_8cpp.html#WHOWAS_5FSTALE">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +: <a class="el" href="modules_8cpp.html#WHOWAS_5FSTALE">modules.cpp</a>, <a class="el" href="channels_8cpp.html#WHOWAS_5FSTALE">channels.cpp</a><li>WritePID() +: <a class="el" href="inspircd__io_8h.html#WritePID_28std_3A_3Astring_20filename_29">inspircd_io.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x78.html b/docs/module-doc/globals_0x78.html index 05dcb161d..b9d5f36c7 100644 --- a/docs/module-doc/globals_0x78.html +++ b/docs/module-doc/globals_0x78.html @@ -19,7 +19,7 @@ Here is a list of all file members with links to the files they belong to: : <a class="el" href="socketengine_8h.html#X_5FESTAB_5FMODULE">socketengine.h</a><li>X_LISTEN : <a class="el" href="socketengine_8h.html#X_5FLISTEN">socketengine.h</a><li>X_READBIT : <a class="el" href="socketengine_8h.html#X_5FREADBIT">socketengine.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_0x7a.html b/docs/module-doc/globals_0x7a.html index cd6f378ed..d1c40cf44 100644 --- a/docs/module-doc/globals_0x7a.html +++ b/docs/module-doc/globals_0x7a.html @@ -15,7 +15,7 @@ Here is a list of all file members with links to the files they belong to: <li>zline_make_global() : <a class="el" href="xline_8h.html#zline_5Fmake_5Fglobal_28const_20char_20_2Aipaddr_29">xline.h</a><li>zline_set_creation_time() : <a class="el" href="xline_8h.html#zline_5Fset_5Fcreation_5Ftime_28char_20_2Aip_2C_20time_5Ft_20create_5Ftime_29">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index 93ede95b3..faa848260 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -41,8 +41,8 @@ : <a class="el" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">modules.h</a></ul> <h3><a class="anchor" name="index_d">- d -</a></h3><ul> <li>DEBUG -: <a class="el" href="modules_8h.html#DEBUG">modules.h</a><li>DEFAULT -: <a class="el" href="modules_8h.html#DEFAULT">modules.h</a></ul> +: <a class="el" href="modules_8h.html#DEBUG">modules.h</a>, <a class="el" href="inspircd__io_8h.html#DEBUG">inspircd_io.h</a><li>DEFAULT +: <a class="el" href="modules_8h.html#DEFAULT">modules.h</a>, <a class="el" href="inspircd__io_8h.html#DEFAULT">inspircd_io.h</a></ul> <h3><a class="anchor" name="index_f">- f -</a></h3><ul> <li>FD_MAGIC_NUMBER : <a class="el" href="modules_8h.html#FD_5FMAGIC_5FNUMBER">modules.h</a><li>FOREACH_MOD @@ -55,11 +55,11 @@ : <a class="el" href="modules_8h.html#MT_5FSERVER">modules.h</a></ul> <h3><a class="anchor" name="index_n">- n -</a></h3><ul> <li>NONE -: <a class="el" href="modules_8h.html#NONE">modules.h</a><li>nspace +: <a class="el" href="modules_8h.html#NONE">modules.h</a>, <a class="el" href="inspircd__io_8h.html#NONE">inspircd_io.h</a><li>nspace : <a class="el" href="hashcomp_8h.html#nspace">hashcomp.h</a>, <a class="el" href="channels_8cpp.html#nspace">channels.cpp</a></ul> <h3><a class="anchor" name="index_s">- s -</a></h3><ul> <li>SPARSE -: <a class="el" href="modules_8h.html#SPARSE">modules.h</a><li>STATUS_HOP +: <a class="el" href="modules_8h.html#SPARSE">modules.h</a>, <a class="el" href="inspircd__io_8h.html#SPARSE">inspircd_io.h</a><li>STATUS_HOP : <a class="el" href="users_8h.html#STATUS_5FHOP">users.h</a><li>STATUS_NORMAL : <a class="el" href="users_8h.html#STATUS_5FNORMAL">users.h</a><li>STATUS_OP : <a class="el" href="users_8h.html#STATUS_5FOP">users.h</a><li>STATUS_VOICE @@ -73,12 +73,12 @@ : <a class="el" href="channels_8h.html#UCMODE_5FVOICE">channels.h</a></ul> <h3><a class="anchor" name="index_v">- v -</a></h3><ul> <li>VERBOSE -: <a class="el" href="modules_8h.html#VERBOSE">modules.h</a><li>VF_COMMON +: <a class="el" href="modules_8h.html#VERBOSE">modules.h</a>, <a class="el" href="inspircd__io_8h.html#VERBOSE">inspircd_io.h</a><li>VF_COMMON : <a class="el" href="modules_8h.html#VF_5FCOMMON">modules.h</a><li>VF_SERVICEPROVIDER : <a class="el" href="modules_8h.html#VF_5FSERVICEPROVIDER">modules.h</a><li>VF_STATIC : <a class="el" href="modules_8h.html#VF_5FSTATIC">modules.h</a><li>VF_VENDOR : <a class="el" href="modules_8h.html#VF_5FVENDOR">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_enum.html b/docs/module-doc/globals_enum.html index 99c2c3ee1..72f29fe7c 100644 --- a/docs/module-doc/globals_enum.html +++ b/docs/module-doc/globals_enum.html @@ -12,7 +12,7 @@ <li>InspSocketError : <a class="el" href="socket_8h.html#InspSocketError">socket.h</a><li>InspSocketState : <a class="el" href="socket_8h.html#InspSocketState">socket.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_eval.html b/docs/module-doc/globals_eval.html index ed8d625b6..1b9879ba7 100644 --- a/docs/module-doc/globals_eval.html +++ b/docs/module-doc/globals_eval.html @@ -19,7 +19,7 @@ : <a class="el" href="socket_8h.html#InspSocketErrorI_5FERR_5FTIMEOUT">socket.h</a><li>I_ERROR : <a class="el" href="socket_8h.html#InspSocketStateI_5FERROR">socket.h</a><li>I_LISTENING : <a class="el" href="socket_8h.html#InspSocketStateI_5FLISTENING">socket.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_func.html b/docs/module-doc/globals_func.html index 16c4147d9..cf9bb3501 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -6,7 +6,7 @@ <!-- Generated by Doxygen 1.4.4-20050815 --> <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindexHL" href="globals.html">File Members</a></div> <div class="qindex"><a class="qindex" href="globals.html">All</a> | <a class="qindexHL" href="globals_func.html">Functions</a> | <a class="qindex" href="globals_vars.html">Variables</a> | <a class="qindex" href="globals_type.html">Typedefs</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumerator</a> | <a class="qindex" href="globals_defs.html">Defines</a></div> -<div class="qindex"><a class="qindex" href="#index_a">a</a> | <a class="qindex" href="#index_b">b</a> | <a class="qindex" href="#index_c">c</a> | <a class="qindex" href="#index_d">d</a> | <a class="qindex" href="#index_e">e</a> | <a class="qindex" href="#index_f">f</a> | <a class="qindex" href="#index_g">g</a> | <a class="qindex" href="#index_h">h</a> | <a class="qindex" href="#index_i">i</a> | <a class="qindex" href="#index_m">m</a> | <a class="qindex" href="#index_n">n</a> | <a class="qindex" href="#index_p">p</a> | <a class="qindex" href="#index_q">q</a> | <a class="qindex" href="#index_r">r</a> | <a class="qindex" href="#index_s">s</a> | <a class="qindex" href="#index_t">t</a> | <a class="qindex" href="#index_z">z</a></div> +<div class="qindex"><a class="qindex" href="#index_a">a</a> | <a class="qindex" href="#index_b">b</a> | <a class="qindex" href="#index_c">c</a> | <a class="qindex" href="#index_d">d</a> | <a class="qindex" href="#index_e">e</a> | <a class="qindex" href="#index_f">f</a> | <a class="qindex" href="#index_g">g</a> | <a class="qindex" href="#index_h">h</a> | <a class="qindex" href="#index_i">i</a> | <a class="qindex" href="#index_l">l</a> | <a class="qindex" href="#index_m">m</a> | <a class="qindex" href="#index_n">n</a> | <a class="qindex" href="#index_o">o</a> | <a class="qindex" href="#index_p">p</a> | <a class="qindex" href="#index_q">q</a> | <a class="qindex" href="#index_r">r</a> | <a class="qindex" href="#index_s">s</a> | <a class="qindex" href="#index_t">t</a> | <a class="qindex" href="#index_w">w</a> | <a class="qindex" href="#index_z">z</a></div> <p> @@ -20,15 +20,18 @@ : <a class="el" href="xline_8h.html#add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29">xline.h</a><li>add_zline() : <a class="el" href="xline_8h.html#add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29">xline.h</a><li>allowed_umode() : <a class="el" href="mode_8h.html#allowed_5Fumode_28char_20umode_2C_20char_20_2Asourcemodes_2C_20bool_20adding_29">mode.h</a><li>apply_lines() -: <a class="el" href="xline_8h.html#apply_5Flines_28_29">xline.h</a></ul> +: <a class="el" href="xline_8h.html#apply_5Flines_28const_20int_20What_29">xline.h</a></ul> <h3><a class="anchor" name="index_b">- b -</a></h3><ul> -<li>Blocking() +<li>BindSocket() +: <a class="el" href="inspircd__io_8h.html#BindSocket_28int_20sockfd_2C_20struct_20sockaddr_5Fin_20client_2C_20struct_20sockaddr_5Fin_20server_2C_20int_20port_2C_20char_20_2Aaddr_29">inspircd_io.h</a><li>Blocking() : <a class="el" href="message_8h.html#Blocking_28int_20s_29">message.h</a></ul> <h3><a class="anchor" name="index_c">- c -</a></h3><ul> <li>c_count() : <a class="el" href="message_8h.html#c_5Fcount_28userrec_20_2Au_29">message.h</a><li>ChangeDisplayedHost() : <a class="el" href="message_8h.html#ChangeDisplayedHost_28userrec_20_2Auser_2C_20const_20char_20_2Ahost_29">message.h</a><li>ChangeName() -: <a class="el" href="message_8h.html#ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29">message.h</a><li>chlist() +: <a class="el" href="message_8h.html#ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29">message.h</a><li>CheckDie() +: <a class="el" href="userprocess_8h.html#CheckDie_28_29">userprocess.h</a><li>CheckRoot() +: <a class="el" href="userprocess_8h.html#CheckRoot_28_29">userprocess.h</a><li>chlist() : <a class="el" href="message_8h.html#chlist_28userrec_20_2Auser_2C_20userrec_20_2Asource_29">message.h</a><li>chop() : <a class="el" href="message_8h.html#chop_28char_20_2Astr_29">message.h</a><li>CleanAndResolve() : <a class="el" href="message_8h.html#CleanAndResolve_28char_20_2AresolvedHost_2C_20const_20char_20_2AunresolvedHost_29">message.h</a><li>cmode() @@ -37,22 +40,26 @@ : <a class="el" href="modules_8h.html#createcommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">modules.h</a><li>cstatus() : <a class="el" href="message_8h.html#cstatus_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">message.h</a></ul> <h3><a class="anchor" name="index_d">- d -</a></h3><ul> -<li>del_eline() +<li>DaemonSeed() +: <a class="el" href="inspircd__io_8h.html#DaemonSeed_28void_29">inspircd_io.h</a><li>del_eline() : <a class="el" href="xline_8h.html#del_5Feline_28const_20char_20_2Ahostmask_29">xline.h</a><li>del_gline() : <a class="el" href="xline_8h.html#del_5Fgline_28const_20char_20_2Ahostmask_29">xline.h</a><li>del_kline() : <a class="el" href="xline_8h.html#del_5Fkline_28const_20char_20_2Ahostmask_29">xline.h</a><li>del_qline() : <a class="el" href="xline_8h.html#del_5Fqline_28const_20char_20_2Anickname_29">xline.h</a><li>del_zline() : <a class="el" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">xline.h</a><li>do_whois() : <a class="el" href="commands_8h.html#do_5Fwhois_28userrec_20_2Auser_2C_20userrec_20_2Adest_2C_20unsigned_20long_20signon_2C_20unsigned_20long_20idle_2C_20char_20_2Anick_29">commands.h</a><li>DoAddExtendedMode() -: <a class="el" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">modules.cpp</a><li>duration() +: <a class="el" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">modules.cpp</a><li>DoBackgroundUserStuff() +: <a class="el" href="userprocess_8h.html#DoBackgroundUserStuff_28time_5Ft_20TIME_29">userprocess.h</a><li>duration() : <a class="el" href="commands_8h.html#duration_28const_20char_20_2Astr_29">commands.h</a></ul> <h3><a class="anchor" name="index_e">- e -</a></h3><ul> <li>eline_set_creation_time() -: <a class="el" href="xline_8h.html#eline_5Fset_5Fcreation_5Ftime_28char_20_2Ahost_2C_20time_5Ft_20create_5Ftime_29">xline.h</a><li>expire_lines() +: <a class="el" href="xline_8h.html#eline_5Fset_5Fcreation_5Ftime_28char_20_2Ahost_2C_20time_5Ft_20create_5Ftime_29">xline.h</a><li>Exit() +: <a class="el" href="inspircd__io_8h.html#Exit_28int_29">inspircd_io.h</a><li>expire_lines() : <a class="el" href="xline_8h.html#expire_5Flines_28_29">xline.h</a></ul> <h3><a class="anchor" name="index_f">- f -</a></h3><ul> <li>factory() -: <a class="el" href="modules_8cpp.html#factory_28_32_35_35_29">modules.cpp</a>, <a class="el" href="channels_8cpp.html#factory">channels.cpp</a></ul> +: <a class="el" href="modules_8cpp.html#factory_28_32_35_35_29">modules.cpp</a>, <a class="el" href="channels_8cpp.html#factory">channels.cpp</a><li>FileExists() +: <a class="el" href="inspircd__io_8h.html#FileExists_28const_20char_20_2Afile_29">inspircd_io.h</a></ul> <h3><a class="anchor" name="index_g">- g -</a></h3><ul> <li>give_hops() : <a class="el" href="mode_8h.html#give_5Fhops_28userrec_20_2Auser_2C_20char_20_2Adest_2C_20chanrec_20_2Achan_2C_20int_20status_29">mode.h</a><li>give_ops() @@ -120,6 +127,9 @@ : <a class="el" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">commands.h</a><li>isident() : <a class="el" href="message_8h.html#isident_28const_20char_20_2An_29">message.h</a><li>isnick() : <a class="el" href="message_8h.html#isnick_28const_20char_20_2An_29">message.h</a></ul> +<h3><a class="anchor" name="index_l">- l -</a></h3><ul> +<li>LoadAllModules() +: <a class="el" href="userprocess_8h.html#LoadAllModules_28_29">userprocess.h</a></ul> <h3><a class="anchor" name="index_m">- m -</a></h3><ul> <li>matches_exception() : <a class="el" href="xline_8h.html#matches_5Fexception_28const_20char_20_2Ahost_29">xline.h</a><li>matches_gline() @@ -139,10 +149,15 @@ <h3><a class="anchor" name="index_n">- n -</a></h3><ul> <li>NonBlocking() : <a class="el" href="message_8h.html#NonBlocking_28int_20s_29">message.h</a></ul> +<h3><a class="anchor" name="index_o">- o -</a></h3><ul> +<li>OpenLog() +: <a class="el" href="userprocess_8h.html#OpenLog_28char_20_2A_2Aargv_2C_20int_20argc_29">userprocess.h</a><li>OpenTCPSocket() +: <a class="el" href="inspircd__io_8h.html#OpenTCPSocket_28void_29">inspircd_io.h</a></ul> <h3><a class="anchor" name="index_p">- p -</a></h3><ul> <li>process_modes() : <a class="el" href="mode_8h.html#process_5Fmodes_28char_20_2A_2Aparameters_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20int_20status_2C_20int_20pcnt_2C_20bool_20servermode_2C_20bool_20silent_2C_20bool_20local_29">mode.h</a><li>process_module_umode() -: <a class="el" href="mode_8h.html#process_5Fmodule_5Fumode_28char_20umode_2C_20userrec_20_2Asource_2C_20void_20_2Adest_2C_20bool_20adding_29">mode.h</a></ul> +: <a class="el" href="mode_8h.html#process_5Fmodule_5Fumode_28char_20umode_2C_20userrec_20_2Asource_2C_20void_20_2Adest_2C_20bool_20adding_29">mode.h</a><li>ProcessUser() +: <a class="el" href="userprocess_8h.html#ProcessUser_28userrec_20_2Acu_29">userprocess.h</a></ul> <h3><a class="anchor" name="index_q">- q -</a></h3><ul> <li>qline_make_global() : <a class="el" href="xline_8h.html#qline_5Fmake_5Fglobal_28const_20char_20_2Anickname_29">xline.h</a><li>qline_set_creation_time() @@ -153,7 +168,8 @@ <h3><a class="anchor" name="index_s">- s -</a></h3><ul> <li>send_network_quit() : <a class="el" href="message_8h.html#send_5Fnetwork_5Fquit_28const_20char_20_2Anick_2C_20const_20char_20_2Areason_29">message.h</a><li>server_mode() -: <a class="el" href="modules_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">modules.h</a>, <a class="el" href="mode_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">mode.h</a><li>stats_e() +: <a class="el" href="modules_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">modules.h</a>, <a class="el" href="mode_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">mode.h</a><li>Start() +: <a class="el" href="inspircd__io_8h.html#Start_28void_29">inspircd_io.h</a><li>stats_e() : <a class="el" href="xline_8h.html#stats_5Fe_28userrec_20_2Auser_29">xline.h</a><li>stats_g() : <a class="el" href="xline_8h.html#stats_5Fg_28userrec_20_2Auser_29">xline.h</a><li>stats_k() : <a class="el" href="xline_8h.html#stats_5Fk_28userrec_20_2Auser_29">xline.h</a><li>stats_q() @@ -167,11 +183,14 @@ : <a class="el" href="mode_8h.html#take_5Fvoice_28userrec_20_2Auser_2C_20char_20_2Adest_2C_20chanrec_20_2Achan_2C_20int_20status_29">mode.h</a><li>TidyBan() : <a class="el" href="message_8h.html#TidyBan_28char_20_2Aban_29">message.h</a><li>tidystring() : <a class="el" href="message_8h.html#tidystring_28char_20_2Astr_29">message.h</a></ul> +<h3><a class="anchor" name="index_w">- w -</a></h3><ul> +<li>WritePID() +: <a class="el" href="inspircd__io_8h.html#WritePID_28std_3A_3Astring_20filename_29">inspircd_io.h</a></ul> <h3><a class="anchor" name="index_z">- z -</a></h3><ul> <li>zline_make_global() : <a class="el" href="xline_8h.html#zline_5Fmake_5Fglobal_28const_20char_20_2Aipaddr_29">xline.h</a><li>zline_set_creation_time() : <a class="el" href="xline_8h.html#zline_5Fset_5Fcreation_5Ftime_28char_20_2Aip_2C_20time_5Ft_20create_5Ftime_29">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index 67ff8217d..8bea88b90 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -10,25 +10,26 @@ <p> <ul> <li>address_cache -: <a class="el" href="modules_8cpp.html#address_5Fcache">modules.cpp</a><li>BanList +: <a class="el" href="typedefs_8h.html#address_5Fcache">typedefs.h</a><li>BanList : <a class="el" href="channels_8h.html#BanList">channels.h</a><li>chan_hash -: <a class="el" href="modules_8cpp.html#chan_5Fhash">modules.cpp</a><li>chanuserlist +: <a class="el" href="typedefs_8h.html#chan_5Fhash">typedefs.h</a><li>chanuserlist : <a class="el" href="modules_8h.html#chanuserlist">modules.h</a><li>ClassVector : <a class="el" href="users_8h.html#ClassVector">users.h</a><li>command_table -: <a class="el" href="modules_8cpp.html#command_5Ftable">modules.cpp</a><li>ExemptList +: <a class="el" href="typedefs_8h.html#command_5Ftable">typedefs.h</a><li>ExemptList : <a class="el" href="channels_8h.html#ExemptList">channels.h</a><li>ExtModeList -: <a class="el" href="modules_8cpp.html#ExtModeList">modules.cpp</a><li>ExtModeListIter -: <a class="el" href="modules_8cpp.html#ExtModeListIter">modules.cpp</a><li>file_cache +: <a class="el" href="typedefs_8h.html#ExtModeList">typedefs.h</a><li>ExtModeListIter +: <a class="el" href="typedefs_8h.html#ExtModeListIter">typedefs.h</a><li>file_cache : <a class="el" href="modules_8h.html#file_5Fcache">modules.h</a><li>InvitedList : <a class="el" href="users_8h.html#InvitedList">users.h</a><li>InviteList : <a class="el" href="channels_8h.html#InviteList">channels.h</a><li>ircd_module -: <a class="el" href="modules_8h.html#ircd_5Fmodule">modules.h</a><li>string +: <a class="el" href="modules_8h.html#ircd_5Fmodule">modules.h</a><li>servernamelist +: <a class="el" href="typedefs_8h.html#servernamelist">typedefs.h</a><li>string : <a class="el" href="namespaceirc.html#string">hashcomp.h</a><li>string_list : <a class="el" href="modules_8h.html#string_5Flist">modules.h</a><li>user_hash -: <a class="el" href="modules_8cpp.html#user_5Fhash">modules.cpp</a><li>VoidPointer +: <a class="el" href="typedefs_8h.html#user_5Fhash">typedefs.h</a><li>VoidPointer : <a class="el" href="base_8h.html#VoidPointer">base.h</a><li>whowas_hash -: <a class="el" href="modules_8cpp.html#whowas_5Fhash">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +: <a class="el" href="typedefs_8h.html#whowas_5Fhash">typedefs.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index 3e6ac2967..bd909da15 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -6,16 +6,18 @@ <!-- Generated by Doxygen 1.4.4-20050815 --> <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindexHL" href="globals.html">File Members</a></div> <div class="qindex"><a class="qindex" href="globals.html">All</a> | <a class="qindex" href="globals_func.html">Functions</a> | <a class="qindexHL" href="globals_vars.html">Variables</a> | <a class="qindex" href="globals_type.html">Typedefs</a> | <a class="qindex" href="globals_enum.html">Enumerations</a> | <a class="qindex" href="globals_eval.html">Enumerator</a> | <a class="qindex" href="globals_defs.html">Defines</a></div> -<div class="qindex"><a class="qindex" href="#index_a">a</a> | <a class="qindex" href="#index_b">b</a> | <a class="qindex" href="#index_c">c</a> | <a class="qindex" href="#index_d">d</a> | <a class="qindex" href="#index_e">e</a> | <a class="qindex" href="#index_f">f</a> | <a class="qindex" href="#index_i">i</a> | <a class="qindex" href="#index_l">l</a> | <a class="qindex" href="#index_m">m</a> | <a class="qindex" href="#index_n">n</a> | <a class="qindex" href="#index_o">o</a> | <a class="qindex" href="#index_p">p</a> | <a class="qindex" href="#index_r">r</a> | <a class="qindex" href="#index_s">s</a> | <a class="qindex" href="#index_t">t</a> | <a class="qindex" href="#index_u">u</a> | <a class="qindex" href="#index_w">w</a> | <a class="qindex" href="#index_x">x</a></div> +<div class="qindex"><a class="qindex" href="#index_a">a</a> | <a class="qindex" href="#index_b">b</a> | <a class="qindex" href="#index_c">c</a> | <a class="qindex" href="#index_e">e</a> | <a class="qindex" href="#index_f">f</a> | <a class="qindex" href="#index_i">i</a> | <a class="qindex" href="#index_m">m</a> | <a class="qindex" href="#index_o">o</a> | <a class="qindex" href="#index_p">p</a> | <a class="qindex" href="#index_r">r</a> | <a class="qindex" href="#index_s">s</a> | <a class="qindex" href="#index_t">t</a> | <a class="qindex" href="#index_w">w</a> | <a class="qindex" href="#index_x">x</a></div> <p> <p> <h3><a class="anchor" name="index_a">- a -</a></h3><ul> -<li>AdminEmail -: <a class="el" href="modules_8cpp.html#AdminEmail_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#AdminEmail_5BMAXBUF_5D">channels.cpp</a><li>AdminName -: <a class="el" href="modules_8cpp.html#AdminName_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#AdminName_5BMAXBUF_5D">channels.cpp</a><li>AdminNick -: <a class="el" href="modules_8cpp.html#AdminNick_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#AdminNick_5BMAXBUF_5D">channels.cpp</a></ul> +<li>APPLY_ALL +: <a class="el" href="xline_8h.html#APPLY_5FALL">xline.h</a><li>APPLY_GLINES +: <a class="el" href="xline_8h.html#APPLY_5FGLINES">xline.h</a><li>APPLY_KLINES +: <a class="el" href="xline_8h.html#APPLY_5FKLINES">xline.h</a><li>APPLY_QLINES +: <a class="el" href="xline_8h.html#APPLY_5FQLINES">xline.h</a><li>APPLY_ZLINES +: <a class="el" href="xline_8h.html#APPLY_5FZLINES">xline.h</a></ul> <h3><a class="anchor" name="index_b">- b -</a></h3><ul> <li>boundPortCount : <a class="el" href="socket_8cpp.html#boundPortCount">socket.cpp</a>, <a class="el" href="modules_8cpp.html#boundPortCount">modules.cpp</a>, <a class="el" href="channels_8cpp.html#boundPortCount">channels.cpp</a></ul> @@ -23,15 +25,10 @@ <li>chanlist : <a class="el" href="modules_8cpp.html#chanlist">modules.cpp</a><li>clientlist : <a class="el" href="modules_8cpp.html#clientlist">modules.cpp</a><li>cmdlist -: <a class="el" href="modules_8cpp.html#cmdlist">modules.cpp</a><li>config_f -: <a class="el" href="users_8cpp.html#config_5Ff">users.cpp</a>, <a class="el" href="modules_8cpp.html#config_5Ff">modules.cpp</a>, <a class="el" href="channels_8cpp.html#config_5Ff">channels.cpp</a><li>custom_mode_params +: <a class="el" href="modules_8cpp.html#cmdlist">modules.cpp</a><li>Config +: <a class="el" href="users_8cpp.html#Config">users.cpp</a>, <a class="el" href="modules_8cpp.html#Config">modules.cpp</a>, <a class="el" href="channels_8cpp.html#Config">channels.cpp</a><li>config_f +: <a class="el" href="channels_8cpp.html#config_5Ff">channels.cpp</a><li>custom_mode_params : <a class="el" href="channels_8cpp.html#custom_5Fmode_5Fparams">channels.cpp</a></ul> -<h3><a class="anchor" name="index_d">- d -</a></h3><ul> -<li>debugging -: <a class="el" href="modules_8cpp.html#debugging">modules.cpp</a>, <a class="el" href="channels_8cpp.html#debugging">channels.cpp</a><li>DieDelay -: <a class="el" href="modules_8cpp.html#DieDelay">modules.cpp</a>, <a class="el" href="channels_8cpp.html#DieDelay">channels.cpp</a><li>diepass -: <a class="el" href="modules_8cpp.html#diepass_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#diepass_5BMAXBUF_5D">channels.cpp</a><li>DieValue -: <a class="el" href="modules_8cpp.html#DieValue_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#DieValue_5BMAXBUF_5D">channels.cpp</a></ul> <h3><a class="anchor" name="index_e">- e -</a></h3><ul> <li>EMode : <a class="el" href="modules_8cpp.html#EMode">modules.cpp</a></ul> @@ -40,55 +37,32 @@ : <a class="el" href="modules_8cpp.html#factory_28_32_35_35_29">modules.cpp</a>, <a class="el" href="channels_8cpp.html#factory">channels.cpp</a><li>fd_ref_table : <a class="el" href="modules_8cpp.html#fd_5Fref_5Ftable_5B_36_35_35_33_36_5D">modules.cpp</a></ul> <h3><a class="anchor" name="index_i">- i -</a></h3><ul> -<li>include_stack -: <a class="el" href="modules_8cpp.html#include_5Fstack">modules.cpp</a><li>IP +<li>IP : <a class="el" href="modules_8cpp.html#IP">modules.cpp</a></ul> -<h3><a class="anchor" name="index_l">- l -</a></h3><ul> -<li>list -: <a class="el" href="modules_8cpp.html#list_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#list_5BMAXBUF_5D">channels.cpp</a><li>log_file -: <a class="el" href="socket_8cpp.html#log_5Ffile">socket.cpp</a>, <a class="el" href="modules_8cpp.html#log_5Ffile">modules.cpp</a>, <a class="el" href="channels_8cpp.html#log_5Ffile">channels.cpp</a><li>LogLevel -: <a class="el" href="modules_8cpp.html#LogLevel">modules.cpp</a>, <a class="el" href="channels_8cpp.html#LogLevel">channels.cpp</a></ul> <h3><a class="anchor" name="index_m">- m -</a></h3><ul> -<li>MaxConn -: <a class="el" href="socket_8cpp.html#MaxConn">socket.cpp</a><li>MaxWhoResults -: <a class="el" href="modules_8cpp.html#MaxWhoResults">modules.cpp</a>, <a class="el" href="channels_8cpp.html#MaxWhoResults">channels.cpp</a><li>MODCOUNT +<li>MODCOUNT : <a class="el" href="modules_8cpp.html#MODCOUNT">modules.cpp</a>, <a class="el" href="channels_8cpp.html#MODCOUNT">channels.cpp</a><li>module_names -: <a class="el" href="modules_8cpp.html#module_5Fnames">modules.cpp</a>, <a class="el" href="channels_8cpp.html#module_5Fnames">channels.cpp</a><li>module_sockets +: <a class="el" href="channels_8cpp.html#module_5Fnames">channels.cpp</a><li>module_sockets : <a class="el" href="modules_8cpp.html#module_5Fsockets">modules.cpp</a><li>modules -: <a class="el" href="modules_8cpp.html#modules_28_32_35_35_29">modules.cpp</a>, <a class="el" href="channels_8cpp.html#modules">channels.cpp</a><li>MOTD -: <a class="el" href="modules_8cpp.html#MOTD">modules.cpp</a><li>motd -: <a class="el" href="modules_8cpp.html#motd_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#motd_5BMAXBUF_5D">channels.cpp</a></ul> -<h3><a class="anchor" name="index_n">- n -</a></h3><ul> -<li>nb_start -: <a class="el" href="modules_8cpp.html#nb_5Fstart">modules.cpp</a>, <a class="el" href="channels_8cpp.html#nb_5Fstart">channels.cpp</a><li>NetBufferSize -: <a class="el" href="modules_8cpp.html#NetBufferSize">modules.cpp</a>, <a class="el" href="channels_8cpp.html#NetBufferSize">channels.cpp</a><li>Network -: <a class="el" href="modules_8cpp.html#Network_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#Network_5BMAXBUF_5D">channels.cpp</a></ul> +: <a class="el" href="modules_8cpp.html#modules_28_32_35_35_29">modules.cpp</a>, <a class="el" href="channels_8cpp.html#modules">channels.cpp</a></ul> <h3><a class="anchor" name="index_o">- o -</a></h3><ul> <li>openSockfd : <a class="el" href="socket_8cpp.html#openSockfd_5BMAXSOCKS_5D">socket.cpp</a></ul> <h3><a class="anchor" name="index_p">- p -</a></h3><ul> <li>portCount -: <a class="el" href="modules_8cpp.html#portCount">modules.cpp</a>, <a class="el" href="channels_8cpp.html#portCount">channels.cpp</a><li>ports -: <a class="el" href="modules_8cpp.html#ports_5BMAXSOCKS_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#ports_5BMAXSOCKS_5D">channels.cpp</a><li>PrefixQuit -: <a class="el" href="modules_8cpp.html#PrefixQuit_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#PrefixQuit_5BMAXBUF_5D">channels.cpp</a></ul> +: <a class="el" href="modules_8cpp.html#portCount">modules.cpp</a><li>ports +: <a class="el" href="modules_8cpp.html#ports_5BMAXSOCKS_5D">modules.cpp</a></ul> <h3><a class="anchor" name="index_r">- r -</a></h3><ul> <li>ref -: <a class="el" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">socketengine.cpp</a><li>restartpass -: <a class="el" href="modules_8cpp.html#restartpass_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#restartpass_5BMAXBUF_5D">channels.cpp</a><li>RULES -: <a class="el" href="modules_8cpp.html#RULES">modules.cpp</a><li>rules -: <a class="el" href="modules_8cpp.html#rules_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#rules_5BMAXBUF_5D">channels.cpp</a></ul> +: <a class="el" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">socketengine.cpp</a></ul> <h3><a class="anchor" name="index_s">- s -</a></h3><ul> <li>SE -: <a class="el" href="socket_8cpp.html#SE">socket.cpp</a>, <a class="el" href="modules_8cpp.html#SE">modules.cpp</a><li>ServerDesc -: <a class="el" href="modules_8cpp.html#ServerDesc_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#ServerDesc_5BMAXBUF_5D">channels.cpp</a><li>ServerName -: <a class="el" href="users_8cpp.html#ServerName_5BMAXBUF_5D">users.cpp</a>, <a class="el" href="modules_8cpp.html#ServerName_5BMAXBUF_5D">modules.cpp</a>, <a class="el" href="channels_8cpp.html#ServerName_5BMAXBUF_5D">channels.cpp</a><li>startup_time +: <a class="el" href="socket_8cpp.html#SE">socket.cpp</a>, <a class="el" href="modules_8cpp.html#SE">modules.cpp</a><li>socket_ref +: <a class="el" href="socket_8cpp.html#socket_5Fref_5B_36_35_35_33_35_5D">socket.cpp</a><li>startup_time : <a class="el" href="modules_8cpp.html#startup_5Ftime">modules.cpp</a>, <a class="el" href="channels_8cpp.html#startup_5Ftime">channels.cpp</a></ul> <h3><a class="anchor" name="index_t">- t -</a></h3><ul> <li>TIME : <a class="el" href="users_8cpp.html#TIME">users.cpp</a>, <a class="el" href="socket_8cpp.html#TIME">socket.cpp</a>, <a class="el" href="modules_8cpp.html#TIME">modules.cpp</a>, <a class="el" href="channels_8cpp.html#TIME">channels.cpp</a></ul> -<h3><a class="anchor" name="index_u">- u -</a></h3><ul> -<li>unlimitcore -: <a class="el" href="socket_8cpp.html#unlimitcore">socket.cpp</a></ul> <h3><a class="anchor" name="index_w">- w -</a></h3><ul> <li>whowas : <a class="el" href="modules_8cpp.html#whowas">modules.cpp</a><li>WHOWAS_MAX @@ -102,7 +76,7 @@ : <a class="el" href="socketengine_8h.html#X_5FESTAB_5FMODULE">socketengine.h</a><li>X_LISTEN : <a class="el" href="socketengine_8h.html#X_5FLISTEN">socketengine.h</a><li>X_READBIT : <a class="el" href="socketengine_8h.html#X_5FREADBIT">socketengine.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/graph_legend.html b/docs/module-doc/graph_legend.html index b633c5d3f..3737e5375 100644 --- a/docs/module-doc/graph_legend.html +++ b/docs/module-doc/graph_legend.html @@ -67,7 +67,7 @@ A purple dashed arrow is used if a class is contained or used by another class. <li> A yellow dashed arrow denotes a relation between a template instance and the template class it was instantiated from. The arrow is labeled with the template parameters of the instance. </li> </ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/hashcomp_8h-source.html b/docs/module-doc/hashcomp_8h-source.html index 328c11062..aa9b29253 100644 --- a/docs/module-doc/hashcomp_8h-source.html +++ b/docs/module-doc/hashcomp_8h-source.html @@ -109,7 +109,7 @@ <a name="l00130"></a>00130 } <a name="l00131"></a>00131 <a name="l00132"></a>00132 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/hashcomp_8h.html b/docs/module-doc/hashcomp_8h.html index 282bdb2d5..277bce791 100644 --- a/docs/module-doc/hashcomp_8h.html +++ b/docs/module-doc/hashcomp_8h.html @@ -16,7 +16,8 @@ Include dependency graph for hashcomp.h:<p><center><img src="hashcomp_8h__incl.g <p> This graph shows which files directly or indirectly include this file:<p><center><img src="hashcomp_8h__dep__incl.gif" border="0" usemap="#hashcomp.hdep_map" alt=""></center> <map name="hashcomp.hdep_map"> -<area href="modules_8cpp-source.html" shape="rect" coords="151,7,249,33" alt=""> +<area href="modules_8cpp-source.html" shape="rect" coords="284,32,383,59" alt=""> +<area href="typedefs_8h-source.html" shape="rect" coords="151,58,236,84" alt=""> </map> <p> @@ -77,7 +78,7 @@ This graph shows which files directly or indirectly include this file:<p><center Definition at line <a class="el" href="hashcomp_8h-source.html#l00044">44</a> of file <a class="el" href="hashcomp_8h-source.html">hashcomp.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:22 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/hashcomp_8h__dep__incl.gif b/docs/module-doc/hashcomp_8h__dep__incl.gif Binary files differindex ba92d59f7..076e8b9e0 100644 --- a/docs/module-doc/hashcomp_8h__dep__incl.gif +++ b/docs/module-doc/hashcomp_8h__dep__incl.gif diff --git a/docs/module-doc/hashcomp_8h__dep__incl.map b/docs/module-doc/hashcomp_8h__dep__incl.map index d4d87c8b6..f8f9b2cc4 100644 --- a/docs/module-doc/hashcomp_8h__dep__incl.map +++ b/docs/module-doc/hashcomp_8h__dep__incl.map @@ -1,2 +1,3 @@ base referer -rect $modules_8cpp-source.html 151,7 249,33 +rect $modules_8cpp-source.html 284,32 383,59 +rect $typedefs_8h-source.html 151,58 236,84 diff --git a/docs/module-doc/hashcomp_8h__dep__incl.md5 b/docs/module-doc/hashcomp_8h__dep__incl.md5 index 13ab4aa0c..02fa744bc 100644 --- a/docs/module-doc/hashcomp_8h__dep__incl.md5 +++ b/docs/module-doc/hashcomp_8h__dep__incl.md5 @@ -1 +1 @@ -18f1cb2dbb2c368f942055809c28a9a3
\ No newline at end of file +40ab5dae8b125b51cc6bddd308d045f3
\ No newline at end of file diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 87923ef0d..2f41e34b2 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -45,6 +45,7 @@ This inheritance list is sorted roughly, but not completely, alphabetically:<ul> <li><a class="el" href="classRequest.html">Request</a> </ul> <li><a class="el" href="classServer.html">Server</a> +<li><a class="el" href="classServerConfig.html">ServerConfig</a> <li><a class="el" href="classucrec.html">ucrec</a> <li><a class="el" href="classVersion.html">Version</a> <li><a class="el" href="classXLine.html">XLine</a> @@ -66,7 +67,7 @@ This inheritance list is sorted roughly, but not completely, alphabetically:<ul> <li><a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a> <li><a class="el" href="classWhoWasUser.html">WhoWasUser</a> </ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/inherit__graph__2.gif b/docs/module-doc/inherit__graph__2.gif Binary files differindex e9fb3711f..e18fe591e 100644 --- a/docs/module-doc/inherit__graph__2.gif +++ b/docs/module-doc/inherit__graph__2.gif diff --git a/docs/module-doc/inherit__graph__2.map b/docs/module-doc/inherit__graph__2.map index 3d1b2b163..089be13aa 100644 --- a/docs/module-doc/inherit__graph__2.map +++ b/docs/module-doc/inherit__graph__2.map @@ -1,5 +1,5 @@ base referer -rect $classclassbase.html 8,387 88,413 +rect $classclassbase.html 8,412 88,439 rect $classAdmin.html 167,7 228,33 rect $classConfigReader.html 146,57 250,84 rect $classConnectClass.html 146,108 250,135 @@ -13,9 +13,10 @@ rect $classModule.html 164,463 231,489 rect $classModuleFactory.html 143,513 252,540 rect $classModuleMessage.html 138,564 258,591 rect $classServer.html 167,615 228,641 -rect $classucrec.html 171,665 224,692 -rect $classVersion.html 164,716 231,743 -rect $classXLine.html 170,767 226,793 +rect $classServerConfig.html 147,665 248,692 +rect $classucrec.html 171,716 224,743 +rect $classVersion.html 164,767 231,793 +rect $classXLine.html 170,817 226,844 rect $classchanrec.html 319,108 388,135 rect $classcommand__t.html 308,159 399,185 rect $classconnection.html 311,209 396,236 @@ -25,8 +26,8 @@ rect $classExemptItem.html 307,311 400,337 rect $classInviteItem.html 314,361 394,388 rect $classEvent.html 326,539 382,565 rect $classRequest.html 318,589 390,616 -rect $classELine.html 326,665 382,692 -rect $classGLine.html 324,716 383,743 -rect $classKLine.html 326,767 382,793 -rect $classQLine.html 324,817 383,844 -rect $classZLine.html 326,868 382,895 +rect $classELine.html 326,716 382,743 +rect $classGLine.html 324,767 383,793 +rect $classKLine.html 326,817 382,844 +rect $classQLine.html 324,868 383,895 +rect $classZLine.html 326,919 382,945 diff --git a/docs/module-doc/inherit__graph__2.md5 b/docs/module-doc/inherit__graph__2.md5 index f9ee5de24..c52b8028e 100644 --- a/docs/module-doc/inherit__graph__2.md5 +++ b/docs/module-doc/inherit__graph__2.md5 @@ -1 +1 @@ -5245feb0cb84245dfc703490db270136
\ No newline at end of file +6d4274482c5e5284d113f8910d688065
\ No newline at end of file diff --git a/docs/module-doc/inherits.html b/docs/module-doc/inherits.html index 8e56c5d22..85f6f35c2 100644 --- a/docs/module-doc/inherits.html +++ b/docs/module-doc/inherits.html @@ -19,7 +19,7 @@ </map></td></tr> <tr><td><img src="inherit__graph__2.gif" border="0" alt="" usemap="#classbase_map"> <map name="classbase_map"> -<area href="classclassbase.html" shape="rect" coords="8,387,88,413" alt=""> +<area href="classclassbase.html" shape="rect" coords="8,412,88,439" alt=""> <area href="classAdmin.html" shape="rect" coords="167,7,228,33" alt=""> <area href="classConfigReader.html" shape="rect" coords="146,57,250,84" alt=""> <area href="classConnectClass.html" shape="rect" coords="146,108,250,135" alt=""> @@ -33,9 +33,10 @@ <area href="classModuleFactory.html" shape="rect" coords="143,513,252,540" alt=""> <area href="classModuleMessage.html" shape="rect" coords="138,564,258,591" alt=""> <area href="classServer.html" shape="rect" coords="167,615,228,641" alt=""> -<area href="classucrec.html" shape="rect" coords="171,665,224,692" alt=""> -<area href="classVersion.html" shape="rect" coords="164,716,231,743" alt=""> -<area href="classXLine.html" shape="rect" coords="170,767,226,793" alt=""> +<area href="classServerConfig.html" shape="rect" coords="147,665,248,692" alt=""> +<area href="classucrec.html" shape="rect" coords="171,716,224,743" alt=""> +<area href="classVersion.html" shape="rect" coords="164,767,231,793" alt=""> +<area href="classXLine.html" shape="rect" coords="170,817,226,844" alt=""> <area href="classchanrec.html" shape="rect" coords="319,108,388,135" alt=""> <area href="classcommand__t.html" shape="rect" coords="308,159,399,185" alt=""> <area href="classconnection.html" shape="rect" coords="311,209,396,236" alt=""> @@ -45,11 +46,11 @@ <area href="classInviteItem.html" shape="rect" coords="314,361,394,388" alt=""> <area href="classEvent.html" shape="rect" coords="326,539,382,565" alt=""> <area href="classRequest.html" shape="rect" coords="318,589,390,616" alt=""> -<area href="classELine.html" shape="rect" coords="326,665,382,692" alt=""> -<area href="classGLine.html" shape="rect" coords="324,716,383,743" alt=""> -<area href="classKLine.html" shape="rect" coords="326,767,382,793" alt=""> -<area href="classQLine.html" shape="rect" coords="324,817,383,844" alt=""> -<area href="classZLine.html" shape="rect" coords="326,868,382,895" alt=""> +<area href="classELine.html" shape="rect" coords="326,716,382,743" alt=""> +<area href="classGLine.html" shape="rect" coords="324,767,383,793" alt=""> +<area href="classKLine.html" shape="rect" coords="326,817,382,844" alt=""> +<area href="classQLine.html" shape="rect" coords="324,868,383,895" alt=""> +<area href="classZLine.html" shape="rect" coords="326,919,382,945" alt=""> </map></td></tr> <tr><td><img src="inherit__graph__3.gif" border="0" alt="" usemap="#DNS_map"> <map name="DNS_map"> @@ -88,7 +89,7 @@ <area href="classWhoWasUser.html" shape="rect" coords="8,7,112,33" alt=""> </map></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:38 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/inspircd__io_8h-source.html b/docs/module-doc/inspircd__io_8h-source.html new file mode 100644 index 000000000..1d9d839b9 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h-source.html @@ -0,0 +1,120 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: inspircd_io.h Source File</title> +<link href="inspircd.doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.4.4-20050815 --> +<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<div class="nav"> +<a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000004.html">include</a></div> +<h1>inspircd_io.h</h1><a href="inspircd__io_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* +------------------------------------+</span> +<a name="l00002"></a>00002 <span class="comment"> * | Inspire Internet Relay Chat Daemon |</span> +<a name="l00003"></a>00003 <span class="comment"> * +------------------------------------+</span> +<a name="l00004"></a>00004 <span class="comment"> *</span> +<a name="l00005"></a>00005 <span class="comment"> * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.</span> +<a name="l00006"></a>00006 <span class="comment"> * E-mail:</span> +<a name="l00007"></a>00007 <span class="comment"> * <brain@chatspike.net></span> +<a name="l00008"></a>00008 <span class="comment"> * <Craig@chatspike.net></span> +<a name="l00009"></a>00009 <span class="comment"> * </span> +<a name="l00010"></a>00010 <span class="comment"> * Written by Craig Edwards, Craig McLure, and others.</span> +<a name="l00011"></a>00011 <span class="comment"> * This program is free but copyrighted software; see</span> +<a name="l00012"></a>00012 <span class="comment"> * the file COPYING for details.</span> +<a name="l00013"></a>00013 <span class="comment"> *</span> +<a name="l00014"></a>00014 <span class="comment"> * ---------------------------------------------------</span> +<a name="l00015"></a>00015 <span class="comment"> */</span> +<a name="l00016"></a>00016 +<a name="l00017"></a>00017 <span class="preprocessor">#ifndef __INSPIRCD_IO_H__</span> +<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __INSPIRCD_IO_H__</span> +<a name="l00019"></a>00019 <span class="preprocessor"></span> +<a name="l00020"></a>00020 <span class="preprocessor">#include <sstream></span> +<a name="l00021"></a>00021 <span class="preprocessor">#include <string></span> +<a name="l00022"></a>00022 <span class="preprocessor">#include <vector></span> +<a name="l00023"></a>00023 <span class="preprocessor">#include "inspircd.h"</span> +<a name="l00024"></a>00024 <span class="preprocessor">#include "globals.h"</span> +<a name="l00025"></a>00025 +<a name="l00026"></a>00026 <span class="comment">// flags for use with log()</span> +<a name="l00027"></a>00027 +<a name="l00028"></a><a class="code" href="inspircd__io_8h.html#DEBUG">00028</a> <span class="preprocessor">#define DEBUG 10</span> +<a name="l00029"></a><a class="code" href="inspircd__io_8h.html#VERBOSE">00029</a> <span class="preprocessor"></span><span class="preprocessor">#define VERBOSE 20</span> +<a name="l00030"></a><a class="code" href="inspircd__io_8h.html#DEFAULT">00030</a> <span class="preprocessor"></span><span class="preprocessor">#define DEFAULT 30</span> +<a name="l00031"></a><a class="code" href="inspircd__io_8h.html#SPARSE">00031</a> <span class="preprocessor"></span><span class="preprocessor">#define SPARSE 40</span> +<a name="l00032"></a><a class="code" href="inspircd__io_8h.html#NONE">00032</a> <span class="preprocessor"></span><span class="preprocessor">#define NONE 50</span> +<a name="l00033"></a>00033 <span class="preprocessor"></span> +<a name="l00034"></a><a class="code" href="classServerConfig.html">00034</a> <span class="keyword">class </span><a class="code" href="classServerConfig.html">ServerConfig</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +<a name="l00035"></a>00035 { +<a name="l00036"></a>00036 <span class="keyword">private</span>: +<a name="l00037"></a><a class="code" href="classServerConfig.html#include_5Fstack">00037</a> std::vector<std::string> <a class="code" href="classServerConfig.html#include_5Fstack">include_stack</a>; +<a name="l00038"></a>00038 <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#fgets_5Fsafe_28char_20_2Abuffer_2C_20size_5Ft_20maxsize_2C_20FILE_20_2A_26file_29">fgets_safe</a>(<span class="keywordtype">char</span>* buffer, size_t maxsize, FILE* &file); +<a name="l00039"></a>00039 <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServerConfig.html#ConfProcess_28char_20_2Abuffer_2C_20long_20linenumber_2C_20std_3A_3Astringstream_20_2Aerrorstream_2C_20bool_20_26error_2C_20std_3A_3Astring_20filename_29">ConfProcess</a>(<span class="keywordtype">char</span>* buffer, <span class="keywordtype">long</span> linenumber, std::stringstream* errorstream, <span class="keywordtype">bool</span> &error, <a class="code" href="namespaceirc.html#string">std::string</a> filename); +<a name="l00040"></a>00040 +<a name="l00041"></a>00041 <span class="keyword">public</span>: +<a name="l00042"></a><a class="code" href="classServerConfig.html#ServerName_5BMAXBUF_5D">00042</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#ServerName_5BMAXBUF_5D">ServerName</a>[MAXBUF]; +<a name="l00043"></a><a class="code" href="classServerConfig.html#Network_5BMAXBUF_5D">00043</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#Network_5BMAXBUF_5D">Network</a>[MAXBUF]; +<a name="l00044"></a><a class="code" href="classServerConfig.html#ServerDesc_5BMAXBUF_5D">00044</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#ServerDesc_5BMAXBUF_5D">ServerDesc</a>[MAXBUF]; +<a name="l00045"></a><a class="code" href="classServerConfig.html#AdminName_5BMAXBUF_5D">00045</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#AdminName_5BMAXBUF_5D">AdminName</a>[MAXBUF]; +<a name="l00046"></a><a class="code" href="classServerConfig.html#AdminEmail_5BMAXBUF_5D">00046</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#AdminEmail_5BMAXBUF_5D">AdminEmail</a>[MAXBUF]; +<a name="l00047"></a><a class="code" href="classServerConfig.html#AdminNick_5BMAXBUF_5D">00047</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#AdminNick_5BMAXBUF_5D">AdminNick</a>[MAXBUF]; +<a name="l00048"></a><a class="code" href="classServerConfig.html#diepass_5BMAXBUF_5D">00048</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#diepass_5BMAXBUF_5D">diepass</a>[MAXBUF]; +<a name="l00049"></a><a class="code" href="classServerConfig.html#restartpass_5BMAXBUF_5D">00049</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#restartpass_5BMAXBUF_5D">restartpass</a>[MAXBUF]; +<a name="l00050"></a><a class="code" href="classServerConfig.html#motd_5BMAXBUF_5D">00050</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#motd_5BMAXBUF_5D">motd</a>[MAXBUF]; +<a name="l00051"></a><a class="code" href="classServerConfig.html#rules_5BMAXBUF_5D">00051</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#rules_5BMAXBUF_5D">rules</a>[MAXBUF]; +<a name="l00052"></a><a class="code" href="classServerConfig.html#PrefixQuit_5BMAXBUF_5D">00052</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#PrefixQuit_5BMAXBUF_5D">PrefixQuit</a>[MAXBUF]; +<a name="l00053"></a><a class="code" href="classServerConfig.html#DieValue_5BMAXBUF_5D">00053</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#DieValue_5BMAXBUF_5D">DieValue</a>[MAXBUF]; +<a name="l00054"></a><a class="code" href="classServerConfig.html#DNSServer_5BMAXBUF_5D">00054</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#DNSServer_5BMAXBUF_5D">DNSServer</a>[MAXBUF]; +<a name="l00055"></a><a class="code" href="classServerConfig.html#DisabledCommands_5BMAXBUF_5D">00055</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#DisabledCommands_5BMAXBUF_5D">DisabledCommands</a>[MAXBUF]; +<a name="l00056"></a><a class="code" href="classServerConfig.html#ModPath_5B_31_30_32_34_5D">00056</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#ModPath_5B_31_30_32_34_5D">ModPath</a>[1024]; +<a name="l00057"></a><a class="code" href="classServerConfig.html#MyExecutable_5B_31_30_32_34_5D">00057</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#MyExecutable_5B_31_30_32_34_5D">MyExecutable</a>[1024]; +<a name="l00058"></a><a class="code" href="classServerConfig.html#log_5Ffile">00058</a> FILE *<a class="code" href="classServerConfig.html#log_5Ffile">log_file</a>; +<a name="l00059"></a><a class="code" href="classServerConfig.html#nofork">00059</a> <span class="keywordtype">bool</span> <a class="code" href="classServerConfig.html#nofork">nofork</a>; +<a name="l00060"></a><a class="code" href="classServerConfig.html#unlimitcore">00060</a> <span class="keywordtype">bool</span> <a class="code" href="classServerConfig.html#unlimitcore">unlimitcore</a>; +<a name="l00061"></a><a class="code" href="classServerConfig.html#AllowHalfop">00061</a> <span class="keywordtype">bool</span> <a class="code" href="classServerConfig.html#AllowHalfop">AllowHalfop</a>; +<a name="l00062"></a><a class="code" href="classServerConfig.html#dns_5Ftimeout">00062</a> <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#dns_5Ftimeout">dns_timeout</a>; +<a name="l00063"></a><a class="code" href="classServerConfig.html#NetBufferSize">00063</a> <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#NetBufferSize">NetBufferSize</a>; <span class="comment">// NetBufferSize used as the buffer size for all read() ops</span> +<a name="l00064"></a><a class="code" href="classServerConfig.html#MaxConn">00064</a> <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#MaxConn">MaxConn</a>; <span class="comment">// size of accept() backlog (128 by default on *BSD)</span> +<a name="l00065"></a><a class="code" href="classServerConfig.html#SoftLimit">00065</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#SoftLimit">SoftLimit</a>; +<a name="l00066"></a><a class="code" href="classServerConfig.html#MaxWhoResults">00066</a> <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#MaxWhoResults">MaxWhoResults</a>; +<a name="l00067"></a><a class="code" href="classServerConfig.html#debugging">00067</a> <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#debugging">debugging</a>; +<a name="l00068"></a><a class="code" href="classServerConfig.html#LogLevel">00068</a> <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#LogLevel">LogLevel</a>; +<a name="l00069"></a><a class="code" href="classServerConfig.html#DieDelay">00069</a> <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#DieDelay">DieDelay</a>; +<a name="l00070"></a><a class="code" href="classServerConfig.html#addrs_5BMAXBUF_5D_5B_32_35_35_5D">00070</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#addrs_5BMAXBUF_5D_5B_32_35_35_5D">addrs</a>[MAXBUF][255]; +<a name="l00071"></a><a class="code" href="classServerConfig.html#MOTD">00071</a> <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> <a class="code" href="classServerConfig.html#MOTD">MOTD</a>; +<a name="l00072"></a><a class="code" href="classServerConfig.html#RULES">00072</a> <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> <a class="code" href="classServerConfig.html#RULES">RULES</a>; +<a name="l00073"></a><a class="code" href="classServerConfig.html#PID_5B_31_30_32_34_5D">00073</a> <span class="keywordtype">char</span> <a class="code" href="classServerConfig.html#PID_5B_31_30_32_34_5D">PID</a>[1024]; +<a name="l00074"></a><a class="code" href="classServerConfig.html#config_5Ff">00074</a> std::stringstream <a class="code" href="classServerConfig.html#config_5Ff">config_f</a>; +<a name="l00075"></a><a class="code" href="classServerConfig.html#Classes">00075</a> <a class="code" href="users_8h.html#ClassVector">ClassVector</a> <a class="code" href="classServerConfig.html#Classes">Classes</a>; +<a name="l00076"></a><a class="code" href="classServerConfig.html#module_5Fnames">00076</a> std::vector<std::string> <a class="code" href="classServerConfig.html#module_5Fnames">module_names</a>; +<a name="l00077"></a>00077 +<a name="l00078"></a>00078 <a class="code" href="classServerConfig.html#ServerConfig_28_29">ServerConfig</a>(); +<a name="l00079"></a>00079 <span class="keywordtype">void</span> <a class="code" href="classServerConfig.html#ClearStack_28_29">ClearStack</a>(); +<a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="classServerConfig.html#Read_28bool_20bail_2C_20userrec_20_2Auser_29">Read</a>(<span class="keywordtype">bool</span> bail, <a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00081"></a>00081 <span class="keywordtype">bool</span> <a class="code" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">LoadConf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename, std::stringstream *target, std::stringstream* errorstream); +<a name="l00082"></a>00082 <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a>(<span class="keywordtype">char</span>* tag, <span class="keywordtype">char</span>* var, <span class="keywordtype">int</span> index, <span class="keywordtype">char</span> *result, std::stringstream *config); +<a name="l00083"></a>00083 <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ReadConf</a>(std::stringstream *<a class="code" href="classServerConfig.html#config_5Ff">config_f</a>,<span class="keyword">const</span> <span class="keywordtype">char</span>* tag, <span class="keyword">const</span> <span class="keywordtype">char</span>* var, <span class="keywordtype">int</span> index, <span class="keywordtype">char</span> *result); +<a name="l00084"></a>00084 <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#ConfValueEnum_28char_20_2Atag_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValueEnum</a>(<span class="keywordtype">char</span>* tag,std::stringstream *config); +<a name="l00085"></a>00085 <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#EnumConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_29">EnumConf</a>(std::stringstream *<a class="code" href="classServerConfig.html#config_5Ff">config_f</a>,<span class="keyword">const</span> <span class="keywordtype">char</span>* tag); +<a name="l00086"></a>00086 <span class="keywordtype">int</span> <a class="code" href="classServerConfig.html#EnumValues_28std_3A_3Astringstream_20_2Aconfig_2C_20const_20char_20_2Atag_2C_20int_20index_29">EnumValues</a>(std::stringstream *config, <span class="keyword">const</span> <span class="keywordtype">char</span>* tag, <span class="keywordtype">int</span> index); +<a name="l00087"></a>00087 }; +<a name="l00088"></a>00088 +<a name="l00089"></a>00089 +<a name="l00090"></a>00090 <span class="keywordtype">void</span> <a class="code" href="inspircd__io_8h.html#Exit_28int_29">Exit</a> (<span class="keywordtype">int</span>); +<a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="inspircd__io_8h.html#Start_28void_29">Start</a> (<span class="keywordtype">void</span>); +<a name="l00092"></a>00092 <span class="keywordtype">int</span> <a class="code" href="inspircd__io_8h.html#DaemonSeed_28void_29">DaemonSeed</a> (<span class="keywordtype">void</span>); +<a name="l00093"></a>00093 <span class="keywordtype">bool</span> <a class="code" href="inspircd__io_8h.html#FileExists_28const_20char_20_2Afile_29">FileExists</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>* file); +<a name="l00094"></a>00094 <span class="keywordtype">int</span> <a class="code" href="inspircd__io_8h.html#OpenTCPSocket_28void_29">OpenTCPSocket</a> (<span class="keywordtype">void</span>); +<a name="l00095"></a>00095 <span class="keywordtype">int</span> <a class="code" href="inspircd__io_8h.html#BindSocket_28int_20sockfd_2C_20struct_20sockaddr_5Fin_20client_2C_20struct_20sockaddr_5Fin_20server_2C_20int_20port_2C_20char_20_2Aaddr_29">BindSocket</a> (<span class="keywordtype">int</span> sockfd, <span class="keyword">struct</span> sockaddr_in client, <span class="keyword">struct</span> sockaddr_in server, <span class="keywordtype">int</span> port, <span class="keywordtype">char</span>* addr); +<a name="l00096"></a>00096 +<a name="l00097"></a>00097 <span class="comment">/*bool LoadConf(const char* filename, std::stringstream *target, std::stringstream* errorstream);</span> +<a name="l00098"></a>00098 <span class="comment">int ConfValue(char* tag, char* var, int index, char *result, std::stringstream *config);</span> +<a name="l00099"></a>00099 <span class="comment">int ReadConf(std::stringstream *config_f,const char* tag, const char* var, int index, char *result);</span> +<a name="l00100"></a>00100 <span class="comment">int ConfValueEnum(char* tag,std::stringstream *config);</span> +<a name="l00101"></a>00101 <span class="comment">int EnumConf(std::stringstream *config_f,const char* tag);</span> +<a name="l00102"></a>00102 <span class="comment">int EnumValues(std::stringstream *config, const char* tag, int index);*/</span> +<a name="l00103"></a>00103 +<a name="l00104"></a>00104 <span class="keywordtype">void</span> <a class="code" href="inspircd__io_8h.html#WritePID_28std_3A_3Astring_20filename_29">WritePID</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename); +<a name="l00105"></a>00105 +<a name="l00106"></a>00106 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> +</body> +</html> diff --git a/docs/module-doc/inspircd__io_8h.html b/docs/module-doc/inspircd__io_8h.html new file mode 100644 index 000000000..85773d0a1 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h.html @@ -0,0 +1,420 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: inspircd_io.h File Reference</title> +<link href="inspircd.doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.4.4-20050815 --> +<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<div class="nav"> +<a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000004.html">include</a></div> +<h1>inspircd_io.h File Reference</h1><code>#include <sstream></code><br> +<code>#include <string></code><br> +<code>#include <vector></code><br> +<code>#include "inspircd.h"</code><br> +<code>#include "globals.h"</code><br> + +<p> +Include dependency graph for inspircd_io.h:<p><center><img src="inspircd__io_8h__incl.gif" border="0" usemap="#inspircd_io.h_map" alt=""></center> + +<p> +This graph shows which files directly or indirectly include this file:<p><center><img src="inspircd__io_8h__dep__incl.gif" border="0" usemap="#inspircd_io.hdep_map" alt=""></center> +<map name="inspircd_io.hdep_map"> +<area href="channels_8cpp-source.html" shape="rect" coords="155,7,253,33" alt=""> +<area href="modules_8cpp-source.html" shape="rect" coords="155,57,253,84" alt=""> +<area href="socket_8cpp-source.html" shape="rect" coords="161,108,247,135" alt=""> +</map> + +<p> +<a href="inspircd__io_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> +<tr><td></td></tr> +<tr><td colspan="2"><br><h2>Classes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classServerConfig.html">ServerConfig</a></td></tr> + +<tr><td colspan="2"><br><h2>Defines</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#DEBUG">DEBUG</a> 10</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#VERBOSE">VERBOSE</a> 20</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#DEFAULT">DEFAULT</a> 30</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#SPARSE">SPARSE</a> 40</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#NONE">NONE</a> 50</td></tr> + +<tr><td colspan="2"><br><h2>Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#Exit_28int_29">Exit</a> (int)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#Start_28void_29">Start</a> (void)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#DaemonSeed_28void_29">DaemonSeed</a> (void)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#FileExists_28const_20char_20_2Afile_29">FileExists</a> (const char *file)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#OpenTCPSocket_28void_29">OpenTCPSocket</a> (void)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#BindSocket_28int_20sockfd_2C_20struct_20sockaddr_5Fin_20client_2C_20struct_20sockaddr_5Fin_20server_2C_20int_20port_2C_20char_20_2Aaddr_29">BindSocket</a> (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char *addr)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="inspircd__io_8h.html#WritePID_28std_3A_3Astring_20filename_29">WritePID</a> (<a class="el" href="namespaceirc.html#string">std::string</a> filename)</td></tr> + +</table> +<hr><h2>Define Documentation</h2> +<a class="anchor" name="DEBUG"></a><!-- doxytag: member="inspircd_io.h::DEBUG" ref="DEBUG" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">#define DEBUG 10 </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00028">28</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00554">Server::AddExtendedMode()</a>, <a class="el" href="socketengine_8cpp-source.html#l00065">SocketEngine::AddFd()</a>, <a class="el" href="channels_8cpp-source.html#l00166">chanrec::AddUser()</a>, <a class="el" href="socketengine_8cpp-source.html#l00103">SocketEngine::DelFd()</a>, <a class="el" href="channels_8cpp-source.html#l00172">chanrec::DelUser()</a>, <a class="el" href="socket_8cpp-source.html#l00062">InspSocket::InspSocket()</a>, <a class="el" href="socket_8cpp-source.html#l00158">InspSocket::Read()</a>, <a class="el" href="users_8cpp-source.html#l00122">userrec::RemoveInvite()</a>, <a class="el" href="channels_8cpp-source.html#l00085">chanrec::SetCustomMode()</a>, <a class="el" href="channels_8cpp-source.html#l00110">chanrec::SetCustomModeParam()</a>, <a class="el" href="socket_8cpp-source.html#l00248">InspSocket::SetState()</a>, <a class="el" href="users_8cpp-source.html#l00292">userrec::SetWriteError()</a>, <a class="el" href="socketengine_8cpp-source.html#l00035">SocketEngine::SocketEngine()</a>, and <a class="el" href="socketengine_8cpp-source.html#l00046">SocketEngine::~SocketEngine()</a>. </td> + </tr> +</table> +<a class="anchor" name="DEFAULT"></a><!-- doxytag: member="inspircd_io.h::DEFAULT" ref="DEFAULT" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">#define DEFAULT 30 </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00030">30</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NONE"></a><!-- doxytag: member="inspircd_io.h::NONE" ref="NONE" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">#define NONE 50 </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00032">32</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="SPARSE"></a><!-- doxytag: member="inspircd_io.h::SPARSE" ref="SPARSE" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">#define SPARSE 40 </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00031">31</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<a class="anchor" name="VERBOSE"></a><!-- doxytag: member="inspircd_io.h::VERBOSE" ref="VERBOSE" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">#define VERBOSE 20 </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="inspircd__io_8h-source.html#l00029">29</a> of file <a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>. </td> + </tr> +</table> +<hr><h2>Function Documentation</h2> +<a class="anchor" name="BindSocket_28int_20sockfd_2C_20struct_20sockaddr_5Fin_20client_2C_20struct_20sockaddr_5Fin_20server_2C_20int_20port_2C_20char_20_2Aaddr_29"></a><!-- doxytag: member="inspircd_io.h::BindSocket" ref="BindSocket_28int_20sockfd_2C_20struct_20sockaddr_5Fin_20client_2C_20struct_20sockaddr_5Fin_20server_2C_20int_20port_2C_20char_20_2Aaddr_29" args="(int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char *addr)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int BindSocket </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">int </td> + <td class="mdname" nowrap> <em>sockfd</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>struct sockaddr_in </td> + <td class="mdname" nowrap> <em>client</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>struct sockaddr_in </td> + <td class="mdname" nowrap> <em>server</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>int </td> + <td class="mdname" nowrap> <em>port</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>addr</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="socket_8cpp-source.html#l00062">InspSocket::InspSocket()</a>. </td> + </tr> +</table> +<a class="anchor" name="DaemonSeed_28void_29"></a><!-- doxytag: member="inspircd_io.h::DaemonSeed" ref="DaemonSeed_28void_29" args="(void)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int DaemonSeed </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="Exit_28int_29"></a><!-- doxytag: member="inspircd_io.h::Exit" ref="Exit_28int_29" args="(int)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">void Exit </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">int </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="FileExists_28const_20char_20_2Afile_29"></a><!-- doxytag: member="inspircd_io.h::FileExists" ref="FileExists_28const_20char_20_2Afile_29" args="(const char *file)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">bool FileExists </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>file</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="OpenTCPSocket_28void_29"></a><!-- doxytag: member="inspircd_io.h::OpenTCPSocket" ref="OpenTCPSocket_28void_29" args="(void)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">int OpenTCPSocket </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Referenced by <a class="el" href="socket_8cpp-source.html#l00062">InspSocket::InspSocket()</a>. </td> + </tr> +</table> +<a class="anchor" name="Start_28void_29"></a><!-- doxytag: member="inspircd_io.h::Start" ref="Start_28void_29" args="(void)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">void Start </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="WritePID_28std_3A_3Astring_20filename_29"></a><!-- doxytag: member="inspircd_io.h::WritePID" ref="WritePID_28std_3A_3Astring_20filename_29" args="(std::string filename)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">void WritePID </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> </td> + <td class="mdname1" valign="top" nowrap> <em>filename</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:23 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> +</body> +</html> diff --git a/docs/module-doc/inspircd__io_8h__dep__incl.gif b/docs/module-doc/inspircd__io_8h__dep__incl.gif Binary files differnew file mode 100644 index 000000000..d9adbe194 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h__dep__incl.gif diff --git a/docs/module-doc/inspircd__io_8h__dep__incl.map b/docs/module-doc/inspircd__io_8h__dep__incl.map new file mode 100644 index 000000000..3d1893566 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h__dep__incl.map @@ -0,0 +1,4 @@ +base referer +rect $channels_8cpp-source.html 155,7 253,33 +rect $modules_8cpp-source.html 155,57 253,84 +rect $socket_8cpp-source.html 161,108 247,135 diff --git a/docs/module-doc/inspircd__io_8h__dep__incl.md5 b/docs/module-doc/inspircd__io_8h__dep__incl.md5 new file mode 100644 index 000000000..2c682c785 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h__dep__incl.md5 @@ -0,0 +1 @@ +7eca6ee03b8313db6051fb05e53f2d93
\ No newline at end of file diff --git a/docs/module-doc/inspircd__io_8h__incl.gif b/docs/module-doc/inspircd__io_8h__incl.gif Binary files differnew file mode 100644 index 000000000..f574379f0 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h__incl.gif diff --git a/docs/module-doc/inspircd__io_8h__incl.map b/docs/module-doc/inspircd__io_8h__incl.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h__incl.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/inspircd__io_8h__incl.md5 b/docs/module-doc/inspircd__io_8h__incl.md5 new file mode 100644 index 000000000..974329ef1 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h__incl.md5 @@ -0,0 +1 @@ +be7efab13a3353412e4a7bcda3182ee6
\ No newline at end of file diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index d6eb707ab..730e7e55f 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindexHL" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>InspIRCd Documentation</h1> <p> -<h3 align="center">1.0Betareleases </h3><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +<h3 align="center">1.0Betareleases </h3><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index e0fc63f50..22bba55ae 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -53,11 +53,11 @@ <a name="l00044"></a>00044 <span class="keywordtype">int</span> <a class="code" href="message_8h.html#cstatus_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">cstatus</a>(<a class="code" href="classuserrec.html">userrec</a> *user, <a class="code" href="classchanrec.html">chanrec</a> *chan); <a name="l00045"></a>00045 <span class="keywordtype">int</span> <a class="code" href="message_8h.html#has_5Fchannel_28userrec_20_2Au_2C_20chanrec_20_2Ac_29">has_channel</a>(<a class="code" href="classuserrec.html">userrec</a> *u, <a class="code" href="classchanrec.html">chanrec</a> *c); <a name="l00046"></a>00046 <span class="keywordtype">void</span> <a class="code" href="message_8h.html#TidyBan_28char_20_2Aban_29">TidyBan</a>(<span class="keywordtype">char</span> *ban); -<a name="l00047"></a>00047 <span class="keywordtype">char</span>* <a class="code" href="message_8h.html#chlist_28userrec_20_2Auser_2C_20userrec_20_2Asource_29">chlist</a>(<a class="code" href="classuserrec.html">userrec</a> *user, <a class="code" href="classuserrec.html">userrec</a>* source); +<a name="l00047"></a>00047 <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="message_8h.html#chlist_28userrec_20_2Auser_2C_20userrec_20_2Asource_29">chlist</a>(<a class="code" href="classuserrec.html">userrec</a> *user, <a class="code" href="classuserrec.html">userrec</a>* source); <a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="message_8h.html#send_5Fnetwork_5Fquit_28const_20char_20_2Anick_2C_20const_20char_20_2Areason_29">send_network_quit</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nick, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason); <a name="l00049"></a>00049 <a name="l00050"></a>00050 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index 946a3243c..a9d4b46f0 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -67,7 +67,7 @@ This graph shows which files directly or indirectly include this file:<p><center <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="message_8h.html#TidyBan_28char_20_2Aban_29">TidyBan</a> (char *ban)</td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="message_8h.html#chlist_28userrec_20_2Auser_2C_20userrec_20_2Asource_29">chlist</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classuserrec.html">userrec</a> *source)</td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="message_8h.html#chlist_28userrec_20_2Auser_2C_20userrec_20_2Asource_29">chlist</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classuserrec.html">userrec</a> *source)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="message_8h.html#send_5Fnetwork_5Fquit_28const_20char_20_2Anick_2C_20const_20char_20_2Areason_29">send_network_quit</a> (const char *nick, const char *reason)</td></tr> @@ -165,7 +165,7 @@ This graph shows which files directly or indirectly include this file:<p><center <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00565">Server::ChangeHost()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00492">Server::ChangeHost()</a>. </td> </tr> </table> <a class="anchor" name="ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29"></a><!-- doxytag: member="message.h::ChangeName" ref="ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29" args="(userrec *user, const char *gecos)" --><p> @@ -204,7 +204,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00565">Server::Chang <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00570">Server::ChangeGECOS()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00497">Server::ChangeGECOS()</a>. </td> </tr> </table> <a class="anchor" name="chlist_28userrec_20_2Auser_2C_20userrec_20_2Asource_29"></a><!-- doxytag: member="message.h::chlist" ref="chlist_28userrec_20_2Auser_2C_20userrec_20_2Asource_29" args="(userrec *user, userrec *source)" --><p> @@ -213,7 +213,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00570">Server::Chang <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top">char* chlist </td> + <td class="md" nowrap valign="top"><a class="el" href="namespaceirc.html#string">std::string</a> chlist </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td> <td class="mdname" nowrap> <em>user</em>, </td> @@ -345,7 +345,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00570">Server::Chang <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00595">Server::ChanMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00522">Server::ChanMode()</a>. </td> </tr> </table> <a class="anchor" name="common_5Fchannels_28userrec_20_2Au_2C_20userrec_20_2Au_32_29"></a><!-- doxytag: member="message.h::common_channels" ref="common_5Fchannels_28userrec_20_2Au_2C_20userrec_20_2Au_32_29" args="(userrec *u, userrec *u2)" --><p> @@ -384,7 +384,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00595">Server::ChanM <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00543">Server::CommonChannels()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00470">Server::CommonChannels()</a>. </td> </tr> </table> <a class="anchor" name="cstatus_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29"></a><!-- doxytag: member="message.h::cstatus" ref="cstatus_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29" args="(userrec *user, chanrec *chan)" --><p> @@ -460,7 +460,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00543">Server::Commo <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00600">Server::IsOnChannel()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00527">Server::IsOnChannel()</a>. </td> </tr> </table> <a class="anchor" name="hasumode_28userrec_20_2Auser_2C_20char_20mode_29"></a><!-- doxytag: member="message.h::hasumode" ref="hasumode_28userrec_20_2Auser_2C_20char_20mode_29" args="(userrec *user, char mode)" --><p> @@ -555,7 +555,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00600">Server::IsOnC <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00575">Server::IsNick()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00502">Server::IsNick()</a>. </td> </tr> </table> <a class="anchor" name="NonBlocking_28int_20s_29"></a><!-- doxytag: member="message.h::NonBlocking" ref="NonBlocking_28int_20s_29" args="(int s)" --><p> @@ -679,7 +679,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00575">Server::IsNic </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:23 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index da79230a4..b184dbb57 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -55,7 +55,7 @@ <a name="l00046"></a>00046 <a name="l00047"></a>00047 <a name="l00048"></a>00048 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index 72cdf4781..a1d6e7eed 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -593,7 +593,7 @@ This graph shows which files directly or indirectly include this file:<p><center <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00492">Server::SendMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00419">Server::SendMode()</a>. </td> </tr> </table> <a class="anchor" name="take_5Fban_28userrec_20_2Auser_2C_20char_20_2Adest_2C_20chanrec_20_2Achan_2C_20int_20status_29"></a><!-- doxytag: member="mode.h::take_ban" ref="take_5Fban_28userrec_20_2Auser_2C_20char_20_2Adest_2C_20chanrec_20_2Achan_2C_20int_20status_29" args="(userrec *user, char *dest, chanrec *chan, int status)" --><p> @@ -792,7 +792,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00492">Server::SendM </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:23 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index cb085bad6..9a36d4e5b 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -27,994 +27,922 @@ <a name="l00018"></a>00018 <a name="l00019"></a>00019 <span class="preprocessor">#include "inspircd_config.h"</span> <a name="l00020"></a>00020 <span class="preprocessor">#include "inspircd.h"</span> -<a name="l00021"></a>00021 <span class="preprocessor">#include "inspircd_io.h"</span> +<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="inspircd__io_8h.html">inspircd_io.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "inspircd_util.h"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include <unistd.h></span> <a name="l00024"></a>00024 <span class="preprocessor">#include <sys/errno.h></span> -<a name="l00025"></a>00025 -<a name="l00026"></a>00026 <span class="preprocessor">#ifdef USE_KQUEUE</span> -<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#include <sys/types.h></span> -<a name="l00028"></a>00028 <span class="preprocessor">#include <sys/event.h></span> -<a name="l00029"></a>00029 <span class="preprocessor">#include <sys/time.h></span> -<a name="l00030"></a>00030 <span class="preprocessor">#endif</span> -<a name="l00031"></a>00031 <span class="preprocessor"></span> -<a name="l00032"></a>00032 <span class="preprocessor">#ifdef USE_EPOLL</span> -<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#include <sys/epoll.h></span> -<a name="l00034"></a>00034 <span class="preprocessor">#endif</span> -<a name="l00035"></a>00035 <span class="preprocessor"></span> -<a name="l00036"></a>00036 <span class="preprocessor">#include <time.h></span> -<a name="l00037"></a>00037 <span class="preprocessor">#include <string></span> -<a name="l00038"></a>00038 <span class="preprocessor">#ifdef GCC3</span> -<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#include <ext/hash_map></span> -<a name="l00040"></a>00040 <span class="preprocessor">#else</span> -<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#include <hash_map></span> -<a name="l00042"></a>00042 <span class="preprocessor">#endif</span> -<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#include <map></span> -<a name="l00044"></a>00044 <span class="preprocessor">#include <sstream></span> -<a name="l00045"></a>00045 <span class="preprocessor">#include <vector></span> -<a name="l00046"></a>00046 <span class="preprocessor">#include <deque></span> -<a name="l00047"></a>00047 <span class="preprocessor">#include "<a class="code" href="users_8h.html">users.h</a>"</span> -<a name="l00048"></a>00048 <span class="preprocessor">#include "<a class="code" href="ctables_8h.html">ctables.h</a>"</span> -<a name="l00049"></a>00049 <span class="preprocessor">#include "globals.h"</span> -<a name="l00050"></a>00050 <span class="preprocessor">#include "<a class="code" href="modules_8h.html">modules.h</a>"</span> -<a name="l00051"></a>00051 <span class="preprocessor">#include "dynamic.h"</span> -<a name="l00052"></a>00052 <span class="preprocessor">#include "wildcard.h"</span> -<a name="l00053"></a>00053 <span class="preprocessor">#include "<a class="code" href="message_8h.html">message.h</a>"</span> -<a name="l00054"></a>00054 <span class="preprocessor">#include "<a class="code" href="mode_8h.html">mode.h</a>"</span> -<a name="l00055"></a>00055 <span class="preprocessor">#include "<a class="code" href="xline_8h.html">xline.h</a>"</span> -<a name="l00056"></a>00056 <span class="preprocessor">#include "<a class="code" href="commands_8h.html">commands.h</a>"</span> -<a name="l00057"></a>00057 <span class="preprocessor">#include "inspstring.h"</span> -<a name="l00058"></a>00058 <span class="preprocessor">#include "helperfuncs.h"</span> -<a name="l00059"></a>00059 <span class="preprocessor">#include "<a class="code" href="hashcomp_8h.html">hashcomp.h</a>"</span> -<a name="l00060"></a>00060 <span class="preprocessor">#include "<a class="code" href="socket_8h.html">socket.h</a>"</span> -<a name="l00061"></a>00061 <span class="preprocessor">#include "<a class="code" href="socketengine_8h.html">socketengine.h</a>"</span> -<a name="l00062"></a>00062 -<a name="l00063"></a>00063 <span class="keyword">extern</span> <a class="code" href="classSocketEngine.html">SocketEngine</a>* <a class="code" href="modules_8cpp.html#SE">SE</a>; -<a name="l00064"></a>00064 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a>; -<a name="l00065"></a>00065 <span class="keyword">extern</span> std::vector<Module*> <a class="code" href="channels_8cpp.html#modules">modules</a>; -<a name="l00066"></a>00066 <span class="keyword">extern</span> std::vector<ircd_module*> <a class="code" href="channels_8cpp.html#factory">factory</a>; +<a name="l00025"></a>00025 <span class="preprocessor">#include <time.h></span> +<a name="l00026"></a>00026 <span class="preprocessor">#include <string></span> +<a name="l00027"></a>00027 <span class="preprocessor">#ifdef GCC3</span> +<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#include <ext/hash_map></span> +<a name="l00029"></a>00029 <span class="preprocessor">#else</span> +<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#include <hash_map></span> +<a name="l00031"></a>00031 <span class="preprocessor">#endif</span> +<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#include <map></span> +<a name="l00033"></a>00033 <span class="preprocessor">#include <sstream></span> +<a name="l00034"></a>00034 <span class="preprocessor">#include <vector></span> +<a name="l00035"></a>00035 <span class="preprocessor">#include <deque></span> +<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="users_8h.html">users.h</a>"</span> +<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="ctables_8h.html">ctables.h</a>"</span> +<a name="l00038"></a>00038 <span class="preprocessor">#include "globals.h"</span> +<a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="modules_8h.html">modules.h</a>"</span> +<a name="l00040"></a>00040 <span class="preprocessor">#include "dynamic.h"</span> +<a name="l00041"></a>00041 <span class="preprocessor">#include "wildcard.h"</span> +<a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="message_8h.html">message.h</a>"</span> +<a name="l00043"></a>00043 <span class="preprocessor">#include "<a class="code" href="mode_8h.html">mode.h</a>"</span> +<a name="l00044"></a>00044 <span class="preprocessor">#include "<a class="code" href="xline_8h.html">xline.h</a>"</span> +<a name="l00045"></a>00045 <span class="preprocessor">#include "<a class="code" href="commands_8h.html">commands.h</a>"</span> +<a name="l00046"></a>00046 <span class="preprocessor">#include "inspstring.h"</span> +<a name="l00047"></a>00047 <span class="preprocessor">#include "helperfuncs.h"</span> +<a name="l00048"></a>00048 <span class="preprocessor">#include "<a class="code" href="hashcomp_8h.html">hashcomp.h</a>"</span> +<a name="l00049"></a>00049 <span class="preprocessor">#include "<a class="code" href="socket_8h.html">socket.h</a>"</span> +<a name="l00050"></a>00050 <span class="preprocessor">#include "<a class="code" href="socketengine_8h.html">socketengine.h</a>"</span> +<a name="l00051"></a>00051 <span class="preprocessor">#include "<a class="code" href="typedefs_8h.html">typedefs.h</a>"</span> +<a name="l00052"></a>00052 +<a name="l00053"></a>00053 <span class="keyword">extern</span> <a class="code" href="classSocketEngine.html">SocketEngine</a>* <a class="code" href="modules_8cpp.html#SE">SE</a>; +<a name="l00054"></a>00054 <span class="keyword">extern</span> <a class="code" href="classServerConfig.html">ServerConfig</a> *<a class="code" href="channels_8cpp.html#Config">Config</a>; +<a name="l00055"></a>00055 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a>; +<a name="l00056"></a>00056 <span class="keyword">extern</span> std::vector<Module*> <a class="code" href="channels_8cpp.html#modules">modules</a>; +<a name="l00057"></a>00057 <span class="keyword">extern</span> std::vector<ircd_module*> <a class="code" href="channels_8cpp.html#factory">factory</a>; +<a name="l00058"></a>00058 <span class="keyword">extern</span> std::vector<InspSocket*> <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>; +<a name="l00059"></a>00059 +<a name="l00060"></a>00060 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#TIME">TIME</a>; +<a name="l00061"></a>00061 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#WHOWAS_5FSTALE">WHOWAS_STALE</a>; +<a name="l00062"></a>00062 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#WHOWAS_5FMAX">WHOWAS_MAX</a>; +<a name="l00063"></a>00063 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#startup_5Ftime">startup_time</a>; +<a name="l00064"></a>00064 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#boundPortCount">boundPortCount</a>; +<a name="l00065"></a>00065 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#portCount">portCount</a>; +<a name="l00066"></a>00066 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#ports_5BMAXSOCKS_5D">ports</a>[MAXSOCKS]; <a name="l00067"></a>00067 -<a name="l00068"></a>00068 <span class="keyword">extern</span> std::vector<std::string> <a class="code" href="modules_8cpp.html#include_5Fstack">include_stack</a>; -<a name="l00069"></a>00069 -<a name="l00070"></a>00070 <span class="keyword">extern</span> std::vector<InspSocket*> <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>; -<a name="l00071"></a>00071 -<a name="l00072"></a>00072 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#TIME">TIME</a>; -<a name="l00073"></a>00073 -<a name="l00074"></a>00074 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#LogLevel">LogLevel</a>; -<a name="l00075"></a>00075 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a>[MAXBUF]; -<a name="l00076"></a>00076 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#Network_5BMAXBUF_5D">Network</a>[MAXBUF]; -<a name="l00077"></a>00077 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#ServerDesc_5BMAXBUF_5D">ServerDesc</a>[MAXBUF]; -<a name="l00078"></a>00078 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#AdminName_5BMAXBUF_5D">AdminName</a>[MAXBUF]; -<a name="l00079"></a>00079 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#AdminEmail_5BMAXBUF_5D">AdminEmail</a>[MAXBUF]; -<a name="l00080"></a>00080 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#AdminNick_5BMAXBUF_5D">AdminNick</a>[MAXBUF]; -<a name="l00081"></a>00081 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#diepass_5BMAXBUF_5D">diepass</a>[MAXBUF]; -<a name="l00082"></a>00082 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#restartpass_5BMAXBUF_5D">restartpass</a>[MAXBUF]; -<a name="l00083"></a>00083 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#motd_5BMAXBUF_5D">motd</a>[MAXBUF]; -<a name="l00084"></a>00084 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#rules_5BMAXBUF_5D">rules</a>[MAXBUF]; -<a name="l00085"></a>00085 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#list_5BMAXBUF_5D">list</a>[MAXBUF]; -<a name="l00086"></a>00086 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#PrefixQuit_5BMAXBUF_5D">PrefixQuit</a>[MAXBUF]; -<a name="l00087"></a>00087 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#DieValue_5BMAXBUF_5D">DieValue</a>[MAXBUF]; -<a name="l00088"></a>00088 -<a name="l00089"></a>00089 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#debugging">debugging</a>; -<a name="l00090"></a>00090 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#WHOWAS_5FSTALE">WHOWAS_STALE</a>; -<a name="l00091"></a>00091 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#WHOWAS_5FMAX">WHOWAS_MAX</a>; -<a name="l00092"></a>00092 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#DieDelay">DieDelay</a>; -<a name="l00093"></a>00093 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#startup_5Ftime">startup_time</a>; -<a name="l00094"></a>00094 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#NetBufferSize">NetBufferSize</a>; -<a name="l00095"></a>00095 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#MaxWhoResults">MaxWhoResults</a>; -<a name="l00096"></a>00096 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#nb_5Fstart">nb_start</a>; -<a name="l00097"></a>00097 -<a name="l00098"></a>00098 <span class="keyword">extern</span> std::vector<std::string> <a class="code" href="channels_8cpp.html#module_5Fnames">module_names</a>; -<a name="l00099"></a>00099 -<a name="l00100"></a>00100 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#boundPortCount">boundPortCount</a>; -<a name="l00101"></a>00101 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#portCount">portCount</a>; +<a name="l00068"></a>00068 <span class="keyword">class </span><a class="code" href="classServer.html">Server</a>; +<a name="l00069"></a>00069 <span class="keyword">extern</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="modules_8cpp.html#fd_5Fref_5Ftable_5B_36_35_35_33_36_5D">fd_ref_table</a>[65536]; +<a name="l00070"></a>00070 +<a name="l00071"></a>00071 <span class="keyword">extern</span> <a class="code" href="typedefs_8h.html#user_5Fhash">user_hash</a> <a class="code" href="modules_8cpp.html#clientlist">clientlist</a>; +<a name="l00072"></a>00072 <span class="keyword">extern</span> <a class="code" href="typedefs_8h.html#chan_5Fhash">chan_hash</a> <a class="code" href="modules_8cpp.html#chanlist">chanlist</a>; +<a name="l00073"></a>00073 <span class="keyword">extern</span> <a class="code" href="typedefs_8h.html#whowas_5Fhash">whowas_hash</a> <a class="code" href="modules_8cpp.html#whowas">whowas</a>; +<a name="l00074"></a>00074 <span class="keyword">extern</span> <a class="code" href="typedefs_8h.html#command_5Ftable">command_table</a> <a class="code" href="modules_8cpp.html#cmdlist">cmdlist</a>; +<a name="l00075"></a>00075 <span class="keyword">extern</span> <a class="code" href="typedefs_8h.html#address_5Fcache">address_cache</a> <a class="code" href="modules_8cpp.html#IP">IP</a>; +<a name="l00076"></a><a class="code" href="modules_8cpp.html#EMode">00076</a> <a class="code" href="typedefs_8h.html#ExtModeList">ExtModeList</a> <a class="code" href="modules_8cpp.html#EMode">EMode</a>; +<a name="l00077"></a>00077 +<a name="l00078"></a>00078 <span class="comment">// returns true if an extended mode character is in use</span> +<a name="l00079"></a><a class="code" href="modules_8cpp.html#ModeDefined_28char_20modechar_2C_20int_20type_29">00079</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#ModeDefined_28char_20modechar_2C_20int_20type_29">ModeDefined</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +<a name="l00080"></a>00080 { +<a name="l00081"></a>00081 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00082"></a>00082 { +<a name="l00083"></a>00083 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +<a name="l00084"></a>00084 { +<a name="l00085"></a>00085 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00086"></a>00086 } +<a name="l00087"></a>00087 } +<a name="l00088"></a>00088 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00089"></a>00089 } +<a name="l00090"></a>00090 +<a name="l00091"></a><a class="code" href="modules_8cpp.html#ModeIsListMode_28char_20modechar_2C_20int_20type_29">00091</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#ModeIsListMode_28char_20modechar_2C_20int_20type_29">ModeIsListMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +<a name="l00092"></a>00092 { +<a name="l00093"></a>00093 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00094"></a>00094 { +<a name="l00095"></a>00095 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) +<a name="l00096"></a>00096 { +<a name="l00097"></a>00097 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00098"></a>00098 } +<a name="l00099"></a>00099 } +<a name="l00100"></a>00100 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00101"></a>00101 } <a name="l00102"></a>00102 -<a name="l00103"></a>00103 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#ports_5BMAXSOCKS_5D">ports</a>[MAXSOCKS]; -<a name="l00104"></a>00104 -<a name="l00105"></a>00105 <span class="keyword">class </span><a class="code" href="classServer.html">Server</a>; -<a name="l00106"></a>00106 -<a name="l00107"></a>00107 <span class="keyword">extern</span> std::stringstream <a class="code" href="channels_8cpp.html#config_5Ff">config_f</a>; -<a name="l00108"></a>00108 -<a name="l00109"></a>00109 -<a name="l00110"></a>00110 -<a name="l00111"></a>00111 <span class="keyword">extern</span> FILE *<a class="code" href="channels_8cpp.html#log_5Ffile">log_file</a>; -<a name="l00112"></a>00112 -<a name="l00113"></a>00113 <span class="keyword">extern</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="modules_8cpp.html#fd_5Fref_5Ftable_5B_36_35_35_33_36_5D">fd_ref_table</a>[65536]; +<a name="l00103"></a><a class="code" href="modules_8cpp.html#ModeDefinedOper_28char_20modechar_2C_20int_20type_29">00103</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#ModeDefinedOper_28char_20modechar_2C_20int_20type_29">ModeDefinedOper</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +<a name="l00104"></a>00104 { +<a name="l00105"></a>00105 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00106"></a>00106 { +<a name="l00107"></a>00107 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) +<a name="l00108"></a>00108 { +<a name="l00109"></a>00109 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00110"></a>00110 } +<a name="l00111"></a>00111 } +<a name="l00112"></a>00112 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00113"></a>00113 } <a name="l00114"></a>00114 -<a name="l00115"></a><a class="code" href="modules_8cpp.html#user_5Fhash">00115</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, userrec*, nspace::hash<string>, <a class="code" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="code" href="modules_8cpp.html#user_5Fhash">user_hash</a>; -<a name="l00116"></a><a class="code" href="modules_8cpp.html#chan_5Fhash">00116</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, chanrec*, nspace::hash<string>, <a class="code" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="code" href="modules_8cpp.html#chan_5Fhash">chan_hash</a>; -<a name="l00117"></a><a class="code" href="modules_8cpp.html#address_5Fcache">00117</a> <span class="keyword">typedef</span> nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, <a class="code" href="structirc_1_1InAddr__HashComp.html">irc::InAddr_HashComp</a>> <a class="code" href="modules_8cpp.html#address_5Fcache">address_cache</a>; -<a name="l00118"></a><a class="code" href="modules_8cpp.html#whowas_5Fhash">00118</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, <a class="code" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="code" href="modules_8cpp.html#whowas_5Fhash">whowas_hash</a>; -<a name="l00119"></a><a class="code" href="modules_8cpp.html#command_5Ftable">00119</a> <span class="keyword">typedef</span> std::deque<command_t> <a class="code" href="modules_8cpp.html#command_5Ftable">command_table</a>; -<a name="l00120"></a>00120 -<a name="l00121"></a>00121 -<a name="l00122"></a>00122 <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#user_5Fhash">user_hash</a> <a class="code" href="modules_8cpp.html#clientlist">clientlist</a>; -<a name="l00123"></a>00123 <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#chan_5Fhash">chan_hash</a> <a class="code" href="modules_8cpp.html#chanlist">chanlist</a>; -<a name="l00124"></a>00124 <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#whowas_5Fhash">whowas_hash</a> <a class="code" href="modules_8cpp.html#whowas">whowas</a>; -<a name="l00125"></a>00125 <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#command_5Ftable">command_table</a> <a class="code" href="modules_8cpp.html#cmdlist">cmdlist</a>; -<a name="l00126"></a>00126 <span class="keyword">extern</span> <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> <a class="code" href="modules_8cpp.html#MOTD">MOTD</a>; -<a name="l00127"></a>00127 <span class="keyword">extern</span> <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> <a class="code" href="modules_8cpp.html#RULES">RULES</a>; -<a name="l00128"></a>00128 <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#address_5Fcache">address_cache</a> <a class="code" href="modules_8cpp.html#IP">IP</a>; -<a name="l00129"></a>00129 -<a name="l00130"></a>00130 -<a name="l00131"></a>00131 <span class="comment">// class type for holding an extended mode character - internal to core</span> -<a name="l00132"></a>00132 -<a name="l00133"></a><a class="code" href="classExtMode.html">00133</a> <span class="keyword">class </span><a class="code" href="classExtMode.html">ExtMode</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -<a name="l00134"></a>00134 { -<a name="l00135"></a>00135 <span class="keyword">public</span>: -<a name="l00136"></a><a class="code" href="classExtMode.html#modechar">00136</a> <span class="keywordtype">char</span> <a class="code" href="classExtMode.html#modechar">modechar</a>; -<a name="l00137"></a><a class="code" href="classExtMode.html#type">00137</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#type">type</a>; -<a name="l00138"></a><a class="code" href="classExtMode.html#needsoper">00138</a> <span class="keywordtype">bool</span> <a class="code" href="classExtMode.html#needsoper">needsoper</a>; -<a name="l00139"></a><a class="code" href="classExtMode.html#params_5Fwhen_5Fon">00139</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#params_5Fwhen_5Fon">params_when_on</a>; -<a name="l00140"></a><a class="code" href="classExtMode.html#params_5Fwhen_5Foff">00140</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#params_5Fwhen_5Foff">params_when_off</a>; -<a name="l00141"></a><a class="code" href="classExtMode.html#list">00141</a> <span class="keywordtype">bool</span> <a class="code" href="classExtMode.html#list">list</a>; -<a name="l00142"></a><a class="code" href="classExtMode.html#ExtMode_28char_20mc_2C_20int_20ty_2C_20bool_20oper_2C_20int_20p_5Fon_2C_20int_20p_5Foff_29">00142</a> <a class="code" href="classExtMode.html#ExtMode_28char_20mc_2C_20int_20ty_2C_20bool_20oper_2C_20int_20p_5Fon_2C_20int_20p_5Foff_29">ExtMode</a>(<span class="keywordtype">char</span> mc, <span class="keywordtype">int</span> ty, <span class="keywordtype">bool</span> oper, <span class="keywordtype">int</span> p_on, <span class="keywordtype">int</span> p_off) : <a class="code" href="classExtMode.html#modechar">modechar</a>(mc), <a class="code" href="classExtMode.html#type">type</a>(ty), <a class="code" href="classExtMode.html#needsoper">needsoper</a>(oper), <a class="code" href="classExtMode.html#params_5Fwhen_5Fon">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#params_5Fwhen_5Foff">params_when_off</a>(p_off) { }; -<a name="l00143"></a>00143 }; -<a name="l00144"></a>00144 -<a name="l00145"></a><a class="code" href="modules_8cpp.html#ExtModeList">00145</a> <span class="keyword">typedef</span> std::vector<ExtMode> <a class="code" href="modules_8cpp.html#ExtModeList">ExtModeList</a>; -<a name="l00146"></a><a class="code" href="modules_8cpp.html#ExtModeListIter">00146</a> <span class="keyword">typedef</span> ExtModeList::iterator <a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a>; -<a name="l00147"></a>00147 -<a name="l00148"></a>00148 -<a name="l00149"></a><a class="code" href="modules_8cpp.html#EMode">00149</a> <a class="code" href="modules_8cpp.html#ExtModeList">ExtModeList</a> <a class="code" href="modules_8cpp.html#EMode">EMode</a>; +<a name="l00115"></a>00115 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> +<a name="l00116"></a><a class="code" href="modules_8cpp.html#ModeDefinedOn_28char_20modechar_2C_20int_20type_29">00116</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#ModeDefinedOn_28char_20modechar_2C_20int_20type_29">ModeDefinedOn</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +<a name="l00117"></a>00117 { +<a name="l00118"></a>00118 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00119"></a>00119 { +<a name="l00120"></a>00120 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +<a name="l00121"></a>00121 { +<a name="l00122"></a>00122 <span class="keywordflow">return</span> i->params_when_on; +<a name="l00123"></a>00123 } +<a name="l00124"></a>00124 } +<a name="l00125"></a>00125 <span class="keywordflow">return</span> 0; +<a name="l00126"></a>00126 } +<a name="l00127"></a>00127 +<a name="l00128"></a>00128 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> +<a name="l00129"></a><a class="code" href="modules_8cpp.html#ModeDefinedOff_28char_20modechar_2C_20int_20type_29">00129</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#ModeDefinedOff_28char_20modechar_2C_20int_20type_29">ModeDefinedOff</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +<a name="l00130"></a>00130 { +<a name="l00131"></a>00131 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00132"></a>00132 { +<a name="l00133"></a>00133 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +<a name="l00134"></a>00134 { +<a name="l00135"></a>00135 <span class="keywordflow">return</span> i->params_when_off; +<a name="l00136"></a>00136 } +<a name="l00137"></a>00137 } +<a name="l00138"></a>00138 <span class="keywordflow">return</span> 0; +<a name="l00139"></a>00139 } +<a name="l00140"></a>00140 +<a name="l00141"></a>00141 <span class="comment">// returns true if an extended mode character is in use</span> +<a name="l00142"></a><a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">00142</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">DoAddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_on, <span class="keywordtype">int</span> params_off) +<a name="l00143"></a>00143 { +<a name="l00144"></a>00144 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#ModeDefined_28char_20modechar_2C_20int_20type_29">ModeDefined</a>(modechar,type)) { +<a name="l00145"></a>00145 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00146"></a>00146 } +<a name="l00147"></a>00147 <a class="code" href="modules_8cpp.html#EMode">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); +<a name="l00148"></a>00148 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00149"></a>00149 } <a name="l00150"></a>00150 -<a name="l00151"></a>00151 <span class="comment">// returns true if an extended mode character is in use</span> -<a name="l00152"></a><a class="code" href="modules_8cpp.html#ModeDefined_28char_20modechar_2C_20int_20type_29">00152</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#ModeDefined_28char_20modechar_2C_20int_20type_29">ModeDefined</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +<a name="l00151"></a>00151 <span class="comment">// turns a mode into a listmode</span> +<a name="l00152"></a><a class="code" href="modules_8cpp.html#ModeMakeList_28char_20modechar_29">00152</a> <span class="keywordtype">void</span> <a class="code" href="modules_8cpp.html#ModeMakeList_28char_20modechar_29">ModeMakeList</a>(<span class="keywordtype">char</span> modechar) <a name="l00153"></a>00153 { -<a name="l00154"></a>00154 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00154"></a>00154 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) <a name="l00155"></a>00155 { -<a name="l00156"></a>00156 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +<a name="l00156"></a>00156 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#MT_5FCHANNEL">MT_CHANNEL</a>)) <a name="l00157"></a>00157 { -<a name="l00158"></a>00158 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00159"></a>00159 } -<a name="l00160"></a>00160 } -<a name="l00161"></a>00161 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00162"></a>00162 } -<a name="l00163"></a>00163 -<a name="l00164"></a><a class="code" href="modules_8cpp.html#ModeIsListMode_28char_20modechar_2C_20int_20type_29">00164</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#ModeIsListMode_28char_20modechar_2C_20int_20type_29">ModeIsListMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -<a name="l00165"></a>00165 { -<a name="l00166"></a>00166 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00167"></a>00167 { -<a name="l00168"></a>00168 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) -<a name="l00169"></a>00169 { -<a name="l00170"></a>00170 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00171"></a>00171 } -<a name="l00172"></a>00172 } -<a name="l00173"></a>00173 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00174"></a>00174 } -<a name="l00175"></a>00175 -<a name="l00176"></a><a class="code" href="modules_8cpp.html#ModeDefinedOper_28char_20modechar_2C_20int_20type_29">00176</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#ModeDefinedOper_28char_20modechar_2C_20int_20type_29">ModeDefinedOper</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -<a name="l00177"></a>00177 { -<a name="l00178"></a>00178 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00179"></a>00179 { -<a name="l00180"></a>00180 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) -<a name="l00181"></a>00181 { -<a name="l00182"></a>00182 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00183"></a>00183 } -<a name="l00184"></a>00184 } -<a name="l00185"></a>00185 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00186"></a>00186 } -<a name="l00187"></a>00187 -<a name="l00188"></a>00188 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> -<a name="l00189"></a><a class="code" href="modules_8cpp.html#ModeDefinedOn_28char_20modechar_2C_20int_20type_29">00189</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#ModeDefinedOn_28char_20modechar_2C_20int_20type_29">ModeDefinedOn</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -<a name="l00190"></a>00190 { -<a name="l00191"></a>00191 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00192"></a>00192 { -<a name="l00193"></a>00193 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -<a name="l00194"></a>00194 { -<a name="l00195"></a>00195 <span class="keywordflow">return</span> i->params_when_on; -<a name="l00196"></a>00196 } -<a name="l00197"></a>00197 } -<a name="l00198"></a>00198 <span class="keywordflow">return</span> 0; -<a name="l00199"></a>00199 } -<a name="l00200"></a>00200 -<a name="l00201"></a>00201 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> -<a name="l00202"></a><a class="code" href="modules_8cpp.html#ModeDefinedOff_28char_20modechar_2C_20int_20type_29">00202</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#ModeDefinedOff_28char_20modechar_2C_20int_20type_29">ModeDefinedOff</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -<a name="l00203"></a>00203 { -<a name="l00204"></a>00204 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00205"></a>00205 { -<a name="l00206"></a>00206 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -<a name="l00207"></a>00207 { -<a name="l00208"></a>00208 <span class="keywordflow">return</span> i->params_when_off; -<a name="l00209"></a>00209 } -<a name="l00210"></a>00210 } -<a name="l00211"></a>00211 <span class="keywordflow">return</span> 0; +<a name="l00158"></a>00158 i->list = <span class="keyword">true</span>; +<a name="l00159"></a>00159 <span class="keywordflow">return</span>; +<a name="l00160"></a>00160 } +<a name="l00161"></a>00161 } +<a name="l00162"></a>00162 <span class="keywordflow">return</span>; +<a name="l00163"></a>00163 } +<a name="l00164"></a>00164 +<a name="l00165"></a>00165 <span class="comment">// version is a simple class for holding a modules version number</span> +<a name="l00166"></a>00166 +<a name="l00167"></a><a class="code" href="classVersion.html#Version_28int_20major_2C_20int_20minor_2C_20int_20revision_2C_20int_20build_2C_20int_20flags_29">00167</a> <a class="code" href="classVersion.html#Version_28int_20major_2C_20int_20minor_2C_20int_20revision_2C_20int_20build_2C_20int_20flags_29">Version::Version</a>(<span class="keywordtype">int</span> major, <span class="keywordtype">int</span> minor, <span class="keywordtype">int</span> revision, <span class="keywordtype">int</span> build, <span class="keywordtype">int</span> flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +<a name="l00168"></a>00168 +<a name="l00169"></a>00169 <span class="comment">// admin is a simple class for holding a server's administrative info</span> +<a name="l00170"></a>00170 +<a name="l00171"></a><a class="code" href="classAdmin.html#Admin_28std_3A_3Astring_20name_2C_20std_3A_3Astring_20email_2C_20std_3A_3Astring_20nick_29">00171</a> <a class="code" href="classAdmin.html#Admin_28std_3A_3Astring_20name_2C_20std_3A_3Astring_20email_2C_20std_3A_3Astring_20nick_29">Admin::Admin</a>(<a class="code" href="namespaceirc.html#string">std::string</a> name, <a class="code" href="namespaceirc.html#string">std::string</a> email, <a class="code" href="namespaceirc.html#string">std::string</a> nick) : Name(name), Email(email), Nick(nick) { }; +<a name="l00172"></a>00172 +<a name="l00173"></a><a class="code" href="classRequest.html#Request_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20Module_20_2Adst_29">00173</a> <a class="code" href="classRequest.html#Request_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20Module_20_2Adst_29">Request::Request</a>(<span class="keywordtype">char</span>* anydata, <a class="code" href="classModule.html">Module</a>* src, <a class="code" href="classModule.html">Module</a>* dst) : data(anydata), source(src), dest(dst) { }; +<a name="l00174"></a>00174 +<a name="l00175"></a><a class="code" href="classRequest.html#GetData_28_29">00175</a> <span class="keywordtype">char</span>* <a class="code" href="classRequest.html#GetData_28_29">Request::GetData</a>() +<a name="l00176"></a>00176 { +<a name="l00177"></a>00177 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#data">data</a>; +<a name="l00178"></a>00178 } +<a name="l00179"></a>00179 +<a name="l00180"></a><a class="code" href="classRequest.html#GetSource_28_29">00180</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classRequest.html#GetSource_28_29">Request::GetSource</a>() +<a name="l00181"></a>00181 { +<a name="l00182"></a>00182 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#source">source</a>; +<a name="l00183"></a>00183 } +<a name="l00184"></a>00184 +<a name="l00185"></a><a class="code" href="classRequest.html#GetDest_28_29">00185</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classRequest.html#GetDest_28_29">Request::GetDest</a>() +<a name="l00186"></a>00186 { +<a name="l00187"></a>00187 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#dest">dest</a>; +<a name="l00188"></a>00188 } +<a name="l00189"></a>00189 +<a name="l00190"></a><a class="code" href="classRequest.html#Send_28_29">00190</a> <span class="keywordtype">char</span>* <a class="code" href="classRequest.html#Send_28_29">Request::Send</a>() +<a name="l00191"></a>00191 { +<a name="l00192"></a>00192 <span class="keywordflow">if</span> (this->dest) +<a name="l00193"></a>00193 { +<a name="l00194"></a>00194 <span class="keywordflow">return</span> <a class="code" href="classRequest.html#dest">dest</a>-><a class="code" href="classModule.html#OnRequest_28Request_20_2Arequest_29">OnRequest</a>(<span class="keyword">this</span>); +<a name="l00195"></a>00195 } +<a name="l00196"></a>00196 <span class="keywordflow">else</span> +<a name="l00197"></a>00197 { +<a name="l00198"></a>00198 <span class="keywordflow">return</span> NULL; +<a name="l00199"></a>00199 } +<a name="l00200"></a>00200 } +<a name="l00201"></a>00201 +<a name="l00202"></a><a class="code" href="classEvent.html#Event_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20std_3A_3Astring_20eventid_29">00202</a> <a class="code" href="classEvent.html#Event_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20std_3A_3Astring_20eventid_29">Event::Event</a>(<span class="keywordtype">char</span>* anydata, <a class="code" href="classModule.html">Module</a>* src, <a class="code" href="namespaceirc.html#string">std::string</a> eventid) : data(anydata), source(src), id(eventid) { }; +<a name="l00203"></a>00203 +<a name="l00204"></a><a class="code" href="classEvent.html#GetData_28_29">00204</a> <span class="keywordtype">char</span>* <a class="code" href="classEvent.html#GetData_28_29">Event::GetData</a>() +<a name="l00205"></a>00205 { +<a name="l00206"></a>00206 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#data">data</a>; +<a name="l00207"></a>00207 } +<a name="l00208"></a>00208 +<a name="l00209"></a><a class="code" href="classEvent.html#GetSource_28_29">00209</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classEvent.html#GetSource_28_29">Event::GetSource</a>() +<a name="l00210"></a>00210 { +<a name="l00211"></a>00211 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#source">source</a>; <a name="l00212"></a>00212 } <a name="l00213"></a>00213 -<a name="l00214"></a>00214 <span class="comment">// returns true if an extended mode character is in use</span> -<a name="l00215"></a><a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">00215</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">DoAddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_on, <span class="keywordtype">int</span> params_off) -<a name="l00216"></a>00216 { -<a name="l00217"></a>00217 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#ModeDefined_28char_20modechar_2C_20int_20type_29">ModeDefined</a>(modechar,type)) { -<a name="l00218"></a>00218 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00219"></a>00219 } -<a name="l00220"></a>00220 <a class="code" href="modules_8cpp.html#EMode">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); -<a name="l00221"></a>00221 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00222"></a>00222 } -<a name="l00223"></a>00223 -<a name="l00224"></a>00224 <span class="comment">// turns a mode into a listmode</span> -<a name="l00225"></a><a class="code" href="modules_8cpp.html#ModeMakeList_28char_20modechar_29">00225</a> <span class="keywordtype">void</span> <a class="code" href="modules_8cpp.html#ModeMakeList_28char_20modechar_29">ModeMakeList</a>(<span class="keywordtype">char</span> modechar) -<a name="l00226"></a>00226 { -<a name="l00227"></a>00227 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00228"></a>00228 { -<a name="l00229"></a>00229 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#MT_5FCHANNEL">MT_CHANNEL</a>)) -<a name="l00230"></a>00230 { -<a name="l00231"></a>00231 i->list = <span class="keyword">true</span>; -<a name="l00232"></a>00232 <span class="keywordflow">return</span>; -<a name="l00233"></a>00233 } -<a name="l00234"></a>00234 } -<a name="l00235"></a>00235 <span class="keywordflow">return</span>; -<a name="l00236"></a>00236 } -<a name="l00237"></a>00237 -<a name="l00238"></a>00238 <span class="comment">// version is a simple class for holding a modules version number</span> -<a name="l00239"></a>00239 -<a name="l00240"></a><a class="code" href="classVersion.html#Version_28int_20major_2C_20int_20minor_2C_20int_20revision_2C_20int_20build_2C_20int_20flags_29">00240</a> <a class="code" href="classVersion.html#Version_28int_20major_2C_20int_20minor_2C_20int_20revision_2C_20int_20build_2C_20int_20flags_29">Version::Version</a>(<span class="keywordtype">int</span> major, <span class="keywordtype">int</span> minor, <span class="keywordtype">int</span> revision, <span class="keywordtype">int</span> build, <span class="keywordtype">int</span> flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; -<a name="l00241"></a>00241 -<a name="l00242"></a>00242 <span class="comment">// admin is a simple class for holding a server's administrative info</span> -<a name="l00243"></a>00243 -<a name="l00244"></a><a class="code" href="classAdmin.html#Admin_28std_3A_3Astring_20name_2C_20std_3A_3Astring_20email_2C_20std_3A_3Astring_20nick_29">00244</a> <a class="code" href="classAdmin.html#Admin_28std_3A_3Astring_20name_2C_20std_3A_3Astring_20email_2C_20std_3A_3Astring_20nick_29">Admin::Admin</a>(<a class="code" href="namespaceirc.html#string">std::string</a> name, <a class="code" href="namespaceirc.html#string">std::string</a> email, <a class="code" href="namespaceirc.html#string">std::string</a> nick) : Name(name), Email(email), Nick(nick) { }; -<a name="l00245"></a>00245 -<a name="l00246"></a><a class="code" href="classRequest.html#Request_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20Module_20_2Adst_29">00246</a> <a class="code" href="classRequest.html#Request_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20Module_20_2Adst_29">Request::Request</a>(<span class="keywordtype">char</span>* anydata, <a class="code" href="classModule.html">Module</a>* src, <a class="code" href="classModule.html">Module</a>* dst) : data(anydata), source(src), dest(dst) { }; -<a name="l00247"></a>00247 -<a name="l00248"></a><a class="code" href="classRequest.html#GetData_28_29">00248</a> <span class="keywordtype">char</span>* <a class="code" href="classRequest.html#GetData_28_29">Request::GetData</a>() -<a name="l00249"></a>00249 { -<a name="l00250"></a>00250 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#data">data</a>; -<a name="l00251"></a>00251 } -<a name="l00252"></a>00252 -<a name="l00253"></a><a class="code" href="classRequest.html#GetSource_28_29">00253</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classRequest.html#GetSource_28_29">Request::GetSource</a>() -<a name="l00254"></a>00254 { -<a name="l00255"></a>00255 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#source">source</a>; -<a name="l00256"></a>00256 } -<a name="l00257"></a>00257 -<a name="l00258"></a><a class="code" href="classRequest.html#GetDest_28_29">00258</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classRequest.html#GetDest_28_29">Request::GetDest</a>() -<a name="l00259"></a>00259 { -<a name="l00260"></a>00260 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#dest">dest</a>; -<a name="l00261"></a>00261 } -<a name="l00262"></a>00262 -<a name="l00263"></a><a class="code" href="classRequest.html#Send_28_29">00263</a> <span class="keywordtype">char</span>* <a class="code" href="classRequest.html#Send_28_29">Request::Send</a>() -<a name="l00264"></a>00264 { -<a name="l00265"></a>00265 <span class="keywordflow">if</span> (this->dest) -<a name="l00266"></a>00266 { -<a name="l00267"></a>00267 <span class="keywordflow">return</span> <a class="code" href="classRequest.html#dest">dest</a>-><a class="code" href="classModule.html#OnRequest_28Request_20_2Arequest_29">OnRequest</a>(<span class="keyword">this</span>); -<a name="l00268"></a>00268 } -<a name="l00269"></a>00269 <span class="keywordflow">else</span> -<a name="l00270"></a>00270 { -<a name="l00271"></a>00271 <span class="keywordflow">return</span> NULL; -<a name="l00272"></a>00272 } -<a name="l00273"></a>00273 } -<a name="l00274"></a>00274 -<a name="l00275"></a><a class="code" href="classEvent.html#Event_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20std_3A_3Astring_20eventid_29">00275</a> <a class="code" href="classEvent.html#Event_28char_20_2Aanydata_2C_20Module_20_2Asrc_2C_20std_3A_3Astring_20eventid_29">Event::Event</a>(<span class="keywordtype">char</span>* anydata, <a class="code" href="classModule.html">Module</a>* src, <a class="code" href="namespaceirc.html#string">std::string</a> eventid) : data(anydata), source(src), id(eventid) { }; -<a name="l00276"></a>00276 -<a name="l00277"></a><a class="code" href="classEvent.html#GetData_28_29">00277</a> <span class="keywordtype">char</span>* <a class="code" href="classEvent.html#GetData_28_29">Event::GetData</a>() -<a name="l00278"></a>00278 { -<a name="l00279"></a>00279 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#data">data</a>; -<a name="l00280"></a>00280 } -<a name="l00281"></a>00281 -<a name="l00282"></a><a class="code" href="classEvent.html#GetSource_28_29">00282</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classEvent.html#GetSource_28_29">Event::GetSource</a>() -<a name="l00283"></a>00283 { -<a name="l00284"></a>00284 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#source">source</a>; -<a name="l00285"></a>00285 } -<a name="l00286"></a>00286 -<a name="l00287"></a><a class="code" href="classEvent.html#Send_28_29">00287</a> <span class="keywordtype">char</span>* <a class="code" href="classEvent.html#Send_28_29">Event::Send</a>() -<a name="l00288"></a>00288 { -<a name="l00289"></a>00289 <a class="code" href="modules_8h.html#FOREACH_5FMOD">FOREACH_MOD</a> OnEvent(<span class="keyword">this</span>); -<a name="l00290"></a>00290 <span class="keywordflow">return</span> NULL; -<a name="l00291"></a>00291 } -<a name="l00292"></a>00292 -<a name="l00293"></a><a class="code" href="classEvent.html#GetEventID_28_29">00293</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classEvent.html#GetEventID_28_29">Event::GetEventID</a>() -<a name="l00294"></a>00294 { -<a name="l00295"></a>00295 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#id">id</a>; -<a name="l00296"></a>00296 } -<a name="l00297"></a>00297 -<a name="l00298"></a>00298 -<a name="l00299"></a>00299 <span class="comment">// These declarations define the behavours of the base class Module (which does nothing at all)</span> -<a name="l00300"></a>00300 -<a name="l00301"></a><a class="code" href="classModule.html#Module_28Server_20_2AMe_29">00301</a> <a class="code" href="classModule.html#Module_28Server_20_2AMe_29">Module::Module</a>(<a class="code" href="classServer.html">Server</a>* Me) { } -<a name="l00302"></a><a class="code" href="classModule.html#_7EModule_28_29">00302</a> <a class="code" href="classModule.html#_7EModule_28_29">Module::~Module</a>() { } -<a name="l00303"></a><a class="code" href="classModule.html#OnUserConnect_28userrec_20_2Auser_29">00303</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserConnect_28userrec_20_2Auser_29">Module::OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } -<a name="l00304"></a><a class="code" href="classModule.html#OnUserQuit_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">00304</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserQuit_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">Module::OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> message) { } -<a name="l00305"></a><a class="code" href="classModule.html#OnUserDisconnect_28userrec_20_2Auser_29">00305</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserDisconnect_28userrec_20_2Auser_29">Module::OnUserDisconnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } -<a name="l00306"></a><a class="code" href="classModule.html#OnUserJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">00306</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">Module::OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } -<a name="l00307"></a><a class="code" href="classModule.html#OnUserPart_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">00307</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserPart_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">Module::OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } -<a name="l00308"></a><a class="code" href="classModule.html#OnRehash_28std_3A_3Astring_20parameter_29">00308</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRehash_28std_3A_3Astring_20parameter_29">Module::OnRehash</a>(<a class="code" href="namespaceirc.html#string">std::string</a> parameter) { } -<a name="l00309"></a><a class="code" href="classModule.html#OnServerRaw_28std_3A_3Astring_20_26raw_2C_20bool_20inbound_2C_20userrec_20_2Auser_29">00309</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnServerRaw_28std_3A_3Astring_20_26raw_2C_20bool_20inbound_2C_20userrec_20_2Auser_29">Module::OnServerRaw</a>(<a class="code" href="namespaceirc.html#string">std::string</a> &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user) { } -<a name="l00310"></a><a class="code" href="classModule.html#OnUserPreJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20const_20char_20_2Acname_29">00310</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20const_20char_20_2Acname_29">Module::OnUserPreJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keyword">const</span> <span class="keywordtype">char</span>* cname) { <span class="keywordflow">return</span> 0; } -<a name="l00311"></a><a class="code" href="classModule.html#OnExtendedMode_28userrec_20_2Auser_2C_20void_20_2Atarget_2C_20char_20modechar_2C_20int_20type_2C_20bool_20mode_5Fon_2C_20string_5Flist_20_26params_29">00311</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnExtendedMode_28userrec_20_2Auser_2C_20void_20_2Atarget_2C_20char_20modechar_2C_20int_20type_2C_20bool_20mode_5Fon_2C_20string_5Flist_20_26params_29">Module::OnExtendedMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* target, <span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> mode_on, <a class="code" href="modules_8h.html#string_5Flist">string_list</a> &params) { <span class="keywordflow">return</span> <span class="keyword">false</span>; } -<a name="l00312"></a><a class="code" href="classModule.html#OnMode_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">00312</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnMode_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">Module::OnMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text) { }; -<a name="l00313"></a><a class="code" href="classModule.html#GetVersion_28_29">00313</a> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#GetVersion_28_29">Module::GetVersion</a>() { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0,<a class="code" href="modules_8h.html#VF_5FVENDOR">VF_VENDOR</a>); } -<a name="l00314"></a><a class="code" href="classModule.html#OnOper_28userrec_20_2Auser_2C_20std_3A_3Astring_20opertype_29">00314</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnOper_28userrec_20_2Auser_2C_20std_3A_3Astring_20opertype_29">Module::OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> opertype) { }; -<a name="l00315"></a><a class="code" href="classModule.html#OnInfo_28userrec_20_2Auser_29">00315</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnInfo_28userrec_20_2Auser_29">Module::OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; -<a name="l00316"></a><a class="code" href="classModule.html#OnWhois_28userrec_20_2Asource_2C_20userrec_20_2Adest_29">00316</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnWhois_28userrec_20_2Asource_2C_20userrec_20_2Adest_29">Module::OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest) { }; -<a name="l00317"></a><a class="code" href="classModule.html#OnUserPreInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">00317</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">Module::OnUserPreInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel) { <span class="keywordflow">return</span> 0; }; -<a name="l00318"></a><a class="code" href="classModule.html#OnUserPreMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">00318</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">Module::OnUserPreMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> &text) { <span class="keywordflow">return</span> 0; }; -<a name="l00319"></a><a class="code" href="classModule.html#OnUserPreNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">00319</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">Module::OnUserPreNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> &text) { <span class="keywordflow">return</span> 0; }; -<a name="l00320"></a><a class="code" href="classModule.html#OnUserPreNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20newnick_29">00320</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20newnick_29">Module::OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newnick) { <span class="keywordflow">return</span> 0; }; -<a name="l00321"></a><a class="code" href="classModule.html#OnUserPostNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20oldnick_29">00321</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserPostNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20oldnick_29">Module::OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> oldnick) { }; -<a name="l00322"></a><a class="code" href="classModule.html#OnAccessCheck_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_2C_20int_20access_5Ftype_29">00322</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnAccessCheck_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_2C_20int_20access_5Ftype_29">Module::OnAccessCheck</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel,<span class="keywordtype">int</span> access_type) { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#ACR_5FDEFAULT">ACR_DEFAULT</a>; }; -<a name="l00323"></a><a class="code" href="classModule.html#On_30_30_35Numeric_28std_3A_3Astring_20_26output_29">00323</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#On_30_30_35Numeric_28std_3A_3Astring_20_26output_29">Module::On005Numeric</a>(<a class="code" href="namespaceirc.html#string">std::string</a> &output) { }; -<a name="l00324"></a><a class="code" href="classModule.html#OnKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">00324</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">Module::OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, <a class="code" href="namespaceirc.html#string">std::string</a> reason) { <span class="keywordflow">return</span> 0; }; -<a name="l00325"></a><a class="code" href="classModule.html#OnLoadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">00325</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnLoadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">Module::OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,<a class="code" href="namespaceirc.html#string">std::string</a> name) { }; -<a name="l00326"></a><a class="code" href="classModule.html#OnUnloadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">00326</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUnloadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">Module::OnUnloadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,<a class="code" href="namespaceirc.html#string">std::string</a> name) { }; -<a name="l00327"></a><a class="code" href="classModule.html#OnBackgroundTimer_28time_5Ft_20curtime_29">00327</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnBackgroundTimer_28time_5Ft_20curtime_29">Module::OnBackgroundTimer</a>(time_t curtime) { }; -<a name="l00328"></a><a class="code" href="classModule.html#OnSendList_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_2C_20char_20mode_29">00328</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSendList_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_2C_20char_20mode_29">Module::OnSendList</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel, <span class="keywordtype">char</span> mode) { }; -<a name="l00329"></a><a class="code" href="classModule.html#OnPreCommand_28std_3A_3Astring_20command_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">00329</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnPreCommand_28std_3A_3Astring_20command_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">Module::OnPreCommand</a>(<a class="code" href="namespaceirc.html#string">std::string</a> command, <span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user) { <span class="keywordflow">return</span> 0; }; -<a name="l00330"></a><a class="code" href="classModule.html#OnCheckReady_28userrec_20_2Auser_29">00330</a> <span class="keywordtype">bool</span> <a class="code" href="classModule.html#OnCheckReady_28userrec_20_2Auser_29">Module::OnCheckReady</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; -<a name="l00331"></a><a class="code" href="classModule.html#OnUserRegister_28userrec_20_2Auser_29">00331</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserRegister_28userrec_20_2Auser_29">Module::OnUserRegister</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; -<a name="l00332"></a><a class="code" href="classModule.html#OnUserPreKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">00332</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">Module::OnUserPreKick</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> reason) { <span class="keywordflow">return</span> 0; }; -<a name="l00333"></a><a class="code" href="classModule.html#OnUserKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">00333</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">Module::OnUserKick</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> reason) { }; -<a name="l00334"></a><a class="code" href="classModule.html#OnRawMode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20char_20mode_2C_20std_3A_3Astring_20param_2C_20bool_20adding_2C_20int_20pcnt_29">00334</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawMode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20char_20mode_2C_20std_3A_3Astring_20param_2C_20bool_20adding_2C_20int_20pcnt_29">Module::OnRawMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keywordtype">char</span> mode, <a class="code" href="namespaceirc.html#string">std::string</a> param, <span class="keywordtype">bool</span> adding, <span class="keywordtype">int</span> pcnt) { <span class="keywordflow">return</span> 0; }; -<a name="l00335"></a><a class="code" href="classModule.html#OnCheckInvite_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">00335</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckInvite_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">Module::OnCheckInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan) { <span class="keywordflow">return</span> 0; }; -<a name="l00336"></a><a class="code" href="classModule.html#OnCheckKey_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20keygiven_29">00336</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckKey_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20keygiven_29">Module::OnCheckKey</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> keygiven) { <span class="keywordflow">return</span> 0; }; -<a name="l00337"></a><a class="code" href="classModule.html#OnCheckLimit_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">00337</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckLimit_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">Module::OnCheckLimit</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan) { <span class="keywordflow">return</span> 0; }; -<a name="l00338"></a><a class="code" href="classModule.html#OnCheckBan_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">00338</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckBan_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">Module::OnCheckBan</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan) { <span class="keywordflow">return</span> 0; }; -<a name="l00339"></a><a class="code" href="classModule.html#OnStats_28char_20symbol_29">00339</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnStats_28char_20symbol_29">Module::OnStats</a>(<span class="keywordtype">char</span> symbol) { }; -<a name="l00340"></a><a class="code" href="classModule.html#OnChangeLocalUserHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">00340</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnChangeLocalUserHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">Module::OnChangeLocalUserHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost) { <span class="keywordflow">return</span> 0; }; -<a name="l00341"></a><a class="code" href="classModule.html#OnChangeLocalUserGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">00341</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnChangeLocalUserGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">Module::OnChangeLocalUserGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost) { <span class="keywordflow">return</span> 0; }; -<a name="l00342"></a><a class="code" href="classModule.html#OnLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">00342</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">Module::OnLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> topic) { <span class="keywordflow">return</span> 0; }; -<a name="l00343"></a><a class="code" href="classModule.html#OnEvent_28Event_20_2Aevent_29">00343</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnEvent_28Event_20_2Aevent_29">Module::OnEvent</a>(<a class="code" href="classEvent.html">Event</a>* event) { <span class="keywordflow">return</span>; }; -<a name="l00344"></a><a class="code" href="classModule.html#OnRequest_28Request_20_2Arequest_29">00344</a> <span class="keywordtype">char</span>* <a class="code" href="classModule.html#OnRequest_28Request_20_2Arequest_29">Module::OnRequest</a>(<a class="code" href="classRequest.html">Request</a>* request) { <span class="keywordflow">return</span> NULL; }; -<a name="l00345"></a><a class="code" href="classModule.html#OnOperCompare_28std_3A_3Astring_20password_2C_20std_3A_3Astring_20input_29">00345</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnOperCompare_28std_3A_3Astring_20password_2C_20std_3A_3Astring_20input_29">Module::OnOperCompare</a>(<a class="code" href="namespaceirc.html#string">std::string</a> password, <a class="code" href="namespaceirc.html#string">std::string</a> input) { <span class="keywordflow">return</span> 0; }; -<a name="l00346"></a><a class="code" href="classModule.html#OnGlobalOper_28userrec_20_2Auser_29">00346</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGlobalOper_28userrec_20_2Auser_29">Module::OnGlobalOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; -<a name="l00347"></a><a class="code" href="classModule.html#OnGlobalConnect_28userrec_20_2Auser_29">00347</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGlobalConnect_28userrec_20_2Auser_29">Module::OnGlobalConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; -<a name="l00348"></a><a class="code" href="classModule.html#OnAddBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">00348</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnAddBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">Module::OnAddBan</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classchanrec.html">chanrec</a>* channel,<a class="code" href="namespaceirc.html#string">std::string</a> banmask) { <span class="keywordflow">return</span> 0; }; -<a name="l00349"></a><a class="code" href="classModule.html#OnDelBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">00349</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnDelBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">Module::OnDelBan</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classchanrec.html">chanrec</a>* channel,<a class="code" href="namespaceirc.html#string">std::string</a> banmask) { <span class="keywordflow">return</span> 0; }; -<a name="l00350"></a><a class="code" href="classModule.html#OnRawSocketAccept_28int_20fd_2C_20std_3A_3Astring_20ip_2C_20int_20localport_29">00350</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRawSocketAccept_28int_20fd_2C_20std_3A_3Astring_20ip_2C_20int_20localport_29">Module::OnRawSocketAccept</a>(<span class="keywordtype">int</span> fd, <a class="code" href="namespaceirc.html#string">std::string</a> ip, <span class="keywordtype">int</span> localport) { }; -<a name="l00351"></a><a class="code" href="classModule.html#OnRawSocketWrite_28int_20fd_2C_20char_20_2Abuffer_2C_20int_20count_29">00351</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawSocketWrite_28int_20fd_2C_20char_20_2Abuffer_2C_20int_20count_29">Module::OnRawSocketWrite</a>(<span class="keywordtype">int</span> fd, <span class="keywordtype">char</span>* buffer, <span class="keywordtype">int</span> count) { <span class="keywordflow">return</span> 0; }; -<a name="l00352"></a><a class="code" href="classModule.html#OnRawSocketClose_28int_20fd_29">00352</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRawSocketClose_28int_20fd_29">Module::OnRawSocketClose</a>(<span class="keywordtype">int</span> fd) { }; -<a name="l00353"></a><a class="code" href="classModule.html#OnRawSocketRead_28int_20fd_2C_20char_20_2Abuffer_2C_20unsigned_20int_20count_2C_20int_20_26readresult_29">00353</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawSocketRead_28int_20fd_2C_20char_20_2Abuffer_2C_20unsigned_20int_20count_2C_20int_20_26readresult_29">Module::OnRawSocketRead</a>(<span class="keywordtype">int</span> fd, <span class="keywordtype">char</span>* buffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> count, <span class="keywordtype">int</span> &readresult) { <span class="keywordflow">return</span> 0; }; -<a name="l00354"></a><a class="code" href="classModule.html#OnUserMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">00354</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">Module::OnUserMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text) { }; -<a name="l00355"></a><a class="code" href="classModule.html#OnUserNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">00355</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">Module::OnUserNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text) { }; -<a name="l00356"></a><a class="code" href="classModule.html#OnRemoteKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">00356</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRemoteKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">Module::OnRemoteKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, <a class="code" href="namespaceirc.html#string">std::string</a> reason) { }; -<a name="l00357"></a><a class="code" href="classModule.html#OnUserInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">00357</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">Module::OnUserInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel) { }; -<a name="l00358"></a><a class="code" href="classModule.html#OnPostLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">00358</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnPostLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">Module::OnPostLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> topic) { }; -<a name="l00359"></a><a class="code" href="classModule.html#OnGetServerDescription_28std_3A_3Astring_20servername_2C_20std_3A_3Astring_20_26description_29">00359</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGetServerDescription_28std_3A_3Astring_20servername_2C_20std_3A_3Astring_20_26description_29">Module::OnGetServerDescription</a>(<a class="code" href="namespaceirc.html#string">std::string</a> servername,<a class="code" href="namespaceirc.html#string">std::string</a> &description) { }; -<a name="l00360"></a><a class="code" href="classModule.html#OnSyncUser_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">00360</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncUser_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">Module::OnSyncUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classModule.html">Module</a>* proto, <span class="keywordtype">void</span>* opaque) { }; -<a name="l00361"></a><a class="code" href="classModule.html#OnSyncChannel_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">00361</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncChannel_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">Module::OnSyncChannel</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="classModule.html">Module</a>* proto, <span class="keywordtype">void</span>* opaque) { }; -<a name="l00362"></a><a class="code" href="classModule.html#ProtoSendMode_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20modeline_29">00362</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#ProtoSendMode_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20modeline_29">Module::ProtoSendMode</a>(<span class="keywordtype">void</span>* opaque, <span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> modeline) { }; -<a name="l00363"></a><a class="code" href="classModule.html#OnSyncChannelMetaData_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">00363</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncChannelMetaData_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">Module::OnSyncChannelMetaData</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="classModule.html">Module</a>* proto,<span class="keywordtype">void</span>* opaque, <a class="code" href="namespaceirc.html#string">std::string</a> extname) { }; -<a name="l00364"></a><a class="code" href="classModule.html#OnSyncUserMetaData_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">00364</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncUserMetaData_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">Module::OnSyncUserMetaData</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classModule.html">Module</a>* proto,<span class="keywordtype">void</span>* opaque, <a class="code" href="namespaceirc.html#string">std::string</a> extname) { }; -<a name="l00365"></a><a class="code" href="classModule.html#OnDecodeMetaData_28int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">00365</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDecodeMetaData_28int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">Module::OnDecodeMetaData</a>(<span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> extname, <a class="code" href="namespaceirc.html#string">std::string</a> extdata) { }; -<a name="l00366"></a><a class="code" href="classModule.html#ProtoSendMetaData_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">00366</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#ProtoSendMetaData_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">Module::ProtoSendMetaData</a>(<span class="keywordtype">void</span>* opaque, <span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> extname, <a class="code" href="namespaceirc.html#string">std::string</a> extdata) { }; -<a name="l00367"></a><a class="code" href="classModule.html#OnWallops_28userrec_20_2Auser_2C_20std_3A_3Astring_20text_29">00367</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnWallops_28userrec_20_2Auser_2C_20std_3A_3Astring_20text_29">Module::OnWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> text) { }; -<a name="l00368"></a><a class="code" href="classModule.html#OnChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">00368</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">Module::OnChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost) { }; -<a name="l00369"></a><a class="code" href="classModule.html#OnChangeName_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">00369</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnChangeName_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">Module::OnChangeName</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> gecos) { }; -<a name="l00370"></a><a class="code" href="classModule.html#OnAddGLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00370</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddGLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Module::OnAddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; -<a name="l00371"></a><a class="code" href="classModule.html#OnAddZLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipmask_29">00371</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddZLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipmask_29">Module::OnAddZLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> ipmask) { }; -<a name="l00372"></a><a class="code" href="classModule.html#OnAddKLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00372</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddKLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Module::OnAddKLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; -<a name="l00373"></a><a class="code" href="classModule.html#OnAddQLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickmask_29">00373</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddQLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickmask_29">Module::OnAddQLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> nickmask) { }; -<a name="l00374"></a><a class="code" href="classModule.html#OnAddELine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00374</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddELine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Module::OnAddELine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; -<a name="l00375"></a><a class="code" href="classModule.html#OnDelGLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">00375</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelGLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">Module::OnDelGLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; -<a name="l00376"></a><a class="code" href="classModule.html#OnDelZLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20ipmask_29">00376</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelZLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20ipmask_29">Module::OnDelZLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> ipmask) { }; -<a name="l00377"></a><a class="code" href="classModule.html#OnDelKLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">00377</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelKLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">Module::OnDelKLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; -<a name="l00378"></a><a class="code" href="classModule.html#OnDelQLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20nickmask_29">00378</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelQLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20nickmask_29">Module::OnDelQLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> nickmask) { }; -<a name="l00379"></a><a class="code" href="classModule.html#OnDelELine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">00379</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelELine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">Module::OnDelELine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; -<a name="l00380"></a><a class="code" href="classModule.html#OnCleanup_28int_20target_5Ftype_2C_20void_20_2Aitem_29">00380</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnCleanup_28int_20target_5Ftype_2C_20void_20_2Aitem_29">Module::OnCleanup</a>(<span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* item) { }; -<a name="l00381"></a>00381 -<a name="l00382"></a>00382 <span class="comment">/* server is a wrapper class that provides methods to all of the C-style</span> -<a name="l00383"></a>00383 <span class="comment"> * exports in the core</span> -<a name="l00384"></a>00384 <span class="comment"> */</span> -<a name="l00385"></a>00385 -<a name="l00386"></a><a class="code" href="classServer.html#Server_28_29">00386</a> <a class="code" href="classServer.html#Server_28_29">Server::Server</a>() -<a name="l00387"></a>00387 { -<a name="l00388"></a>00388 } -<a name="l00389"></a>00389 -<a name="l00390"></a><a class="code" href="classServer.html#_7EServer_28_29">00390</a> <a class="code" href="classServer.html#_7EServer_28_29">Server::~Server</a>() -<a name="l00391"></a>00391 { +<a name="l00214"></a><a class="code" href="classEvent.html#Send_28_29">00214</a> <span class="keywordtype">char</span>* <a class="code" href="classEvent.html#Send_28_29">Event::Send</a>() +<a name="l00215"></a>00215 { +<a name="l00216"></a>00216 <a class="code" href="modules_8h.html#FOREACH_5FMOD">FOREACH_MOD</a> OnEvent(<span class="keyword">this</span>); +<a name="l00217"></a>00217 <span class="keywordflow">return</span> NULL; +<a name="l00218"></a>00218 } +<a name="l00219"></a>00219 +<a name="l00220"></a><a class="code" href="classEvent.html#GetEventID_28_29">00220</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classEvent.html#GetEventID_28_29">Event::GetEventID</a>() +<a name="l00221"></a>00221 { +<a name="l00222"></a>00222 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#id">id</a>; +<a name="l00223"></a>00223 } +<a name="l00224"></a>00224 +<a name="l00225"></a>00225 +<a name="l00226"></a>00226 <span class="comment">// These declarations define the behavours of the base class Module (which does nothing at all)</span> +<a name="l00227"></a>00227 +<a name="l00228"></a><a class="code" href="classModule.html#Module_28Server_20_2AMe_29">00228</a> <a class="code" href="classModule.html#Module_28Server_20_2AMe_29">Module::Module</a>(<a class="code" href="classServer.html">Server</a>* Me) { } +<a name="l00229"></a><a class="code" href="classModule.html#_7EModule_28_29">00229</a> <a class="code" href="classModule.html#_7EModule_28_29">Module::~Module</a>() { } +<a name="l00230"></a><a class="code" href="classModule.html#OnUserConnect_28userrec_20_2Auser_29">00230</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserConnect_28userrec_20_2Auser_29">Module::OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } +<a name="l00231"></a><a class="code" href="classModule.html#OnUserQuit_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">00231</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserQuit_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">Module::OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> message) { } +<a name="l00232"></a><a class="code" href="classModule.html#OnUserDisconnect_28userrec_20_2Auser_29">00232</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserDisconnect_28userrec_20_2Auser_29">Module::OnUserDisconnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } +<a name="l00233"></a><a class="code" href="classModule.html#OnUserJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">00233</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">Module::OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } +<a name="l00234"></a><a class="code" href="classModule.html#OnUserPart_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">00234</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserPart_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">Module::OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } +<a name="l00235"></a><a class="code" href="classModule.html#OnRehash_28std_3A_3Astring_20parameter_29">00235</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRehash_28std_3A_3Astring_20parameter_29">Module::OnRehash</a>(<a class="code" href="namespaceirc.html#string">std::string</a> parameter) { } +<a name="l00236"></a><a class="code" href="classModule.html#OnServerRaw_28std_3A_3Astring_20_26raw_2C_20bool_20inbound_2C_20userrec_20_2Auser_29">00236</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnServerRaw_28std_3A_3Astring_20_26raw_2C_20bool_20inbound_2C_20userrec_20_2Auser_29">Module::OnServerRaw</a>(<a class="code" href="namespaceirc.html#string">std::string</a> &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user) { } +<a name="l00237"></a><a class="code" href="classModule.html#OnUserPreJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20const_20char_20_2Acname_29">00237</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20const_20char_20_2Acname_29">Module::OnUserPreJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keyword">const</span> <span class="keywordtype">char</span>* cname) { <span class="keywordflow">return</span> 0; } +<a name="l00238"></a><a class="code" href="classModule.html#OnExtendedMode_28userrec_20_2Auser_2C_20void_20_2Atarget_2C_20char_20modechar_2C_20int_20type_2C_20bool_20mode_5Fon_2C_20string_5Flist_20_26params_29">00238</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnExtendedMode_28userrec_20_2Auser_2C_20void_20_2Atarget_2C_20char_20modechar_2C_20int_20type_2C_20bool_20mode_5Fon_2C_20string_5Flist_20_26params_29">Module::OnExtendedMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* target, <span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> mode_on, <a class="code" href="modules_8h.html#string_5Flist">string_list</a> &params) { <span class="keywordflow">return</span> <span class="keyword">false</span>; } +<a name="l00239"></a><a class="code" href="classModule.html#OnMode_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">00239</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnMode_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">Module::OnMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text) { }; +<a name="l00240"></a><a class="code" href="classModule.html#GetVersion_28_29">00240</a> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#GetVersion_28_29">Module::GetVersion</a>() { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0,<a class="code" href="modules_8h.html#VF_5FVENDOR">VF_VENDOR</a>); } +<a name="l00241"></a><a class="code" href="classModule.html#OnOper_28userrec_20_2Auser_2C_20std_3A_3Astring_20opertype_29">00241</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnOper_28userrec_20_2Auser_2C_20std_3A_3Astring_20opertype_29">Module::OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> opertype) { }; +<a name="l00242"></a><a class="code" href="classModule.html#OnInfo_28userrec_20_2Auser_29">00242</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnInfo_28userrec_20_2Auser_29">Module::OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; +<a name="l00243"></a><a class="code" href="classModule.html#OnWhois_28userrec_20_2Asource_2C_20userrec_20_2Adest_29">00243</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnWhois_28userrec_20_2Asource_2C_20userrec_20_2Adest_29">Module::OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest) { }; +<a name="l00244"></a><a class="code" href="classModule.html#OnUserPreInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">00244</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">Module::OnUserPreInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel) { <span class="keywordflow">return</span> 0; }; +<a name="l00245"></a><a class="code" href="classModule.html#OnUserPreMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">00245</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">Module::OnUserPreMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> &text) { <span class="keywordflow">return</span> 0; }; +<a name="l00246"></a><a class="code" href="classModule.html#OnUserPreNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">00246</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">Module::OnUserPreNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> &text) { <span class="keywordflow">return</span> 0; }; +<a name="l00247"></a><a class="code" href="classModule.html#OnUserPreNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20newnick_29">00247</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20newnick_29">Module::OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newnick) { <span class="keywordflow">return</span> 0; }; +<a name="l00248"></a><a class="code" href="classModule.html#OnUserPostNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20oldnick_29">00248</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserPostNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20oldnick_29">Module::OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> oldnick) { }; +<a name="l00249"></a><a class="code" href="classModule.html#OnAccessCheck_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_2C_20int_20access_5Ftype_29">00249</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnAccessCheck_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_2C_20int_20access_5Ftype_29">Module::OnAccessCheck</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel,<span class="keywordtype">int</span> access_type) { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#ACR_5FDEFAULT">ACR_DEFAULT</a>; }; +<a name="l00250"></a><a class="code" href="classModule.html#On_30_30_35Numeric_28std_3A_3Astring_20_26output_29">00250</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#On_30_30_35Numeric_28std_3A_3Astring_20_26output_29">Module::On005Numeric</a>(<a class="code" href="namespaceirc.html#string">std::string</a> &output) { }; +<a name="l00251"></a><a class="code" href="classModule.html#OnKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">00251</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">Module::OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, <a class="code" href="namespaceirc.html#string">std::string</a> reason) { <span class="keywordflow">return</span> 0; }; +<a name="l00252"></a><a class="code" href="classModule.html#OnLoadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">00252</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnLoadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">Module::OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,<a class="code" href="namespaceirc.html#string">std::string</a> name) { }; +<a name="l00253"></a><a class="code" href="classModule.html#OnUnloadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">00253</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUnloadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">Module::OnUnloadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,<a class="code" href="namespaceirc.html#string">std::string</a> name) { }; +<a name="l00254"></a><a class="code" href="classModule.html#OnBackgroundTimer_28time_5Ft_20curtime_29">00254</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnBackgroundTimer_28time_5Ft_20curtime_29">Module::OnBackgroundTimer</a>(time_t curtime) { }; +<a name="l00255"></a><a class="code" href="classModule.html#OnSendList_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_2C_20char_20mode_29">00255</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSendList_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_2C_20char_20mode_29">Module::OnSendList</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel, <span class="keywordtype">char</span> mode) { }; +<a name="l00256"></a><a class="code" href="classModule.html#OnPreCommand_28std_3A_3Astring_20command_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">00256</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnPreCommand_28std_3A_3Astring_20command_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">Module::OnPreCommand</a>(<a class="code" href="namespaceirc.html#string">std::string</a> command, <span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user) { <span class="keywordflow">return</span> 0; }; +<a name="l00257"></a><a class="code" href="classModule.html#OnCheckReady_28userrec_20_2Auser_29">00257</a> <span class="keywordtype">bool</span> <a class="code" href="classModule.html#OnCheckReady_28userrec_20_2Auser_29">Module::OnCheckReady</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; +<a name="l00258"></a><a class="code" href="classModule.html#OnUserRegister_28userrec_20_2Auser_29">00258</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserRegister_28userrec_20_2Auser_29">Module::OnUserRegister</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; +<a name="l00259"></a><a class="code" href="classModule.html#OnUserPreKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">00259</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">Module::OnUserPreKick</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> reason) { <span class="keywordflow">return</span> 0; }; +<a name="l00260"></a><a class="code" href="classModule.html#OnUserKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">00260</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">Module::OnUserKick</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> reason) { }; +<a name="l00261"></a><a class="code" href="classModule.html#OnRawMode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20char_20mode_2C_20std_3A_3Astring_20param_2C_20bool_20adding_2C_20int_20pcnt_29">00261</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawMode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20char_20mode_2C_20std_3A_3Astring_20param_2C_20bool_20adding_2C_20int_20pcnt_29">Module::OnRawMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keywordtype">char</span> mode, <a class="code" href="namespaceirc.html#string">std::string</a> param, <span class="keywordtype">bool</span> adding, <span class="keywordtype">int</span> pcnt) { <span class="keywordflow">return</span> 0; }; +<a name="l00262"></a><a class="code" href="classModule.html#OnCheckInvite_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">00262</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckInvite_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">Module::OnCheckInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan) { <span class="keywordflow">return</span> 0; }; +<a name="l00263"></a><a class="code" href="classModule.html#OnCheckKey_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20keygiven_29">00263</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckKey_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20keygiven_29">Module::OnCheckKey</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> keygiven) { <span class="keywordflow">return</span> 0; }; +<a name="l00264"></a><a class="code" href="classModule.html#OnCheckLimit_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">00264</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckLimit_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">Module::OnCheckLimit</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan) { <span class="keywordflow">return</span> 0; }; +<a name="l00265"></a><a class="code" href="classModule.html#OnCheckBan_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">00265</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckBan_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">Module::OnCheckBan</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan) { <span class="keywordflow">return</span> 0; }; +<a name="l00266"></a><a class="code" href="classModule.html#OnStats_28char_20symbol_29">00266</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnStats_28char_20symbol_29">Module::OnStats</a>(<span class="keywordtype">char</span> symbol) { }; +<a name="l00267"></a><a class="code" href="classModule.html#OnChangeLocalUserHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">00267</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnChangeLocalUserHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">Module::OnChangeLocalUserHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost) { <span class="keywordflow">return</span> 0; }; +<a name="l00268"></a><a class="code" href="classModule.html#OnChangeLocalUserGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">00268</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnChangeLocalUserGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">Module::OnChangeLocalUserGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost) { <span class="keywordflow">return</span> 0; }; +<a name="l00269"></a><a class="code" href="classModule.html#OnLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">00269</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">Module::OnLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> topic) { <span class="keywordflow">return</span> 0; }; +<a name="l00270"></a><a class="code" href="classModule.html#OnEvent_28Event_20_2Aevent_29">00270</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnEvent_28Event_20_2Aevent_29">Module::OnEvent</a>(<a class="code" href="classEvent.html">Event</a>* event) { <span class="keywordflow">return</span>; }; +<a name="l00271"></a><a class="code" href="classModule.html#OnRequest_28Request_20_2Arequest_29">00271</a> <span class="keywordtype">char</span>* <a class="code" href="classModule.html#OnRequest_28Request_20_2Arequest_29">Module::OnRequest</a>(<a class="code" href="classRequest.html">Request</a>* request) { <span class="keywordflow">return</span> NULL; }; +<a name="l00272"></a><a class="code" href="classModule.html#OnOperCompare_28std_3A_3Astring_20password_2C_20std_3A_3Astring_20input_29">00272</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnOperCompare_28std_3A_3Astring_20password_2C_20std_3A_3Astring_20input_29">Module::OnOperCompare</a>(<a class="code" href="namespaceirc.html#string">std::string</a> password, <a class="code" href="namespaceirc.html#string">std::string</a> input) { <span class="keywordflow">return</span> 0; }; +<a name="l00273"></a><a class="code" href="classModule.html#OnGlobalOper_28userrec_20_2Auser_29">00273</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGlobalOper_28userrec_20_2Auser_29">Module::OnGlobalOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; +<a name="l00274"></a><a class="code" href="classModule.html#OnGlobalConnect_28userrec_20_2Auser_29">00274</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGlobalConnect_28userrec_20_2Auser_29">Module::OnGlobalConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; +<a name="l00275"></a><a class="code" href="classModule.html#OnAddBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">00275</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnAddBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">Module::OnAddBan</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classchanrec.html">chanrec</a>* channel,<a class="code" href="namespaceirc.html#string">std::string</a> banmask) { <span class="keywordflow">return</span> 0; }; +<a name="l00276"></a><a class="code" href="classModule.html#OnDelBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">00276</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnDelBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">Module::OnDelBan</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classchanrec.html">chanrec</a>* channel,<a class="code" href="namespaceirc.html#string">std::string</a> banmask) { <span class="keywordflow">return</span> 0; }; +<a name="l00277"></a><a class="code" href="classModule.html#OnRawSocketAccept_28int_20fd_2C_20std_3A_3Astring_20ip_2C_20int_20localport_29">00277</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRawSocketAccept_28int_20fd_2C_20std_3A_3Astring_20ip_2C_20int_20localport_29">Module::OnRawSocketAccept</a>(<span class="keywordtype">int</span> fd, <a class="code" href="namespaceirc.html#string">std::string</a> ip, <span class="keywordtype">int</span> localport) { }; +<a name="l00278"></a><a class="code" href="classModule.html#OnRawSocketWrite_28int_20fd_2C_20char_20_2Abuffer_2C_20int_20count_29">00278</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawSocketWrite_28int_20fd_2C_20char_20_2Abuffer_2C_20int_20count_29">Module::OnRawSocketWrite</a>(<span class="keywordtype">int</span> fd, <span class="keywordtype">char</span>* buffer, <span class="keywordtype">int</span> count) { <span class="keywordflow">return</span> 0; }; +<a name="l00279"></a><a class="code" href="classModule.html#OnRawSocketClose_28int_20fd_29">00279</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRawSocketClose_28int_20fd_29">Module::OnRawSocketClose</a>(<span class="keywordtype">int</span> fd) { }; +<a name="l00280"></a><a class="code" href="classModule.html#OnRawSocketRead_28int_20fd_2C_20char_20_2Abuffer_2C_20unsigned_20int_20count_2C_20int_20_26readresult_29">00280</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawSocketRead_28int_20fd_2C_20char_20_2Abuffer_2C_20unsigned_20int_20count_2C_20int_20_26readresult_29">Module::OnRawSocketRead</a>(<span class="keywordtype">int</span> fd, <span class="keywordtype">char</span>* buffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> count, <span class="keywordtype">int</span> &readresult) { <span class="keywordflow">return</span> 0; }; +<a name="l00281"></a><a class="code" href="classModule.html#OnUserMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">00281</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">Module::OnUserMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text) { }; +<a name="l00282"></a><a class="code" href="classModule.html#OnUserNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">00282</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">Module::OnUserNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text) { }; +<a name="l00283"></a><a class="code" href="classModule.html#OnRemoteKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">00283</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRemoteKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">Module::OnRemoteKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, <a class="code" href="namespaceirc.html#string">std::string</a> reason) { }; +<a name="l00284"></a><a class="code" href="classModule.html#OnUserInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">00284</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">Module::OnUserInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel) { }; +<a name="l00285"></a><a class="code" href="classModule.html#OnPostLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">00285</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnPostLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">Module::OnPostLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> topic) { }; +<a name="l00286"></a><a class="code" href="classModule.html#OnGetServerDescription_28std_3A_3Astring_20servername_2C_20std_3A_3Astring_20_26description_29">00286</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGetServerDescription_28std_3A_3Astring_20servername_2C_20std_3A_3Astring_20_26description_29">Module::OnGetServerDescription</a>(<a class="code" href="namespaceirc.html#string">std::string</a> servername,<a class="code" href="namespaceirc.html#string">std::string</a> &description) { }; +<a name="l00287"></a><a class="code" href="classModule.html#OnSyncUser_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">00287</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncUser_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">Module::OnSyncUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classModule.html">Module</a>* proto, <span class="keywordtype">void</span>* opaque) { }; +<a name="l00288"></a><a class="code" href="classModule.html#OnSyncChannel_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">00288</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncChannel_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">Module::OnSyncChannel</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="classModule.html">Module</a>* proto, <span class="keywordtype">void</span>* opaque) { }; +<a name="l00289"></a><a class="code" href="classModule.html#ProtoSendMode_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20modeline_29">00289</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#ProtoSendMode_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20modeline_29">Module::ProtoSendMode</a>(<span class="keywordtype">void</span>* opaque, <span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> modeline) { }; +<a name="l00290"></a><a class="code" href="classModule.html#OnSyncChannelMetaData_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">00290</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncChannelMetaData_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">Module::OnSyncChannelMetaData</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="classModule.html">Module</a>* proto,<span class="keywordtype">void</span>* opaque, <a class="code" href="namespaceirc.html#string">std::string</a> extname) { }; +<a name="l00291"></a><a class="code" href="classModule.html#OnSyncUserMetaData_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">00291</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncUserMetaData_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">Module::OnSyncUserMetaData</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classModule.html">Module</a>* proto,<span class="keywordtype">void</span>* opaque, <a class="code" href="namespaceirc.html#string">std::string</a> extname) { }; +<a name="l00292"></a><a class="code" href="classModule.html#OnDecodeMetaData_28int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">00292</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDecodeMetaData_28int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">Module::OnDecodeMetaData</a>(<span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> extname, <a class="code" href="namespaceirc.html#string">std::string</a> extdata) { }; +<a name="l00293"></a><a class="code" href="classModule.html#ProtoSendMetaData_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">00293</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#ProtoSendMetaData_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">Module::ProtoSendMetaData</a>(<span class="keywordtype">void</span>* opaque, <span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> extname, <a class="code" href="namespaceirc.html#string">std::string</a> extdata) { }; +<a name="l00294"></a><a class="code" href="classModule.html#OnWallops_28userrec_20_2Auser_2C_20std_3A_3Astring_20text_29">00294</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnWallops_28userrec_20_2Auser_2C_20std_3A_3Astring_20text_29">Module::OnWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> text) { }; +<a name="l00295"></a><a class="code" href="classModule.html#OnChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">00295</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">Module::OnChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost) { }; +<a name="l00296"></a><a class="code" href="classModule.html#OnChangeName_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">00296</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnChangeName_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">Module::OnChangeName</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> gecos) { }; +<a name="l00297"></a><a class="code" href="classModule.html#OnAddGLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00297</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddGLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Module::OnAddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; +<a name="l00298"></a><a class="code" href="classModule.html#OnAddZLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipmask_29">00298</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddZLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipmask_29">Module::OnAddZLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> ipmask) { }; +<a name="l00299"></a><a class="code" href="classModule.html#OnAddKLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00299</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddKLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Module::OnAddKLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; +<a name="l00300"></a><a class="code" href="classModule.html#OnAddQLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickmask_29">00300</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddQLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickmask_29">Module::OnAddQLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> nickmask) { }; +<a name="l00301"></a><a class="code" href="classModule.html#OnAddELine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00301</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddELine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Module::OnAddELine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; +<a name="l00302"></a><a class="code" href="classModule.html#OnDelGLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">00302</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelGLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">Module::OnDelGLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; +<a name="l00303"></a><a class="code" href="classModule.html#OnDelZLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20ipmask_29">00303</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelZLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20ipmask_29">Module::OnDelZLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> ipmask) { }; +<a name="l00304"></a><a class="code" href="classModule.html#OnDelKLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">00304</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelKLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">Module::OnDelKLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; +<a name="l00305"></a><a class="code" href="classModule.html#OnDelQLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20nickmask_29">00305</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelQLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20nickmask_29">Module::OnDelQLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> nickmask) { }; +<a name="l00306"></a><a class="code" href="classModule.html#OnDelELine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">00306</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelELine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">Module::OnDelELine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) { }; +<a name="l00307"></a><a class="code" href="classModule.html#OnCleanup_28int_20target_5Ftype_2C_20void_20_2Aitem_29">00307</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnCleanup_28int_20target_5Ftype_2C_20void_20_2Aitem_29">Module::OnCleanup</a>(<span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* item) { }; +<a name="l00308"></a>00308 +<a name="l00309"></a>00309 <span class="comment">/* server is a wrapper class that provides methods to all of the C-style</span> +<a name="l00310"></a>00310 <span class="comment"> * exports in the core</span> +<a name="l00311"></a>00311 <span class="comment"> */</span> +<a name="l00312"></a>00312 +<a name="l00313"></a><a class="code" href="classServer.html#Server_28_29">00313</a> <a class="code" href="classServer.html#Server_28_29">Server::Server</a>() +<a name="l00314"></a>00314 { +<a name="l00315"></a>00315 } +<a name="l00316"></a>00316 +<a name="l00317"></a><a class="code" href="classServer.html#_7EServer_28_29">00317</a> <a class="code" href="classServer.html#_7EServer_28_29">Server::~Server</a>() +<a name="l00318"></a>00318 { +<a name="l00319"></a>00319 } +<a name="l00320"></a>00320 +<a name="l00321"></a><a class="code" href="classServer.html#AddSocket_28InspSocket_20_2Asock_29">00321</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddSocket_28InspSocket_20_2Asock_29">Server::AddSocket</a>(<a class="code" href="classInspSocket.html">InspSocket</a>* sock) +<a name="l00322"></a>00322 { +<a name="l00323"></a>00323 <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.push_back(sock); +<a name="l00324"></a>00324 } +<a name="l00325"></a>00325 +<a name="l00326"></a><a class="code" href="classServer.html#RehashServer_28_29">00326</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#RehashServer_28_29">Server::RehashServer</a>() +<a name="l00327"></a>00327 { +<a name="l00328"></a>00328 WriteOpers(<span class="stringliteral">"*** Rehashing config file"</span>); +<a name="l00329"></a>00329 Config-><a class="code" href="classServerConfig.html#Read_28bool_20bail_2C_20userrec_20_2Auser_29">Read</a>(<span class="keyword">false</span>,NULL); +<a name="l00330"></a>00330 } +<a name="l00331"></a>00331 +<a name="l00332"></a><a class="code" href="classServer.html#DelSocket_28InspSocket_20_2Asock_29">00332</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#DelSocket_28InspSocket_20_2Asock_29">Server::DelSocket</a>(<a class="code" href="classInspSocket.html">InspSocket</a>* sock) +<a name="l00333"></a>00333 { +<a name="l00334"></a>00334 <span class="keywordflow">for</span> (std::vector<InspSocket*>::iterator a = <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.begin(); a < <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.end(); a++) +<a name="l00335"></a>00335 { +<a name="l00336"></a>00336 <span class="keywordflow">if</span> (*a == sock) +<a name="l00337"></a>00337 { +<a name="l00338"></a>00338 <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.erase(a); +<a name="l00339"></a>00339 <span class="keywordflow">return</span>; +<a name="l00340"></a>00340 } +<a name="l00341"></a>00341 } +<a name="l00342"></a>00342 } +<a name="l00343"></a>00343 +<a name="l00344"></a><a class="code" href="classServer.html#SendOpers_28std_3A_3Astring_20s_29">00344</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendOpers_28std_3A_3Astring_20s_29">Server::SendOpers</a>(<a class="code" href="namespaceirc.html#string">std::string</a> s) +<a name="l00345"></a>00345 { +<a name="l00346"></a>00346 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00347"></a>00347 } +<a name="l00348"></a>00348 +<a name="l00349"></a><a class="code" href="classServer.html#MatchText_28std_3A_3Astring_20sliteral_2C_20std_3A_3Astring_20spattern_29">00349</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#MatchText_28std_3A_3Astring_20sliteral_2C_20std_3A_3Astring_20spattern_29">Server::MatchText</a>(<a class="code" href="namespaceirc.html#string">std::string</a> sliteral, <a class="code" href="namespaceirc.html#string">std::string</a> spattern) +<a name="l00350"></a>00350 { +<a name="l00351"></a>00351 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; +<a name="l00352"></a>00352 strlcpy(literal,sliteral.c_str(),MAXBUF); +<a name="l00353"></a>00353 strlcpy(pattern,spattern.c_str(),MAXBUF); +<a name="l00354"></a>00354 <span class="keywordflow">return</span> match(literal,pattern); +<a name="l00355"></a>00355 } +<a name="l00356"></a>00356 +<a name="l00357"></a><a class="code" href="classServer.html#SendToModeMask_28std_3A_3Astring_20modes_2C_20int_20flags_2C_20std_3A_3Astring_20text_29">00357</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendToModeMask_28std_3A_3Astring_20modes_2C_20int_20flags_2C_20std_3A_3Astring_20text_29">Server::SendToModeMask</a>(<a class="code" href="namespaceirc.html#string">std::string</a> modes, <span class="keywordtype">int</span> flags, <a class="code" href="namespaceirc.html#string">std::string</a> text) +<a name="l00358"></a>00358 { +<a name="l00359"></a>00359 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); +<a name="l00360"></a>00360 } +<a name="l00361"></a>00361 +<a name="l00362"></a><a class="code" href="classServer.html#JoinUserToChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20key_29">00362</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#JoinUserToChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20key_29">Server::JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> cname, <a class="code" href="namespaceirc.html#string">std::string</a> key) +<a name="l00363"></a>00363 { +<a name="l00364"></a>00364 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">false</span>); +<a name="l00365"></a>00365 } +<a name="l00366"></a>00366 +<a name="l00367"></a><a class="code" href="classServer.html#PartUserFromChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20reason_29">00367</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#PartUserFromChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20reason_29">Server::PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> cname, <a class="code" href="namespaceirc.html#string">std::string</a> reason) +<a name="l00368"></a>00368 { +<a name="l00369"></a>00369 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); +<a name="l00370"></a>00370 } +<a name="l00371"></a>00371 +<a name="l00372"></a><a class="code" href="classServer.html#GetUsers_28chanrec_20_2Achan_29">00372</a> <a class="code" href="modules_8h.html#chanuserlist">chanuserlist</a> <a class="code" href="classServer.html#GetUsers_28chanrec_20_2Achan_29">Server::GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) +<a name="l00373"></a>00373 { +<a name="l00374"></a>00374 <a class="code" href="modules_8h.html#chanuserlist">chanuserlist</a> userl; +<a name="l00375"></a>00375 userl.clear(); +<a name="l00376"></a>00376 std::vector<char*> *list = chan-><a class="code" href="classchanrec.html#GetUsers_28_29">GetUsers</a>(); +<a name="l00377"></a>00377 <span class="keywordflow">for</span> (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) +<a name="l00378"></a>00378 { +<a name="l00379"></a>00379 <span class="keywordtype">char</span>* o = *i; +<a name="l00380"></a>00380 userl.push_back((<a class="code" href="classuserrec.html">userrec</a>*)o); +<a name="l00381"></a>00381 } +<a name="l00382"></a>00382 <span class="keywordflow">return</span> userl; +<a name="l00383"></a>00383 } +<a name="l00384"></a><a class="code" href="classServer.html#ChangeUserNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20nickname_29">00384</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeUserNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20nickname_29">Server::ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> nickname) +<a name="l00385"></a>00385 { +<a name="l00386"></a>00386 force_nickchange(user,nickname.c_str()); +<a name="l00387"></a>00387 } +<a name="l00388"></a>00388 +<a name="l00389"></a><a class="code" href="classServer.html#QuitUser_28userrec_20_2Auser_2C_20std_3A_3Astring_20reason_29">00389</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#QuitUser_28userrec_20_2Auser_2C_20std_3A_3Astring_20reason_29">Server::QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> reason) +<a name="l00390"></a>00390 { +<a name="l00391"></a>00391 kill_link(user,reason.c_str()); <a name="l00392"></a>00392 } <a name="l00393"></a>00393 -<a name="l00394"></a><a class="code" href="classServer.html#AddSocket_28InspSocket_20_2Asock_29">00394</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddSocket_28InspSocket_20_2Asock_29">Server::AddSocket</a>(<a class="code" href="classInspSocket.html">InspSocket</a>* sock) +<a name="l00394"></a><a class="code" href="classServer.html#IsUlined_28std_3A_3Astring_20server_29">00394</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsUlined_28std_3A_3Astring_20server_29">Server::IsUlined</a>(<a class="code" href="namespaceirc.html#string">std::string</a> server) <a name="l00395"></a>00395 { -<a name="l00396"></a>00396 <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.push_back(sock); +<a name="l00396"></a>00396 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline</a>(server.c_str()); <a name="l00397"></a>00397 } <a name="l00398"></a>00398 -<a name="l00399"></a><a class="code" href="classServer.html#RehashServer_28_29">00399</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#RehashServer_28_29">Server::RehashServer</a>() +<a name="l00399"></a><a class="code" href="classServer.html#CallCommandHandler_28std_3A_3Astring_20commandname_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">00399</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#CallCommandHandler_28std_3A_3Astring_20commandname_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">Server::CallCommandHandler</a>(<a class="code" href="namespaceirc.html#string">std::string</a> commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user) <a name="l00400"></a>00400 { -<a name="l00401"></a>00401 WriteOpers(<span class="stringliteral">"*** Rehashing config file"</span>); -<a name="l00402"></a>00402 ReadConfig(<span class="keyword">false</span>,NULL); -<a name="l00403"></a>00403 } -<a name="l00404"></a>00404 -<a name="l00405"></a><a class="code" href="classServer.html#DelSocket_28InspSocket_20_2Asock_29">00405</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#DelSocket_28InspSocket_20_2Asock_29">Server::DelSocket</a>(<a class="code" href="classInspSocket.html">InspSocket</a>* sock) -<a name="l00406"></a>00406 { -<a name="l00407"></a>00407 <span class="keywordflow">for</span> (std::vector<InspSocket*>::iterator a = <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.begin(); a < <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.end(); a++) -<a name="l00408"></a>00408 { -<a name="l00409"></a>00409 <span class="keywordflow">if</span> (*a == sock) -<a name="l00410"></a>00410 { -<a name="l00411"></a>00411 <a class="code" href="modules_8cpp.html#module_5Fsockets">module_sockets</a>.erase(a); -<a name="l00412"></a>00412 <span class="keywordflow">return</span>; -<a name="l00413"></a>00413 } -<a name="l00414"></a>00414 } -<a name="l00415"></a>00415 } -<a name="l00416"></a>00416 -<a name="l00417"></a><a class="code" href="classServer.html#SendOpers_28std_3A_3Astring_20s_29">00417</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendOpers_28std_3A_3Astring_20s_29">Server::SendOpers</a>(<a class="code" href="namespaceirc.html#string">std::string</a> s) -<a name="l00418"></a>00418 { -<a name="l00419"></a>00419 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00420"></a>00420 } -<a name="l00421"></a>00421 -<a name="l00422"></a><a class="code" href="classServer.html#MatchText_28std_3A_3Astring_20sliteral_2C_20std_3A_3Astring_20spattern_29">00422</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#MatchText_28std_3A_3Astring_20sliteral_2C_20std_3A_3Astring_20spattern_29">Server::MatchText</a>(<a class="code" href="namespaceirc.html#string">std::string</a> sliteral, <a class="code" href="namespaceirc.html#string">std::string</a> spattern) -<a name="l00423"></a>00423 { -<a name="l00424"></a>00424 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; -<a name="l00425"></a>00425 strlcpy(literal,sliteral.c_str(),MAXBUF); -<a name="l00426"></a>00426 strlcpy(pattern,spattern.c_str(),MAXBUF); -<a name="l00427"></a>00427 <span class="keywordflow">return</span> match(literal,pattern); -<a name="l00428"></a>00428 } -<a name="l00429"></a>00429 -<a name="l00430"></a><a class="code" href="classServer.html#SendToModeMask_28std_3A_3Astring_20modes_2C_20int_20flags_2C_20std_3A_3Astring_20text_29">00430</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendToModeMask_28std_3A_3Astring_20modes_2C_20int_20flags_2C_20std_3A_3Astring_20text_29">Server::SendToModeMask</a>(<a class="code" href="namespaceirc.html#string">std::string</a> modes, <span class="keywordtype">int</span> flags, <a class="code" href="namespaceirc.html#string">std::string</a> text) -<a name="l00431"></a>00431 { -<a name="l00432"></a>00432 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); -<a name="l00433"></a>00433 } -<a name="l00434"></a>00434 -<a name="l00435"></a><a class="code" href="classServer.html#JoinUserToChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20key_29">00435</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#JoinUserToChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20key_29">Server::JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> cname, <a class="code" href="namespaceirc.html#string">std::string</a> key) -<a name="l00436"></a>00436 { -<a name="l00437"></a>00437 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">false</span>); -<a name="l00438"></a>00438 } -<a name="l00439"></a>00439 -<a name="l00440"></a><a class="code" href="classServer.html#PartUserFromChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20reason_29">00440</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#PartUserFromChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20reason_29">Server::PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> cname, <a class="code" href="namespaceirc.html#string">std::string</a> reason) -<a name="l00441"></a>00441 { -<a name="l00442"></a>00442 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); -<a name="l00443"></a>00443 } -<a name="l00444"></a>00444 -<a name="l00445"></a><a class="code" href="classServer.html#GetUsers_28chanrec_20_2Achan_29">00445</a> <a class="code" href="modules_8h.html#chanuserlist">chanuserlist</a> <a class="code" href="classServer.html#GetUsers_28chanrec_20_2Achan_29">Server::GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) -<a name="l00446"></a>00446 { -<a name="l00447"></a>00447 <a class="code" href="modules_8h.html#chanuserlist">chanuserlist</a> userl; -<a name="l00448"></a>00448 userl.clear(); -<a name="l00449"></a>00449 std::vector<char*> *<a class="code" href="channels_8cpp.html#list_5BMAXBUF_5D">list</a> = chan-><a class="code" href="classchanrec.html#GetUsers_28_29">GetUsers</a>(); -<a name="l00450"></a>00450 <span class="keywordflow">for</span> (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) -<a name="l00451"></a>00451 { -<a name="l00452"></a>00452 <span class="keywordtype">char</span>* o = *i; -<a name="l00453"></a>00453 userl.push_back((<a class="code" href="classuserrec.html">userrec</a>*)o); -<a name="l00454"></a>00454 } -<a name="l00455"></a>00455 <span class="keywordflow">return</span> userl; +<a name="l00401"></a>00401 call_handler(commandname.c_str(),parameters,pcnt,user); +<a name="l00402"></a>00402 } +<a name="l00403"></a>00403 +<a name="l00404"></a><a class="code" href="classServer.html#IsValidModuleCommand_28std_3A_3Astring_20commandname_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">00404</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsValidModuleCommand_28std_3A_3Astring_20commandname_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">Server::IsValidModuleCommand</a>(<a class="code" href="namespaceirc.html#string">std::string</a> commandname, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user) +<a name="l00405"></a>00405 { +<a name="l00406"></a>00406 <span class="keywordflow">return</span> is_valid_cmd(commandname.c_str(), pcnt, user); +<a name="l00407"></a>00407 } +<a name="l00408"></a>00408 +<a name="l00409"></a><a class="code" href="classServer.html#Log_28int_20level_2C_20std_3A_3Astring_20s_29">00409</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#Log_28int_20level_2C_20std_3A_3Astring_20s_29">Server::Log</a>(<span class="keywordtype">int</span> level, <a class="code" href="namespaceirc.html#string">std::string</a> s) +<a name="l00410"></a>00410 { +<a name="l00411"></a>00411 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00412"></a>00412 } +<a name="l00413"></a>00413 +<a name="l00414"></a><a class="code" href="classServer.html#AddCommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">00414</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddCommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">Server::AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams, <span class="keywordtype">char</span>* source) +<a name="l00415"></a>00415 { +<a name="l00416"></a>00416 <a class="code" href="modules_8h.html#createcommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">createcommand</a>(cmd,f,flags,minparams,source); +<a name="l00417"></a>00417 } +<a name="l00418"></a>00418 +<a name="l00419"></a><a class="code" href="classServer.html#SendMode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">00419</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendMode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">Server::SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user) +<a name="l00420"></a>00420 { +<a name="l00421"></a>00421 <a class="code" href="mode_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">server_mode</a>(parameters,pcnt,user); +<a name="l00422"></a>00422 } +<a name="l00423"></a>00423 +<a name="l00424"></a><a class="code" href="classServer.html#Send_28int_20Socket_2C_20std_3A_3Astring_20s_29">00424</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#Send_28int_20Socket_2C_20std_3A_3Astring_20s_29">Server::Send</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="namespaceirc.html#string">std::string</a> s) +<a name="l00425"></a>00425 { +<a name="l00426"></a>00426 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00427"></a>00427 } +<a name="l00428"></a>00428 +<a name="l00429"></a><a class="code" href="classServer.html#SendServ_28int_20Socket_2C_20std_3A_3Astring_20s_29">00429</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendServ_28int_20Socket_2C_20std_3A_3Astring_20s_29">Server::SendServ</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="namespaceirc.html#string">std::string</a> s) +<a name="l00430"></a>00430 { +<a name="l00431"></a>00431 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00432"></a>00432 } +<a name="l00433"></a>00433 +<a name="l00434"></a><a class="code" href="classServer.html#SendFrom_28int_20Socket_2C_20userrec_20_2AUser_2C_20std_3A_3Astring_20s_29">00434</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendFrom_28int_20Socket_2C_20userrec_20_2AUser_2C_20std_3A_3Astring_20s_29">Server::SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> s) +<a name="l00435"></a>00435 { +<a name="l00436"></a>00436 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00437"></a>00437 } +<a name="l00438"></a>00438 +<a name="l00439"></a><a class="code" href="classServer.html#SendTo_28userrec_20_2ASource_2C_20userrec_20_2ADest_2C_20std_3A_3Astring_20s_29">00439</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendTo_28userrec_20_2ASource_2C_20userrec_20_2ADest_2C_20std_3A_3Astring_20s_29">Server::SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, <a class="code" href="namespaceirc.html#string">std::string</a> s) +<a name="l00440"></a>00440 { +<a name="l00441"></a>00441 <span class="keywordflow">if</span> (!Source) +<a name="l00442"></a>00442 { +<a name="l00443"></a>00443 <span class="comment">// if source is NULL, then the message originates from the local server</span> +<a name="l00444"></a>00444 Write(Dest-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); +<a name="l00445"></a>00445 } +<a name="l00446"></a>00446 <span class="keywordflow">else</span> +<a name="l00447"></a>00447 { +<a name="l00448"></a>00448 <span class="comment">// otherwise it comes from the user specified</span> +<a name="l00449"></a>00449 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00450"></a>00450 } +<a name="l00451"></a>00451 } +<a name="l00452"></a>00452 +<a name="l00453"></a><a class="code" href="classServer.html#SendChannelServerNotice_28std_3A_3Astring_20ServName_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20text_29">00453</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendChannelServerNotice_28std_3A_3Astring_20ServName_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20text_29">Server::SendChannelServerNotice</a>(<a class="code" href="namespaceirc.html#string">std::string</a> ServName, <a class="code" href="classchanrec.html">chanrec</a>* Channel, <a class="code" href="namespaceirc.html#string">std::string</a> text) +<a name="l00454"></a>00454 { +<a name="l00455"></a>00455 WriteChannelWithServ((<span class="keywordtype">char</span>*)ServName.c_str(), Channel, <span class="stringliteral">"%s"</span>, text.c_str()); <a name="l00456"></a>00456 } -<a name="l00457"></a><a class="code" href="classServer.html#ChangeUserNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20nickname_29">00457</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeUserNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20nickname_29">Server::ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> nickname) -<a name="l00458"></a>00458 { -<a name="l00459"></a>00459 force_nickchange(user,nickname.c_str()); -<a name="l00460"></a>00460 } -<a name="l00461"></a>00461 -<a name="l00462"></a><a class="code" href="classServer.html#QuitUser_28userrec_20_2Auser_2C_20std_3A_3Astring_20reason_29">00462</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#QuitUser_28userrec_20_2Auser_2C_20std_3A_3Astring_20reason_29">Server::QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> reason) -<a name="l00463"></a>00463 { -<a name="l00464"></a>00464 kill_link(user,reason.c_str()); -<a name="l00465"></a>00465 } -<a name="l00466"></a>00466 -<a name="l00467"></a><a class="code" href="classServer.html#IsUlined_28std_3A_3Astring_20server_29">00467</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsUlined_28std_3A_3Astring_20server_29">Server::IsUlined</a>(<a class="code" href="namespaceirc.html#string">std::string</a> server) -<a name="l00468"></a>00468 { -<a name="l00469"></a>00469 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline</a>(server.c_str()); -<a name="l00470"></a>00470 } -<a name="l00471"></a>00471 -<a name="l00472"></a><a class="code" href="classServer.html#CallCommandHandler_28std_3A_3Astring_20commandname_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">00472</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#CallCommandHandler_28std_3A_3Astring_20commandname_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">Server::CallCommandHandler</a>(<a class="code" href="namespaceirc.html#string">std::string</a> commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user) -<a name="l00473"></a>00473 { -<a name="l00474"></a>00474 call_handler(commandname.c_str(),parameters,pcnt,user); -<a name="l00475"></a>00475 } -<a name="l00476"></a>00476 -<a name="l00477"></a><a class="code" href="classServer.html#IsValidModuleCommand_28std_3A_3Astring_20commandname_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">00477</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsValidModuleCommand_28std_3A_3Astring_20commandname_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">Server::IsValidModuleCommand</a>(<a class="code" href="namespaceirc.html#string">std::string</a> commandname, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user) -<a name="l00478"></a>00478 { -<a name="l00479"></a>00479 <span class="keywordflow">return</span> is_valid_cmd(commandname.c_str(), pcnt, user); -<a name="l00480"></a>00480 } -<a name="l00481"></a>00481 -<a name="l00482"></a><a class="code" href="classServer.html#Log_28int_20level_2C_20std_3A_3Astring_20s_29">00482</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#Log_28int_20level_2C_20std_3A_3Astring_20s_29">Server::Log</a>(<span class="keywordtype">int</span> level, <a class="code" href="namespaceirc.html#string">std::string</a> s) -<a name="l00483"></a>00483 { -<a name="l00484"></a>00484 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00457"></a>00457 +<a name="l00458"></a><a class="code" href="classServer.html#SendChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20s_2C_20bool_20IncludeSender_29">00458</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20s_2C_20bool_20IncludeSender_29">Server::SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, <a class="code" href="namespaceirc.html#string">std::string</a> s,<span class="keywordtype">bool</span> IncludeSender) +<a name="l00459"></a>00459 { +<a name="l00460"></a>00460 <span class="keywordflow">if</span> (IncludeSender) +<a name="l00461"></a>00461 { +<a name="l00462"></a>00462 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00463"></a>00463 } +<a name="l00464"></a>00464 <span class="keywordflow">else</span> +<a name="l00465"></a>00465 { +<a name="l00466"></a>00466 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00467"></a>00467 } +<a name="l00468"></a>00468 } +<a name="l00469"></a>00469 +<a name="l00470"></a><a class="code" href="classServer.html#CommonChannels_28userrec_20_2Au_31_2C_20userrec_20_2Au_32_29">00470</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#CommonChannels_28userrec_20_2Au_31_2C_20userrec_20_2Au_32_29">Server::CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2) +<a name="l00471"></a>00471 { +<a name="l00472"></a>00472 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#common_5Fchannels_28userrec_20_2Au_2C_20userrec_20_2Au_32_29">common_channels</a>(u1,u2) != 0); +<a name="l00473"></a>00473 } +<a name="l00474"></a>00474 +<a name="l00475"></a><a class="code" href="classServer.html#SendCommon_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_2C_20bool_20IncludeSender_29">00475</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendCommon_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_2C_20bool_20IncludeSender_29">Server::SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> text,<span class="keywordtype">bool</span> IncludeSender) +<a name="l00476"></a>00476 { +<a name="l00477"></a>00477 <span class="keywordflow">if</span> (IncludeSender) +<a name="l00478"></a>00478 { +<a name="l00479"></a>00479 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); +<a name="l00480"></a>00480 } +<a name="l00481"></a>00481 <span class="keywordflow">else</span> +<a name="l00482"></a>00482 { +<a name="l00483"></a>00483 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); +<a name="l00484"></a>00484 } <a name="l00485"></a>00485 } <a name="l00486"></a>00486 -<a name="l00487"></a><a class="code" href="classServer.html#AddCommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">00487</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddCommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">Server::AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams, <span class="keywordtype">char</span>* source) +<a name="l00487"></a><a class="code" href="classServer.html#SendWallops_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_29">00487</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendWallops_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_29">Server::SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> text) <a name="l00488"></a>00488 { -<a name="l00489"></a>00489 <a class="code" href="modules_8h.html#createcommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">createcommand</a>(cmd,f,flags,minparams,source); +<a name="l00489"></a>00489 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); <a name="l00490"></a>00490 } <a name="l00491"></a>00491 -<a name="l00492"></a><a class="code" href="classServer.html#SendMode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">00492</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendMode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">Server::SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user) +<a name="l00492"></a><a class="code" href="classServer.html#ChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20host_29">00492</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20host_29">Server::ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> host) <a name="l00493"></a>00493 { -<a name="l00494"></a>00494 <a class="code" href="mode_8h.html#server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">server_mode</a>(parameters,pcnt,user); +<a name="l00494"></a>00494 <a class="code" href="message_8h.html#ChangeDisplayedHost_28userrec_20_2Auser_2C_20const_20char_20_2Ahost_29">ChangeDisplayedHost</a>(user,host.c_str()); <a name="l00495"></a>00495 } <a name="l00496"></a>00496 -<a name="l00497"></a><a class="code" href="classServer.html#Send_28int_20Socket_2C_20std_3A_3Astring_20s_29">00497</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#Send_28int_20Socket_2C_20std_3A_3Astring_20s_29">Server::Send</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="namespaceirc.html#string">std::string</a> s) +<a name="l00497"></a><a class="code" href="classServer.html#ChangeGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">00497</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">Server::ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> gecos) <a name="l00498"></a>00498 { -<a name="l00499"></a>00499 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00499"></a>00499 <a class="code" href="message_8h.html#ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29">ChangeName</a>(user,gecos.c_str()); <a name="l00500"></a>00500 } <a name="l00501"></a>00501 -<a name="l00502"></a><a class="code" href="classServer.html#SendServ_28int_20Socket_2C_20std_3A_3Astring_20s_29">00502</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendServ_28int_20Socket_2C_20std_3A_3Astring_20s_29">Server::SendServ</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="namespaceirc.html#string">std::string</a> s) +<a name="l00502"></a><a class="code" href="classServer.html#IsNick_28std_3A_3Astring_20nick_29">00502</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsNick_28std_3A_3Astring_20nick_29">Server::IsNick</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nick) <a name="l00503"></a>00503 { -<a name="l00504"></a>00504 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00504"></a>00504 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#isnick_28const_20char_20_2An_29">isnick</a>(nick.c_str()) != 0); <a name="l00505"></a>00505 } <a name="l00506"></a>00506 -<a name="l00507"></a><a class="code" href="classServer.html#SendFrom_28int_20Socket_2C_20userrec_20_2AUser_2C_20std_3A_3Astring_20s_29">00507</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendFrom_28int_20Socket_2C_20userrec_20_2AUser_2C_20std_3A_3Astring_20s_29">Server::SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> s) +<a name="l00507"></a><a class="code" href="classServer.html#FindNick_28std_3A_3Astring_20nick_29">00507</a> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#FindNick_28std_3A_3Astring_20nick_29">Server::FindNick</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nick) <a name="l00508"></a>00508 { -<a name="l00509"></a>00509 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); +<a name="l00509"></a>00509 <span class="keywordflow">return</span> Find(nick); <a name="l00510"></a>00510 } <a name="l00511"></a>00511 -<a name="l00512"></a><a class="code" href="classServer.html#SendTo_28userrec_20_2ASource_2C_20userrec_20_2ADest_2C_20std_3A_3Astring_20s_29">00512</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendTo_28userrec_20_2ASource_2C_20userrec_20_2ADest_2C_20std_3A_3Astring_20s_29">Server::SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, <a class="code" href="namespaceirc.html#string">std::string</a> s) +<a name="l00512"></a><a class="code" href="classServer.html#FindDescriptor_28int_20socket_29">00512</a> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#FindDescriptor_28int_20socket_29">Server::FindDescriptor</a>(<span class="keywordtype">int</span> socket) <a name="l00513"></a>00513 { -<a name="l00514"></a>00514 <span class="keywordflow">if</span> (!Source) -<a name="l00515"></a>00515 { -<a name="l00516"></a>00516 <span class="comment">// if source is NULL, then the message originates from the local server</span> -<a name="l00517"></a>00517 Write(Dest-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); -<a name="l00518"></a>00518 } -<a name="l00519"></a>00519 <span class="keywordflow">else</span> -<a name="l00520"></a>00520 { -<a name="l00521"></a>00521 <span class="comment">// otherwise it comes from the user specified</span> -<a name="l00522"></a>00522 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00523"></a>00523 } -<a name="l00524"></a>00524 } -<a name="l00525"></a>00525 -<a name="l00526"></a><a class="code" href="classServer.html#SendChannelServerNotice_28std_3A_3Astring_20ServName_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20text_29">00526</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendChannelServerNotice_28std_3A_3Astring_20ServName_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20text_29">Server::SendChannelServerNotice</a>(<a class="code" href="namespaceirc.html#string">std::string</a> ServName, <a class="code" href="classchanrec.html">chanrec</a>* Channel, <a class="code" href="namespaceirc.html#string">std::string</a> text) -<a name="l00527"></a>00527 { -<a name="l00528"></a>00528 WriteChannelWithServ((<span class="keywordtype">char</span>*)ServName.c_str(), Channel, <span class="stringliteral">"%s"</span>, text.c_str()); -<a name="l00529"></a>00529 } -<a name="l00530"></a>00530 -<a name="l00531"></a><a class="code" href="classServer.html#SendChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20s_2C_20bool_20IncludeSender_29">00531</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20s_2C_20bool_20IncludeSender_29">Server::SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, <a class="code" href="namespaceirc.html#string">std::string</a> s,<span class="keywordtype">bool</span> IncludeSender) -<a name="l00532"></a>00532 { -<a name="l00533"></a>00533 <span class="keywordflow">if</span> (IncludeSender) -<a name="l00534"></a>00534 { -<a name="l00535"></a>00535 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00536"></a>00536 } -<a name="l00537"></a>00537 <span class="keywordflow">else</span> -<a name="l00538"></a>00538 { -<a name="l00539"></a>00539 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -<a name="l00540"></a>00540 } -<a name="l00541"></a>00541 } -<a name="l00542"></a>00542 -<a name="l00543"></a><a class="code" href="classServer.html#CommonChannels_28userrec_20_2Au_31_2C_20userrec_20_2Au_32_29">00543</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#CommonChannels_28userrec_20_2Au_31_2C_20userrec_20_2Au_32_29">Server::CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2) -<a name="l00544"></a>00544 { -<a name="l00545"></a>00545 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#common_5Fchannels_28userrec_20_2Au_2C_20userrec_20_2Au_32_29">common_channels</a>(u1,u2) != 0); -<a name="l00546"></a>00546 } -<a name="l00547"></a>00547 -<a name="l00548"></a><a class="code" href="classServer.html#SendCommon_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_2C_20bool_20IncludeSender_29">00548</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendCommon_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_2C_20bool_20IncludeSender_29">Server::SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> text,<span class="keywordtype">bool</span> IncludeSender) -<a name="l00549"></a>00549 { -<a name="l00550"></a>00550 <span class="keywordflow">if</span> (IncludeSender) -<a name="l00551"></a>00551 { -<a name="l00552"></a>00552 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); -<a name="l00553"></a>00553 } -<a name="l00554"></a>00554 <span class="keywordflow">else</span> -<a name="l00555"></a>00555 { -<a name="l00556"></a>00556 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); -<a name="l00557"></a>00557 } -<a name="l00558"></a>00558 } -<a name="l00559"></a>00559 -<a name="l00560"></a><a class="code" href="classServer.html#SendWallops_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_29">00560</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendWallops_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_29">Server::SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> text) -<a name="l00561"></a>00561 { -<a name="l00562"></a>00562 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); -<a name="l00563"></a>00563 } -<a name="l00564"></a>00564 -<a name="l00565"></a><a class="code" href="classServer.html#ChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20host_29">00565</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20host_29">Server::ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> host) -<a name="l00566"></a>00566 { -<a name="l00567"></a>00567 <a class="code" href="message_8h.html#ChangeDisplayedHost_28userrec_20_2Auser_2C_20const_20char_20_2Ahost_29">ChangeDisplayedHost</a>(user,host.c_str()); -<a name="l00568"></a>00568 } -<a name="l00569"></a>00569 -<a name="l00570"></a><a class="code" href="classServer.html#ChangeGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">00570</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">Server::ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> gecos) -<a name="l00571"></a>00571 { -<a name="l00572"></a>00572 <a class="code" href="message_8h.html#ChangeName_28userrec_20_2Auser_2C_20const_20char_20_2Agecos_29">ChangeName</a>(user,gecos.c_str()); -<a name="l00573"></a>00573 } -<a name="l00574"></a>00574 -<a name="l00575"></a><a class="code" href="classServer.html#IsNick_28std_3A_3Astring_20nick_29">00575</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsNick_28std_3A_3Astring_20nick_29">Server::IsNick</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nick) -<a name="l00576"></a>00576 { -<a name="l00577"></a>00577 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#isnick_28const_20char_20_2An_29">isnick</a>(nick.c_str()) != 0); -<a name="l00578"></a>00578 } -<a name="l00579"></a>00579 -<a name="l00580"></a><a class="code" href="classServer.html#FindNick_28std_3A_3Astring_20nick_29">00580</a> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#FindNick_28std_3A_3Astring_20nick_29">Server::FindNick</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nick) -<a name="l00581"></a>00581 { -<a name="l00582"></a>00582 <span class="keywordflow">return</span> Find(nick); -<a name="l00583"></a>00583 } -<a name="l00584"></a>00584 -<a name="l00585"></a><a class="code" href="classServer.html#FindDescriptor_28int_20socket_29">00585</a> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#FindDescriptor_28int_20socket_29">Server::FindDescriptor</a>(<span class="keywordtype">int</span> socket) -<a name="l00586"></a>00586 { -<a name="l00587"></a>00587 <span class="keywordflow">return</span> (socket < 65536 ? fd_ref_table[socket] : NULL); +<a name="l00514"></a>00514 <span class="keywordflow">return</span> (socket < 65536 ? fd_ref_table[socket] : NULL); +<a name="l00515"></a>00515 } +<a name="l00516"></a>00516 +<a name="l00517"></a><a class="code" href="classServer.html#FindChannel_28std_3A_3Astring_20channel_29">00517</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#FindChannel_28std_3A_3Astring_20channel_29">Server::FindChannel</a>(<a class="code" href="namespaceirc.html#string">std::string</a> channel) +<a name="l00518"></a>00518 { +<a name="l00519"></a>00519 <span class="keywordflow">return</span> FindChan(channel.c_str()); +<a name="l00520"></a>00520 } +<a name="l00521"></a>00521 +<a name="l00522"></a><a class="code" href="classServer.html#ChanMode_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">00522</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#ChanMode_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">Server::ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) +<a name="l00523"></a>00523 { +<a name="l00524"></a>00524 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#cmode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">cmode</a>(User,Chan); +<a name="l00525"></a>00525 } +<a name="l00526"></a>00526 +<a name="l00527"></a><a class="code" href="classServer.html#IsOnChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">00527</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsOnChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">Server::IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) +<a name="l00528"></a>00528 { +<a name="l00529"></a>00529 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#has_5Fchannel_28userrec_20_2Au_2C_20chanrec_20_2Ac_29">has_channel</a>(User,Chan); +<a name="l00530"></a>00530 } +<a name="l00531"></a>00531 +<a name="l00532"></a><a class="code" href="classServer.html#GetServerName_28_29">00532</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetServerName_28_29">Server::GetServerName</a>() +<a name="l00533"></a>00533 { +<a name="l00534"></a>00534 <span class="keywordflow">return</span> getservername(); +<a name="l00535"></a>00535 } +<a name="l00536"></a>00536 +<a name="l00537"></a><a class="code" href="classServer.html#GetNetworkName_28_29">00537</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetNetworkName_28_29">Server::GetNetworkName</a>() +<a name="l00538"></a>00538 { +<a name="l00539"></a>00539 <span class="keywordflow">return</span> getnetworkname(); +<a name="l00540"></a>00540 } +<a name="l00541"></a>00541 +<a name="l00542"></a><a class="code" href="classServer.html#GetServerDescription_28_29">00542</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetServerDescription_28_29">Server::GetServerDescription</a>() +<a name="l00543"></a>00543 { +<a name="l00544"></a>00544 <span class="keywordflow">return</span> getserverdesc(); +<a name="l00545"></a>00545 } +<a name="l00546"></a>00546 +<a name="l00547"></a><a class="code" href="classServer.html#GetAdmin_28_29">00547</a> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#GetAdmin_28_29">Server::GetAdmin</a>() +<a name="l00548"></a>00548 { +<a name="l00549"></a>00549 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); +<a name="l00550"></a>00550 } +<a name="l00551"></a>00551 +<a name="l00552"></a>00552 +<a name="l00553"></a>00553 +<a name="l00554"></a><a class="code" href="classServer.html#AddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fwhen_5Fon_2C_20int_20params_5Fwhen_5Foff_29">00554</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#AddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fwhen_5Fon_2C_20int_20params_5Fwhen_5Foff_29">Server::AddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_when_on, <span class="keywordtype">int</span> params_when_off) +<a name="l00555"></a>00555 { +<a name="l00556"></a>00556 <span class="keywordflow">if</span> (((modechar >= <span class="charliteral">'A'</span>) && (modechar <= <span class="charliteral">'Z'</span>)) || ((modechar >= <span class="charliteral">'a'</span>) && (modechar <= <span class="charliteral">'z'</span>))) +<a name="l00557"></a>00557 { +<a name="l00558"></a>00558 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#MT_5FSERVER">MT_SERVER</a>) +<a name="l00559"></a>00559 { +<a name="l00560"></a>00560 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); +<a name="l00561"></a>00561 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00562"></a>00562 } +<a name="l00563"></a>00563 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#MT_5FCLIENT">MT_CLIENT</a>)) +<a name="l00564"></a>00564 { +<a name="l00565"></a>00565 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); +<a name="l00566"></a>00566 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00567"></a>00567 } +<a name="l00568"></a>00568 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) +<a name="l00569"></a>00569 { +<a name="l00570"></a>00570 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); +<a name="l00571"></a>00571 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00572"></a>00572 } +<a name="l00573"></a>00573 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); +<a name="l00574"></a>00574 } +<a name="l00575"></a>00575 <span class="keywordflow">else</span> +<a name="l00576"></a>00576 { +<a name="l00577"></a>00577 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Muppet modechar detected."</span>); +<a name="l00578"></a>00578 } +<a name="l00579"></a>00579 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00580"></a>00580 } +<a name="l00581"></a>00581 +<a name="l00582"></a><a class="code" href="classServer.html#AddExtendedListMode_28char_20modechar_29">00582</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#AddExtendedListMode_28char_20modechar_29">Server::AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar) +<a name="l00583"></a>00583 { +<a name="l00584"></a>00584 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">DoAddExtendedMode</a>(modechar,<a class="code" href="modules_8h.html#MT_5FCHANNEL">MT_CHANNEL</a>,<span class="keyword">false</span>,1,1); +<a name="l00585"></a>00585 <span class="keywordflow">if</span> (res) +<a name="l00586"></a>00586 <a class="code" href="modules_8cpp.html#ModeMakeList_28char_20modechar_29">ModeMakeList</a>(modechar); +<a name="l00587"></a>00587 <span class="keywordflow">return</span> res; <a name="l00588"></a>00588 } <a name="l00589"></a>00589 -<a name="l00590"></a><a class="code" href="classServer.html#FindChannel_28std_3A_3Astring_20channel_29">00590</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#FindChannel_28std_3A_3Astring_20channel_29">Server::FindChannel</a>(<a class="code" href="namespaceirc.html#string">std::string</a> channel) +<a name="l00590"></a><a class="code" href="classServer.html#CountUsers_28chanrec_20_2Ac_29">00590</a> <span class="keywordtype">int</span> <a class="code" href="classServer.html#CountUsers_28chanrec_20_2Ac_29">Server::CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c) <a name="l00591"></a>00591 { -<a name="l00592"></a>00592 <span class="keywordflow">return</span> FindChan(channel.c_str()); +<a name="l00592"></a>00592 <span class="keywordflow">return</span> usercount(c); <a name="l00593"></a>00593 } <a name="l00594"></a>00594 -<a name="l00595"></a><a class="code" href="classServer.html#ChanMode_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">00595</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#ChanMode_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">Server::ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) -<a name="l00596"></a>00596 { -<a name="l00597"></a>00597 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#cmode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">cmode</a>(User,Chan); -<a name="l00598"></a>00598 } -<a name="l00599"></a>00599 -<a name="l00600"></a><a class="code" href="classServer.html#IsOnChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">00600</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsOnChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">Server::IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) -<a name="l00601"></a>00601 { -<a name="l00602"></a>00602 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#has_5Fchannel_28userrec_20_2Au_2C_20chanrec_20_2Ac_29">has_channel</a>(User,Chan); -<a name="l00603"></a>00603 } -<a name="l00604"></a>00604 -<a name="l00605"></a><a class="code" href="classServer.html#GetServerName_28_29">00605</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetServerName_28_29">Server::GetServerName</a>() -<a name="l00606"></a>00606 { -<a name="l00607"></a>00607 <span class="keywordflow">return</span> getservername(); -<a name="l00608"></a>00608 } -<a name="l00609"></a>00609 -<a name="l00610"></a><a class="code" href="classServer.html#GetNetworkName_28_29">00610</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetNetworkName_28_29">Server::GetNetworkName</a>() -<a name="l00611"></a>00611 { -<a name="l00612"></a>00612 <span class="keywordflow">return</span> getnetworkname(); -<a name="l00613"></a>00613 } -<a name="l00614"></a>00614 -<a name="l00615"></a><a class="code" href="classServer.html#GetServerDescription_28_29">00615</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetServerDescription_28_29">Server::GetServerDescription</a>() -<a name="l00616"></a>00616 { -<a name="l00617"></a>00617 <span class="keywordflow">return</span> getserverdesc(); -<a name="l00618"></a>00618 } -<a name="l00619"></a>00619 -<a name="l00620"></a><a class="code" href="classServer.html#GetAdmin_28_29">00620</a> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#GetAdmin_28_29">Server::GetAdmin</a>() -<a name="l00621"></a>00621 { -<a name="l00622"></a>00622 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); -<a name="l00623"></a>00623 } -<a name="l00624"></a>00624 -<a name="l00625"></a>00625 -<a name="l00626"></a>00626 -<a name="l00627"></a><a class="code" href="classServer.html#AddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fwhen_5Fon_2C_20int_20params_5Fwhen_5Foff_29">00627</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#AddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fwhen_5Fon_2C_20int_20params_5Fwhen_5Foff_29">Server::AddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_when_on, <span class="keywordtype">int</span> params_when_off) -<a name="l00628"></a>00628 { -<a name="l00629"></a>00629 <span class="keywordflow">if</span> (((modechar >= <span class="charliteral">'A'</span>) && (modechar <= <span class="charliteral">'Z'</span>)) || ((modechar >= <span class="charliteral">'a'</span>) && (modechar <= <span class="charliteral">'z'</span>))) -<a name="l00630"></a>00630 { -<a name="l00631"></a>00631 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#MT_5FSERVER">MT_SERVER</a>) -<a name="l00632"></a>00632 { -<a name="l00633"></a>00633 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); -<a name="l00634"></a>00634 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00635"></a>00635 } -<a name="l00636"></a>00636 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#MT_5FCLIENT">MT_CLIENT</a>)) -<a name="l00637"></a>00637 { -<a name="l00638"></a>00638 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); -<a name="l00639"></a>00639 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00640"></a>00640 } -<a name="l00641"></a>00641 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) -<a name="l00642"></a>00642 { -<a name="l00643"></a>00643 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); -<a name="l00644"></a>00644 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00645"></a>00645 } -<a name="l00646"></a>00646 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); -<a name="l00647"></a>00647 } -<a name="l00648"></a>00648 <span class="keywordflow">else</span> -<a name="l00649"></a>00649 { -<a name="l00650"></a>00650 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Muppet modechar detected."</span>); -<a name="l00651"></a>00651 } -<a name="l00652"></a>00652 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00653"></a>00653 } -<a name="l00654"></a>00654 -<a name="l00655"></a><a class="code" href="classServer.html#AddExtendedListMode_28char_20modechar_29">00655</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#AddExtendedListMode_28char_20modechar_29">Server::AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar) -<a name="l00656"></a>00656 { -<a name="l00657"></a>00657 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29">DoAddExtendedMode</a>(modechar,<a class="code" href="modules_8h.html#MT_5FCHANNEL">MT_CHANNEL</a>,<span class="keyword">false</span>,1,1); -<a name="l00658"></a>00658 <span class="keywordflow">if</span> (res) -<a name="l00659"></a>00659 <a class="code" href="modules_8cpp.html#ModeMakeList_28char_20modechar_29">ModeMakeList</a>(modechar); -<a name="l00660"></a>00660 <span class="keywordflow">return</span> res; +<a name="l00595"></a>00595 +<a name="l00596"></a><a class="code" href="classServer.html#UserToPseudo_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">00596</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#UserToPseudo_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">Server::UserToPseudo</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<a class="code" href="namespaceirc.html#string">std::string</a> message) +<a name="l00597"></a>00597 { +<a name="l00598"></a>00598 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> old_fd = user-><a class="code" href="classconnection.html#fd">fd</a>; +<a name="l00599"></a>00599 user-><a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="modules_8h.html#FD_5FMAGIC_5FNUMBER">FD_MAGIC_NUMBER</a>; +<a name="l00600"></a>00600 user-><a class="code" href="classuserrec.html#ClearBuffer_28_29">ClearBuffer</a>(); +<a name="l00601"></a>00601 Write(old_fd,<span class="stringliteral">"ERROR :Closing link (%s@%s) [%s]"</span>,user-><a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,user-><a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,message.c_str()); +<a name="l00602"></a>00602 SE-><a class="code" href="classSocketEngine.html#DelFd_28int_20fd_29">DelFd</a>(old_fd); +<a name="l00603"></a>00603 shutdown(old_fd,2); +<a name="l00604"></a>00604 close(old_fd); +<a name="l00605"></a>00605 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00606"></a>00606 } +<a name="l00607"></a>00607 +<a name="l00608"></a><a class="code" href="classServer.html#PseudoToUser_28userrec_20_2Aalive_2C_20userrec_20_2Azombie_2C_20std_3A_3Astring_20message_29">00608</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#PseudoToUser_28userrec_20_2Aalive_2C_20userrec_20_2Azombie_2C_20std_3A_3Astring_20message_29">Server::PseudoToUser</a>(<a class="code" href="classuserrec.html">userrec</a>* alive,<a class="code" href="classuserrec.html">userrec</a>* zombie,<a class="code" href="namespaceirc.html#string">std::string</a> message) +<a name="l00609"></a>00609 { +<a name="l00610"></a>00610 zombie-><a class="code" href="classconnection.html#fd">fd</a> = alive-><a class="code" href="classconnection.html#fd">fd</a>; +<a name="l00611"></a>00611 alive-><a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="modules_8h.html#FD_5FMAGIC_5FNUMBER">FD_MAGIC_NUMBER</a>; +<a name="l00612"></a>00612 alive-><a class="code" href="classuserrec.html#ClearBuffer_28_29">ClearBuffer</a>(); +<a name="l00613"></a>00613 Write(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">":%s!%s@%s NICK %s"</span>,alive-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,alive-><a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,alive-><a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); +<a name="l00614"></a>00614 kill_link(alive,message.c_str()); +<a name="l00615"></a>00615 fd_ref_table[zombie-><a class="code" href="classconnection.html#fd">fd</a>] = zombie; +<a name="l00616"></a>00616 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < zombie->chans.size(); i++) +<a name="l00617"></a>00617 { +<a name="l00618"></a>00618 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#chans">chans</a>[i].channel != NULL) +<a name="l00619"></a>00619 { +<a name="l00620"></a>00620 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#chans">chans</a>[i].channel->name) +<a name="l00621"></a>00621 { +<a name="l00622"></a>00622 <a class="code" href="classchanrec.html">chanrec</a>* Ptr = zombie-><a class="code" href="classuserrec.html#chans">chans</a>[i].channel; +<a name="l00623"></a>00623 WriteFrom(zombie-><a class="code" href="classconnection.html#fd">fd</a>,zombie,<span class="stringliteral">"JOIN %s"</span>,Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); +<a name="l00624"></a>00624 <span class="keywordflow">if</span> (Ptr-><a class="code" href="classchanrec.html#topicset">topicset</a>) +<a name="l00625"></a>00625 { +<a name="l00626"></a>00626 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"332 %s %s :%s"</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>, Ptr-><a class="code" href="classchanrec.html#topic_5BMAXBUF_5D">topic</a>); +<a name="l00627"></a>00627 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"333 %s %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>, Ptr-><a class="code" href="classchanrec.html#setby_5BNICKMAX_5D">setby</a>, Ptr-><a class="code" href="classchanrec.html#topicset">topicset</a>); +<a name="l00628"></a>00628 } +<a name="l00629"></a>00629 userlist(zombie,Ptr); +<a name="l00630"></a>00630 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"366 %s %s :End of /NAMES list."</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); +<a name="l00631"></a>00631 +<a name="l00632"></a>00632 } +<a name="l00633"></a>00633 } +<a name="l00634"></a>00634 } +<a name="l00635"></a>00635 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00636"></a>00636 } +<a name="l00637"></a>00637 +<a name="l00638"></a><a class="code" href="classServer.html#AddGLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00638</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddGLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Server::AddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) +<a name="l00639"></a>00639 { +<a name="l00640"></a>00640 <a class="code" href="xline_8h.html#add_5Fgline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_gline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +<a name="l00641"></a>00641 } +<a name="l00642"></a>00642 +<a name="l00643"></a><a class="code" href="classServer.html#AddQLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickname_29">00643</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddQLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickname_29">Server::AddQLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> nickname) +<a name="l00644"></a>00644 { +<a name="l00645"></a>00645 <a class="code" href="xline_8h.html#add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29">add_qline</a>(duration, source.c_str(), reason.c_str(), nickname.c_str()); +<a name="l00646"></a>00646 } +<a name="l00647"></a>00647 +<a name="l00648"></a><a class="code" href="classServer.html#AddZLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipaddr_29">00648</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddZLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipaddr_29">Server::AddZLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> ipaddr) +<a name="l00649"></a>00649 { +<a name="l00650"></a>00650 <a class="code" href="xline_8h.html#add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29">add_zline</a>(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +<a name="l00651"></a>00651 } +<a name="l00652"></a>00652 +<a name="l00653"></a><a class="code" href="classServer.html#AddKLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00653</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddKLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Server::AddKLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) +<a name="l00654"></a>00654 { +<a name="l00655"></a>00655 <a class="code" href="xline_8h.html#add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_kline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +<a name="l00656"></a>00656 } +<a name="l00657"></a>00657 +<a name="l00658"></a><a class="code" href="classServer.html#AddELine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00658</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddELine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Server::AddELine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) +<a name="l00659"></a>00659 { +<a name="l00660"></a>00660 <a class="code" href="xline_8h.html#add_5Feline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_eline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); <a name="l00661"></a>00661 } <a name="l00662"></a>00662 -<a name="l00663"></a><a class="code" href="classServer.html#CountUsers_28chanrec_20_2Ac_29">00663</a> <span class="keywordtype">int</span> <a class="code" href="classServer.html#CountUsers_28chanrec_20_2Ac_29">Server::CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c) +<a name="l00663"></a><a class="code" href="classServer.html#DelGLine_28std_3A_3Astring_20hostmask_29">00663</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelGLine_28std_3A_3Astring_20hostmask_29">Server::DelGLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask) <a name="l00664"></a>00664 { -<a name="l00665"></a>00665 <span class="keywordflow">return</span> usercount(c); +<a name="l00665"></a>00665 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fgline_28const_20char_20_2Ahostmask_29">del_gline</a>(hostmask.c_str()); <a name="l00666"></a>00666 } <a name="l00667"></a>00667 -<a name="l00668"></a>00668 -<a name="l00669"></a><a class="code" href="classServer.html#UserToPseudo_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">00669</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#UserToPseudo_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">Server::UserToPseudo</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<a class="code" href="namespaceirc.html#string">std::string</a> message) -<a name="l00670"></a>00670 { -<a name="l00671"></a>00671 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> old_fd = user-><a class="code" href="classconnection.html#fd">fd</a>; -<a name="l00672"></a>00672 user-><a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="modules_8h.html#FD_5FMAGIC_5FNUMBER">FD_MAGIC_NUMBER</a>; -<a name="l00673"></a>00673 user-><a class="code" href="classuserrec.html#ClearBuffer_28_29">ClearBuffer</a>(); -<a name="l00674"></a>00674 Write(old_fd,<span class="stringliteral">"ERROR :Closing link (%s@%s) [%s]"</span>,user-><a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,user-><a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,message.c_str()); -<a name="l00675"></a>00675 SE-><a class="code" href="classSocketEngine.html#DelFd_28int_20fd_29">DelFd</a>(old_fd); -<a name="l00676"></a>00676 shutdown(old_fd,2); -<a name="l00677"></a>00677 close(old_fd); -<a name="l00678"></a>00678 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00679"></a>00679 } -<a name="l00680"></a>00680 -<a name="l00681"></a><a class="code" href="classServer.html#PseudoToUser_28userrec_20_2Aalive_2C_20userrec_20_2Azombie_2C_20std_3A_3Astring_20message_29">00681</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#PseudoToUser_28userrec_20_2Aalive_2C_20userrec_20_2Azombie_2C_20std_3A_3Astring_20message_29">Server::PseudoToUser</a>(<a class="code" href="classuserrec.html">userrec</a>* alive,<a class="code" href="classuserrec.html">userrec</a>* zombie,<a class="code" href="namespaceirc.html#string">std::string</a> message) -<a name="l00682"></a>00682 { -<a name="l00683"></a>00683 zombie-><a class="code" href="classconnection.html#fd">fd</a> = alive-><a class="code" href="classconnection.html#fd">fd</a>; -<a name="l00684"></a>00684 alive-><a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="modules_8h.html#FD_5FMAGIC_5FNUMBER">FD_MAGIC_NUMBER</a>; -<a name="l00685"></a>00685 alive-><a class="code" href="classuserrec.html#ClearBuffer_28_29">ClearBuffer</a>(); -<a name="l00686"></a>00686 Write(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">":%s!%s@%s NICK %s"</span>,alive-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,alive-><a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,alive-><a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); -<a name="l00687"></a>00687 kill_link(alive,message.c_str()); -<a name="l00688"></a>00688 fd_ref_table[zombie-><a class="code" href="classconnection.html#fd">fd</a>] = zombie; -<a name="l00689"></a>00689 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i != MAXCHANS; i++) -<a name="l00690"></a>00690 { -<a name="l00691"></a>00691 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[i].<a class="code" href="classucrec.html#channel">channel</a> != NULL) -<a name="l00692"></a>00692 { -<a name="l00693"></a>00693 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[i].<a class="code" href="classucrec.html#channel">channel</a>-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>) -<a name="l00694"></a>00694 { -<a name="l00695"></a>00695 <a class="code" href="classchanrec.html">chanrec</a>* Ptr = zombie-><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[i].<a class="code" href="classucrec.html#channel">channel</a>; -<a name="l00696"></a>00696 WriteFrom(zombie-><a class="code" href="classconnection.html#fd">fd</a>,zombie,<span class="stringliteral">"JOIN %s"</span>,Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); -<a name="l00697"></a>00697 <span class="keywordflow">if</span> (Ptr-><a class="code" href="classchanrec.html#topicset">topicset</a>) -<a name="l00698"></a>00698 { -<a name="l00699"></a>00699 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"332 %s %s :%s"</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>, Ptr-><a class="code" href="classchanrec.html#topic_5BMAXBUF_5D">topic</a>); -<a name="l00700"></a>00700 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"333 %s %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>, Ptr-><a class="code" href="classchanrec.html#setby_5BNICKMAX_5D">setby</a>, Ptr-><a class="code" href="classchanrec.html#topicset">topicset</a>); -<a name="l00701"></a>00701 } -<a name="l00702"></a>00702 userlist(zombie,Ptr); -<a name="l00703"></a>00703 WriteServ(zombie-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"366 %s %s :End of /NAMES list."</span>, zombie-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>, Ptr-><a class="code" href="classchanrec.html#name_5BCHANMAX_5D">name</a>); -<a name="l00704"></a>00704 -<a name="l00705"></a>00705 } -<a name="l00706"></a>00706 } -<a name="l00707"></a>00707 } -<a name="l00708"></a>00708 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00709"></a>00709 } -<a name="l00710"></a>00710 -<a name="l00711"></a><a class="code" href="classServer.html#AddGLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00711</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddGLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Server::AddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) -<a name="l00712"></a>00712 { -<a name="l00713"></a>00713 <a class="code" href="xline_8h.html#add_5Fgline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_gline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -<a name="l00714"></a>00714 } -<a name="l00715"></a>00715 -<a name="l00716"></a><a class="code" href="classServer.html#AddQLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickname_29">00716</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddQLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickname_29">Server::AddQLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> nickname) -<a name="l00717"></a>00717 { -<a name="l00718"></a>00718 <a class="code" href="xline_8h.html#add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29">add_qline</a>(duration, source.c_str(), reason.c_str(), nickname.c_str()); -<a name="l00719"></a>00719 } -<a name="l00720"></a>00720 -<a name="l00721"></a><a class="code" href="classServer.html#AddZLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipaddr_29">00721</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddZLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipaddr_29">Server::AddZLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> ipaddr) -<a name="l00722"></a>00722 { -<a name="l00723"></a>00723 <a class="code" href="xline_8h.html#add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29">add_zline</a>(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -<a name="l00724"></a>00724 } -<a name="l00725"></a>00725 -<a name="l00726"></a><a class="code" href="classServer.html#AddKLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00726</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddKLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Server::AddKLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) -<a name="l00727"></a>00727 { -<a name="l00728"></a>00728 <a class="code" href="xline_8h.html#add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_kline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -<a name="l00729"></a>00729 } -<a name="l00730"></a>00730 -<a name="l00731"></a><a class="code" href="classServer.html#AddELine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">00731</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddELine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">Server::AddELine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask) -<a name="l00732"></a>00732 { -<a name="l00733"></a>00733 <a class="code" href="xline_8h.html#add_5Feline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_eline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -<a name="l00734"></a>00734 } -<a name="l00735"></a>00735 -<a name="l00736"></a><a class="code" href="classServer.html#DelGLine_28std_3A_3Astring_20hostmask_29">00736</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelGLine_28std_3A_3Astring_20hostmask_29">Server::DelGLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask) -<a name="l00737"></a>00737 { -<a name="l00738"></a>00738 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fgline_28const_20char_20_2Ahostmask_29">del_gline</a>(hostmask.c_str()); -<a name="l00739"></a>00739 } -<a name="l00740"></a>00740 -<a name="l00741"></a><a class="code" href="classServer.html#DelQLine_28std_3A_3Astring_20nickname_29">00741</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelQLine_28std_3A_3Astring_20nickname_29">Server::DelQLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nickname) -<a name="l00742"></a>00742 { -<a name="l00743"></a>00743 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fqline_28const_20char_20_2Anickname_29">del_qline</a>(nickname.c_str()); -<a name="l00744"></a>00744 } -<a name="l00745"></a>00745 -<a name="l00746"></a><a class="code" href="classServer.html#DelZLine_28std_3A_3Astring_20ipaddr_29">00746</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelZLine_28std_3A_3Astring_20ipaddr_29">Server::DelZLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> ipaddr) -<a name="l00747"></a>00747 { -<a name="l00748"></a>00748 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">del_zline</a>(ipaddr.c_str()); -<a name="l00749"></a>00749 } -<a name="l00750"></a>00750 -<a name="l00751"></a><a class="code" href="classServer.html#DelKLine_28std_3A_3Astring_20hostmask_29">00751</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelKLine_28std_3A_3Astring_20hostmask_29">Server::DelKLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask) -<a name="l00752"></a>00752 { -<a name="l00753"></a>00753 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fkline_28const_20char_20_2Ahostmask_29">del_kline</a>(hostmask.c_str()); -<a name="l00754"></a>00754 } -<a name="l00755"></a>00755 -<a name="l00756"></a><a class="code" href="classServer.html#DelELine_28std_3A_3Astring_20hostmask_29">00756</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelELine_28std_3A_3Astring_20hostmask_29">Server::DelELine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask) -<a name="l00757"></a>00757 { -<a name="l00758"></a>00758 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Feline_28const_20char_20_2Ahostmask_29">del_eline</a>(hostmask.c_str()); -<a name="l00759"></a>00759 } -<a name="l00760"></a>00760 -<a name="l00761"></a><a class="code" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">00761</a> <span class="keywordtype">long</span> <a class="code" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">Server::CalcDuration</a>(<a class="code" href="namespaceirc.html#string">std::string</a> delta) -<a name="l00762"></a>00762 { -<a name="l00763"></a>00763 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>(delta.c_str()); -<a name="l00764"></a>00764 } -<a name="l00765"></a>00765 -<a name="l00766"></a><a class="code" href="classServer.html#IsValidMask_28std_3A_3Astring_20mask_29">00766</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsValidMask_28std_3A_3Astring_20mask_29">Server::IsValidMask</a>(<a class="code" href="namespaceirc.html#string">std::string</a> mask) -<a name="l00767"></a>00767 { -<a name="l00768"></a>00768 <span class="keyword">const</span> <span class="keywordtype">char</span>* dest = mask.c_str(); -<a name="l00769"></a>00769 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'!'</span>)==0) -<a name="l00770"></a>00770 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00771"></a>00771 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'@'</span>)==0) -<a name="l00772"></a>00772 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00773"></a>00773 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -<a name="l00774"></a>00774 <span class="keywordflow">if</span> (dest[i] < 32) -<a name="l00775"></a>00775 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00776"></a>00776 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -<a name="l00777"></a>00777 <span class="keywordflow">if</span> (dest[i] > 126) -<a name="l00778"></a>00778 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00779"></a>00779 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> c = 0; -<a name="l00780"></a>00780 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -<a name="l00781"></a>00781 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'!'</span>) -<a name="l00782"></a>00782 c++; -<a name="l00783"></a>00783 <span class="keywordflow">if</span> (c>1) -<a name="l00784"></a>00784 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00785"></a>00785 c = 0; -<a name="l00786"></a>00786 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -<a name="l00787"></a>00787 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'@'</span>) -<a name="l00788"></a>00788 c++; -<a name="l00789"></a>00789 <span class="keywordflow">if</span> (c>1) -<a name="l00790"></a>00790 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00791"></a>00791 -<a name="l00792"></a>00792 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00793"></a>00793 } -<a name="l00794"></a>00794 -<a name="l00795"></a><a class="code" href="classServer.html#FindModule_28std_3A_3Astring_20name_29">00795</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classServer.html#FindModule_28std_3A_3Astring_20name_29">Server::FindModule</a>(<a class="code" href="namespaceirc.html#string">std::string</a> name) -<a name="l00796"></a>00796 { -<a name="l00797"></a>00797 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i <= <a class="code" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a>; i++) -<a name="l00798"></a>00798 { -<a name="l00799"></a>00799 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#module_5Fnames">module_names</a>[i] == name) -<a name="l00800"></a>00800 { -<a name="l00801"></a>00801 <span class="keywordflow">return</span> <a class="code" href="channels_8cpp.html#modules">modules</a>[i]; -<a name="l00802"></a>00802 } -<a name="l00803"></a>00803 } -<a name="l00804"></a>00804 <span class="keywordflow">return</span> NULL; -<a name="l00805"></a>00805 } -<a name="l00806"></a>00806 -<a name="l00807"></a><a class="code" href="classConfigReader.html#ConfigReader_28_29">00807</a> <a class="code" href="classConfigReader.html#ConfigReader_28_29">ConfigReader::ConfigReader</a>() -<a name="l00808"></a>00808 { -<a name="l00809"></a>00809 <a class="code" href="modules_8cpp.html#include_5Fstack">include_stack</a>.clear(); -<a name="l00810"></a>00810 this-><a class="code" href="classConfigReader.html#cache">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -<a name="l00811"></a>00811 this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -<a name="l00812"></a>00812 this-><a class="code" href="classConfigReader.html#readerror">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -<a name="l00813"></a>00813 <span class="keywordflow">if</span> (!this->readerror) -<a name="l00814"></a>00814 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">CONF_FILE_NOT_FOUND</a>; -<a name="l00815"></a>00815 } -<a name="l00816"></a>00816 -<a name="l00817"></a>00817 -<a name="l00818"></a><a class="code" href="classConfigReader.html#_7EConfigReader_28_29">00818</a> <a class="code" href="classConfigReader.html#_7EConfigReader_28_29">ConfigReader::~ConfigReader</a>() -<a name="l00819"></a>00819 { -<a name="l00820"></a>00820 <span class="keywordflow">if</span> (this->cache) -<a name="l00821"></a>00821 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#cache">cache</a>; -<a name="l00822"></a>00822 <span class="keywordflow">if</span> (this->errorlog) -<a name="l00823"></a>00823 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a>; +<a name="l00668"></a><a class="code" href="classServer.html#DelQLine_28std_3A_3Astring_20nickname_29">00668</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelQLine_28std_3A_3Astring_20nickname_29">Server::DelQLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nickname) +<a name="l00669"></a>00669 { +<a name="l00670"></a>00670 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fqline_28const_20char_20_2Anickname_29">del_qline</a>(nickname.c_str()); +<a name="l00671"></a>00671 } +<a name="l00672"></a>00672 +<a name="l00673"></a><a class="code" href="classServer.html#DelZLine_28std_3A_3Astring_20ipaddr_29">00673</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelZLine_28std_3A_3Astring_20ipaddr_29">Server::DelZLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> ipaddr) +<a name="l00674"></a>00674 { +<a name="l00675"></a>00675 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">del_zline</a>(ipaddr.c_str()); +<a name="l00676"></a>00676 } +<a name="l00677"></a>00677 +<a name="l00678"></a><a class="code" href="classServer.html#DelKLine_28std_3A_3Astring_20hostmask_29">00678</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelKLine_28std_3A_3Astring_20hostmask_29">Server::DelKLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask) +<a name="l00679"></a>00679 { +<a name="l00680"></a>00680 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Fkline_28const_20char_20_2Ahostmask_29">del_kline</a>(hostmask.c_str()); +<a name="l00681"></a>00681 } +<a name="l00682"></a>00682 +<a name="l00683"></a><a class="code" href="classServer.html#DelELine_28std_3A_3Astring_20hostmask_29">00683</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelELine_28std_3A_3Astring_20hostmask_29">Server::DelELine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask) +<a name="l00684"></a>00684 { +<a name="l00685"></a>00685 <span class="keywordflow">return</span> <a class="code" href="xline_8h.html#del_5Feline_28const_20char_20_2Ahostmask_29">del_eline</a>(hostmask.c_str()); +<a name="l00686"></a>00686 } +<a name="l00687"></a>00687 +<a name="l00688"></a><a class="code" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">00688</a> <span class="keywordtype">long</span> <a class="code" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">Server::CalcDuration</a>(<a class="code" href="namespaceirc.html#string">std::string</a> delta) +<a name="l00689"></a>00689 { +<a name="l00690"></a>00690 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>(delta.c_str()); +<a name="l00691"></a>00691 } +<a name="l00692"></a>00692 +<a name="l00693"></a><a class="code" href="classServer.html#IsValidMask_28std_3A_3Astring_20mask_29">00693</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsValidMask_28std_3A_3Astring_20mask_29">Server::IsValidMask</a>(<a class="code" href="namespaceirc.html#string">std::string</a> mask) +<a name="l00694"></a>00694 { +<a name="l00695"></a>00695 <span class="keyword">const</span> <span class="keywordtype">char</span>* dest = mask.c_str(); +<a name="l00696"></a>00696 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'!'</span>)==0) +<a name="l00697"></a>00697 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00698"></a>00698 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'@'</span>)==0) +<a name="l00699"></a>00699 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00700"></a>00700 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +<a name="l00701"></a>00701 <span class="keywordflow">if</span> (dest[i] < 32) +<a name="l00702"></a>00702 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00703"></a>00703 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +<a name="l00704"></a>00704 <span class="keywordflow">if</span> (dest[i] > 126) +<a name="l00705"></a>00705 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00706"></a>00706 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> c = 0; +<a name="l00707"></a>00707 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +<a name="l00708"></a>00708 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'!'</span>) +<a name="l00709"></a>00709 c++; +<a name="l00710"></a>00710 <span class="keywordflow">if</span> (c>1) +<a name="l00711"></a>00711 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00712"></a>00712 c = 0; +<a name="l00713"></a>00713 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +<a name="l00714"></a>00714 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'@'</span>) +<a name="l00715"></a>00715 c++; +<a name="l00716"></a>00716 <span class="keywordflow">if</span> (c>1) +<a name="l00717"></a>00717 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00718"></a>00718 +<a name="l00719"></a>00719 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00720"></a>00720 } +<a name="l00721"></a>00721 +<a name="l00722"></a><a class="code" href="classServer.html#FindModule_28std_3A_3Astring_20name_29">00722</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classServer.html#FindModule_28std_3A_3Astring_20name_29">Server::FindModule</a>(<a class="code" href="namespaceirc.html#string">std::string</a> name) +<a name="l00723"></a>00723 { +<a name="l00724"></a>00724 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i <= <a class="code" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a>; i++) +<a name="l00725"></a>00725 { +<a name="l00726"></a>00726 <span class="keywordflow">if</span> (Config-><a class="code" href="classServerConfig.html#module_5Fnames">module_names</a>[i] == name) +<a name="l00727"></a>00727 { +<a name="l00728"></a>00728 <span class="keywordflow">return</span> <a class="code" href="channels_8cpp.html#modules">modules</a>[i]; +<a name="l00729"></a>00729 } +<a name="l00730"></a>00730 } +<a name="l00731"></a>00731 <span class="keywordflow">return</span> NULL; +<a name="l00732"></a>00732 } +<a name="l00733"></a>00733 +<a name="l00734"></a><a class="code" href="classConfigReader.html#ConfigReader_28_29">00734</a> <a class="code" href="classConfigReader.html#ConfigReader_28_29">ConfigReader::ConfigReader</a>() +<a name="l00735"></a>00735 { +<a name="l00736"></a>00736 Config-><a class="code" href="classServerConfig.html#ClearStack_28_29">ClearStack</a>(); +<a name="l00737"></a>00737 this-><a class="code" href="classConfigReader.html#cache">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +<a name="l00738"></a>00738 this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +<a name="l00739"></a>00739 this-><a class="code" href="classConfigReader.html#readerror">readerror</a> = Config-><a class="code" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">LoadConf</a>(CONFIG_FILE,this->cache,this->errorlog); +<a name="l00740"></a>00740 <span class="keywordflow">if</span> (!this->readerror) +<a name="l00741"></a>00741 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">CONF_FILE_NOT_FOUND</a>; +<a name="l00742"></a>00742 } +<a name="l00743"></a>00743 +<a name="l00744"></a>00744 +<a name="l00745"></a><a class="code" href="classConfigReader.html#_7EConfigReader_28_29">00745</a> <a class="code" href="classConfigReader.html#_7EConfigReader_28_29">ConfigReader::~ConfigReader</a>() +<a name="l00746"></a>00746 { +<a name="l00747"></a>00747 <span class="keywordflow">if</span> (this->cache) +<a name="l00748"></a>00748 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#cache">cache</a>; +<a name="l00749"></a>00749 <span class="keywordflow">if</span> (this->errorlog) +<a name="l00750"></a>00750 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a>; +<a name="l00751"></a>00751 } +<a name="l00752"></a>00752 +<a name="l00753"></a>00753 +<a name="l00754"></a><a class="code" href="classConfigReader.html#ConfigReader_28std_3A_3Astring_20filename_29">00754</a> <a class="code" href="classConfigReader.html#ConfigReader_28_29">ConfigReader::ConfigReader</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename) +<a name="l00755"></a>00755 { +<a name="l00756"></a>00756 Config-><a class="code" href="classServerConfig.html#ClearStack_28_29">ClearStack</a>(); +<a name="l00757"></a>00757 this-><a class="code" href="classConfigReader.html#cache">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +<a name="l00758"></a>00758 this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +<a name="l00759"></a>00759 this-><a class="code" href="classConfigReader.html#readerror">readerror</a> = Config-><a class="code" href="classServerConfig.html#LoadConf_28const_20char_20_2Afilename_2C_20std_3A_3Astringstream_20_2Atarget_2C_20std_3A_3Astringstream_20_2Aerrorstream_29">LoadConf</a>(filename.c_str(),this-><a class="code" href="classConfigReader.html#cache">cache</a>,this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a>); +<a name="l00760"></a>00760 <span class="keywordflow">if</span> (!this->readerror) +<a name="l00761"></a>00761 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">CONF_FILE_NOT_FOUND</a>; +<a name="l00762"></a>00762 }; +<a name="l00763"></a>00763 +<a name="l00764"></a><a class="code" href="classConfigReader.html#ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">00764</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classConfigReader.html#ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ConfigReader::ReadValue</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index) +<a name="l00765"></a>00765 { +<a name="l00766"></a>00766 <span class="keywordtype">char</span> val[MAXBUF]; +<a name="l00767"></a>00767 <span class="keywordtype">char</span> t[MAXBUF]; +<a name="l00768"></a>00768 <span class="keywordtype">char</span> n[MAXBUF]; +<a name="l00769"></a>00769 strlcpy(t,tag.c_str(),MAXBUF); +<a name="l00770"></a>00770 strlcpy(n,name.c_str(),MAXBUF); +<a name="l00771"></a>00771 <span class="keywordtype">int</span> res = Config-><a class="code" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ReadConf</a>(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); +<a name="l00772"></a>00772 <span class="keywordflow">if</span> (!res) +<a name="l00773"></a>00773 { +<a name="l00774"></a>00774 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; +<a name="l00775"></a>00775 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +<a name="l00776"></a>00776 } +<a name="l00777"></a>00777 <span class="keywordflow">return</span> val; +<a name="l00778"></a>00778 } +<a name="l00779"></a>00779 +<a name="l00780"></a><a class="code" href="classConfigReader.html#ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">00780</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ConfigReader::ReadFlag</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index) +<a name="l00781"></a>00781 { +<a name="l00782"></a>00782 <span class="keywordtype">char</span> val[MAXBUF]; +<a name="l00783"></a>00783 <span class="keywordtype">char</span> t[MAXBUF]; +<a name="l00784"></a>00784 <span class="keywordtype">char</span> n[MAXBUF]; +<a name="l00785"></a>00785 strlcpy(t,tag.c_str(),MAXBUF); +<a name="l00786"></a>00786 strlcpy(n,name.c_str(),MAXBUF); +<a name="l00787"></a>00787 <span class="keywordtype">int</span> res = Config-><a class="code" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ReadConf</a>(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); +<a name="l00788"></a>00788 <span class="keywordflow">if</span> (!res) +<a name="l00789"></a>00789 { +<a name="l00790"></a>00790 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; +<a name="l00791"></a>00791 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00792"></a>00792 } +<a name="l00793"></a>00793 <a class="code" href="namespaceirc.html#string">std::string</a> s = val; +<a name="l00794"></a>00794 <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>)); +<a name="l00795"></a>00795 } +<a name="l00796"></a>00796 +<a name="l00797"></a><a class="code" href="classConfigReader.html#ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29">00797</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29">ConfigReader::ReadInteger</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned) +<a name="l00798"></a>00798 { +<a name="l00799"></a>00799 <span class="keywordtype">char</span> val[MAXBUF]; +<a name="l00800"></a>00800 <span class="keywordtype">char</span> t[MAXBUF]; +<a name="l00801"></a>00801 <span class="keywordtype">char</span> n[MAXBUF]; +<a name="l00802"></a>00802 strlcpy(t,tag.c_str(),MAXBUF); +<a name="l00803"></a>00803 strlcpy(n,name.c_str(),MAXBUF); +<a name="l00804"></a>00804 <span class="keywordtype">int</span> res = Config-><a class="code" href="classServerConfig.html#ReadConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_2C_20const_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_29">ReadConf</a>(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); +<a name="l00805"></a>00805 <span class="keywordflow">if</span> (!res) +<a name="l00806"></a>00806 { +<a name="l00807"></a>00807 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; +<a name="l00808"></a>00808 <span class="keywordflow">return</span> 0; +<a name="l00809"></a>00809 } +<a name="l00810"></a>00810 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(val); i++) +<a name="l00811"></a>00811 { +<a name="l00812"></a>00812 <span class="keywordflow">if</span> (!isdigit(val[i])) +<a name="l00813"></a>00813 { +<a name="l00814"></a>00814 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FNOT_5FA_5FNUMBER">CONF_NOT_A_NUMBER</a>; +<a name="l00815"></a>00815 <span class="keywordflow">return</span> 0; +<a name="l00816"></a>00816 } +<a name="l00817"></a>00817 } +<a name="l00818"></a>00818 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) +<a name="l00819"></a>00819 { +<a name="l00820"></a>00820 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FNOT_5FUNSIGNED">CONF_NOT_UNSIGNED</a>; +<a name="l00821"></a>00821 <span class="keywordflow">return</span> 0; +<a name="l00822"></a>00822 } +<a name="l00823"></a>00823 <span class="keywordflow">return</span> atoi(val); <a name="l00824"></a>00824 } <a name="l00825"></a>00825 -<a name="l00826"></a>00826 -<a name="l00827"></a><a class="code" href="classConfigReader.html#ConfigReader_28std_3A_3Astring_20filename_29">00827</a> <a class="code" href="classConfigReader.html#ConfigReader_28_29">ConfigReader::ConfigReader</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename) -<a name="l00828"></a>00828 { -<a name="l00829"></a>00829 this-><a class="code" href="classConfigReader.html#cache">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -<a name="l00830"></a>00830 this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -<a name="l00831"></a>00831 this-><a class="code" href="classConfigReader.html#readerror">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#cache">cache</a>,this-><a class="code" href="classConfigReader.html#errorlog">errorlog</a>); -<a name="l00832"></a>00832 <span class="keywordflow">if</span> (!this->readerror) -<a name="l00833"></a>00833 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">CONF_FILE_NOT_FOUND</a>; -<a name="l00834"></a>00834 }; -<a name="l00835"></a>00835 -<a name="l00836"></a><a class="code" href="classConfigReader.html#ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">00836</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classConfigReader.html#ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ConfigReader::ReadValue</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index) -<a name="l00837"></a>00837 { -<a name="l00838"></a>00838 <span class="keywordtype">char</span> val[MAXBUF]; -<a name="l00839"></a>00839 <span class="keywordtype">char</span> t[MAXBUF]; -<a name="l00840"></a>00840 <span class="keywordtype">char</span> n[MAXBUF]; -<a name="l00841"></a>00841 strlcpy(t,tag.c_str(),MAXBUF); -<a name="l00842"></a>00842 strlcpy(n,name.c_str(),MAXBUF); -<a name="l00843"></a>00843 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); -<a name="l00844"></a>00844 <span class="keywordflow">if</span> (!res) -<a name="l00845"></a>00845 { -<a name="l00846"></a>00846 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; -<a name="l00847"></a>00847 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -<a name="l00848"></a>00848 } -<a name="l00849"></a>00849 <span class="keywordflow">return</span> val; -<a name="l00850"></a>00850 } -<a name="l00851"></a>00851 -<a name="l00852"></a><a class="code" href="classConfigReader.html#ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">00852</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ConfigReader::ReadFlag</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index) -<a name="l00853"></a>00853 { -<a name="l00854"></a>00854 <span class="keywordtype">char</span> val[MAXBUF]; -<a name="l00855"></a>00855 <span class="keywordtype">char</span> t[MAXBUF]; -<a name="l00856"></a>00856 <span class="keywordtype">char</span> n[MAXBUF]; -<a name="l00857"></a>00857 strlcpy(t,tag.c_str(),MAXBUF); -<a name="l00858"></a>00858 strlcpy(n,name.c_str(),MAXBUF); -<a name="l00859"></a>00859 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); -<a name="l00860"></a>00860 <span class="keywordflow">if</span> (!res) -<a name="l00861"></a>00861 { -<a name="l00862"></a>00862 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; -<a name="l00863"></a>00863 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00864"></a>00864 } -<a name="l00865"></a>00865 <a class="code" href="namespaceirc.html#string">std::string</a> s = val; -<a name="l00866"></a>00866 <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>)); -<a name="l00867"></a>00867 } -<a name="l00868"></a>00868 -<a name="l00869"></a><a class="code" href="classConfigReader.html#ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29">00869</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29">ConfigReader::ReadInteger</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned) -<a name="l00870"></a>00870 { -<a name="l00871"></a>00871 <span class="keywordtype">char</span> val[MAXBUF]; -<a name="l00872"></a>00872 <span class="keywordtype">char</span> t[MAXBUF]; -<a name="l00873"></a>00873 <span class="keywordtype">char</span> n[MAXBUF]; -<a name="l00874"></a>00874 strlcpy(t,tag.c_str(),MAXBUF); -<a name="l00875"></a>00875 strlcpy(n,name.c_str(),MAXBUF); -<a name="l00876"></a>00876 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#cache">cache</a>,t,n,index,val); -<a name="l00877"></a>00877 <span class="keywordflow">if</span> (!res) -<a name="l00878"></a>00878 { -<a name="l00879"></a>00879 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">CONF_VALUE_NOT_FOUND</a>; -<a name="l00880"></a>00880 <span class="keywordflow">return</span> 0; -<a name="l00881"></a>00881 } -<a name="l00882"></a>00882 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < strlen(val); i++) -<a name="l00883"></a>00883 { -<a name="l00884"></a>00884 <span class="keywordflow">if</span> (!isdigit(val[i])) -<a name="l00885"></a>00885 { -<a name="l00886"></a>00886 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FNOT_5FA_5FNUMBER">CONF_NOT_A_NUMBER</a>; -<a name="l00887"></a>00887 <span class="keywordflow">return</span> 0; -<a name="l00888"></a>00888 } -<a name="l00889"></a>00889 } -<a name="l00890"></a>00890 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) -<a name="l00891"></a>00891 { -<a name="l00892"></a>00892 this-><a class="code" href="classConfigReader.html#error">error</a> = <a class="code" href="modules_8h.html#CONF_5FNOT_5FUNSIGNED">CONF_NOT_UNSIGNED</a>; -<a name="l00893"></a>00893 <span class="keywordflow">return</span> 0; -<a name="l00894"></a>00894 } -<a name="l00895"></a>00895 <span class="keywordflow">return</span> atoi(val); -<a name="l00896"></a>00896 } -<a name="l00897"></a>00897 -<a name="l00898"></a><a class="code" href="classConfigReader.html#GetError_28_29">00898</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#GetError_28_29">ConfigReader::GetError</a>() -<a name="l00899"></a>00899 { -<a name="l00900"></a>00900 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#error">error</a>; -<a name="l00901"></a>00901 this-><a class="code" href="classConfigReader.html#error">error</a> = 0; -<a name="l00902"></a>00902 <span class="keywordflow">return</span> olderr; +<a name="l00826"></a><a class="code" href="classConfigReader.html#GetError_28_29">00826</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#GetError_28_29">ConfigReader::GetError</a>() +<a name="l00827"></a>00827 { +<a name="l00828"></a>00828 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#error">error</a>; +<a name="l00829"></a>00829 this-><a class="code" href="classConfigReader.html#error">error</a> = 0; +<a name="l00830"></a>00830 <span class="keywordflow">return</span> olderr; +<a name="l00831"></a>00831 } +<a name="l00832"></a>00832 +<a name="l00833"></a><a class="code" href="classConfigReader.html#DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29">00833</a> <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29">ConfigReader::DumpErrors</a>(<span class="keywordtype">bool</span> bail, <a class="code" href="classuserrec.html">userrec</a>* user) +<a name="l00834"></a>00834 { +<a name="l00835"></a>00835 <span class="keywordflow">if</span> (bail) +<a name="l00836"></a>00836 { +<a name="l00837"></a>00837 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->str().c_str()); +<a name="l00838"></a>00838 exit(0); +<a name="l00839"></a>00839 } +<a name="l00840"></a>00840 <span class="keywordflow">else</span> +<a name="l00841"></a>00841 { +<a name="l00842"></a>00842 <span class="keywordtype">char</span> dataline[1024]; +<a name="l00843"></a>00843 <span class="keywordflow">if</span> (user) +<a name="l00844"></a>00844 { +<a name="l00845"></a>00845 WriteServ(user-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); +<a name="l00846"></a>00846 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->eof()) +<a name="l00847"></a>00847 { +<a name="l00848"></a>00848 <a class="code" href="classConfigReader.html#errorlog">errorlog</a>->getline(dataline,1024); +<a name="l00849"></a>00849 WriteServ(user-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,dataline); +<a name="l00850"></a>00850 } +<a name="l00851"></a>00851 } +<a name="l00852"></a>00852 <span class="keywordflow">else</span> +<a name="l00853"></a>00853 { +<a name="l00854"></a>00854 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); +<a name="l00855"></a>00855 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->eof()) +<a name="l00856"></a>00856 { +<a name="l00857"></a>00857 <a class="code" href="classConfigReader.html#errorlog">errorlog</a>->getline(dataline,1024); +<a name="l00858"></a>00858 WriteOpers(dataline); +<a name="l00859"></a>00859 } +<a name="l00860"></a>00860 } +<a name="l00861"></a>00861 <span class="keywordflow">return</span>; +<a name="l00862"></a>00862 } +<a name="l00863"></a>00863 } +<a name="l00864"></a>00864 +<a name="l00865"></a>00865 +<a name="l00866"></a><a class="code" href="classConfigReader.html#Enumerate_28std_3A_3Astring_20tag_29">00866</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#Enumerate_28std_3A_3Astring_20tag_29">ConfigReader::Enumerate</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag) +<a name="l00867"></a>00867 { +<a name="l00868"></a>00868 <span class="keywordflow">return</span> Config-><a class="code" href="classServerConfig.html#EnumConf_28std_3A_3Astringstream_20_2Aconfig_5Ff_2C_20const_20char_20_2Atag_29">EnumConf</a>(<a class="code" href="classConfigReader.html#cache">cache</a>,tag.c_str()); +<a name="l00869"></a>00869 } +<a name="l00870"></a>00870 +<a name="l00871"></a><a class="code" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">00871</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">ConfigReader::EnumerateValues</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <span class="keywordtype">int</span> index) +<a name="l00872"></a>00872 { +<a name="l00873"></a>00873 <span class="keywordflow">return</span> Config-><a class="code" href="classServerConfig.html#EnumValues_28std_3A_3Astringstream_20_2Aconfig_2C_20const_20char_20_2Atag_2C_20int_20index_29">EnumValues</a>(<a class="code" href="classConfigReader.html#cache">cache</a>, tag.c_str(), index); +<a name="l00874"></a>00874 } +<a name="l00875"></a>00875 +<a name="l00876"></a><a class="code" href="classConfigReader.html#Verify_28_29">00876</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#Verify_28_29">ConfigReader::Verify</a>() +<a name="l00877"></a>00877 { +<a name="l00878"></a>00878 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#readerror">readerror</a>; +<a name="l00879"></a>00879 } +<a name="l00880"></a>00880 +<a name="l00881"></a>00881 +<a name="l00882"></a><a class="code" href="classFileReader.html#FileReader_28std_3A_3Astring_20filename_29">00882</a> <a class="code" href="classFileReader.html#FileReader_28_29">FileReader::FileReader</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename) +<a name="l00883"></a>00883 { +<a name="l00884"></a>00884 <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> c; +<a name="l00885"></a>00885 readfile(c,filename.c_str()); +<a name="l00886"></a>00886 this-><a class="code" href="classFileReader.html#fc">fc</a> = c; +<a name="l00887"></a>00887 } +<a name="l00888"></a>00888 +<a name="l00889"></a><a class="code" href="classFileReader.html#FileReader_28_29">00889</a> <a class="code" href="classFileReader.html#FileReader_28_29">FileReader::FileReader</a>() +<a name="l00890"></a>00890 { +<a name="l00891"></a>00891 } +<a name="l00892"></a>00892 +<a name="l00893"></a><a class="code" href="classFileReader.html#LoadFile_28std_3A_3Astring_20filename_29">00893</a> <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#LoadFile_28std_3A_3Astring_20filename_29">FileReader::LoadFile</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename) +<a name="l00894"></a>00894 { +<a name="l00895"></a>00895 <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> c; +<a name="l00896"></a>00896 readfile(c,filename.c_str()); +<a name="l00897"></a>00897 this-><a class="code" href="classFileReader.html#fc">fc</a> = c; +<a name="l00898"></a>00898 } +<a name="l00899"></a>00899 +<a name="l00900"></a>00900 +<a name="l00901"></a><a class="code" href="classFileReader.html#_7EFileReader_28_29">00901</a> <a class="code" href="classFileReader.html#_7EFileReader_28_29">FileReader::~FileReader</a>() +<a name="l00902"></a>00902 { <a name="l00903"></a>00903 } <a name="l00904"></a>00904 -<a name="l00905"></a><a class="code" href="classConfigReader.html#DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29">00905</a> <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29">ConfigReader::DumpErrors</a>(<span class="keywordtype">bool</span> bail, <a class="code" href="classuserrec.html">userrec</a>* user) +<a name="l00905"></a><a class="code" href="classFileReader.html#Exists_28_29">00905</a> <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#Exists_28_29">FileReader::Exists</a>() <a name="l00906"></a>00906 { -<a name="l00907"></a>00907 <span class="keywordflow">if</span> (bail) +<a name="l00907"></a>00907 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#fc">fc</a>.size() == 0) <a name="l00908"></a>00908 { -<a name="l00909"></a>00909 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->str().c_str()); -<a name="l00910"></a>00910 exit(0); -<a name="l00911"></a>00911 } -<a name="l00912"></a>00912 <span class="keywordflow">else</span> -<a name="l00913"></a>00913 { -<a name="l00914"></a>00914 <span class="keywordtype">char</span> dataline[1024]; -<a name="l00915"></a>00915 <span class="keywordflow">if</span> (user) -<a name="l00916"></a>00916 { -<a name="l00917"></a>00917 WriteServ(user-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); -<a name="l00918"></a>00918 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->eof()) -<a name="l00919"></a>00919 { -<a name="l00920"></a>00920 <a class="code" href="classConfigReader.html#errorlog">errorlog</a>->getline(dataline,1024); -<a name="l00921"></a>00921 WriteServ(user-><a class="code" href="classconnection.html#fd">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,dataline); -<a name="l00922"></a>00922 } -<a name="l00923"></a>00923 } -<a name="l00924"></a>00924 <span class="keywordflow">else</span> -<a name="l00925"></a>00925 { -<a name="l00926"></a>00926 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>); -<a name="l00927"></a>00927 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#errorlog">errorlog</a>->eof()) -<a name="l00928"></a>00928 { -<a name="l00929"></a>00929 <a class="code" href="classConfigReader.html#errorlog">errorlog</a>->getline(dataline,1024); -<a name="l00930"></a>00930 WriteOpers(dataline); -<a name="l00931"></a>00931 } -<a name="l00932"></a>00932 } -<a name="l00933"></a>00933 <span class="keywordflow">return</span>; -<a name="l00934"></a>00934 } -<a name="l00935"></a>00935 } -<a name="l00936"></a>00936 -<a name="l00937"></a>00937 -<a name="l00938"></a><a class="code" href="classConfigReader.html#Enumerate_28std_3A_3Astring_20tag_29">00938</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#Enumerate_28std_3A_3Astring_20tag_29">ConfigReader::Enumerate</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag) -<a name="l00939"></a>00939 { -<a name="l00940"></a>00940 <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#cache">cache</a>,tag.c_str()); -<a name="l00941"></a>00941 } -<a name="l00942"></a>00942 -<a name="l00943"></a><a class="code" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">00943</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">ConfigReader::EnumerateValues</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <span class="keywordtype">int</span> index) -<a name="l00944"></a>00944 { -<a name="l00945"></a>00945 <span class="keywordflow">return</span> EnumValues(<a class="code" href="classConfigReader.html#cache">cache</a>, tag.c_str(), index); -<a name="l00946"></a>00946 } -<a name="l00947"></a>00947 -<a name="l00948"></a><a class="code" href="classConfigReader.html#Verify_28_29">00948</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#Verify_28_29">ConfigReader::Verify</a>() -<a name="l00949"></a>00949 { -<a name="l00950"></a>00950 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#readerror">readerror</a>; -<a name="l00951"></a>00951 } -<a name="l00952"></a>00952 -<a name="l00953"></a>00953 -<a name="l00954"></a><a class="code" href="classFileReader.html#FileReader_28std_3A_3Astring_20filename_29">00954</a> <a class="code" href="classFileReader.html#FileReader_28_29">FileReader::FileReader</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename) -<a name="l00955"></a>00955 { -<a name="l00956"></a>00956 <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> c; -<a name="l00957"></a>00957 readfile(c,filename.c_str()); -<a name="l00958"></a>00958 this-><a class="code" href="classFileReader.html#fc">fc</a> = c; -<a name="l00959"></a>00959 } -<a name="l00960"></a>00960 -<a name="l00961"></a><a class="code" href="classFileReader.html#FileReader_28_29">00961</a> <a class="code" href="classFileReader.html#FileReader_28_29">FileReader::FileReader</a>() -<a name="l00962"></a>00962 { -<a name="l00963"></a>00963 } -<a name="l00964"></a>00964 -<a name="l00965"></a><a class="code" href="classFileReader.html#LoadFile_28std_3A_3Astring_20filename_29">00965</a> <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#LoadFile_28std_3A_3Astring_20filename_29">FileReader::LoadFile</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename) -<a name="l00966"></a>00966 { -<a name="l00967"></a>00967 <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> c; -<a name="l00968"></a>00968 readfile(c,filename.c_str()); -<a name="l00969"></a>00969 this-><a class="code" href="classFileReader.html#fc">fc</a> = c; -<a name="l00970"></a>00970 } -<a name="l00971"></a>00971 -<a name="l00972"></a>00972 -<a name="l00973"></a><a class="code" href="classFileReader.html#_7EFileReader_28_29">00973</a> <a class="code" href="classFileReader.html#_7EFileReader_28_29">FileReader::~FileReader</a>() -<a name="l00974"></a>00974 { -<a name="l00975"></a>00975 } -<a name="l00976"></a>00976 -<a name="l00977"></a><a class="code" href="classFileReader.html#Exists_28_29">00977</a> <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#Exists_28_29">FileReader::Exists</a>() -<a name="l00978"></a>00978 { -<a name="l00979"></a>00979 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#fc">fc</a>.size() == 0) -<a name="l00980"></a>00980 { -<a name="l00981"></a>00981 <span class="keywordflow">return</span>(<span class="keyword">false</span>); -<a name="l00982"></a>00982 } -<a name="l00983"></a>00983 <span class="keywordflow">else</span> -<a name="l00984"></a>00984 { -<a name="l00985"></a>00985 <span class="keywordflow">return</span>(<span class="keyword">true</span>); -<a name="l00986"></a>00986 } -<a name="l00987"></a>00987 } -<a name="l00988"></a>00988 -<a name="l00989"></a><a class="code" href="classFileReader.html#GetLine_28int_20x_29">00989</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classFileReader.html#GetLine_28int_20x_29">FileReader::GetLine</a>(<span class="keywordtype">int</span> x) -<a name="l00990"></a>00990 { -<a name="l00991"></a>00991 <span class="keywordflow">if</span> ((x<0) || ((<span class="keywordtype">unsigned</span>)x><a class="code" href="classFileReader.html#fc">fc</a>.size())) -<a name="l00992"></a>00992 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -<a name="l00993"></a>00993 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#fc">fc</a>[x]; -<a name="l00994"></a>00994 } -<a name="l00995"></a>00995 -<a name="l00996"></a><a class="code" href="classFileReader.html#FileSize_28_29">00996</a> <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#FileSize_28_29">FileReader::FileSize</a>() -<a name="l00997"></a>00997 { -<a name="l00998"></a>00998 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#fc">fc</a>.size(); -<a name="l00999"></a>00999 } -<a name="l01000"></a>01000 -<a name="l01001"></a>01001 -<a name="l01002"></a>01002 std::vector<Module*> <a class="code" href="channels_8cpp.html#modules">modules</a>(255); -<a name="l01003"></a>01003 std::vector<ircd_module*> <a class="code" href="channels_8cpp.html#factory">factory</a>(255); -<a name="l01004"></a>01004 -<a name="l01005"></a><a class="code" href="modules_8cpp.html#MODCOUNT">01005</a> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a> = -1; -<a name="l01006"></a>01006 -<a name="l01007"></a>01007 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +<a name="l00909"></a>00909 <span class="keywordflow">return</span>(<span class="keyword">false</span>); +<a name="l00910"></a>00910 } +<a name="l00911"></a>00911 <span class="keywordflow">else</span> +<a name="l00912"></a>00912 { +<a name="l00913"></a>00913 <span class="keywordflow">return</span>(<span class="keyword">true</span>); +<a name="l00914"></a>00914 } +<a name="l00915"></a>00915 } +<a name="l00916"></a>00916 +<a name="l00917"></a><a class="code" href="classFileReader.html#GetLine_28int_20x_29">00917</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classFileReader.html#GetLine_28int_20x_29">FileReader::GetLine</a>(<span class="keywordtype">int</span> x) +<a name="l00918"></a>00918 { +<a name="l00919"></a>00919 <span class="keywordflow">if</span> ((x<0) || ((<span class="keywordtype">unsigned</span>)x><a class="code" href="classFileReader.html#fc">fc</a>.size())) +<a name="l00920"></a>00920 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +<a name="l00921"></a>00921 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#fc">fc</a>[x]; +<a name="l00922"></a>00922 } +<a name="l00923"></a>00923 +<a name="l00924"></a><a class="code" href="classFileReader.html#FileSize_28_29">00924</a> <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#FileSize_28_29">FileReader::FileSize</a>() +<a name="l00925"></a>00925 { +<a name="l00926"></a>00926 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#fc">fc</a>.size(); +<a name="l00927"></a>00927 } +<a name="l00928"></a>00928 +<a name="l00929"></a>00929 +<a name="l00930"></a>00930 std::vector<Module*> <a class="code" href="channels_8cpp.html#modules">modules</a>(255); +<a name="l00931"></a>00931 std::vector<ircd_module*> <a class="code" href="channels_8cpp.html#factory">factory</a>(255); +<a name="l00932"></a>00932 +<a name="l00933"></a><a class="code" href="modules_8cpp.html#MODCOUNT">00933</a> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#MODCOUNT">MODCOUNT</a> = -1; +<a name="l00934"></a>00934 +<a name="l00935"></a>00935 +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index fbf7a10f3..cbc72e984 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -9,7 +9,7 @@ <a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000005.html">src</a></div> <h1>modules.cpp File Reference</h1><code>#include "inspircd_config.h"</code><br> <code>#include "inspircd.h"</code><br> -<code>#include "inspircd_io.h"</code><br> +<code>#include "<a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>"</code><br> <code>#include "inspircd_util.h"</code><br> <code>#include <unistd.h></code><br> <code>#include <sys/errno.h></code><br> @@ -35,51 +35,28 @@ <code>#include "<a class="el" href="hashcomp_8h-source.html">hashcomp.h</a>"</code><br> <code>#include "<a class="el" href="socket_8h-source.html">socket.h</a>"</code><br> <code>#include "<a class="el" href="socketengine_8h-source.html">socketengine.h</a>"</code><br> +<code>#include "<a class="el" href="typedefs_8h-source.html">typedefs.h</a>"</code><br> <p> Include dependency graph for modules.cpp:<p><center><img src="modules_8cpp__incl.gif" border="0" usemap="#modules.cpp_map" alt=""></center> <map name="modules.cpp_map"> -<area href="users_8h-source.html" shape="rect" coords="330,283,394,309" alt=""> -<area href="ctables_8h-source.html" shape="rect" coords="324,1093,399,1120" alt=""> -<area href="modules_8h-source.html" shape="rect" coords="168,1043,251,1069" alt=""> -<area href="socket_8h-source.html" shape="rect" coords="326,941,398,968" alt=""> -<area href="message_8h-source.html" shape="rect" coords="167,404,252,431" alt=""> -<area href="mode_8h-source.html" shape="rect" coords="176,533,243,560" alt=""> -<area href="xline_8h-source.html" shape="rect" coords="179,341,240,368" alt=""> -<area href="commands_8h-source.html" shape="rect" coords="160,637,259,664" alt=""> -<area href="hashcomp_8h-source.html" shape="rect" coords="315,80,408,107" alt=""> -<area href="socketengine_8h-source.html" shape="rect" coords="154,815,266,841" alt=""> +<area href="inspircd__io_8h-source.html" shape="rect" coords="313,311,409,338" alt=""> +<area href="users_8h-source.html" shape="rect" coords="476,1274,540,1300" alt=""> +<area href="ctables_8h-source.html" shape="rect" coords="471,716,545,743" alt=""> +<area href="modules_8h-source.html" shape="rect" coords="320,691,403,718" alt=""> +<area href="socket_8h-source.html" shape="rect" coords="472,615,544,642" alt=""> +<area href="message_8h-source.html" shape="rect" coords="319,1172,404,1199" alt=""> +<area href="mode_8h-source.html" shape="rect" coords="328,919,395,946" alt=""> +<area href="xline_8h-source.html" shape="rect" coords="331,1071,392,1098" alt=""> +<area href="commands_8h-source.html" shape="rect" coords="312,970,411,996" alt=""> +<area href="hashcomp_8h-source.html" shape="rect" coords="315,1527,408,1554" alt=""> +<area href="socketengine_8h-source.html" shape="rect" coords="305,362,417,388" alt=""> +<area href="typedefs_8h-source.html" shape="rect" coords="163,1223,248,1250" alt=""> </map> <p> <a href="modules_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> -<tr><td colspan="2"><br><h2>Classes</h2></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classExtMode.html">ExtMode</a></td></tr> - -<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef nspace::hash_map<<br> - <a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classuserrec.html">userrec</a> *, nspace::hash<<br> - <a class="el" href="namespaceirc.html#string">string</a> >, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#user_5Fhash">user_hash</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef nspace::hash_map<<br> - <a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classchanrec.html">chanrec</a> *, nspace::hash<<br> - <a class="el" href="namespaceirc.html#string">string</a> >, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#chan_5Fhash">chan_hash</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef nspace::hash_map<<br> - in_addr, <a class="el" href="namespaceirc.html#string">string</a> *, nspace::hash<<br> - in_addr >, <a class="el" href="structirc_1_1InAddr__HashComp.html">irc::InAddr_HashComp</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#address_5Fcache">address_cache</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef nspace::hash_map<<br> - <a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classWhoWasUser.html">WhoWasUser</a> *,<br> - nspace::hash< <a class="el" href="namespaceirc.html#string">string</a> >, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#whowas_5Fhash">whowas_hash</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::deque< <a class="el" href="classcommand__t.html">command_t</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#command_5Ftable">command_table</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector< <a class="el" href="classExtMode.html">ExtMode</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#ExtModeList">ExtModeList</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef ExtModeList::iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a></td></tr> - <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#ModeDefined_28char_20modechar_2C_20int_20type_29">ModeDefined</a> (char modechar, int type)</td></tr> @@ -102,268 +79,44 @@ Include dependency graph for modules.cpp:<p><center><img src="modules_8cpp__incl <tr><td colspan="2"><br><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSocketEngine.html">SocketEngine</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#SE">SE</a></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classServerConfig.html">ServerConfig</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#Config">Config</a></td></tr> + <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#MODCOUNT">MODCOUNT</a> = -1</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="classModule.html">Module</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#modules">modules</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="modules_8h.html#ircd_5Fmodule">ircd_module</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#factory">factory</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="namespaceirc.html#string">std::string</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#include_5Fstack">include_stack</a></td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="classInspSocket.html">InspSocket</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#module_5Fsockets">module_sockets</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#TIME">TIME</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#LogLevel">LogLevel</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#Network_5BMAXBUF_5D">Network</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#ServerDesc_5BMAXBUF_5D">ServerDesc</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#AdminName_5BMAXBUF_5D">AdminName</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#AdminEmail_5BMAXBUF_5D">AdminEmail</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#AdminNick_5BMAXBUF_5D">AdminNick</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#diepass_5BMAXBUF_5D">diepass</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#restartpass_5BMAXBUF_5D">restartpass</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#motd_5BMAXBUF_5D">motd</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#rules_5BMAXBUF_5D">rules</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#list_5BMAXBUF_5D">list</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#PrefixQuit_5BMAXBUF_5D">PrefixQuit</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#DieValue_5BMAXBUF_5D">DieValue</a> [MAXBUF]</td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#debugging">debugging</a></td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#WHOWAS_5FSTALE">WHOWAS_STALE</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#WHOWAS_5FMAX">WHOWAS_MAX</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#DieDelay">DieDelay</a></td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#startup_5Ftime">startup_time</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#NetBufferSize">NetBufferSize</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#MaxWhoResults">MaxWhoResults</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#nb_5Fstart">nb_start</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< <a class="el" href="namespaceirc.html#string">std::string</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#module_5Fnames">module_names</a></td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#boundPortCount">boundPortCount</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#portCount">portCount</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#ports_5BMAXSOCKS_5D">ports</a> [MAXSOCKS]</td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">std::stringstream </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#config_5Ff">config_f</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">FILE * </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#log_5Ffile">log_file</a></td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#fd_5Fref_5Ftable_5B_36_35_35_33_36_5D">fd_ref_table</a> [65536]</td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="modules_8cpp.html#user_5Fhash">user_hash</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#clientlist">clientlist</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="modules_8cpp.html#chan_5Fhash">chan_hash</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#chanlist">chanlist</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="modules_8cpp.html#whowas_5Fhash">whowas_hash</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#whowas">whowas</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="modules_8cpp.html#command_5Ftable">command_table</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#cmdlist">cmdlist</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="modules_8h.html#file_5Fcache">file_cache</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#MOTD">MOTD</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="modules_8h.html#file_5Fcache">file_cache</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#RULES">RULES</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="modules_8cpp.html#address_5Fcache">address_cache</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#IP">IP</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="modules_8cpp.html#ExtModeList">ExtModeList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#EMode">EMode</a></td></tr> - -</table> -<hr><h2>Typedef Documentation</h2> -<a class="anchor" name="address_5Fcache"></a><!-- doxytag: member="modules.cpp::address_cache" ref="address_5Fcache" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">typedef nspace::hash_map<in_addr,<a class="el" href="namespaceirc.html#string">string</a>*, nspace::hash<in_addr>, <a class="el" href="structirc_1_1InAddr__HashComp.html">irc::InAddr_HashComp</a>> <a class="el" href="modules_8cpp.html#address_5Fcache">address_cache</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="typedefs_8h.html#user_5Fhash">user_hash</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#clientlist">clientlist</a></td></tr> -<p> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="typedefs_8h.html#chan_5Fhash">chan_hash</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#chanlist">chanlist</a></td></tr> -<p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00117">117</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> - </tr> -</table> -<a class="anchor" name="chan_5Fhash"></a><!-- doxytag: member="modules.cpp::chan_hash" ref="chan_5Fhash" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">typedef nspace::hash_map<<a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classchanrec.html">chanrec</a>*, nspace::hash<<a class="el" href="namespaceirc.html#string">string</a>>, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="el" href="modules_8cpp.html#chan_5Fhash">chan_hash</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="typedefs_8h.html#whowas_5Fhash">whowas_hash</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#whowas">whowas</a></td></tr> -<p> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="typedefs_8h.html#command_5Ftable">command_table</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#cmdlist">cmdlist</a></td></tr> -<p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00116">116</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> - </tr> -</table> -<a class="anchor" name="command_5Ftable"></a><!-- doxytag: member="modules.cpp::command_table" ref="command_5Ftable" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">typedef std::deque<<a class="el" href="classcommand__t.html">command_t</a>> <a class="el" href="modules_8cpp.html#command_5Ftable">command_table</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - -<p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00119">119</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> - </tr> -</table> -<a class="anchor" name="ExtModeList"></a><!-- doxytag: member="modules.cpp::ExtModeList" ref="ExtModeList" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">typedef std::vector<<a class="el" href="classExtMode.html">ExtMode</a>> <a class="el" href="modules_8cpp.html#ExtModeList">ExtModeList</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - -<p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00145">145</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> - </tr> -</table> -<a class="anchor" name="ExtModeListIter"></a><!-- doxytag: member="modules.cpp::ExtModeListIter" ref="ExtModeListIter" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">typedef ExtModeList::iterator <a class="el" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - -<p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00146">146</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> - </tr> -</table> -<a class="anchor" name="user_5Fhash"></a><!-- doxytag: member="modules.cpp::user_hash" ref="user_5Fhash" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">typedef nspace::hash_map<<a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classuserrec.html">userrec</a>*, nspace::hash<<a class="el" href="namespaceirc.html#string">string</a>>, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="el" href="modules_8cpp.html#user_5Fhash">user_hash</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - -<p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00115">115</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> - </tr> -</table> -<a class="anchor" name="whowas_5Fhash"></a><!-- doxytag: member="modules.cpp::whowas_hash" ref="whowas_5Fhash" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">typedef nspace::hash_map<<a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classWhoWasUser.html">WhoWasUser</a>*, nspace::hash<<a class="el" href="namespaceirc.html#string">string</a>>, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="el" href="modules_8cpp.html#whowas_5Fhash">whowas_hash</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="typedefs_8h.html#address_5Fcache">address_cache</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#IP">IP</a></td></tr> -<p> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="typedefs_8h.html#ExtModeList">ExtModeList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="modules_8cpp.html#EMode">EMode</a></td></tr> -<p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00118">118</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> - </tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29"></a><!-- doxytag: member="modules.cpp::DoAddExtendedMode" ref="DoAddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fon_2C_20int_20params_5Foff_29" args="(char modechar, int type, bool requires_oper, int params_on, int params_off)" --><p> @@ -420,17 +173,17 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00118">118</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00215">215</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00142">142</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00152">ModeDefined()</a>. +References <a class="el" href="modules_8cpp-source.html#l00076">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00079">ModeDefined()</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00627">Server::AddExtendedMode()</a>.<div class="fragment"><pre class="fragment"><a name="l00216"></a>00216 { -<a name="l00217"></a>00217 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#ModeDefined_28char_20modechar_2C_20int_20type_29">ModeDefined</a>(modechar,type)) { -<a name="l00218"></a>00218 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00219"></a>00219 } -<a name="l00220"></a>00220 <a class="code" href="modules_8cpp.html#EMode">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); -<a name="l00221"></a>00221 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00222"></a>00222 } +Referenced by <a class="el" href="modules_8cpp-source.html#l00582">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00554">Server::AddExtendedMode()</a>.<div class="fragment"><pre class="fragment"><a name="l00143"></a>00143 { +<a name="l00144"></a>00144 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#ModeDefined_28char_20modechar_2C_20int_20type_29">ModeDefined</a>(modechar,type)) { +<a name="l00145"></a>00145 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00146"></a>00146 } +<a name="l00147"></a>00147 <a class="code" href="modules_8cpp.html#EMode">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); +<a name="l00148"></a>00148 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00149"></a>00149 } </pre></div> <p> </td> @@ -500,20 +253,20 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddEx <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00152">152</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00079">79</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>. +References <a class="el" href="modules_8cpp-source.html#l00076">EMode</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00215">DoAddExtendedMode()</a>.<div class="fragment"><pre class="fragment"><a name="l00153"></a>00153 { -<a name="l00154"></a>00154 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00155"></a>00155 { -<a name="l00156"></a>00156 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -<a name="l00157"></a>00157 { -<a name="l00158"></a>00158 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00159"></a>00159 } -<a name="l00160"></a>00160 } -<a name="l00161"></a>00161 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00162"></a>00162 } +Referenced by <a class="el" href="modules_8cpp-source.html#l00142">DoAddExtendedMode()</a>.<div class="fragment"><pre class="fragment"><a name="l00080"></a>00080 { +<a name="l00081"></a>00081 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00082"></a>00082 { +<a name="l00083"></a>00083 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +<a name="l00084"></a>00084 { +<a name="l00085"></a>00085 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00086"></a>00086 } +<a name="l00087"></a>00087 } +<a name="l00088"></a>00088 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00089"></a>00089 } </pre></div> <p> </td> @@ -555,18 +308,18 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00215">DoAddExtended <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00202">202</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00129">129</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>.<div class="fragment"><pre class="fragment"><a name="l00203"></a>00203 { -<a name="l00204"></a>00204 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00205"></a>00205 { -<a name="l00206"></a>00206 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -<a name="l00207"></a>00207 { -<a name="l00208"></a>00208 <span class="keywordflow">return</span> i->params_when_off; -<a name="l00209"></a>00209 } -<a name="l00210"></a>00210 } -<a name="l00211"></a>00211 <span class="keywordflow">return</span> 0; -<a name="l00212"></a>00212 } +References <a class="el" href="modules_8cpp-source.html#l00076">EMode</a>.<div class="fragment"><pre class="fragment"><a name="l00130"></a>00130 { +<a name="l00131"></a>00131 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00132"></a>00132 { +<a name="l00133"></a>00133 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +<a name="l00134"></a>00134 { +<a name="l00135"></a>00135 <span class="keywordflow">return</span> i->params_when_off; +<a name="l00136"></a>00136 } +<a name="l00137"></a>00137 } +<a name="l00138"></a>00138 <span class="keywordflow">return</span> 0; +<a name="l00139"></a>00139 } </pre></div> <p> </td> @@ -608,18 +361,18 @@ References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>.<div c <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00189">189</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00116">116</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>.<div class="fragment"><pre class="fragment"><a name="l00190"></a>00190 { -<a name="l00191"></a>00191 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00192"></a>00192 { -<a name="l00193"></a>00193 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -<a name="l00194"></a>00194 { -<a name="l00195"></a>00195 <span class="keywordflow">return</span> i->params_when_on; -<a name="l00196"></a>00196 } -<a name="l00197"></a>00197 } -<a name="l00198"></a>00198 <span class="keywordflow">return</span> 0; -<a name="l00199"></a>00199 } +References <a class="el" href="modules_8cpp-source.html#l00076">EMode</a>.<div class="fragment"><pre class="fragment"><a name="l00117"></a>00117 { +<a name="l00118"></a>00118 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00119"></a>00119 { +<a name="l00120"></a>00120 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +<a name="l00121"></a>00121 { +<a name="l00122"></a>00122 <span class="keywordflow">return</span> i->params_when_on; +<a name="l00123"></a>00123 } +<a name="l00124"></a>00124 } +<a name="l00125"></a>00125 <span class="keywordflow">return</span> 0; +<a name="l00126"></a>00126 } </pre></div> <p> </td> @@ -661,18 +414,18 @@ References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>.<div c <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00176">176</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00103">103</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>.<div class="fragment"><pre class="fragment"><a name="l00177"></a>00177 { -<a name="l00178"></a>00178 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00179"></a>00179 { -<a name="l00180"></a>00180 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) -<a name="l00181"></a>00181 { -<a name="l00182"></a>00182 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00183"></a>00183 } -<a name="l00184"></a>00184 } -<a name="l00185"></a>00185 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00186"></a>00186 } +References <a class="el" href="modules_8cpp-source.html#l00076">EMode</a>.<div class="fragment"><pre class="fragment"><a name="l00104"></a>00104 { +<a name="l00105"></a>00105 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00106"></a>00106 { +<a name="l00107"></a>00107 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) +<a name="l00108"></a>00108 { +<a name="l00109"></a>00109 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00110"></a>00110 } +<a name="l00111"></a>00111 } +<a name="l00112"></a>00112 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00113"></a>00113 } </pre></div> <p> </td> @@ -714,18 +467,18 @@ References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>.<div c <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00164">164</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00091">91</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>.<div class="fragment"><pre class="fragment"><a name="l00165"></a>00165 { -<a name="l00166"></a>00166 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00167"></a>00167 { -<a name="l00168"></a>00168 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) -<a name="l00169"></a>00169 { -<a name="l00170"></a>00170 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00171"></a>00171 } -<a name="l00172"></a>00172 } -<a name="l00173"></a>00173 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00174"></a>00174 } +References <a class="el" href="modules_8cpp-source.html#l00076">EMode</a>.<div class="fragment"><pre class="fragment"><a name="l00092"></a>00092 { +<a name="l00093"></a>00093 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00094"></a>00094 { +<a name="l00095"></a>00095 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) +<a name="l00096"></a>00096 { +<a name="l00097"></a>00097 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00098"></a>00098 } +<a name="l00099"></a>00099 } +<a name="l00100"></a>00100 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00101"></a>00101 } </pre></div> <p> </td> @@ -758,21 +511,21 @@ References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>.<div c <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00225">225</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00152">152</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00149">EMode</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>. +References <a class="el" href="modules_8cpp-source.html#l00076">EMode</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddExtendedListMode()</a>.<div class="fragment"><pre class="fragment"><a name="l00226"></a>00226 { -<a name="l00227"></a>00227 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) -<a name="l00228"></a>00228 { -<a name="l00229"></a>00229 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#MT_5FCHANNEL">MT_CHANNEL</a>)) -<a name="l00230"></a>00230 { -<a name="l00231"></a>00231 i->list = <span class="keyword">true</span>; -<a name="l00232"></a>00232 <span class="keywordflow">return</span>; -<a name="l00233"></a>00233 } -<a name="l00234"></a>00234 } -<a name="l00235"></a>00235 <span class="keywordflow">return</span>; -<a name="l00236"></a>00236 } +Referenced by <a class="el" href="modules_8cpp-source.html#l00582">Server::AddExtendedListMode()</a>.<div class="fragment"><pre class="fragment"><a name="l00153"></a>00153 { +<a name="l00154"></a>00154 <span class="keywordflow">for</span> (<a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#EMode">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#EMode">EMode</a>.end(); i++) +<a name="l00155"></a>00155 { +<a name="l00156"></a>00156 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#MT_5FCHANNEL">MT_CHANNEL</a>)) +<a name="l00157"></a>00157 { +<a name="l00158"></a>00158 i->list = <span class="keyword">true</span>; +<a name="l00159"></a>00159 <span class="keywordflow">return</span>; +<a name="l00160"></a>00160 } +<a name="l00161"></a>00161 } +<a name="l00162"></a>00162 <span class="keywordflow">return</span>; +<a name="l00163"></a>00163 } </pre></div> <p> </td> @@ -807,75 +560,6 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddEx </tr> </table> <hr><h2>Variable Documentation</h2> -<a class="anchor" name="AdminEmail_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::AdminEmail" ref="AdminEmail_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#AdminEmail_5BMAXBUF_5D">AdminEmail</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="AdminName_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::AdminName" ref="AdminName_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#AdminName_5BMAXBUF_5D">AdminName</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="AdminNick_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::AdminNick" ref="AdminNick_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#AdminNick_5BMAXBUF_5D">AdminNick</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> <a class="anchor" name="boundPortCount"></a><!-- doxytag: member="modules.cpp::boundPortCount" ref="boundPortCount" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -905,7 +589,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddEx <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"><a class="el" href="modules_8cpp.html#chan_5Fhash">chan_hash</a> <a class="el" href="modules_8cpp.html#chanlist">chanlist</a> </td> + <td class="md" nowrap valign="top"><a class="el" href="typedefs_8h.html#chan_5Fhash">chan_hash</a> <a class="el" href="modules_8cpp.html#chanlist">chanlist</a> </td> </tr> </table> </td> @@ -928,7 +612,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddEx <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"><a class="el" href="modules_8cpp.html#user_5Fhash">user_hash</a> <a class="el" href="modules_8cpp.html#clientlist">clientlist</a> </td> + <td class="md" nowrap valign="top"><a class="el" href="typedefs_8h.html#user_5Fhash">user_hash</a> <a class="el" href="modules_8cpp.html#clientlist">clientlist</a> </td> </tr> </table> </td> @@ -951,7 +635,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddEx <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"><a class="el" href="modules_8cpp.html#command_5Ftable">command_table</a> <a class="el" href="modules_8cpp.html#cmdlist">cmdlist</a> </td> + <td class="md" nowrap valign="top"><a class="el" href="typedefs_8h.html#command_5Ftable">command_table</a> <a class="el" href="modules_8cpp.html#cmdlist">cmdlist</a> </td> </tr> </table> </td> @@ -968,105 +652,13 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddEx </td> </tr> </table> -<a class="anchor" name="config_5Ff"></a><!-- doxytag: member="modules.cpp::config_f" ref="config_5Ff" args="" --><p> +<a class="anchor" name="Config"></a><!-- doxytag: member="modules.cpp::Config" ref="Config" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top">std::stringstream <a class="el" href="users_8cpp.html#config_5Ff">config_f</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="debugging"></a><!-- doxytag: member="modules.cpp::debugging" ref="debugging" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#debugging">debugging</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="DieDelay"></a><!-- doxytag: member="modules.cpp::DieDelay" ref="DieDelay" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#DieDelay">DieDelay</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="diepass_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::diepass" ref="diepass_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#diepass_5BMAXBUF_5D">diepass</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="DieValue_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::DieValue" ref="DieValue_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#DieValue_5BMAXBUF_5D">DieValue</a>[MAXBUF] </td> + <td class="md" nowrap valign="top"><a class="el" href="classServerConfig.html">ServerConfig</a>* <a class="el" href="users_8cpp.html#Config">Config</a> </td> </tr> </table> </td> @@ -1089,7 +681,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddEx <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"><a class="el" href="modules_8cpp.html#ExtModeList">ExtModeList</a> <a class="el" href="modules_8cpp.html#EMode">EMode</a> </td> + <td class="md" nowrap valign="top"><a class="el" href="typedefs_8h.html#ExtModeList">ExtModeList</a> <a class="el" href="modules_8cpp.html#EMode">EMode</a> </td> </tr> </table> </td> @@ -1105,9 +697,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddEx <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00149">149</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00076">76</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00215">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00152">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00202">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00189">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00176">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00164">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00225">ModeMakeList()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00142">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00079">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00129">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00116">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00103">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00091">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00152">ModeMakeList()</a>. </td> </tr> </table> <a class="anchor" name="factory"></a><!-- doxytag: member="modules.cpp::factory" ref="factory" args="" --><p> @@ -1156,107 +748,13 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00215">DoAddExtended </td> </tr> </table> -<a class="anchor" name="include_5Fstack"></a><!-- doxytag: member="modules.cpp::include_stack" ref="include_5Fstack" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">std::vector<<a class="el" href="namespaceirc.html#string">std::string</a>> <a class="el" href="modules_8cpp.html#include_5Fstack">include_stack</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - -<p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00807">ConfigReader::ConfigReader()</a>. </td> - </tr> -</table> <a class="anchor" name="IP"></a><!-- doxytag: member="modules.cpp::IP" ref="IP" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"><a class="el" href="modules_8cpp.html#address_5Fcache">address_cache</a> <a class="el" href="modules_8cpp.html#IP">IP</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="list_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::list" ref="list_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#list_5BMAXBUF_5D">list</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="log_5Ffile"></a><!-- doxytag: member="modules.cpp::log_file" ref="log_5Ffile" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">FILE* <a class="el" href="socket_8cpp.html#log_5Ffile">log_file</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="LogLevel"></a><!-- doxytag: member="modules.cpp::LogLevel" ref="LogLevel" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#LogLevel">LogLevel</a> </td> + <td class="md" nowrap valign="top"><a class="el" href="typedefs_8h.html#address_5Fcache">address_cache</a> <a class="el" href="modules_8cpp.html#IP">IP</a> </td> </tr> </table> </td> @@ -1273,31 +771,6 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00807">ConfigReader: </td> </tr> </table> -<a class="anchor" name="MaxWhoResults"></a><!-- doxytag: member="modules.cpp::MaxWhoResults" ref="MaxWhoResults" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#MaxWhoResults">MaxWhoResults</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - -<p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00081">81</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> - </tr> -</table> <a class="anchor" name="MODCOUNT"></a><!-- doxytag: member="modules.cpp::MODCOUNT" ref="MODCOUNT" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -1320,30 +793,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00081">81</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l01005">1005</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> - </tr> -</table> -<a class="anchor" name="module_5Fnames"></a><!-- doxytag: member="modules.cpp::module_names" ref="module_5Fnames" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">std::vector<<a class="el" href="namespaceirc.html#string">std::string</a>> <a class="el" href="modules_8cpp.html#module_5Fnames">module_names</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00933">933</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a class="anchor" name="module_5Fsockets"></a><!-- doxytag: member="modules.cpp::module_sockets" ref="module_5Fsockets" args="" --><p> @@ -1368,7 +818,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l01005">1005</a> <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00394">Server::AddSocket()</a>, and <a class="el" href="modules_8cpp-source.html#l00405">Server::DelSocket()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00321">Server::AddSocket()</a>, and <a class="el" href="modules_8cpp-source.html#l00332">Server::DelSocket()</a>. </td> </tr> </table> <a class="anchor" name="modules"></a><!-- doxytag: member="modules.cpp::modules" ref="modules" args="" --><p> @@ -1394,121 +844,6 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00394">Server::AddSo </td> </tr> </table> -<a class="anchor" name="MOTD"></a><!-- doxytag: member="modules.cpp::MOTD" ref="MOTD" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top"><a class="el" href="modules_8h.html#file_5Fcache">file_cache</a> <a class="el" href="modules_8cpp.html#MOTD">MOTD</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="motd_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::motd" ref="motd_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#motd_5BMAXBUF_5D">motd</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="nb_5Fstart"></a><!-- doxytag: member="modules.cpp::nb_start" ref="nb_5Fstart" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">time_t <a class="el" href="modules_8cpp.html#nb_5Fstart">nb_start</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="NetBufferSize"></a><!-- doxytag: member="modules.cpp::NetBufferSize" ref="NetBufferSize" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="modules_8cpp.html#NetBufferSize">NetBufferSize</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="Network_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::Network" ref="Network_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#Network_5BMAXBUF_5D">Network</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> <a class="anchor" name="portCount"></a><!-- doxytag: member="modules.cpp::portCount" ref="portCount" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -1555,98 +890,6 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00394">Server::AddSo </td> </tr> </table> -<a class="anchor" name="PrefixQuit_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::PrefixQuit" ref="PrefixQuit_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#PrefixQuit_5BMAXBUF_5D">PrefixQuit</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="restartpass_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::restartpass" ref="restartpass_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#restartpass_5BMAXBUF_5D">restartpass</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="RULES"></a><!-- doxytag: member="modules.cpp::RULES" ref="RULES" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top"><a class="el" href="modules_8h.html#file_5Fcache">file_cache</a> <a class="el" href="modules_8cpp.html#RULES">RULES</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="rules_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::rules" ref="rules_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#rules_5BMAXBUF_5D">rules</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> <a class="anchor" name="SE"></a><!-- doxytag: member="modules.cpp::SE" ref="SE" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -1670,52 +913,6 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00394">Server::AddSo </td> </tr> </table> -<a class="anchor" name="ServerDesc_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::ServerDesc" ref="ServerDesc_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="modules_8cpp.html#ServerDesc_5BMAXBUF_5D">ServerDesc</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="ServerName_5BMAXBUF_5D"></a><!-- doxytag: member="modules.cpp::ServerName" ref="ServerName_5BMAXBUF_5D" args="[MAXBUF]" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">char <a class="el" href="users_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a>[MAXBUF] </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> <a class="anchor" name="startup_5Ftime"></a><!-- doxytag: member="modules.cpp::startup_time" ref="startup_5Ftime" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -1768,7 +965,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00394">Server::AddSo <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"><a class="el" href="modules_8cpp.html#whowas_5Fhash">whowas_hash</a> <a class="el" href="modules_8cpp.html#whowas">whowas</a> </td> + <td class="md" nowrap valign="top"><a class="el" href="typedefs_8h.html#whowas_5Fhash">whowas_hash</a> <a class="el" href="modules_8cpp.html#whowas">whowas</a> </td> </tr> </table> </td> @@ -1831,7 +1028,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00394">Server::AddSo </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:00 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/modules_8cpp__incl.gif b/docs/module-doc/modules_8cpp__incl.gif Binary files differindex e04be883e..aec40cf17 100644 --- a/docs/module-doc/modules_8cpp__incl.gif +++ b/docs/module-doc/modules_8cpp__incl.gif diff --git a/docs/module-doc/modules_8cpp__incl.map b/docs/module-doc/modules_8cpp__incl.map index 97e8339ae..997736c8c 100644 --- a/docs/module-doc/modules_8cpp__incl.map +++ b/docs/module-doc/modules_8cpp__incl.map @@ -1,11 +1,13 @@ base referer -rect $users_8h-source.html 330,283 394,309 -rect $ctables_8h-source.html 324,1093 399,1120 -rect $modules_8h-source.html 168,1043 251,1069 -rect $socket_8h-source.html 326,941 398,968 -rect $message_8h-source.html 167,404 252,431 -rect $mode_8h-source.html 176,533 243,560 -rect $xline_8h-source.html 179,341 240,368 -rect $commands_8h-source.html 160,637 259,664 -rect $hashcomp_8h-source.html 315,80 408,107 -rect $socketengine_8h-source.html 154,815 266,841 +rect $inspircd__io_8h-source.html 313,311 409,338 +rect $users_8h-source.html 476,1274 540,1300 +rect $ctables_8h-source.html 471,716 545,743 +rect $modules_8h-source.html 320,691 403,718 +rect $socket_8h-source.html 472,615 544,642 +rect $message_8h-source.html 319,1172 404,1199 +rect $mode_8h-source.html 328,919 395,946 +rect $xline_8h-source.html 331,1071 392,1098 +rect $commands_8h-source.html 312,970 411,996 +rect $hashcomp_8h-source.html 315,1527 408,1554 +rect $socketengine_8h-source.html 305,362 417,388 +rect $typedefs_8h-source.html 163,1223 248,1250 diff --git a/docs/module-doc/modules_8cpp__incl.md5 b/docs/module-doc/modules_8cpp__incl.md5 index 5a54bd59b..7242058c8 100644 --- a/docs/module-doc/modules_8cpp__incl.md5 +++ b/docs/module-doc/modules_8cpp__incl.md5 @@ -1 +1 @@ -409a89031830030c4b614aa791a8cbab
\ No newline at end of file +3ca915eed2bfd73681bb564430d33061
\ No newline at end of file diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index 61b6111c2..d1efc44d8 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -160,358 +160,370 @@ <a name="l00230"></a>00230 <span class="keywordtype">char</span>* <a class="code" href="classEvent.html#Send_28_29">Send</a>(); <a name="l00231"></a>00231 }; <a name="l00232"></a>00232 -<a name="l00233"></a>00233 -<a name="l00239"></a><a class="code" href="classModule.html">00239</a> <span class="keyword">class </span><a class="code" href="classModule.html">Module</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -<a name="l00240"></a>00240 { -<a name="l00241"></a>00241 <span class="keyword">public</span>: -<a name="l00242"></a>00242 -<a name="l00247"></a>00247 <a class="code" href="classModule.html#Module_28Server_20_2AMe_29">Module</a>(<a class="code" href="classServer.html">Server</a>* Me); +<a name="l00236"></a><a class="code" href="classExtMode.html">00236</a> <span class="keyword">class </span><a class="code" href="classExtMode.html">ExtMode</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +<a name="l00237"></a>00237 { +<a name="l00238"></a>00238 <span class="keyword">public</span>: +<a name="l00239"></a><a class="code" href="classExtMode.html#modechar">00239</a> <span class="keywordtype">char</span> <a class="code" href="classExtMode.html#modechar">modechar</a>; +<a name="l00240"></a><a class="code" href="classExtMode.html#type">00240</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#type">type</a>; +<a name="l00241"></a><a class="code" href="classExtMode.html#needsoper">00241</a> <span class="keywordtype">bool</span> <a class="code" href="classExtMode.html#needsoper">needsoper</a>; +<a name="l00242"></a><a class="code" href="classExtMode.html#params_5Fwhen_5Fon">00242</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#params_5Fwhen_5Fon">params_when_on</a>; +<a name="l00243"></a><a class="code" href="classExtMode.html#params_5Fwhen_5Foff">00243</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#params_5Fwhen_5Foff">params_when_off</a>; +<a name="l00244"></a><a class="code" href="classExtMode.html#list">00244</a> <span class="keywordtype">bool</span> <a class="code" href="classExtMode.html#list">list</a>; +<a name="l00245"></a><a class="code" href="classExtMode.html#ExtMode_28char_20mc_2C_20int_20ty_2C_20bool_20oper_2C_20int_20p_5Fon_2C_20int_20p_5Foff_29">00245</a> <a class="code" href="classExtMode.html#ExtMode_28char_20mc_2C_20int_20ty_2C_20bool_20oper_2C_20int_20p_5Fon_2C_20int_20p_5Foff_29">ExtMode</a>(<span class="keywordtype">char</span> mc, <span class="keywordtype">int</span> ty, <span class="keywordtype">bool</span> oper, <span class="keywordtype">int</span> p_on, <span class="keywordtype">int</span> p_off) : <a class="code" href="classExtMode.html#modechar">modechar</a>(mc), <a class="code" href="classExtMode.html#type">type</a>(ty), <a class="code" href="classExtMode.html#needsoper">needsoper</a>(oper), <a class="code" href="classExtMode.html#params_5Fwhen_5Fon">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#params_5Fwhen_5Foff">params_when_off</a>(p_off) { }; +<a name="l00246"></a>00246 }; +<a name="l00247"></a>00247 <a name="l00248"></a>00248 -<a name="l00252"></a>00252 <span class="keyword">virtual</span> <a class="code" href="classModule.html#_7EModule_28_29">~Module</a>(); -<a name="l00253"></a>00253 -<a name="l00258"></a>00258 <span class="keyword">virtual</span> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#GetVersion_28_29">GetVersion</a>(); -<a name="l00259"></a>00259 -<a name="l00264"></a>00264 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserConnect_28userrec_20_2Auser_29">OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00265"></a>00265 -<a name="l00273"></a>00273 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserQuit_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> message); +<a name="l00254"></a><a class="code" href="classModule.html">00254</a> <span class="keyword">class </span><a class="code" href="classModule.html">Module</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +<a name="l00255"></a>00255 { +<a name="l00256"></a>00256 <span class="keyword">public</span>: +<a name="l00257"></a>00257 +<a name="l00262"></a>00262 <a class="code" href="classModule.html#Module_28Server_20_2AMe_29">Module</a>(<a class="code" href="classServer.html">Server</a>* Me); +<a name="l00263"></a>00263 +<a name="l00267"></a>00267 <span class="keyword">virtual</span> <a class="code" href="classModule.html#_7EModule_28_29">~Module</a>(); +<a name="l00268"></a>00268 +<a name="l00273"></a>00273 <span class="keyword">virtual</span> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#GetVersion_28_29">GetVersion</a>(); <a name="l00274"></a>00274 -<a name="l00281"></a>00281 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserDisconnect_28userrec_20_2Auser_29">OnUserDisconnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00282"></a>00282 -<a name="l00289"></a>00289 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); -<a name="l00290"></a>00290 -<a name="l00297"></a>00297 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserPart_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); -<a name="l00298"></a>00298 -<a name="l00306"></a>00306 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRehash_28std_3A_3Astring_20parameter_29">OnRehash</a>(<a class="code" href="namespaceirc.html#string">std::string</a> parameter); -<a name="l00307"></a>00307 -<a name="l00319"></a>00319 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnServerRaw_28std_3A_3Astring_20_26raw_2C_20bool_20inbound_2C_20userrec_20_2Auser_29">OnServerRaw</a>(<a class="code" href="namespaceirc.html#string">std::string</a> &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00320"></a>00320 -<a name="l00336"></a>00336 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnExtendedMode_28userrec_20_2Auser_2C_20void_20_2Atarget_2C_20char_20modechar_2C_20int_20type_2C_20bool_20mode_5Fon_2C_20string_5Flist_20_26params_29">OnExtendedMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* target, <span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> mode_on, <a class="code" href="modules_8h.html#string_5Flist">string_list</a> &params); -<a name="l00337"></a>00337 -<a name="l00354"></a>00354 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20const_20char_20_2Acname_29">OnUserPreJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keyword">const</span> <span class="keywordtype">char</span>* cname); -<a name="l00355"></a>00355 -<a name="l00366"></a>00366 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">OnUserPreKick</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> reason); -<a name="l00367"></a>00367 -<a name="l00376"></a>00376 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">OnUserKick</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> reason); -<a name="l00377"></a>00377 -<a name="l00384"></a>00384 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnOper_28userrec_20_2Auser_2C_20std_3A_3Astring_20opertype_29">OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> opertype); -<a name="l00385"></a>00385 -<a name="l00396"></a>00396 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnInfo_28userrec_20_2Auser_29">OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00397"></a>00397 -<a name="l00404"></a>00404 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnWhois_28userrec_20_2Asource_2C_20userrec_20_2Adest_29">OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest); -<a name="l00405"></a>00405 -<a name="l00415"></a>00415 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">OnUserPreInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel); -<a name="l00416"></a>00416 -<a name="l00424"></a>00424 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">OnUserInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel); -<a name="l00425"></a>00425 -<a name="l00439"></a>00439 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">OnUserPreMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> &text); -<a name="l00440"></a>00440 -<a name="l00457"></a>00457 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">OnUserPreNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> &text); -<a name="l00458"></a>00458 -<a name="l00469"></a>00469 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20newnick_29">OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newnick); -<a name="l00470"></a>00470 -<a name="l00479"></a>00479 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">OnUserMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text); -<a name="l00480"></a>00480 -<a name="l00489"></a>00489 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">OnUserNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text); -<a name="l00490"></a>00490 -<a name="l00500"></a>00500 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnMode_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">OnMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text); -<a name="l00501"></a>00501 -<a name="l00510"></a>00510 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGetServerDescription_28std_3A_3Astring_20servername_2C_20std_3A_3Astring_20_26description_29">OnGetServerDescription</a>(<a class="code" href="namespaceirc.html#string">std::string</a> servername,<a class="code" href="namespaceirc.html#string">std::string</a> &description); -<a name="l00511"></a>00511 -<a name="l00524"></a>00524 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncUser_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">OnSyncUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classModule.html">Module</a>* proto, <span class="keywordtype">void</span>* opaque); -<a name="l00525"></a>00525 -<a name="l00541"></a>00541 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncChannel_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">OnSyncChannel</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="classModule.html">Module</a>* proto, <span class="keywordtype">void</span>* opaque); -<a name="l00542"></a>00542 -<a name="l00543"></a>00543 <span class="comment">/* Allows modules to syncronize metadata related to channels over the network during a netburst.</span> -<a name="l00544"></a>00544 <span class="comment"> * Whenever the linking module wants to send out data, but doesnt know what the data</span> -<a name="l00545"></a>00545 <span class="comment"> * represents (e.g. it is Extensible metadata, added to a userrec or chanrec by a module) then</span> -<a name="l00546"></a>00546 <span class="comment"> * this method is called.You should use the ProtoSendMetaData function after you've</span> -<a name="l00547"></a>00547 <span class="comment"> * correctly decided how the data should be represented, to send the metadata on its way if it belongs</span> -<a name="l00548"></a>00548 <span class="comment"> * to your module. For a good example of how to use this method, see src/modules/m_swhois.cpp.</span> -<a name="l00549"></a>00549 <span class="comment"> * @param chan The channel whos metadata is being syncronized</span> -<a name="l00550"></a>00550 <span class="comment"> * @param proto A pointer to the module handling network protocol</span> -<a name="l00551"></a>00551 <span class="comment"> * @param opaque An opaque pointer set by the protocol module, should not be modified!</span> -<a name="l00552"></a>00552 <span class="comment"> * @param extname The extensions name which is being searched for</span> -<a name="l00553"></a>00553 <span class="comment"> */</span> -<a name="l00554"></a>00554 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncChannelMetaData_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">OnSyncChannelMetaData</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="classModule.html">Module</a>* proto,<span class="keywordtype">void</span>* opaque, <a class="code" href="namespaceirc.html#string">std::string</a> extname); -<a name="l00555"></a>00555 -<a name="l00556"></a>00556 <span class="comment">/* Allows modules to syncronize metadata related to users over the network during a netburst.</span> -<a name="l00557"></a>00557 <span class="comment"> * Whenever the linking module wants to send out data, but doesnt know what the data</span> -<a name="l00558"></a>00558 <span class="comment"> * represents (e.g. it is Extensible metadata, added to a userrec or chanrec by a module) then</span> -<a name="l00559"></a>00559 <span class="comment"> * this method is called. You should use the ProtoSendMetaData function after you've</span> -<a name="l00560"></a>00560 <span class="comment"> * correctly decided how the data should be represented, to send the metadata on its way if</span> -<a name="l00561"></a>00561 <span class="comment"> * if it belongs to your module.</span> -<a name="l00562"></a>00562 <span class="comment"> * @param user The user whos metadata is being syncronized</span> -<a name="l00563"></a>00563 <span class="comment"> * @param proto A pointer to the module handling network protocol</span> -<a name="l00564"></a>00564 <span class="comment"> * @param opaque An opaque pointer set by the protocol module, should not be modified!</span> -<a name="l00565"></a>00565 <span class="comment"> * @param extname The extensions name which is being searched for</span> -<a name="l00566"></a>00566 <span class="comment"> */</span> -<a name="l00567"></a>00567 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncUserMetaData_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">OnSyncUserMetaData</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classModule.html">Module</a>* proto,<span class="keywordtype">void</span>* opaque, <a class="code" href="namespaceirc.html#string">std::string</a> extname); -<a name="l00568"></a>00568 -<a name="l00576"></a>00576 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDecodeMetaData_28int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">OnDecodeMetaData</a>(<span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> extname, <a class="code" href="namespaceirc.html#string">std::string</a> extdata); -<a name="l00577"></a>00577 -<a name="l00591"></a>00591 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#ProtoSendMode_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20modeline_29">ProtoSendMode</a>(<span class="keywordtype">void</span>* opaque, <span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> modeline); +<a name="l00279"></a>00279 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserConnect_28userrec_20_2Auser_29">OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00280"></a>00280 +<a name="l00288"></a>00288 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserQuit_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> message); +<a name="l00289"></a>00289 +<a name="l00296"></a>00296 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserDisconnect_28userrec_20_2Auser_29">OnUserDisconnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00297"></a>00297 +<a name="l00304"></a>00304 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); +<a name="l00305"></a>00305 +<a name="l00312"></a>00312 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserPart_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_29">OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); +<a name="l00313"></a>00313 +<a name="l00321"></a>00321 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRehash_28std_3A_3Astring_20parameter_29">OnRehash</a>(<a class="code" href="namespaceirc.html#string">std::string</a> parameter); +<a name="l00322"></a>00322 +<a name="l00334"></a>00334 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnServerRaw_28std_3A_3Astring_20_26raw_2C_20bool_20inbound_2C_20userrec_20_2Auser_29">OnServerRaw</a>(<a class="code" href="namespaceirc.html#string">std::string</a> &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00335"></a>00335 +<a name="l00351"></a>00351 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnExtendedMode_28userrec_20_2Auser_2C_20void_20_2Atarget_2C_20char_20modechar_2C_20int_20type_2C_20bool_20mode_5Fon_2C_20string_5Flist_20_26params_29">OnExtendedMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* target, <span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> mode_on, <a class="code" href="modules_8h.html#string_5Flist">string_list</a> &params); +<a name="l00352"></a>00352 +<a name="l00369"></a>00369 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreJoin_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20const_20char_20_2Acname_29">OnUserPreJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keyword">const</span> <span class="keywordtype">char</span>* cname); +<a name="l00370"></a>00370 +<a name="l00381"></a>00381 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">OnUserPreKick</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> reason); +<a name="l00382"></a>00382 +<a name="l00391"></a>00391 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserKick_28userrec_20_2Asource_2C_20userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20reason_29">OnUserKick</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> reason); +<a name="l00392"></a>00392 +<a name="l00399"></a>00399 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnOper_28userrec_20_2Auser_2C_20std_3A_3Astring_20opertype_29">OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> opertype); +<a name="l00400"></a>00400 +<a name="l00411"></a>00411 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnInfo_28userrec_20_2Auser_29">OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00412"></a>00412 +<a name="l00419"></a>00419 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnWhois_28userrec_20_2Asource_2C_20userrec_20_2Adest_29">OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest); +<a name="l00420"></a>00420 +<a name="l00430"></a>00430 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">OnUserPreInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel); +<a name="l00431"></a>00431 +<a name="l00439"></a>00439 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserInvite_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_29">OnUserInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel); +<a name="l00440"></a>00440 +<a name="l00454"></a>00454 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">OnUserPreMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> &text); +<a name="l00455"></a>00455 +<a name="l00472"></a>00472 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20_26text_29">OnUserPreNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> &text); +<a name="l00473"></a>00473 +<a name="l00484"></a>00484 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnUserPreNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20newnick_29">OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newnick); +<a name="l00485"></a>00485 +<a name="l00494"></a>00494 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserMessage_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">OnUserMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text); +<a name="l00495"></a>00495 +<a name="l00504"></a>00504 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserNotice_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">OnUserNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text); +<a name="l00505"></a>00505 +<a name="l00515"></a>00515 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnMode_28userrec_20_2Auser_2C_20void_20_2Adest_2C_20int_20target_5Ftype_2C_20std_3A_3Astring_20text_29">OnMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* dest, <span class="keywordtype">int</span> target_type, <a class="code" href="namespaceirc.html#string">std::string</a> text); +<a name="l00516"></a>00516 +<a name="l00525"></a>00525 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGetServerDescription_28std_3A_3Astring_20servername_2C_20std_3A_3Astring_20_26description_29">OnGetServerDescription</a>(<a class="code" href="namespaceirc.html#string">std::string</a> servername,<a class="code" href="namespaceirc.html#string">std::string</a> &description); +<a name="l00526"></a>00526 +<a name="l00539"></a>00539 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncUser_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">OnSyncUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classModule.html">Module</a>* proto, <span class="keywordtype">void</span>* opaque); +<a name="l00540"></a>00540 +<a name="l00556"></a>00556 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncChannel_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_29">OnSyncChannel</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="classModule.html">Module</a>* proto, <span class="keywordtype">void</span>* opaque); +<a name="l00557"></a>00557 +<a name="l00558"></a>00558 <span class="comment">/* Allows modules to syncronize metadata related to channels over the network during a netburst.</span> +<a name="l00559"></a>00559 <span class="comment"> * Whenever the linking module wants to send out data, but doesnt know what the data</span> +<a name="l00560"></a>00560 <span class="comment"> * represents (e.g. it is Extensible metadata, added to a userrec or chanrec by a module) then</span> +<a name="l00561"></a>00561 <span class="comment"> * this method is called.You should use the ProtoSendMetaData function after you've</span> +<a name="l00562"></a>00562 <span class="comment"> * correctly decided how the data should be represented, to send the metadata on its way if it belongs</span> +<a name="l00563"></a>00563 <span class="comment"> * to your module. For a good example of how to use this method, see src/modules/m_swhois.cpp.</span> +<a name="l00564"></a>00564 <span class="comment"> * @param chan The channel whos metadata is being syncronized</span> +<a name="l00565"></a>00565 <span class="comment"> * @param proto A pointer to the module handling network protocol</span> +<a name="l00566"></a>00566 <span class="comment"> * @param opaque An opaque pointer set by the protocol module, should not be modified!</span> +<a name="l00567"></a>00567 <span class="comment"> * @param extname The extensions name which is being searched for</span> +<a name="l00568"></a>00568 <span class="comment"> */</span> +<a name="l00569"></a>00569 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncChannelMetaData_28chanrec_20_2Achan_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">OnSyncChannelMetaData</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="classModule.html">Module</a>* proto,<span class="keywordtype">void</span>* opaque, <a class="code" href="namespaceirc.html#string">std::string</a> extname); +<a name="l00570"></a>00570 +<a name="l00571"></a>00571 <span class="comment">/* Allows modules to syncronize metadata related to users over the network during a netburst.</span> +<a name="l00572"></a>00572 <span class="comment"> * Whenever the linking module wants to send out data, but doesnt know what the data</span> +<a name="l00573"></a>00573 <span class="comment"> * represents (e.g. it is Extensible metadata, added to a userrec or chanrec by a module) then</span> +<a name="l00574"></a>00574 <span class="comment"> * this method is called. You should use the ProtoSendMetaData function after you've</span> +<a name="l00575"></a>00575 <span class="comment"> * correctly decided how the data should be represented, to send the metadata on its way if</span> +<a name="l00576"></a>00576 <span class="comment"> * if it belongs to your module.</span> +<a name="l00577"></a>00577 <span class="comment"> * @param user The user whos metadata is being syncronized</span> +<a name="l00578"></a>00578 <span class="comment"> * @param proto A pointer to the module handling network protocol</span> +<a name="l00579"></a>00579 <span class="comment"> * @param opaque An opaque pointer set by the protocol module, should not be modified!</span> +<a name="l00580"></a>00580 <span class="comment"> * @param extname The extensions name which is being searched for</span> +<a name="l00581"></a>00581 <span class="comment"> */</span> +<a name="l00582"></a>00582 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSyncUserMetaData_28userrec_20_2Auser_2C_20Module_20_2Aproto_2C_20void_20_2Aopaque_2C_20std_3A_3Astring_20extname_29">OnSyncUserMetaData</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classModule.html">Module</a>* proto,<span class="keywordtype">void</span>* opaque, <a class="code" href="namespaceirc.html#string">std::string</a> extname); +<a name="l00583"></a>00583 +<a name="l00591"></a>00591 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDecodeMetaData_28int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">OnDecodeMetaData</a>(<span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> extname, <a class="code" href="namespaceirc.html#string">std::string</a> extdata); <a name="l00592"></a>00592 -<a name="l00607"></a>00607 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#ProtoSendMetaData_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">ProtoSendMetaData</a>(<span class="keywordtype">void</span>* opaque, <span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> extname, <a class="code" href="namespaceirc.html#string">std::string</a> extdata); -<a name="l00608"></a>00608 -<a name="l00613"></a>00613 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnWallops_28userrec_20_2Auser_2C_20std_3A_3Astring_20text_29">OnWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> text); -<a name="l00614"></a>00614 -<a name="l00620"></a>00620 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">OnChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost); -<a name="l00621"></a>00621 -<a name="l00627"></a>00627 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnChangeName_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">OnChangeName</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> gecos); -<a name="l00628"></a>00628 -<a name="l00636"></a>00636 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddGLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">OnAddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l00637"></a>00637 -<a name="l00645"></a>00645 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddZLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipmask_29">OnAddZLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> ipmask); -<a name="l00646"></a>00646 -<a name="l00654"></a>00654 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddKLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">OnAddKLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l00655"></a>00655 -<a name="l00663"></a>00663 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddQLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickmask_29">OnAddQLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> nickmask); -<a name="l00664"></a>00664 -<a name="l00672"></a>00672 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddELine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">OnAddELine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l00673"></a>00673 -<a name="l00679"></a>00679 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelGLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">OnDelGLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l00680"></a>00680 -<a name="l00686"></a>00686 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelZLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20ipmask_29">OnDelZLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> ipmask); -<a name="l00687"></a>00687 -<a name="l00693"></a>00693 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelKLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">OnDelKLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l00694"></a>00694 -<a name="l00700"></a>00700 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelQLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20nickmask_29">OnDelQLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> nickmask); -<a name="l00701"></a>00701 -<a name="l00707"></a>00707 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelELine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">OnDelELine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l00708"></a>00708 -<a name="l00718"></a>00718 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnCleanup_28int_20target_5Ftype_2C_20void_20_2Aitem_29">OnCleanup</a>(<span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* item); -<a name="l00719"></a>00719 -<a name="l00729"></a>00729 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserPostNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20oldnick_29">OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> oldnick); -<a name="l00730"></a>00730 -<a name="l00756"></a>00756 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnAccessCheck_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_2C_20int_20access_5Ftype_29">OnAccessCheck</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel,<span class="keywordtype">int</span> access_type); -<a name="l00757"></a>00757 -<a name="l00762"></a>00762 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#On_30_30_35Numeric_28std_3A_3Astring_20_26output_29">On005Numeric</a>(<a class="code" href="namespaceirc.html#string">std::string</a> &output); -<a name="l00763"></a>00763 -<a name="l00777"></a>00777 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, <a class="code" href="namespaceirc.html#string">std::string</a> reason); +<a name="l00606"></a>00606 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#ProtoSendMode_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20modeline_29">ProtoSendMode</a>(<span class="keywordtype">void</span>* opaque, <span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> modeline); +<a name="l00607"></a>00607 +<a name="l00622"></a>00622 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#ProtoSendMetaData_28void_20_2Aopaque_2C_20int_20target_5Ftype_2C_20void_20_2Atarget_2C_20std_3A_3Astring_20extname_2C_20std_3A_3Astring_20extdata_29">ProtoSendMetaData</a>(<span class="keywordtype">void</span>* opaque, <span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* target, <a class="code" href="namespaceirc.html#string">std::string</a> extname, <a class="code" href="namespaceirc.html#string">std::string</a> extdata); +<a name="l00623"></a>00623 +<a name="l00628"></a>00628 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnWallops_28userrec_20_2Auser_2C_20std_3A_3Astring_20text_29">OnWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> text); +<a name="l00629"></a>00629 +<a name="l00635"></a>00635 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">OnChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost); +<a name="l00636"></a>00636 +<a name="l00642"></a>00642 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnChangeName_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">OnChangeName</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> gecos); +<a name="l00643"></a>00643 +<a name="l00651"></a>00651 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddGLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">OnAddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l00652"></a>00652 +<a name="l00660"></a>00660 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddZLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipmask_29">OnAddZLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> ipmask); +<a name="l00661"></a>00661 +<a name="l00669"></a>00669 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddKLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">OnAddKLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l00670"></a>00670 +<a name="l00678"></a>00678 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddQLine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickmask_29">OnAddQLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> nickmask); +<a name="l00679"></a>00679 +<a name="l00687"></a>00687 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnAddELine_28long_20duration_2C_20userrec_20_2Asource_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">OnAddELine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l00688"></a>00688 +<a name="l00694"></a>00694 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelGLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">OnDelGLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l00695"></a>00695 +<a name="l00701"></a>00701 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelZLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20ipmask_29">OnDelZLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> ipmask); +<a name="l00702"></a>00702 +<a name="l00708"></a>00708 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelKLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">OnDelKLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l00709"></a>00709 +<a name="l00715"></a>00715 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelQLine_28userrec_20_2Asource_2C_20std_3A_3Astring_20nickmask_29">OnDelQLine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> nickmask); +<a name="l00716"></a>00716 +<a name="l00722"></a>00722 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnDelELine_28userrec_20_2Asource_2C_20std_3A_3Astring_20hostmask_29">OnDelELine</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l00723"></a>00723 +<a name="l00733"></a>00733 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnCleanup_28int_20target_5Ftype_2C_20void_20_2Aitem_29">OnCleanup</a>(<span class="keywordtype">int</span> target_type, <span class="keywordtype">void</span>* item); +<a name="l00734"></a>00734 +<a name="l00744"></a>00744 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserPostNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20oldnick_29">OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> oldnick); +<a name="l00745"></a>00745 +<a name="l00771"></a>00771 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnAccessCheck_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20chanrec_20_2Achannel_2C_20int_20access_5Ftype_29">OnAccessCheck</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel,<span class="keywordtype">int</span> access_type); +<a name="l00772"></a>00772 +<a name="l00777"></a>00777 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#On_30_30_35Numeric_28std_3A_3Astring_20_26output_29">On005Numeric</a>(<a class="code" href="namespaceirc.html#string">std::string</a> &output); <a name="l00778"></a>00778 -<a name="l00784"></a>00784 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRemoteKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">OnRemoteKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, <a class="code" href="namespaceirc.html#string">std::string</a> reason); -<a name="l00785"></a>00785 -<a name="l00798"></a>00798 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnLoadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,<a class="code" href="namespaceirc.html#string">std::string</a> name); -<a name="l00799"></a>00799 -<a name="l00812"></a>00812 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUnloadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">OnUnloadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,<a class="code" href="namespaceirc.html#string">std::string</a> name); -<a name="l00813"></a>00813 -<a name="l00820"></a>00820 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnBackgroundTimer_28time_5Ft_20curtime_29">OnBackgroundTimer</a>(time_t curtime); -<a name="l00821"></a>00821 -<a name="l00832"></a>00832 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSendList_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_2C_20char_20mode_29">OnSendList</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel, <span class="keywordtype">char</span> mode); -<a name="l00833"></a>00833 -<a name="l00849"></a>00849 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnPreCommand_28std_3A_3Astring_20command_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">OnPreCommand</a>(<a class="code" href="namespaceirc.html#string">std::string</a> command, <span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); -<a name="l00850"></a>00850 -<a name="l00861"></a>00861 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classModule.html#OnCheckReady_28userrec_20_2Auser_29">OnCheckReady</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00862"></a>00862 -<a name="l00871"></a>00871 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserRegister_28userrec_20_2Auser_29">OnUserRegister</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00872"></a>00872 -<a name="l00885"></a>00885 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawMode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20char_20mode_2C_20std_3A_3Astring_20param_2C_20bool_20adding_2C_20int_20pcnt_29">OnRawMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keywordtype">char</span> mode, <a class="code" href="namespaceirc.html#string">std::string</a> param, <span class="keywordtype">bool</span> adding, <span class="keywordtype">int</span> pcnt); -<a name="l00886"></a>00886 -<a name="l00895"></a>00895 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckInvite_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">OnCheckInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); -<a name="l00896"></a>00896 -<a name="l00906"></a>00906 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckKey_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20keygiven_29">OnCheckKey</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> keygiven); -<a name="l00907"></a>00907 -<a name="l00916"></a>00916 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckLimit_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">OnCheckLimit</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); -<a name="l00917"></a>00917 -<a name="l00926"></a>00926 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckBan_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">OnCheckBan</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); -<a name="l00927"></a>00927 -<a name="l00932"></a>00932 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnStats_28char_20symbol_29">OnStats</a>(<span class="keywordtype">char</span> symbol); -<a name="l00933"></a>00933 -<a name="l00940"></a>00940 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnChangeLocalUserHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">OnChangeLocalUserHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost); -<a name="l00941"></a>00941 -<a name="l00948"></a>00948 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnChangeLocalUserGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">OnChangeLocalUserGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost); -<a name="l00949"></a>00949 -<a name="l00957"></a>00957 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">OnLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> topic); -<a name="l00958"></a>00958 -<a name="l00965"></a>00965 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnPostLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">OnPostLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> topic); -<a name="l00966"></a>00966 -<a name="l00973"></a>00973 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnEvent_28Event_20_2Aevent_29">OnEvent</a>(<a class="code" href="classEvent.html">Event</a>* event); -<a name="l00974"></a>00974 -<a name="l00982"></a>00982 <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="classModule.html#OnRequest_28Request_20_2Arequest_29">OnRequest</a>(<a class="code" href="classRequest.html">Request</a>* request); -<a name="l00983"></a>00983 -<a name="l00993"></a>00993 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnOperCompare_28std_3A_3Astring_20password_2C_20std_3A_3Astring_20input_29">OnOperCompare</a>(<a class="code" href="namespaceirc.html#string">std::string</a> password, <a class="code" href="namespaceirc.html#string">std::string</a> input); -<a name="l00994"></a>00994 -<a name="l01001"></a>01001 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGlobalOper_28userrec_20_2Auser_29">OnGlobalOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l01002"></a>01002 -<a name="l01008"></a>01008 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGlobalConnect_28userrec_20_2Auser_29">OnGlobalConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00792"></a>00792 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, <a class="code" href="namespaceirc.html#string">std::string</a> reason); +<a name="l00793"></a>00793 +<a name="l00799"></a>00799 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRemoteKill_28userrec_20_2Asource_2C_20userrec_20_2Adest_2C_20std_3A_3Astring_20reason_29">OnRemoteKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, <a class="code" href="namespaceirc.html#string">std::string</a> reason); +<a name="l00800"></a>00800 +<a name="l00813"></a>00813 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnLoadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,<a class="code" href="namespaceirc.html#string">std::string</a> name); +<a name="l00814"></a>00814 +<a name="l00827"></a>00827 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUnloadModule_28Module_20_2Amod_2C_20std_3A_3Astring_20name_29">OnUnloadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,<a class="code" href="namespaceirc.html#string">std::string</a> name); +<a name="l00828"></a>00828 +<a name="l00835"></a>00835 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnBackgroundTimer_28time_5Ft_20curtime_29">OnBackgroundTimer</a>(time_t curtime); +<a name="l00836"></a>00836 +<a name="l00847"></a>00847 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnSendList_28userrec_20_2Auser_2C_20chanrec_20_2Achannel_2C_20char_20mode_29">OnSendList</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel, <span class="keywordtype">char</span> mode); +<a name="l00848"></a>00848 +<a name="l00864"></a>00864 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnPreCommand_28std_3A_3Astring_20command_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">OnPreCommand</a>(<a class="code" href="namespaceirc.html#string">std::string</a> command, <span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); +<a name="l00865"></a>00865 +<a name="l00876"></a>00876 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classModule.html#OnCheckReady_28userrec_20_2Auser_29">OnCheckReady</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00877"></a>00877 +<a name="l00886"></a>00886 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnUserRegister_28userrec_20_2Auser_29">OnUserRegister</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00887"></a>00887 +<a name="l00900"></a>00900 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawMode_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20char_20mode_2C_20std_3A_3Astring_20param_2C_20bool_20adding_2C_20int_20pcnt_29">OnRawMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keywordtype">char</span> mode, <a class="code" href="namespaceirc.html#string">std::string</a> param, <span class="keywordtype">bool</span> adding, <span class="keywordtype">int</span> pcnt); +<a name="l00901"></a>00901 +<a name="l00910"></a>00910 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckInvite_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">OnCheckInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); +<a name="l00911"></a>00911 +<a name="l00921"></a>00921 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckKey_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20keygiven_29">OnCheckKey</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> keygiven); +<a name="l00922"></a>00922 +<a name="l00931"></a>00931 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckLimit_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">OnCheckLimit</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); +<a name="l00932"></a>00932 +<a name="l00941"></a>00941 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnCheckBan_28userrec_20_2Auser_2C_20chanrec_20_2Achan_29">OnCheckBan</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); +<a name="l00942"></a>00942 +<a name="l00947"></a>00947 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnStats_28char_20symbol_29">OnStats</a>(<span class="keywordtype">char</span> symbol); +<a name="l00948"></a>00948 +<a name="l00955"></a>00955 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnChangeLocalUserHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">OnChangeLocalUserHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost); +<a name="l00956"></a>00956 +<a name="l00963"></a>00963 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnChangeLocalUserGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20newhost_29">OnChangeLocalUserGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> newhost); +<a name="l00964"></a>00964 +<a name="l00972"></a>00972 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">OnLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> topic); +<a name="l00973"></a>00973 +<a name="l00980"></a>00980 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnPostLocalTopicChange_28userrec_20_2Auser_2C_20chanrec_20_2Achan_2C_20std_3A_3Astring_20topic_29">OnPostLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <a class="code" href="namespaceirc.html#string">std::string</a> topic); +<a name="l00981"></a>00981 +<a name="l00988"></a>00988 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnEvent_28Event_20_2Aevent_29">OnEvent</a>(<a class="code" href="classEvent.html">Event</a>* event); +<a name="l00989"></a>00989 +<a name="l00997"></a>00997 <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="classModule.html#OnRequest_28Request_20_2Arequest_29">OnRequest</a>(<a class="code" href="classRequest.html">Request</a>* request); +<a name="l00998"></a>00998 +<a name="l01008"></a>01008 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnOperCompare_28std_3A_3Astring_20password_2C_20std_3A_3Astring_20input_29">OnOperCompare</a>(<a class="code" href="namespaceirc.html#string">std::string</a> password, <a class="code" href="namespaceirc.html#string">std::string</a> input); <a name="l01009"></a>01009 -<a name="l01017"></a>01017 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnAddBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">OnAddBan</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classchanrec.html">chanrec</a>* channel,<a class="code" href="namespaceirc.html#string">std::string</a> banmask); -<a name="l01018"></a>01018 -<a name="l01026"></a>01026 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnDelBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">OnDelBan</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classchanrec.html">chanrec</a>* channel,<a class="code" href="namespaceirc.html#string">std::string</a> banmask); -<a name="l01027"></a>01027 -<a name="l01037"></a>01037 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRawSocketAccept_28int_20fd_2C_20std_3A_3Astring_20ip_2C_20int_20localport_29">OnRawSocketAccept</a>(<span class="keywordtype">int</span> fd, <a class="code" href="namespaceirc.html#string">std::string</a> ip, <span class="keywordtype">int</span> localport); -<a name="l01038"></a>01038 -<a name="l01049"></a>01049 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawSocketWrite_28int_20fd_2C_20char_20_2Abuffer_2C_20int_20count_29">OnRawSocketWrite</a>(<span class="keywordtype">int</span> fd, <span class="keywordtype">char</span>* buffer, <span class="keywordtype">int</span> count); -<a name="l01050"></a>01050 -<a name="l01055"></a>01055 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRawSocketClose_28int_20fd_29">OnRawSocketClose</a>(<span class="keywordtype">int</span> fd); -<a name="l01056"></a>01056 -<a name="l01072"></a>01072 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawSocketRead_28int_20fd_2C_20char_20_2Abuffer_2C_20unsigned_20int_20count_2C_20int_20_26readresult_29">OnRawSocketRead</a>(<span class="keywordtype">int</span> fd, <span class="keywordtype">char</span>* buffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> count, <span class="keywordtype">int</span> &readresult); -<a name="l01073"></a>01073 }; -<a name="l01074"></a>01074 -<a name="l01075"></a>01075 -<a name="l01081"></a><a class="code" href="classServer.html">01081</a> <span class="keyword">class </span><a class="code" href="classServer.html">Server</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -<a name="l01082"></a>01082 { -<a name="l01083"></a>01083 <span class="keyword">public</span>: -<a name="l01087"></a>01087 <a class="code" href="classServer.html#Server_28_29">Server</a>(); -<a name="l01091"></a>01091 <span class="keyword">virtual</span> <a class="code" href="classServer.html#_7EServer_28_29">~Server</a>(); -<a name="l01092"></a>01092 -<a name="l01096"></a>01096 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendOpers_28std_3A_3Astring_20s_29">SendOpers</a>(<a class="code" href="namespaceirc.html#string">std::string</a> s); -<a name="l01101"></a>01101 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#Log_28int_20level_2C_20std_3A_3Astring_20s_29">Log</a>(<span class="keywordtype">int</span> level, <a class="code" href="namespaceirc.html#string">std::string</a> s); -<a name="l01106"></a>01106 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#Send_28int_20Socket_2C_20std_3A_3Astring_20s_29">Send</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="namespaceirc.html#string">std::string</a> s); -<a name="l01111"></a>01111 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendServ_28int_20Socket_2C_20std_3A_3Astring_20s_29">SendServ</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="namespaceirc.html#string">std::string</a> s); -<a name="l01115"></a>01115 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendChannelServerNotice_28std_3A_3Astring_20ServName_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20text_29">SendChannelServerNotice</a>(<a class="code" href="namespaceirc.html#string">std::string</a> ServName, <a class="code" href="classchanrec.html">chanrec</a>* Channel, <a class="code" href="namespaceirc.html#string">std::string</a> text); -<a name="l01120"></a>01120 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendFrom_28int_20Socket_2C_20userrec_20_2AUser_2C_20std_3A_3Astring_20s_29">SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> s); -<a name="l01135"></a>01135 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendTo_28userrec_20_2ASource_2C_20userrec_20_2ADest_2C_20std_3A_3Astring_20s_29">SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, <a class="code" href="namespaceirc.html#string">std::string</a> s); -<a name="l01142"></a>01142 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20s_2C_20bool_20IncludeSender_29">SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, <a class="code" href="namespaceirc.html#string">std::string</a> s,<span class="keywordtype">bool</span> IncludeSender); -<a name="l01147"></a>01147 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#CommonChannels_28userrec_20_2Au_31_2C_20userrec_20_2Au_32_29">CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2); -<a name="l01155"></a>01155 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendCommon_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_2C_20bool_20IncludeSender_29">SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> text,<span class="keywordtype">bool</span> IncludeSender); -<a name="l01160"></a>01160 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendWallops_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_29">SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> text); -<a name="l01161"></a>01161 -<a name="l01165"></a>01165 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsNick_28std_3A_3Astring_20nick_29">IsNick</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nick); -<a name="l01169"></a>01169 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classServer.html#CountUsers_28chanrec_20_2Ac_29">CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c); -<a name="l01173"></a>01173 <span class="keyword">virtual</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#FindNick_28std_3A_3Astring_20nick_29">FindNick</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nick); -<a name="l01177"></a>01177 <span class="keyword">virtual</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#FindDescriptor_28int_20socket_29">FindDescriptor</a>(<span class="keywordtype">int</span> socket); -<a name="l01181"></a>01181 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#FindChannel_28std_3A_3Astring_20channel_29">FindChannel</a>(<a class="code" href="namespaceirc.html#string">std::string</a> channel); -<a name="l01186"></a>01186 <span class="keyword">virtual</span> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#ChanMode_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); -<a name="l01190"></a>01190 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsOnChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); -<a name="l01193"></a>01193 <span class="keyword">virtual</span> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetServerName_28_29">GetServerName</a>(); -<a name="l01196"></a>01196 <span class="keyword">virtual</span> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetNetworkName_28_29">GetNetworkName</a>(); -<a name="l01199"></a>01199 <span class="keyword">virtual</span> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetServerDescription_28_29">GetServerDescription</a>(); -<a name="l01205"></a>01205 <span class="keyword">virtual</span> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#GetAdmin_28_29">GetAdmin</a>(); -<a name="l01224"></a>01224 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#AddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fwhen_5Fon_2C_20int_20params_5Fwhen_5Foff_29">AddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_when_on, <span class="keywordtype">int</span> params_when_off); -<a name="l01225"></a>01225 -<a name="l01247"></a>01247 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#AddExtendedListMode_28char_20modechar_29">AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar); -<a name="l01248"></a>01248 -<a name="l01266"></a>01266 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddCommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams, <span class="keywordtype">char</span>* source); -<a name="l01267"></a>01267 -<a name="l01289"></a>01289 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendMode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); -<a name="l01290"></a>01290 -<a name="l01303"></a>01303 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendToModeMask_28std_3A_3Astring_20modes_2C_20int_20flags_2C_20std_3A_3Astring_20text_29">SendToModeMask</a>(<a class="code" href="namespaceirc.html#string">std::string</a> modes, <span class="keywordtype">int</span> flags, <a class="code" href="namespaceirc.html#string">std::string</a> text); -<a name="l01304"></a>01304 -<a name="l01310"></a>01310 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#JoinUserToChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20key_29">JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> cname, <a class="code" href="namespaceirc.html#string">std::string</a> key); -<a name="l01311"></a>01311 -<a name="l01317"></a>01317 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#PartUserFromChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20reason_29">PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> cname, <a class="code" href="namespaceirc.html#string">std::string</a> reason); -<a name="l01318"></a>01318 -<a name="l01324"></a>01324 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeUserNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20nickname_29">ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> nickname); -<a name="l01325"></a>01325 -<a name="l01336"></a>01336 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#QuitUser_28userrec_20_2Auser_2C_20std_3A_3Astring_20reason_29">QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> reason); -<a name="l01337"></a>01337 -<a name="l01342"></a>01342 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#MatchText_28std_3A_3Astring_20sliteral_2C_20std_3A_3Astring_20spattern_29">MatchText</a>(<a class="code" href="namespaceirc.html#string">std::string</a> sliteral, <a class="code" href="namespaceirc.html#string">std::string</a> spattern); -<a name="l01343"></a>01343 -<a name="l01355"></a>01355 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#CallCommandHandler_28std_3A_3Astring_20commandname_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">CallCommandHandler</a>(<a class="code" href="namespaceirc.html#string">std::string</a> commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l01356"></a>01356 -<a name="l01357"></a>01357 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsValidModuleCommand_28std_3A_3Astring_20commandname_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">IsValidModuleCommand</a>(<a class="code" href="namespaceirc.html#string">std::string</a> commandname, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l01016"></a>01016 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGlobalOper_28userrec_20_2Auser_29">OnGlobalOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l01017"></a>01017 +<a name="l01023"></a>01023 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnGlobalConnect_28userrec_20_2Auser_29">OnGlobalConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l01024"></a>01024 +<a name="l01032"></a>01032 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnAddBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">OnAddBan</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classchanrec.html">chanrec</a>* channel,<a class="code" href="namespaceirc.html#string">std::string</a> banmask); +<a name="l01033"></a>01033 +<a name="l01041"></a>01041 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnDelBan_28userrec_20_2Asource_2C_20chanrec_20_2Achannel_2C_20std_3A_3Astring_20banmask_29">OnDelBan</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classchanrec.html">chanrec</a>* channel,<a class="code" href="namespaceirc.html#string">std::string</a> banmask); +<a name="l01042"></a>01042 +<a name="l01052"></a>01052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRawSocketAccept_28int_20fd_2C_20std_3A_3Astring_20ip_2C_20int_20localport_29">OnRawSocketAccept</a>(<span class="keywordtype">int</span> fd, <a class="code" href="namespaceirc.html#string">std::string</a> ip, <span class="keywordtype">int</span> localport); +<a name="l01053"></a>01053 +<a name="l01064"></a>01064 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawSocketWrite_28int_20fd_2C_20char_20_2Abuffer_2C_20int_20count_29">OnRawSocketWrite</a>(<span class="keywordtype">int</span> fd, <span class="keywordtype">char</span>* buffer, <span class="keywordtype">int</span> count); +<a name="l01065"></a>01065 +<a name="l01070"></a>01070 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#OnRawSocketClose_28int_20fd_29">OnRawSocketClose</a>(<span class="keywordtype">int</span> fd); +<a name="l01071"></a>01071 +<a name="l01087"></a>01087 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#OnRawSocketRead_28int_20fd_2C_20char_20_2Abuffer_2C_20unsigned_20int_20count_2C_20int_20_26readresult_29">OnRawSocketRead</a>(<span class="keywordtype">int</span> fd, <span class="keywordtype">char</span>* buffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> count, <span class="keywordtype">int</span> &readresult); +<a name="l01088"></a>01088 }; +<a name="l01089"></a>01089 +<a name="l01090"></a>01090 +<a name="l01096"></a><a class="code" href="classServer.html">01096</a> <span class="keyword">class </span><a class="code" href="classServer.html">Server</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +<a name="l01097"></a>01097 { +<a name="l01098"></a>01098 <span class="keyword">public</span>: +<a name="l01102"></a>01102 <a class="code" href="classServer.html#Server_28_29">Server</a>(); +<a name="l01106"></a>01106 <span class="keyword">virtual</span> <a class="code" href="classServer.html#_7EServer_28_29">~Server</a>(); +<a name="l01107"></a>01107 +<a name="l01111"></a>01111 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendOpers_28std_3A_3Astring_20s_29">SendOpers</a>(<a class="code" href="namespaceirc.html#string">std::string</a> s); +<a name="l01116"></a>01116 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#Log_28int_20level_2C_20std_3A_3Astring_20s_29">Log</a>(<span class="keywordtype">int</span> level, <a class="code" href="namespaceirc.html#string">std::string</a> s); +<a name="l01121"></a>01121 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#Send_28int_20Socket_2C_20std_3A_3Astring_20s_29">Send</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="namespaceirc.html#string">std::string</a> s); +<a name="l01126"></a>01126 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendServ_28int_20Socket_2C_20std_3A_3Astring_20s_29">SendServ</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="namespaceirc.html#string">std::string</a> s); +<a name="l01130"></a>01130 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendChannelServerNotice_28std_3A_3Astring_20ServName_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20text_29">SendChannelServerNotice</a>(<a class="code" href="namespaceirc.html#string">std::string</a> ServName, <a class="code" href="classchanrec.html">chanrec</a>* Channel, <a class="code" href="namespaceirc.html#string">std::string</a> text); +<a name="l01135"></a>01135 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendFrom_28int_20Socket_2C_20userrec_20_2AUser_2C_20std_3A_3Astring_20s_29">SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> s); +<a name="l01150"></a>01150 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendTo_28userrec_20_2ASource_2C_20userrec_20_2ADest_2C_20std_3A_3Astring_20s_29">SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, <a class="code" href="namespaceirc.html#string">std::string</a> s); +<a name="l01157"></a>01157 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChannel_2C_20std_3A_3Astring_20s_2C_20bool_20IncludeSender_29">SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, <a class="code" href="namespaceirc.html#string">std::string</a> s,<span class="keywordtype">bool</span> IncludeSender); +<a name="l01162"></a>01162 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#CommonChannels_28userrec_20_2Au_31_2C_20userrec_20_2Au_32_29">CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2); +<a name="l01170"></a>01170 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendCommon_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_2C_20bool_20IncludeSender_29">SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> text,<span class="keywordtype">bool</span> IncludeSender); +<a name="l01175"></a>01175 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendWallops_28userrec_20_2AUser_2C_20std_3A_3Astring_20text_29">SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="namespaceirc.html#string">std::string</a> text); +<a name="l01176"></a>01176 +<a name="l01180"></a>01180 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsNick_28std_3A_3Astring_20nick_29">IsNick</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nick); +<a name="l01184"></a>01184 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classServer.html#CountUsers_28chanrec_20_2Ac_29">CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c); +<a name="l01188"></a>01188 <span class="keyword">virtual</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#FindNick_28std_3A_3Astring_20nick_29">FindNick</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nick); +<a name="l01192"></a>01192 <span class="keyword">virtual</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#FindDescriptor_28int_20socket_29">FindDescriptor</a>(<span class="keywordtype">int</span> socket); +<a name="l01196"></a>01196 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#FindChannel_28std_3A_3Astring_20channel_29">FindChannel</a>(<a class="code" href="namespaceirc.html#string">std::string</a> channel); +<a name="l01201"></a>01201 <span class="keyword">virtual</span> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#ChanMode_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); +<a name="l01205"></a>01205 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsOnChannel_28userrec_20_2AUser_2C_20chanrec_20_2AChan_29">IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); +<a name="l01208"></a>01208 <span class="keyword">virtual</span> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetServerName_28_29">GetServerName</a>(); +<a name="l01211"></a>01211 <span class="keyword">virtual</span> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetNetworkName_28_29">GetNetworkName</a>(); +<a name="l01214"></a>01214 <span class="keyword">virtual</span> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classServer.html#GetServerDescription_28_29">GetServerDescription</a>(); +<a name="l01220"></a>01220 <span class="keyword">virtual</span> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#GetAdmin_28_29">GetAdmin</a>(); +<a name="l01239"></a>01239 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#AddExtendedMode_28char_20modechar_2C_20int_20type_2C_20bool_20requires_5Foper_2C_20int_20params_5Fwhen_5Fon_2C_20int_20params_5Fwhen_5Foff_29">AddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_when_on, <span class="keywordtype">int</span> params_when_off); +<a name="l01240"></a>01240 +<a name="l01262"></a>01262 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#AddExtendedListMode_28char_20modechar_29">AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar); +<a name="l01263"></a>01263 +<a name="l01281"></a>01281 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddCommand_28char_20_2Acmd_2C_20handlerfunc_20f_2C_20char_20flags_2C_20int_20minparams_2C_20char_20_2Asource_29">AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams, <span class="keywordtype">char</span>* source); +<a name="l01282"></a>01282 +<a name="l01304"></a>01304 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendMode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); +<a name="l01305"></a>01305 +<a name="l01318"></a>01318 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#SendToModeMask_28std_3A_3Astring_20modes_2C_20int_20flags_2C_20std_3A_3Astring_20text_29">SendToModeMask</a>(<a class="code" href="namespaceirc.html#string">std::string</a> modes, <span class="keywordtype">int</span> flags, <a class="code" href="namespaceirc.html#string">std::string</a> text); +<a name="l01319"></a>01319 +<a name="l01325"></a>01325 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#JoinUserToChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20key_29">JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> cname, <a class="code" href="namespaceirc.html#string">std::string</a> key); +<a name="l01326"></a>01326 +<a name="l01332"></a>01332 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#PartUserFromChannel_28userrec_20_2Auser_2C_20std_3A_3Astring_20cname_2C_20std_3A_3Astring_20reason_29">PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> cname, <a class="code" href="namespaceirc.html#string">std::string</a> reason); +<a name="l01333"></a>01333 +<a name="l01339"></a>01339 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeUserNick_28userrec_20_2Auser_2C_20std_3A_3Astring_20nickname_29">ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> nickname); +<a name="l01340"></a>01340 +<a name="l01351"></a>01351 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#QuitUser_28userrec_20_2Auser_2C_20std_3A_3Astring_20reason_29">QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> reason); +<a name="l01352"></a>01352 +<a name="l01357"></a>01357 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#MatchText_28std_3A_3Astring_20sliteral_2C_20std_3A_3Astring_20spattern_29">MatchText</a>(<a class="code" href="namespaceirc.html#string">std::string</a> sliteral, <a class="code" href="namespaceirc.html#string">std::string</a> spattern); <a name="l01358"></a>01358 -<a name="l01364"></a>01364 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20host_29">ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> host); -<a name="l01365"></a>01365 -<a name="l01371"></a>01371 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> gecos); -<a name="l01372"></a>01372 -<a name="l01381"></a>01381 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsUlined_28std_3A_3Astring_20server_29">IsUlined</a>(<a class="code" href="namespaceirc.html#string">std::string</a> server); -<a name="l01382"></a>01382 -<a name="l01386"></a>01386 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#chanuserlist">chanuserlist</a> <a class="code" href="classServer.html#GetUsers_28chanrec_20_2Achan_29">GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); -<a name="l01387"></a>01387 -<a name="l01394"></a>01394 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#UserToPseudo_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">UserToPseudo</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<a class="code" href="namespaceirc.html#string">std::string</a> message); -<a name="l01395"></a>01395 -<a name="l01402"></a>01402 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#PseudoToUser_28userrec_20_2Aalive_2C_20userrec_20_2Azombie_2C_20std_3A_3Astring_20message_29">PseudoToUser</a>(<a class="code" href="classuserrec.html">userrec</a>* alive,<a class="code" href="classuserrec.html">userrec</a>* zombie,<a class="code" href="namespaceirc.html#string">std::string</a> message); -<a name="l01403"></a>01403 -<a name="l01411"></a>01411 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddGLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">AddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l01412"></a>01412 -<a name="l01420"></a>01420 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddQLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickname_29">AddQLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> nickname); -<a name="l01421"></a>01421 -<a name="l01429"></a>01429 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddZLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipaddr_29">AddZLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> ipaddr); -<a name="l01430"></a>01430 -<a name="l01438"></a>01438 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddKLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">AddKLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l01439"></a>01439 -<a name="l01447"></a>01447 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddELine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">AddELine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l01448"></a>01448 -<a name="l01451"></a>01451 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelGLine_28std_3A_3Astring_20hostmask_29">DelGLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l01452"></a>01452 -<a name="l01455"></a>01455 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelQLine_28std_3A_3Astring_20nickname_29">DelQLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nickname); -<a name="l01456"></a>01456 -<a name="l01459"></a>01459 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelZLine_28std_3A_3Astring_20ipaddr_29">DelZLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> ipaddr); -<a name="l01460"></a>01460 -<a name="l01463"></a>01463 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelKLine_28std_3A_3Astring_20hostmask_29">DelKLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l01464"></a>01464 -<a name="l01467"></a>01467 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelELine_28std_3A_3Astring_20hostmask_29">DelELine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask); -<a name="l01468"></a>01468 -<a name="l01474"></a>01474 <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">CalcDuration</a>(<a class="code" href="namespaceirc.html#string">std::string</a> duration); +<a name="l01370"></a>01370 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#CallCommandHandler_28std_3A_3Astring_20commandname_2C_20char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">CallCommandHandler</a>(<a class="code" href="namespaceirc.html#string">std::string</a> commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l01371"></a>01371 +<a name="l01372"></a>01372 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsValidModuleCommand_28std_3A_3Astring_20commandname_2C_20int_20pcnt_2C_20userrec_20_2Auser_29">IsValidModuleCommand</a>(<a class="code" href="namespaceirc.html#string">std::string</a> commandname, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l01373"></a>01373 +<a name="l01379"></a>01379 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeHost_28userrec_20_2Auser_2C_20std_3A_3Astring_20host_29">ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> host); +<a name="l01380"></a>01380 +<a name="l01386"></a>01386 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#ChangeGECOS_28userrec_20_2Auser_2C_20std_3A_3Astring_20gecos_29">ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="namespaceirc.html#string">std::string</a> gecos); +<a name="l01387"></a>01387 +<a name="l01396"></a>01396 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsUlined_28std_3A_3Astring_20server_29">IsUlined</a>(<a class="code" href="namespaceirc.html#string">std::string</a> server); +<a name="l01397"></a>01397 +<a name="l01401"></a>01401 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#chanuserlist">chanuserlist</a> <a class="code" href="classServer.html#GetUsers_28chanrec_20_2Achan_29">GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); +<a name="l01402"></a>01402 +<a name="l01409"></a>01409 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#UserToPseudo_28userrec_20_2Auser_2C_20std_3A_3Astring_20message_29">UserToPseudo</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<a class="code" href="namespaceirc.html#string">std::string</a> message); +<a name="l01410"></a>01410 +<a name="l01417"></a>01417 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#PseudoToUser_28userrec_20_2Aalive_2C_20userrec_20_2Azombie_2C_20std_3A_3Astring_20message_29">PseudoToUser</a>(<a class="code" href="classuserrec.html">userrec</a>* alive,<a class="code" href="classuserrec.html">userrec</a>* zombie,<a class="code" href="namespaceirc.html#string">std::string</a> message); +<a name="l01418"></a>01418 +<a name="l01426"></a>01426 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddGLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">AddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l01427"></a>01427 +<a name="l01435"></a>01435 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddQLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20nickname_29">AddQLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> nickname); +<a name="l01436"></a>01436 +<a name="l01444"></a>01444 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddZLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20ipaddr_29">AddZLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> ipaddr); +<a name="l01445"></a>01445 +<a name="l01453"></a>01453 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddKLine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">AddKLine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l01454"></a>01454 +<a name="l01462"></a>01462 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddELine_28long_20duration_2C_20std_3A_3Astring_20source_2C_20std_3A_3Astring_20reason_2C_20std_3A_3Astring_20hostmask_29">AddELine</a>(<span class="keywordtype">long</span> duration, <a class="code" href="namespaceirc.html#string">std::string</a> source, <a class="code" href="namespaceirc.html#string">std::string</a> reason, <a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l01463"></a>01463 +<a name="l01466"></a>01466 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelGLine_28std_3A_3Astring_20hostmask_29">DelGLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l01467"></a>01467 +<a name="l01470"></a>01470 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelQLine_28std_3A_3Astring_20nickname_29">DelQLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> nickname); +<a name="l01471"></a>01471 +<a name="l01474"></a>01474 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelZLine_28std_3A_3Astring_20ipaddr_29">DelZLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> ipaddr); <a name="l01475"></a>01475 -<a name="l01478"></a>01478 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsValidMask_28std_3A_3Astring_20mask_29">IsValidMask</a>(<a class="code" href="namespaceirc.html#string">std::string</a> mask); +<a name="l01478"></a>01478 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelKLine_28std_3A_3Astring_20hostmask_29">DelKLine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask); <a name="l01479"></a>01479 -<a name="l01484"></a>01484 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classServer.html#FindModule_28std_3A_3Astring_20name_29">FindModule</a>(<a class="code" href="namespaceirc.html#string">std::string</a> name); -<a name="l01485"></a>01485 -<a name="l01488"></a>01488 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddSocket_28InspSocket_20_2Asock_29">AddSocket</a>(<a class="code" href="classInspSocket.html">InspSocket</a>* sock); -<a name="l01489"></a>01489 -<a name="l01492"></a>01492 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#DelSocket_28InspSocket_20_2Asock_29">DelSocket</a>(<a class="code" href="classInspSocket.html">InspSocket</a>* sock); -<a name="l01493"></a>01493 -<a name="l01494"></a>01494 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#RehashServer_28_29">RehashServer</a>(); -<a name="l01495"></a>01495 }; -<a name="l01496"></a>01496 -<a name="l01497"></a>01497 -<a name="l01498"></a><a class="code" href="modules_8h.html#CONF_5FNOT_5FA_5FNUMBER">01498</a> <span class="preprocessor">#define CONF_NOT_A_NUMBER 0x000010</span> -<a name="l01499"></a><a class="code" href="modules_8h.html#CONF_5FNOT_5FUNSIGNED">01499</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_NOT_UNSIGNED 0x000080</span> -<a name="l01500"></a><a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">01500</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_VALUE_NOT_FOUND 0x000100</span> -<a name="l01501"></a><a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">01501</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_FILE_NOT_FOUND 0x000200</span> -<a name="l01502"></a>01502 <span class="preprocessor"></span> -<a name="l01503"></a>01503 -<a name="l01510"></a><a class="code" href="classConfigReader.html">01510</a> <span class="keyword">class </span><a class="code" href="classConfigReader.html">ConfigReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -<a name="l01511"></a>01511 { -<a name="l01512"></a>01512 <span class="keyword">protected</span>: -<a name="l01518"></a><a class="code" href="classConfigReader.html#cache">01518</a> std::stringstream *<a class="code" href="classConfigReader.html#cache">cache</a>; -<a name="l01519"></a><a class="code" href="classConfigReader.html#errorlog">01519</a> std::stringstream *<a class="code" href="classConfigReader.html#errorlog">errorlog</a>; -<a name="l01522"></a><a class="code" href="classConfigReader.html#readerror">01522</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#readerror">readerror</a>; -<a name="l01523"></a><a class="code" href="classConfigReader.html#error">01523</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#error">error</a>; -<a name="l01524"></a>01524 -<a name="l01525"></a>01525 <span class="keyword">public</span>: -<a name="l01530"></a>01530 <a class="code" href="classConfigReader.html#ConfigReader_28_29">ConfigReader</a>(); <span class="comment">// default constructor reads ircd.conf</span> -<a name="l01534"></a>01534 <span class="comment"></span> <a class="code" href="classConfigReader.html#ConfigReader_28_29">ConfigReader</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename); <span class="comment">// read a module-specific config</span> -<a name="l01538"></a>01538 <span class="comment"></span> <a class="code" href="classConfigReader.html#_7EConfigReader_28_29">~ConfigReader</a>(); -<a name="l01543"></a>01543 <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classConfigReader.html#ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ReadValue</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index); -<a name="l01549"></a>01549 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ReadFlag</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index); -<a name="l01558"></a>01558 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29">ReadInteger</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned); -<a name="l01563"></a>01563 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#GetError_28_29">GetError</a>(); -<a name="l01570"></a>01570 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#Enumerate_28std_3A_3Astring_20tag_29">Enumerate</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag); -<a name="l01575"></a>01575 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#Verify_28_29">Verify</a>(); -<a name="l01582"></a>01582 <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29">DumpErrors</a>(<span class="keywordtype">bool</span> bail,<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l01583"></a>01583 -<a name="l01589"></a>01589 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">EnumerateValues</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <span class="keywordtype">int</span> index); -<a name="l01590"></a>01590 }; -<a name="l01591"></a>01591 -<a name="l01592"></a>01592 -<a name="l01593"></a>01593 -<a name="l01599"></a><a class="code" href="classFileReader.html">01599</a> <span class="keyword">class </span><a class="code" href="classFileReader.html">FileReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -<a name="l01600"></a>01600 { -<a name="l01601"></a><a class="code" href="classFileReader.html#fc">01601</a> <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> <a class="code" href="classFileReader.html#fc">fc</a>; -<a name="l01602"></a>01602 <span class="keyword">public</span>: -<a name="l01607"></a>01607 <a class="code" href="classFileReader.html#FileReader_28_29">FileReader</a>(); +<a name="l01482"></a>01482 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#DelELine_28std_3A_3Astring_20hostmask_29">DelELine</a>(<a class="code" href="namespaceirc.html#string">std::string</a> hostmask); +<a name="l01483"></a>01483 +<a name="l01489"></a>01489 <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classServer.html#CalcDuration_28std_3A_3Astring_20duration_29">CalcDuration</a>(<a class="code" href="namespaceirc.html#string">std::string</a> duration); +<a name="l01490"></a>01490 +<a name="l01493"></a>01493 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#IsValidMask_28std_3A_3Astring_20mask_29">IsValidMask</a>(<a class="code" href="namespaceirc.html#string">std::string</a> mask); +<a name="l01494"></a>01494 +<a name="l01499"></a>01499 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classServer.html#FindModule_28std_3A_3Astring_20name_29">FindModule</a>(<a class="code" href="namespaceirc.html#string">std::string</a> name); +<a name="l01500"></a>01500 +<a name="l01503"></a>01503 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#AddSocket_28InspSocket_20_2Asock_29">AddSocket</a>(<a class="code" href="classInspSocket.html">InspSocket</a>* sock); +<a name="l01504"></a>01504 +<a name="l01507"></a>01507 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#DelSocket_28InspSocket_20_2Asock_29">DelSocket</a>(<a class="code" href="classInspSocket.html">InspSocket</a>* sock); +<a name="l01508"></a>01508 +<a name="l01509"></a>01509 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#RehashServer_28_29">RehashServer</a>(); +<a name="l01510"></a>01510 }; +<a name="l01511"></a>01511 +<a name="l01512"></a>01512 +<a name="l01513"></a><a class="code" href="modules_8h.html#CONF_5FNOT_5FA_5FNUMBER">01513</a> <span class="preprocessor">#define CONF_NOT_A_NUMBER 0x000010</span> +<a name="l01514"></a><a class="code" href="modules_8h.html#CONF_5FNOT_5FUNSIGNED">01514</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_NOT_UNSIGNED 0x000080</span> +<a name="l01515"></a><a class="code" href="modules_8h.html#CONF_5FVALUE_5FNOT_5FFOUND">01515</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_VALUE_NOT_FOUND 0x000100</span> +<a name="l01516"></a><a class="code" href="modules_8h.html#CONF_5FFILE_5FNOT_5FFOUND">01516</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_FILE_NOT_FOUND 0x000200</span> +<a name="l01517"></a>01517 <span class="preprocessor"></span> +<a name="l01518"></a>01518 +<a name="l01525"></a><a class="code" href="classConfigReader.html">01525</a> <span class="keyword">class </span><a class="code" href="classConfigReader.html">ConfigReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +<a name="l01526"></a>01526 { +<a name="l01527"></a>01527 <span class="keyword">protected</span>: +<a name="l01533"></a><a class="code" href="classConfigReader.html#cache">01533</a> std::stringstream *<a class="code" href="classConfigReader.html#cache">cache</a>; +<a name="l01534"></a><a class="code" href="classConfigReader.html#errorlog">01534</a> std::stringstream *<a class="code" href="classConfigReader.html#errorlog">errorlog</a>; +<a name="l01537"></a><a class="code" href="classConfigReader.html#readerror">01537</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#readerror">readerror</a>; +<a name="l01538"></a><a class="code" href="classConfigReader.html#error">01538</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#error">error</a>; +<a name="l01539"></a>01539 +<a name="l01540"></a>01540 <span class="keyword">public</span>: +<a name="l01545"></a>01545 <a class="code" href="classConfigReader.html#ConfigReader_28_29">ConfigReader</a>(); <span class="comment">// default constructor reads ircd.conf</span> +<a name="l01549"></a>01549 <span class="comment"></span> <a class="code" href="classConfigReader.html#ConfigReader_28_29">ConfigReader</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename); <span class="comment">// read a module-specific config</span> +<a name="l01553"></a>01553 <span class="comment"></span> <a class="code" href="classConfigReader.html#_7EConfigReader_28_29">~ConfigReader</a>(); +<a name="l01558"></a>01558 <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classConfigReader.html#ReadValue_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ReadValue</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index); +<a name="l01564"></a>01564 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#ReadFlag_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_29">ReadFlag</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index); +<a name="l01573"></a>01573 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#ReadInteger_28std_3A_3Astring_20tag_2C_20std_3A_3Astring_20name_2C_20int_20index_2C_20bool_20needs_5Funsigned_29">ReadInteger</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <a class="code" href="namespaceirc.html#string">std::string</a> name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned); +<a name="l01578"></a>01578 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#GetError_28_29">GetError</a>(); +<a name="l01585"></a>01585 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#Enumerate_28std_3A_3Astring_20tag_29">Enumerate</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag); +<a name="l01590"></a>01590 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#Verify_28_29">Verify</a>(); +<a name="l01597"></a>01597 <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#DumpErrors_28bool_20bail_2C_20userrec_20_2Auser_29">DumpErrors</a>(<span class="keywordtype">bool</span> bail,<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l01598"></a>01598 +<a name="l01604"></a>01604 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#EnumerateValues_28std_3A_3Astring_20tag_2C_20int_20index_29">EnumerateValues</a>(<a class="code" href="namespaceirc.html#string">std::string</a> tag, <span class="keywordtype">int</span> index); +<a name="l01605"></a>01605 }; +<a name="l01606"></a>01606 +<a name="l01607"></a>01607 <a name="l01608"></a>01608 -<a name="l01614"></a>01614 <a class="code" href="classFileReader.html#FileReader_28_29">FileReader</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename); -<a name="l01615"></a>01615 -<a name="l01619"></a>01619 <a class="code" href="classFileReader.html#_7EFileReader_28_29">~FileReader</a>(); -<a name="l01620"></a>01620 -<a name="l01626"></a>01626 <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#LoadFile_28std_3A_3Astring_20filename_29">LoadFile</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename); -<a name="l01627"></a>01627 -<a name="l01631"></a>01631 <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#Exists_28_29">Exists</a>(); -<a name="l01632"></a>01632 -<a name="l01637"></a>01637 <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classFileReader.html#GetLine_28int_20x_29">GetLine</a>(<span class="keywordtype">int</span> x); -<a name="l01638"></a>01638 -<a name="l01644"></a>01644 <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#FileSize_28_29">FileSize</a>(); -<a name="l01645"></a>01645 }; -<a name="l01646"></a>01646 -<a name="l01647"></a>01647 -<a name="l01654"></a><a class="code" href="classModuleFactory.html">01654</a> <span class="keyword">class </span><a class="code" href="classModuleFactory.html">ModuleFactory</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -<a name="l01655"></a>01655 { -<a name="l01656"></a>01656 <span class="keyword">public</span>: -<a name="l01657"></a><a class="code" href="classModuleFactory.html#ModuleFactory_28_29">01657</a> <a class="code" href="classModuleFactory.html#ModuleFactory_28_29">ModuleFactory</a>() { } -<a name="l01658"></a><a class="code" href="classModuleFactory.html#_7EModuleFactory_28_29">01658</a> <span class="keyword">virtual</span> <a class="code" href="classModuleFactory.html#_7EModuleFactory_28_29">~ModuleFactory</a>() { } -<a name="l01663"></a>01663 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a> * <a class="code" href="classModuleFactory.html#CreateModule_28Server_20_2AMe_29_3D_30">CreateModule</a>(<a class="code" href="classServer.html">Server</a>* Me) = 0; -<a name="l01664"></a>01664 }; -<a name="l01665"></a>01665 -<a name="l01666"></a>01666 -<a name="l01667"></a><a class="code" href="modules_8h.html#ircd_5Fmodule">01667</a> <span class="keyword">typedef</span> DLLFactory<ModuleFactory> <a class="code" href="modules_8h.html#ircd_5Fmodule">ircd_module</a>; -<a name="l01668"></a>01668 -<a name="l01669"></a>01669 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +<a name="l01614"></a><a class="code" href="classFileReader.html">01614</a> <span class="keyword">class </span><a class="code" href="classFileReader.html">FileReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +<a name="l01615"></a>01615 { +<a name="l01616"></a><a class="code" href="classFileReader.html#fc">01616</a> <a class="code" href="modules_8h.html#file_5Fcache">file_cache</a> <a class="code" href="classFileReader.html#fc">fc</a>; +<a name="l01617"></a>01617 <span class="keyword">public</span>: +<a name="l01622"></a>01622 <a class="code" href="classFileReader.html#FileReader_28_29">FileReader</a>(); +<a name="l01623"></a>01623 +<a name="l01629"></a>01629 <a class="code" href="classFileReader.html#FileReader_28_29">FileReader</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename); +<a name="l01630"></a>01630 +<a name="l01634"></a>01634 <a class="code" href="classFileReader.html#_7EFileReader_28_29">~FileReader</a>(); +<a name="l01635"></a>01635 +<a name="l01641"></a>01641 <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#LoadFile_28std_3A_3Astring_20filename_29">LoadFile</a>(<a class="code" href="namespaceirc.html#string">std::string</a> filename); +<a name="l01642"></a>01642 +<a name="l01646"></a>01646 <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#Exists_28_29">Exists</a>(); +<a name="l01647"></a>01647 +<a name="l01652"></a>01652 <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classFileReader.html#GetLine_28int_20x_29">GetLine</a>(<span class="keywordtype">int</span> x); +<a name="l01653"></a>01653 +<a name="l01659"></a>01659 <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#FileSize_28_29">FileSize</a>(); +<a name="l01660"></a>01660 }; +<a name="l01661"></a>01661 +<a name="l01662"></a>01662 +<a name="l01669"></a><a class="code" href="classModuleFactory.html">01669</a> <span class="keyword">class </span><a class="code" href="classModuleFactory.html">ModuleFactory</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +<a name="l01670"></a>01670 { +<a name="l01671"></a>01671 <span class="keyword">public</span>: +<a name="l01672"></a><a class="code" href="classModuleFactory.html#ModuleFactory_28_29">01672</a> <a class="code" href="classModuleFactory.html#ModuleFactory_28_29">ModuleFactory</a>() { } +<a name="l01673"></a><a class="code" href="classModuleFactory.html#_7EModuleFactory_28_29">01673</a> <span class="keyword">virtual</span> <a class="code" href="classModuleFactory.html#_7EModuleFactory_28_29">~ModuleFactory</a>() { } +<a name="l01678"></a>01678 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a> * <a class="code" href="classModuleFactory.html#CreateModule_28Server_20_2AMe_29_3D_30">CreateModule</a>(<a class="code" href="classServer.html">Server</a>* Me) = 0; +<a name="l01679"></a>01679 }; +<a name="l01680"></a>01680 +<a name="l01681"></a>01681 +<a name="l01682"></a><a class="code" href="modules_8h.html#ircd_5Fmodule">01682</a> <span class="keyword">typedef</span> DLLFactory<ModuleFactory> <a class="code" href="modules_8h.html#ircd_5Fmodule">ircd_module</a>; +<a name="l01683"></a>01683 +<a name="l01684"></a>01684 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 4007063a9..53cd259b8 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -26,8 +26,9 @@ Include dependency graph for modules.h:<p><center><img src="modules_8h__incl.gif <p> This graph shows which files directly or indirectly include this file:<p><center><img src="modules_8h__dep__incl.gif" border="0" usemap="#modules.hdep_map" alt=""></center> <map name="modules.hdep_map"> -<area href="channels_8cpp-source.html" shape="rect" coords="141,7,240,34" alt=""> -<area href="modules_8cpp-source.html" shape="rect" coords="141,58,240,84" alt=""> +<area href="channels_8cpp-source.html" shape="rect" coords="142,7,240,33" alt=""> +<area href="modules_8cpp-source.html" shape="rect" coords="290,83,388,109" alt=""> +<area href="typedefs_8h-source.html" shape="rect" coords="148,108,234,135" alt=""> </map> <p> @@ -49,6 +50,9 @@ This graph shows which files directly or indirectly include this file:<p><center <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classEvent.html">Event</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The Event class is a unicast message directed at all modules. <a href="classEvent.html#_details">More...</a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classExtMode.html">ExtMode</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Holds an extended mode's details. <a href="classExtMode.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classModule.html">Module</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Base class for all InspIRCd modules This class is the base class for InspIRCd modules. <a href="classModule.html#_details">More...</a><br></td></tr> @@ -425,7 +429,7 @@ Used with OnAccessCheck() method of modules. <p> Definition at line <a class="el" href="modules_8h-source.html#l00037">37</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00322">Module::OnAccessCheck()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00249">Module::OnAccessCheck()</a>. </td> </tr> </table> <a class="anchor" name="ACR_5FDENY"></a><!-- doxytag: member="modules.h::ACR_DENY" ref="ACR_5FDENY" args="" --><p> @@ -475,9 +479,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l00038">38</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01501">1501</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l01516">1516</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00807">ConfigReader::ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00734">ConfigReader::ConfigReader()</a>. </td> </tr> </table> <a class="anchor" name="CONF_5FNOT_5FA_5FNUMBER"></a><!-- doxytag: member="modules.h::CONF_NOT_A_NUMBER" ref="CONF_5FNOT_5FA_5FNUMBER" args="" --><p> @@ -502,9 +506,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00807">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01498">1498</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l01513">1513</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00869">ConfigReader::ReadInteger()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00797">ConfigReader::ReadInteger()</a>. </td> </tr> </table> <a class="anchor" name="CONF_5FNOT_5FUNSIGNED"></a><!-- doxytag: member="modules.h::CONF_NOT_UNSIGNED" ref="CONF_5FNOT_5FUNSIGNED" args="" --><p> @@ -529,9 +533,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00869">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01499">1499</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l01514">1514</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00869">ConfigReader::ReadInteger()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00797">ConfigReader::ReadInteger()</a>. </td> </tr> </table> <a class="anchor" name="CONF_5FVALUE_5FNOT_5FFOUND"></a><!-- doxytag: member="modules.h::CONF_VALUE_NOT_FOUND" ref="CONF_5FVALUE_5FNOT_5FFOUND" args="" --><p> @@ -556,9 +560,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00869">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01500">1500</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l01515">1515</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00852">ConfigReader::ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00869">ConfigReader::ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00836">ConfigReader::ReadValue()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00780">ConfigReader::ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00797">ConfigReader::ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00764">ConfigReader::ReadValue()</a>. </td> </tr> </table> <a class="anchor" name="DEBUG"></a><!-- doxytag: member="modules.h::DEBUG" ref="DEBUG" args="" --><p> @@ -585,9 +589,7 @@ log levels <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00023">23</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. -<p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00627">Server::AddExtendedMode()</a>, <a class="el" href="socketengine_8cpp-source.html#l00065">SocketEngine::AddFd()</a>, <a class="el" href="channels_8cpp-source.html#l00194">chanrec::AddUser()</a>, <a class="el" href="socketengine_8cpp-source.html#l00103">SocketEngine::DelFd()</a>, <a class="el" href="channels_8cpp-source.html#l00200">chanrec::DelUser()</a>, <a class="el" href="socket_8cpp-source.html#l00062">InspSocket::InspSocket()</a>, <a class="el" href="socket_8cpp-source.html#l00155">InspSocket::Read()</a>, <a class="el" href="users_8cpp-source.html#l00085">userrec::ReadData()</a>, <a class="el" href="users_8cpp-source.html#l00129">userrec::RemoveInvite()</a>, <a class="el" href="channels_8cpp-source.html#l00113">chanrec::SetCustomMode()</a>, <a class="el" href="channels_8cpp-source.html#l00138">chanrec::SetCustomModeParam()</a>, <a class="el" href="socket_8cpp-source.html#l00245">InspSocket::SetState()</a>, <a class="el" href="users_8cpp-source.html#l00299">userrec::SetWriteError()</a>, <a class="el" href="socketengine_8cpp-source.html#l00035">SocketEngine::SocketEngine()</a>, <a class="el" href="socketengine_8cpp-source.html#l00146">SocketEngine::Wait()</a>, and <a class="el" href="socketengine_8cpp-source.html#l00046">SocketEngine::~SocketEngine()</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00023">23</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a class="anchor" name="DEFAULT"></a><!-- doxytag: member="modules.h::DEFAULT" ref="DEFAULT" args="" --><p> @@ -639,7 +641,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00025">25</a> of <p> Definition at line <a class="el" href="modules_8h-source.html#l00101">101</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00681">Server::PseudoToUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00669">Server::UserToPseudo()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00608">Server::PseudoToUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00596">Server::UserToPseudo()</a>. </td> </tr> </table> <a class="anchor" name="FOREACH_5FMOD"></a><!-- doxytag: member="modules.h::FOREACH_MOD" ref="FOREACH_5FMOD" args="" --><p> @@ -666,7 +668,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00681">Server::Pseud <p> Definition at line <a class="el" href="modules_8h-source.html#l00081">81</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00287">Event::Send()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00214">Event::Send()</a>. </td> </tr> </table> <a class="anchor" name="FOREACH_5FRESULT_28x_29"></a><!-- doxytag: member="modules.h::FOREACH_RESULT" ref="FOREACH_5FRESULT_28x_29" args="(x)" --><p> @@ -734,7 +736,7 @@ Used with OnExtendedMode() method of modules. <p> Definition at line <a class="el" href="modules_8h-source.html#l00031">31</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00225">ModeMakeList()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00582">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00152">ModeMakeList()</a>. </td> </tr> </table> <a class="anchor" name="MT_5FCLIENT"></a><!-- doxytag: member="modules.h::MT_CLIENT" ref="MT_5FCLIENT" args="" --><p> @@ -761,7 +763,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00655">Server::AddEx <p> Definition at line <a class="el" href="modules_8h-source.html#l00032">32</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00627">Server::AddExtendedMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00554">Server::AddExtendedMode()</a>. </td> </tr> </table> <a class="anchor" name="MT_5FSERVER"></a><!-- doxytag: member="modules.h::MT_SERVER" ref="MT_5FSERVER" args="" --><p> @@ -788,7 +790,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00627">Server::AddEx <p> Definition at line <a class="el" href="modules_8h-source.html#l00033">33</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00627">Server::AddExtendedMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00554">Server::AddExtendedMode()</a>. </td> </tr> </table> <a class="anchor" name="NONE"></a><!-- doxytag: member="modules.h::NONE" ref="NONE" args="" --><p> @@ -967,7 +969,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00052">52</a> of <p> Definition at line <a class="el" href="modules_8h-source.html#l00053">53</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00313">Module::GetVersion()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00240">Module::GetVersion()</a>. </td> </tr> </table> <hr><h2>Typedef Documentation</h2> @@ -1047,7 +1049,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00065">65</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01667">1667</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l01682">1682</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a class="anchor" name="string_5Flist"></a><!-- doxytag: member="modules.h::string_list" ref="string_5Flist" args="" --><p> @@ -1130,7 +1132,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00070">70</a> of <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00487">Server::AddCommand()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00414">Server::AddCommand()</a>. </td> </tr> </table> <a class="anchor" name="server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29"></a><!-- doxytag: member="modules.h::server_mode" ref="server_5Fmode_28char_20_2A_2Aparameters_2C_20int_20pcnt_2C_20userrec_20_2Auser_29" args="(char **parameters, int pcnt, userrec *user)" --><p> @@ -1176,7 +1178,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00487">Server::AddCo </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/modules_8h__dep__incl.gif b/docs/module-doc/modules_8h__dep__incl.gif Binary files differindex b2d7f6bac..ffda5e4bd 100644 --- a/docs/module-doc/modules_8h__dep__incl.gif +++ b/docs/module-doc/modules_8h__dep__incl.gif diff --git a/docs/module-doc/modules_8h__dep__incl.map b/docs/module-doc/modules_8h__dep__incl.map index d7538d0b6..c8b77543c 100644 --- a/docs/module-doc/modules_8h__dep__incl.map +++ b/docs/module-doc/modules_8h__dep__incl.map @@ -1,3 +1,4 @@ base referer -rect $channels_8cpp-source.html 141,7 240,34 -rect $modules_8cpp-source.html 141,58 240,84 +rect $channels_8cpp-source.html 142,7 240,33 +rect $modules_8cpp-source.html 290,83 388,109 +rect $typedefs_8h-source.html 148,108 234,135 diff --git a/docs/module-doc/modules_8h__dep__incl.md5 b/docs/module-doc/modules_8h__dep__incl.md5 index 60d2fe3bf..afb807516 100644 --- a/docs/module-doc/modules_8h__dep__incl.md5 +++ b/docs/module-doc/modules_8h__dep__incl.md5 @@ -1 +1 @@ -611991712fd0ca861a8e76c0cc7c6347
\ No newline at end of file +709af1b122d8fb9d54f7e641c4015265
\ No newline at end of file diff --git a/docs/module-doc/namespaceirc.html b/docs/module-doc/namespaceirc.html index ecc59e554..39cf69d8c 100644 --- a/docs/module-doc/namespaceirc.html +++ b/docs/module-doc/namespaceirc.html @@ -56,7 +56,7 @@ This typedef declares <a class="el" href="namespaceirc.html#string">irc::string< Definition at line <a class="el" href="hashcomp_8h-source.html#l00129">129</a> of file <a class="el" href="hashcomp_8h-source.html">hashcomp.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/namespacemembers.html b/docs/module-doc/namespacemembers.html index 551a390ba..1a737aed5 100644 --- a/docs/module-doc/namespacemembers.html +++ b/docs/module-doc/namespacemembers.html @@ -11,7 +11,7 @@ Here is a list of all namespace members with links to the namespace documentatio <ul> <li>string : <a class="el" href="namespaceirc.html#string">irc</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/namespacemembers_type.html b/docs/module-doc/namespacemembers_type.html index d1da4447d..facd5858b 100644 --- a/docs/module-doc/namespacemembers_type.html +++ b/docs/module-doc/namespacemembers_type.html @@ -11,7 +11,7 @@ <ul> <li>string : <a class="el" href="namespaceirc.html#string">irc</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index d4cb5e106..2fe1f7d8f 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structnspace_1_1hash_3_01string_01_4.html">hash< string ></a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index c2272e9df..a74f24753 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -10,7 +10,7 @@ <tr><td class="indexkey"><a class="el" href="namespacenspace.html">nspace</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="namespacestd.html">std</a></td><td class="indexvalue"></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index f230107f5..60c022406 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@ <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/socket_8cpp-source.html b/docs/module-doc/socket_8cpp-source.html index d0acacdf1..301f525b4 100644 --- a/docs/module-doc/socket_8cpp-source.html +++ b/docs/module-doc/socket_8cpp-source.html @@ -40,7 +40,7 @@ <a name="l00031"></a>00031 <span class="preprocessor">#include <fstream></span> <a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="socket_8h.html">socket.h</a>"</span> <a name="l00033"></a>00033 <span class="preprocessor">#include "inspircd.h"</span> -<a name="l00034"></a>00034 <span class="preprocessor">#include "inspircd_io.h"</span> +<a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="inspircd__io_8h.html">inspircd_io.h</a>"</span> <a name="l00035"></a>00035 <span class="preprocessor">#include "inspircd_util.h"</span> <a name="l00036"></a>00036 <span class="preprocessor">#include "inspstring.h"</span> <a name="l00037"></a>00037 <span class="preprocessor">#include "helperfuncs.h"</span> @@ -48,243 +48,246 @@ <a name="l00039"></a>00039 <a name="l00040"></a>00040 <span class="keyword">extern</span> <a class="code" href="classSocketEngine.html">SocketEngine</a>* <a class="code" href="modules_8cpp.html#SE">SE</a>; <a name="l00041"></a>00041 -<a name="l00042"></a>00042 <span class="keyword">extern</span> FILE *<a class="code" href="channels_8cpp.html#log_5Ffile">log_file</a>; -<a name="l00043"></a>00043 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#boundPortCount">boundPortCount</a>; -<a name="l00044"></a>00044 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="socket_8cpp.html#openSockfd_5BMAXSOCKS_5D">openSockfd</a>[MAXSOCKS]; -<a name="l00045"></a>00045 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#TIME">TIME</a>; -<a name="l00046"></a>00046 <span class="keyword">extern</span> <span class="keywordtype">bool</span> <a class="code" href="socket_8cpp.html#unlimitcore">unlimitcore</a>; -<a name="l00047"></a>00047 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="socket_8cpp.html#MaxConn">MaxConn</a>; -<a name="l00048"></a>00048 -<a name="l00049"></a><a class="code" href="classInspSocket.html#InspSocket_28_29">00049</a> <a class="code" href="classInspSocket.html#InspSocket_28_29">InspSocket::InspSocket</a>() -<a name="l00050"></a>00050 { -<a name="l00051"></a>00051 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FDISCONNECTED">I_DISCONNECTED</a>; -<a name="l00052"></a>00052 } -<a name="l00053"></a>00053 -<a name="l00054"></a><a class="code" href="classInspSocket.html#InspSocket_28int_20newfd_2C_20char_20_2Aip_29">00054</a> <a class="code" href="classInspSocket.html#InspSocket_28_29">InspSocket::InspSocket</a>(<span class="keywordtype">int</span> newfd, <span class="keywordtype">char</span>* ip) -<a name="l00055"></a>00055 { -<a name="l00056"></a>00056 this-><a class="code" href="classInspSocket.html#fd">fd</a> = newfd; -<a name="l00057"></a>00057 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>; -<a name="l00058"></a>00058 this-><a class="code" href="classInspSocket.html#IP">IP</a> = ip; -<a name="l00059"></a>00059 SE-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">true</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); +<a name="l00042"></a>00042 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#boundPortCount">boundPortCount</a>; +<a name="l00043"></a>00043 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="socket_8cpp.html#openSockfd_5BMAXSOCKS_5D">openSockfd</a>[MAXSOCKS]; +<a name="l00044"></a>00044 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#TIME">TIME</a>; +<a name="l00045"></a>00045 +<a name="l00046"></a><a class="code" href="socket_8cpp.html#socket_5Fref_5B_36_35_35_33_35_5D">00046</a> <a class="code" href="classInspSocket.html">InspSocket</a>* <a class="code" href="socket_8cpp.html#socket_5Fref_5B_36_35_35_33_35_5D">socket_ref</a>[65535]; +<a name="l00047"></a>00047 +<a name="l00048"></a><a class="code" href="classInspSocket.html#InspSocket_28_29">00048</a> <a class="code" href="classInspSocket.html#InspSocket_28_29">InspSocket::InspSocket</a>() +<a name="l00049"></a>00049 { +<a name="l00050"></a>00050 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FDISCONNECTED">I_DISCONNECTED</a>; +<a name="l00051"></a>00051 } +<a name="l00052"></a>00052 +<a name="l00053"></a><a class="code" href="classInspSocket.html#InspSocket_28int_20newfd_2C_20char_20_2Aip_29">00053</a> <a class="code" href="classInspSocket.html#InspSocket_28_29">InspSocket::InspSocket</a>(<span class="keywordtype">int</span> newfd, <span class="keywordtype">char</span>* ip) +<a name="l00054"></a>00054 { +<a name="l00055"></a>00055 this-><a class="code" href="classInspSocket.html#fd">fd</a> = newfd; +<a name="l00056"></a>00056 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>; +<a name="l00057"></a>00057 this-><a class="code" href="classInspSocket.html#IP">IP</a> = ip; +<a name="l00058"></a>00058 SE-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">true</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); +<a name="l00059"></a>00059 socket_ref[this-><a class="code" href="classInspSocket.html#fd">fd</a>] = <span class="keyword">this</span>; <a name="l00060"></a>00060 } <a name="l00061"></a>00061 <a name="l00062"></a><a class="code" href="classInspSocket.html#InspSocket_28std_3A_3Astring_20host_2C_20int_20port_2C_20bool_20listening_2C_20unsigned_20long_20maxtime_29">00062</a> <a class="code" href="classInspSocket.html#InspSocket_28_29">InspSocket::InspSocket</a>(<a class="code" href="namespaceirc.html#string">std::string</a> host, <span class="keywordtype">int</span> port, <span class="keywordtype">bool</span> listening, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> maxtime) <a name="l00063"></a>00063 { <a name="l00064"></a>00064 <span class="keywordflow">if</span> (listening) { -<a name="l00065"></a>00065 <span class="keywordflow">if</span> ((this->fd = OpenTCPSocket()) == ERROR) +<a name="l00065"></a>00065 <span class="keywordflow">if</span> ((this->fd = <a class="code" href="inspircd__io_8h.html#OpenTCPSocket_28void_29">OpenTCPSocket</a>()) == ERROR) <a name="l00066"></a>00066 { <a name="l00067"></a>00067 this-><a class="code" href="classInspSocket.html#fd">fd</a> = -1; <a name="l00068"></a>00068 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; <a name="l00069"></a>00069 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FSOCKET">I_ERR_SOCKET</a>); -<a name="l00070"></a>00070 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"OpenTCPSocket() error"</span>); +<a name="l00070"></a>00070 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"OpenTCPSocket() error"</span>); <a name="l00071"></a>00071 <span class="keywordflow">return</span>; <a name="l00072"></a>00072 } <a name="l00073"></a>00073 <span class="keywordflow">else</span> <a name="l00074"></a>00074 { -<a name="l00075"></a>00075 <span class="keywordflow">if</span> (BindSocket(this->fd,this->client,this->server,port,(<span class="keywordtype">char</span>*)host.c_str()) == ERROR) +<a name="l00075"></a>00075 <span class="keywordflow">if</span> (<a class="code" href="inspircd__io_8h.html#BindSocket_28int_20sockfd_2C_20struct_20sockaddr_5Fin_20client_2C_20struct_20sockaddr_5Fin_20server_2C_20int_20port_2C_20char_20_2Aaddr_29">BindSocket</a>(this->fd,this->client,this->server,port,(<span class="keywordtype">char</span>*)host.c_str()) == ERROR) <a name="l00076"></a>00076 { <a name="l00077"></a>00077 this-><a class="code" href="classInspSocket.html#Close_28_29">Close</a>(); <a name="l00078"></a>00078 this-><a class="code" href="classInspSocket.html#fd">fd</a> = -1; <a name="l00079"></a>00079 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; <a name="l00080"></a>00080 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FBIND">I_ERR_BIND</a>); -<a name="l00081"></a>00081 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"BindSocket() error %s"</span>,strerror(errno)); +<a name="l00081"></a>00081 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"BindSocket() error %s"</span>,strerror(errno)); <a name="l00082"></a>00082 <span class="keywordflow">return</span>; <a name="l00083"></a>00083 } <a name="l00084"></a>00084 <span class="keywordflow">else</span> <a name="l00085"></a>00085 { <a name="l00086"></a>00086 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FLISTENING">I_LISTENING</a>; <a name="l00087"></a>00087 SE-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">true</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); -<a name="l00088"></a>00088 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"New socket now in I_LISTENING state"</span>); -<a name="l00089"></a>00089 <span class="keywordflow">return</span>; -<a name="l00090"></a>00090 } -<a name="l00091"></a>00091 } -<a name="l00092"></a>00092 } <span class="keywordflow">else</span> { -<a name="l00093"></a>00093 <span class="keywordtype">char</span>* ip; -<a name="l00094"></a>00094 this->host = host; -<a name="l00095"></a>00095 hostent* hoste = gethostbyname(host.c_str()); -<a name="l00096"></a>00096 <span class="keywordflow">if</span> (!hoste) { -<a name="l00097"></a>00097 ip = (<span class="keywordtype">char</span>*)host.c_str(); -<a name="l00098"></a>00098 } <span class="keywordflow">else</span> { -<a name="l00099"></a>00099 <span class="keyword">struct </span>in_addr* ia = (in_addr*)hoste->h_addr; -<a name="l00100"></a>00100 ip = inet_ntoa(*ia); -<a name="l00101"></a>00101 } -<a name="l00102"></a>00102 -<a name="l00103"></a>00103 this-><a class="code" href="classInspSocket.html#IP">IP</a> = ip; -<a name="l00104"></a>00104 -<a name="l00105"></a>00105 <a class="code" href="classInspSocket.html#timeout_5Fend">timeout_end</a> = time(NULL)+maxtime; -<a name="l00106"></a>00106 <a class="code" href="classInspSocket.html#timeout">timeout</a> = <span class="keyword">false</span>; -<a name="l00107"></a>00107 <span class="keywordflow">if</span> ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) -<a name="l00108"></a>00108 { -<a name="l00109"></a>00109 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; -<a name="l00110"></a>00110 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FSOCKET">I_ERR_SOCKET</a>); -<a name="l00111"></a>00111 <span class="keywordflow">return</span>; -<a name="l00112"></a>00112 } -<a name="l00113"></a>00113 this->port = port; -<a name="l00114"></a>00114 inet_aton(ip,&<a class="code" href="classInspSocket.html#addy">addy</a>); -<a name="l00115"></a>00115 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_family = AF_INET; -<a name="l00116"></a>00116 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_addr = <a class="code" href="classInspSocket.html#addy">addy</a>; -<a name="l00117"></a>00117 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_port = htons(this->port); -<a name="l00118"></a>00118 -<a name="l00119"></a>00119 <span class="keywordtype">int</span> flags; -<a name="l00120"></a>00120 flags = fcntl(this->fd, F_GETFL, 0); -<a name="l00121"></a>00121 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); -<a name="l00122"></a>00122 -<a name="l00123"></a>00123 <span class="keywordflow">if</span>(connect(this->fd, (sockaddr*)&this->addr,<span class="keyword">sizeof</span>(this->addr)) == -1) -<a name="l00124"></a>00124 { -<a name="l00125"></a>00125 <span class="keywordflow">if</span> (errno != EINPROGRESS) -<a name="l00126"></a>00126 { -<a name="l00127"></a>00127 this-><a class="code" href="classInspSocket.html#Close_28_29">Close</a>(); -<a name="l00128"></a>00128 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FCONNECT">I_ERR_CONNECT</a>); -<a name="l00129"></a>00129 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; -<a name="l00130"></a>00130 <span class="keywordflow">return</span>; -<a name="l00131"></a>00131 } -<a name="l00132"></a>00132 } -<a name="l00133"></a>00133 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>; -<a name="l00134"></a>00134 SE-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">false</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); -<a name="l00135"></a>00135 <span class="keywordflow">return</span>; -<a name="l00136"></a>00136 } -<a name="l00137"></a>00137 } -<a name="l00138"></a>00138 -<a name="l00139"></a><a class="code" href="classInspSocket.html#Close_28_29">00139</a> <span class="keywordtype">void</span> <a class="code" href="classInspSocket.html#Close_28_29">InspSocket::Close</a>() -<a name="l00140"></a>00140 { -<a name="l00141"></a>00141 <span class="keywordflow">if</span> (this->fd != -1) -<a name="l00142"></a>00142 { -<a name="l00143"></a>00143 this-><a class="code" href="classInspSocket.html#OnClose_28_29">OnClose</a>(); -<a name="l00144"></a>00144 shutdown(this->fd,2); -<a name="l00145"></a>00145 close(this->fd); -<a name="l00146"></a>00146 this-><a class="code" href="classInspSocket.html#fd">fd</a> = -1; -<a name="l00147"></a>00147 } -<a name="l00148"></a>00148 } -<a name="l00149"></a>00149 -<a name="l00150"></a><a class="code" href="classInspSocket.html#GetIP_28_29">00150</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classInspSocket.html#GetIP_28_29">InspSocket::GetIP</a>() -<a name="l00151"></a>00151 { -<a name="l00152"></a>00152 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#IP">IP</a>; -<a name="l00153"></a>00153 } -<a name="l00154"></a>00154 -<a name="l00155"></a><a class="code" href="classInspSocket.html#Read_28_29">00155</a> <span class="keywordtype">char</span>* <a class="code" href="classInspSocket.html#Read_28_29">InspSocket::Read</a>() -<a name="l00156"></a>00156 { -<a name="l00157"></a>00157 <span class="keywordtype">int</span> n = recv(this->fd,this->ibuf,<span class="keyword">sizeof</span>(this->ibuf),0); -<a name="l00158"></a>00158 <span class="keywordflow">if</span> (n > 0) -<a name="l00159"></a>00159 { -<a name="l00160"></a>00160 <a class="code" href="classInspSocket.html#ibuf_5B_31_36_33_38_34_5D">ibuf</a>[n] = 0; -<a name="l00161"></a>00161 <span class="keywordflow">return</span> <a class="code" href="classInspSocket.html#ibuf_5B_31_36_33_38_34_5D">ibuf</a>; -<a name="l00162"></a>00162 } -<a name="l00163"></a>00163 <span class="keywordflow">else</span> -<a name="l00164"></a>00164 { -<a name="l00165"></a>00165 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"EOF or error on socket"</span>); -<a name="l00166"></a>00166 <span class="keywordflow">return</span> NULL; -<a name="l00167"></a>00167 } -<a name="l00168"></a>00168 } -<a name="l00169"></a>00169 -<a name="l00170"></a>00170 <span class="comment">// There are two possible outcomes to this function.</span> -<a name="l00171"></a>00171 <span class="comment">// It will either write all of the data, or an undefined amount.</span> -<a name="l00172"></a>00172 <span class="comment">// If an undefined amount is written the connection has failed</span> -<a name="l00173"></a>00173 <span class="comment">// and should be aborted.</span> -<a name="l00174"></a><a class="code" href="classInspSocket.html#Write_28std_3A_3Astring_20data_29">00174</a> <span class="keywordtype">int</span> <a class="code" href="classInspSocket.html#Write_28std_3A_3Astring_20data_29">InspSocket::Write</a>(<a class="code" href="namespaceirc.html#string">std::string</a> data) -<a name="l00175"></a>00175 { -<a name="l00176"></a>00176 <span class="keywordtype">char</span>* d = (<span class="keywordtype">char</span>*)data.c_str(); -<a name="l00177"></a>00177 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> written = 0; -<a name="l00178"></a>00178 <span class="keywordtype">int</span> n = 0; -<a name="l00179"></a>00179 <span class="keywordtype">int</span> s = data.length(); -<a name="l00180"></a>00180 <span class="keywordflow">while</span> ((written < data.length()) && (n >= 0)) -<a name="l00181"></a>00181 { -<a name="l00182"></a>00182 n = send(this->fd,d,s,0); -<a name="l00183"></a>00183 <span class="keywordflow">if</span> (n > 0) -<a name="l00184"></a>00184 { -<a name="l00185"></a>00185 <span class="comment">// If we didnt write everything, advance</span> -<a name="l00186"></a>00186 <span class="comment">// the pointers so that when we retry</span> -<a name="l00187"></a>00187 <span class="comment">// the next time around the loop, we try</span> -<a name="l00188"></a>00188 <span class="comment">// to write what we failed to write before.</span> -<a name="l00189"></a>00189 written += n; -<a name="l00190"></a>00190 s -= n; -<a name="l00191"></a>00191 d += n; -<a name="l00192"></a>00192 } -<a name="l00193"></a>00193 } -<a name="l00194"></a>00194 <span class="keywordflow">return</span> written; -<a name="l00195"></a>00195 } -<a name="l00196"></a>00196 -<a name="l00197"></a><a class="code" href="classInspSocket.html#Timeout_28time_5Ft_20current_29">00197</a> <span class="keywordtype">bool</span> <a class="code" href="classInspSocket.html#Timeout_28time_5Ft_20current_29">InspSocket::Timeout</a>(time_t current) -<a name="l00198"></a>00198 { -<a name="l00199"></a>00199 <span class="keywordflow">if</span> ((this->state == <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>) && (current > <a class="code" href="classInspSocket.html#timeout_5Fend">timeout_end</a>)) -<a name="l00200"></a>00200 { -<a name="l00201"></a>00201 <span class="comment">// for non-listening sockets, the timeout can occur</span> -<a name="l00202"></a>00202 <span class="comment">// which causes termination of the connection after</span> -<a name="l00203"></a>00203 <span class="comment">// the given number of seconds without a successful</span> -<a name="l00204"></a>00204 <span class="comment">// connection.</span> -<a name="l00205"></a>00205 this-><a class="code" href="classInspSocket.html#OnTimeout_28_29">OnTimeout</a>(); -<a name="l00206"></a>00206 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FTIMEOUT">I_ERR_TIMEOUT</a>); -<a name="l00207"></a>00207 <a class="code" href="classInspSocket.html#timeout">timeout</a> = <span class="keyword">true</span>; -<a name="l00208"></a>00208 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; -<a name="l00209"></a>00209 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00210"></a>00210 } -<a name="l00211"></a>00211 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00212"></a>00212 } -<a name="l00213"></a>00213 -<a name="l00214"></a><a class="code" href="classInspSocket.html#Poll_28_29">00214</a> <span class="keywordtype">bool</span> <a class="code" href="classInspSocket.html#Poll_28_29">InspSocket::Poll</a>() -<a name="l00215"></a>00215 { -<a name="l00216"></a>00216 <span class="keywordtype">int</span> incoming = -1; -<a name="l00217"></a>00217 -<a name="l00218"></a>00218 <span class="keywordflow">switch</span> (this->state) -<a name="l00219"></a>00219 { -<a name="l00220"></a>00220 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>: -<a name="l00221"></a>00221 this-><a class="code" href="classInspSocket.html#SetState_28InspSocketState_20s_29">SetState</a>(<a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>); -<a name="l00222"></a>00222 <span class="comment">/* Our socket was in write-state, so delete it and re-add it</span> -<a name="l00223"></a>00223 <span class="comment"> * in read-state.</span> -<a name="l00224"></a>00224 <span class="comment"> */</span> -<a name="l00225"></a>00225 SE-><a class="code" href="classSocketEngine.html#DelFd_28int_20fd_29">DelFd</a>(this->fd); -<a name="l00226"></a>00226 SE-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">true</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); -<a name="l00227"></a>00227 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#OnConnected_28_29">OnConnected</a>(); -<a name="l00228"></a>00228 <span class="keywordflow">break</span>; -<a name="l00229"></a>00229 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FLISTENING">I_LISTENING</a>: -<a name="l00230"></a>00230 <a class="code" href="classInspSocket.html#length">length</a> = <span class="keyword">sizeof</span> (<a class="code" href="classInspSocket.html#client">client</a>); -<a name="l00231"></a>00231 incoming = accept (this->fd, (sockaddr*)&<a class="code" href="classInspSocket.html#client">client</a>,&<a class="code" href="classInspSocket.html#length">length</a>); -<a name="l00232"></a>00232 this-><a class="code" href="classInspSocket.html#OnIncomingConnection_28int_20newfd_2C_20char_20_2Aip_29">OnIncomingConnection</a>(incoming,inet_ntoa(client.sin_addr)); -<a name="l00233"></a>00233 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00234"></a>00234 <span class="keywordflow">break</span>; -<a name="l00235"></a>00235 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>: -<a name="l00236"></a>00236 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#OnDataReady_28_29">OnDataReady</a>(); +<a name="l00088"></a>00088 socket_ref[this-><a class="code" href="classInspSocket.html#fd">fd</a>] = <span class="keyword">this</span>; +<a name="l00089"></a>00089 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"New socket now in I_LISTENING state"</span>); +<a name="l00090"></a>00090 <span class="keywordflow">return</span>; +<a name="l00091"></a>00091 } +<a name="l00092"></a>00092 } +<a name="l00093"></a>00093 } <span class="keywordflow">else</span> { +<a name="l00094"></a>00094 <span class="keywordtype">char</span>* ip; +<a name="l00095"></a>00095 this->host = host; +<a name="l00096"></a>00096 hostent* hoste = gethostbyname(host.c_str()); +<a name="l00097"></a>00097 <span class="keywordflow">if</span> (!hoste) { +<a name="l00098"></a>00098 ip = (<span class="keywordtype">char</span>*)host.c_str(); +<a name="l00099"></a>00099 } <span class="keywordflow">else</span> { +<a name="l00100"></a>00100 <span class="keyword">struct </span>in_addr* ia = (in_addr*)hoste->h_addr; +<a name="l00101"></a>00101 ip = inet_ntoa(*ia); +<a name="l00102"></a>00102 } +<a name="l00103"></a>00103 +<a name="l00104"></a>00104 this-><a class="code" href="classInspSocket.html#IP">IP</a> = ip; +<a name="l00105"></a>00105 +<a name="l00106"></a>00106 <a class="code" href="classInspSocket.html#timeout_5Fend">timeout_end</a> = time(NULL)+maxtime; +<a name="l00107"></a>00107 <a class="code" href="classInspSocket.html#timeout">timeout</a> = <span class="keyword">false</span>; +<a name="l00108"></a>00108 <span class="keywordflow">if</span> ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) +<a name="l00109"></a>00109 { +<a name="l00110"></a>00110 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; +<a name="l00111"></a>00111 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FSOCKET">I_ERR_SOCKET</a>); +<a name="l00112"></a>00112 <span class="keywordflow">return</span>; +<a name="l00113"></a>00113 } +<a name="l00114"></a>00114 this->port = port; +<a name="l00115"></a>00115 inet_aton(ip,&<a class="code" href="classInspSocket.html#addy">addy</a>); +<a name="l00116"></a>00116 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_family = AF_INET; +<a name="l00117"></a>00117 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_addr = <a class="code" href="classInspSocket.html#addy">addy</a>; +<a name="l00118"></a>00118 <a class="code" href="classInspSocket.html#addr">addr</a>.sin_port = htons(this->port); +<a name="l00119"></a>00119 +<a name="l00120"></a>00120 <span class="keywordtype">int</span> flags; +<a name="l00121"></a>00121 flags = fcntl(this->fd, F_GETFL, 0); +<a name="l00122"></a>00122 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); +<a name="l00123"></a>00123 +<a name="l00124"></a>00124 <span class="keywordflow">if</span>(connect(this->fd, (sockaddr*)&this->addr,<span class="keyword">sizeof</span>(this->addr)) == -1) +<a name="l00125"></a>00125 { +<a name="l00126"></a>00126 <span class="keywordflow">if</span> (errno != EINPROGRESS) +<a name="l00127"></a>00127 { +<a name="l00128"></a>00128 this-><a class="code" href="classInspSocket.html#Close_28_29">Close</a>(); +<a name="l00129"></a>00129 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FCONNECT">I_ERR_CONNECT</a>); +<a name="l00130"></a>00130 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; +<a name="l00131"></a>00131 <span class="keywordflow">return</span>; +<a name="l00132"></a>00132 } +<a name="l00133"></a>00133 } +<a name="l00134"></a>00134 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>; +<a name="l00135"></a>00135 SE-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">false</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); +<a name="l00136"></a>00136 socket_ref[this-><a class="code" href="classInspSocket.html#fd">fd</a>] = <span class="keyword">this</span>; +<a name="l00137"></a>00137 <span class="keywordflow">return</span>; +<a name="l00138"></a>00138 } +<a name="l00139"></a>00139 } +<a name="l00140"></a>00140 +<a name="l00141"></a><a class="code" href="classInspSocket.html#Close_28_29">00141</a> <span class="keywordtype">void</span> <a class="code" href="classInspSocket.html#Close_28_29">InspSocket::Close</a>() +<a name="l00142"></a>00142 { +<a name="l00143"></a>00143 <span class="keywordflow">if</span> (this->fd != -1) +<a name="l00144"></a>00144 { +<a name="l00145"></a>00145 this-><a class="code" href="classInspSocket.html#OnClose_28_29">OnClose</a>(); +<a name="l00146"></a>00146 shutdown(this->fd,2); +<a name="l00147"></a>00147 close(this->fd); +<a name="l00148"></a>00148 socket_ref[this-><a class="code" href="classInspSocket.html#fd">fd</a>] = NULL; +<a name="l00149"></a>00149 this-><a class="code" href="classInspSocket.html#fd">fd</a> = -1; +<a name="l00150"></a>00150 } +<a name="l00151"></a>00151 } +<a name="l00152"></a>00152 +<a name="l00153"></a><a class="code" href="classInspSocket.html#GetIP_28_29">00153</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classInspSocket.html#GetIP_28_29">InspSocket::GetIP</a>() +<a name="l00154"></a>00154 { +<a name="l00155"></a>00155 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#IP">IP</a>; +<a name="l00156"></a>00156 } +<a name="l00157"></a>00157 +<a name="l00158"></a><a class="code" href="classInspSocket.html#Read_28_29">00158</a> <span class="keywordtype">char</span>* <a class="code" href="classInspSocket.html#Read_28_29">InspSocket::Read</a>() +<a name="l00159"></a>00159 { +<a name="l00160"></a>00160 <span class="keywordtype">int</span> n = recv(this->fd,this->ibuf,<span class="keyword">sizeof</span>(this->ibuf),0); +<a name="l00161"></a>00161 <span class="keywordflow">if</span> (n > 0) +<a name="l00162"></a>00162 { +<a name="l00163"></a>00163 <a class="code" href="classInspSocket.html#ibuf_5B_31_36_33_38_34_5D">ibuf</a>[n] = 0; +<a name="l00164"></a>00164 <span class="keywordflow">return</span> <a class="code" href="classInspSocket.html#ibuf_5B_31_36_33_38_34_5D">ibuf</a>; +<a name="l00165"></a>00165 } +<a name="l00166"></a>00166 <span class="keywordflow">else</span> +<a name="l00167"></a>00167 { +<a name="l00168"></a>00168 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"EOF or error on socket"</span>); +<a name="l00169"></a>00169 <span class="keywordflow">return</span> NULL; +<a name="l00170"></a>00170 } +<a name="l00171"></a>00171 } +<a name="l00172"></a>00172 +<a name="l00173"></a>00173 <span class="comment">// There are two possible outcomes to this function.</span> +<a name="l00174"></a>00174 <span class="comment">// It will either write all of the data, or an undefined amount.</span> +<a name="l00175"></a>00175 <span class="comment">// If an undefined amount is written the connection has failed</span> +<a name="l00176"></a>00176 <span class="comment">// and should be aborted.</span> +<a name="l00177"></a><a class="code" href="classInspSocket.html#Write_28std_3A_3Astring_20data_29">00177</a> <span class="keywordtype">int</span> <a class="code" href="classInspSocket.html#Write_28std_3A_3Astring_20data_29">InspSocket::Write</a>(<a class="code" href="namespaceirc.html#string">std::string</a> data) +<a name="l00178"></a>00178 { +<a name="l00179"></a>00179 <span class="keywordtype">char</span>* d = (<span class="keywordtype">char</span>*)data.c_str(); +<a name="l00180"></a>00180 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> written = 0; +<a name="l00181"></a>00181 <span class="keywordtype">int</span> n = 0; +<a name="l00182"></a>00182 <span class="keywordtype">int</span> s = data.length(); +<a name="l00183"></a>00183 <span class="keywordflow">while</span> ((written < data.length()) && (n >= 0)) +<a name="l00184"></a>00184 { +<a name="l00185"></a>00185 n = send(this->fd,d,s,0); +<a name="l00186"></a>00186 <span class="keywordflow">if</span> (n > 0) +<a name="l00187"></a>00187 { +<a name="l00188"></a>00188 <span class="comment">// If we didnt write everything, advance</span> +<a name="l00189"></a>00189 <span class="comment">// the pointers so that when we retry</span> +<a name="l00190"></a>00190 <span class="comment">// the next time around the loop, we try</span> +<a name="l00191"></a>00191 <span class="comment">// to write what we failed to write before.</span> +<a name="l00192"></a>00192 written += n; +<a name="l00193"></a>00193 s -= n; +<a name="l00194"></a>00194 d += n; +<a name="l00195"></a>00195 } +<a name="l00196"></a>00196 } +<a name="l00197"></a>00197 <span class="keywordflow">return</span> written; +<a name="l00198"></a>00198 } +<a name="l00199"></a>00199 +<a name="l00200"></a><a class="code" href="classInspSocket.html#Timeout_28time_5Ft_20current_29">00200</a> <span class="keywordtype">bool</span> <a class="code" href="classInspSocket.html#Timeout_28time_5Ft_20current_29">InspSocket::Timeout</a>(time_t current) +<a name="l00201"></a>00201 { +<a name="l00202"></a>00202 <span class="keywordflow">if</span> ((this->state == <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>) && (current > <a class="code" href="classInspSocket.html#timeout_5Fend">timeout_end</a>)) +<a name="l00203"></a>00203 { +<a name="l00204"></a>00204 <span class="comment">// for non-listening sockets, the timeout can occur</span> +<a name="l00205"></a>00205 <span class="comment">// which causes termination of the connection after</span> +<a name="l00206"></a>00206 <span class="comment">// the given number of seconds without a successful</span> +<a name="l00207"></a>00207 <span class="comment">// connection.</span> +<a name="l00208"></a>00208 this-><a class="code" href="classInspSocket.html#OnTimeout_28_29">OnTimeout</a>(); +<a name="l00209"></a>00209 this-><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">OnError</a>(<a class="code" href="socket_8h.html#InspSocketErrorI_5FERR_5FTIMEOUT">I_ERR_TIMEOUT</a>); +<a name="l00210"></a>00210 <a class="code" href="classInspSocket.html#timeout">timeout</a> = <span class="keyword">true</span>; +<a name="l00211"></a>00211 this-><a class="code" href="classInspSocket.html#state">state</a> = <a class="code" href="socket_8h.html#InspSocketStateI_5FERROR">I_ERROR</a>; +<a name="l00212"></a>00212 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00213"></a>00213 } +<a name="l00214"></a>00214 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00215"></a>00215 } +<a name="l00216"></a>00216 +<a name="l00217"></a><a class="code" href="classInspSocket.html#Poll_28_29">00217</a> <span class="keywordtype">bool</span> <a class="code" href="classInspSocket.html#Poll_28_29">InspSocket::Poll</a>() +<a name="l00218"></a>00218 { +<a name="l00219"></a>00219 <span class="keywordtype">int</span> incoming = -1; +<a name="l00220"></a>00220 +<a name="l00221"></a>00221 <span class="keywordflow">switch</span> (this->state) +<a name="l00222"></a>00222 { +<a name="l00223"></a>00223 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTING">I_CONNECTING</a>: +<a name="l00224"></a>00224 this-><a class="code" href="classInspSocket.html#SetState_28InspSocketState_20s_29">SetState</a>(<a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>); +<a name="l00225"></a>00225 <span class="comment">/* Our socket was in write-state, so delete it and re-add it</span> +<a name="l00226"></a>00226 <span class="comment"> * in read-state.</span> +<a name="l00227"></a>00227 <span class="comment"> */</span> +<a name="l00228"></a>00228 SE-><a class="code" href="classSocketEngine.html#DelFd_28int_20fd_29">DelFd</a>(this->fd); +<a name="l00229"></a>00229 SE-><a class="code" href="classSocketEngine.html#AddFd_28int_20fd_2C_20bool_20readable_2C_20char_20type_29">AddFd</a>(this->fd,<span class="keyword">true</span>,<a class="code" href="socketengine_8h.html#X_5FESTAB_5FMODULE">X_ESTAB_MODULE</a>); +<a name="l00230"></a>00230 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#OnConnected_28_29">OnConnected</a>(); +<a name="l00231"></a>00231 <span class="keywordflow">break</span>; +<a name="l00232"></a>00232 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FLISTENING">I_LISTENING</a>: +<a name="l00233"></a>00233 <a class="code" href="classInspSocket.html#length">length</a> = <span class="keyword">sizeof</span> (<a class="code" href="classInspSocket.html#client">client</a>); +<a name="l00234"></a>00234 incoming = accept (this->fd, (sockaddr*)&<a class="code" href="classInspSocket.html#client">client</a>,&<a class="code" href="classInspSocket.html#length">length</a>); +<a name="l00235"></a>00235 this-><a class="code" href="classInspSocket.html#OnIncomingConnection_28int_20newfd_2C_20char_20_2Aip_29">OnIncomingConnection</a>(incoming,inet_ntoa(client.sin_addr)); +<a name="l00236"></a>00236 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00237"></a>00237 <span class="keywordflow">break</span>; -<a name="l00238"></a>00238 <span class="keywordflow">default</span>: -<a name="l00239"></a>00239 <span class="keywordflow">break</span>; -<a name="l00240"></a>00240 } -<a name="l00241"></a>00241 -<a name="l00242"></a>00242 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00243"></a>00243 } +<a name="l00238"></a>00238 <span class="keywordflow">case</span> <a class="code" href="socket_8h.html#InspSocketStateI_5FCONNECTED">I_CONNECTED</a>: +<a name="l00239"></a>00239 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#OnDataReady_28_29">OnDataReady</a>(); +<a name="l00240"></a>00240 <span class="keywordflow">break</span>; +<a name="l00241"></a>00241 <span class="keywordflow">default</span>: +<a name="l00242"></a>00242 <span class="keywordflow">break</span>; +<a name="l00243"></a>00243 } <a name="l00244"></a>00244 -<a name="l00245"></a><a class="code" href="classInspSocket.html#SetState_28InspSocketState_20s_29">00245</a> <span class="keywordtype">void</span> <a class="code" href="classInspSocket.html#SetState_28InspSocketState_20s_29">InspSocket::SetState</a>(<a class="code" href="socket_8h.html#InspSocketState">InspSocketState</a> s) -<a name="l00246"></a>00246 { -<a name="l00247"></a>00247 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Socket state change"</span>); -<a name="l00248"></a>00248 this-><a class="code" href="classInspSocket.html#state">state</a> = s; -<a name="l00249"></a>00249 } -<a name="l00250"></a>00250 -<a name="l00251"></a><a class="code" href="classInspSocket.html#GetState_28_29">00251</a> <a class="code" href="socket_8h.html#InspSocketState">InspSocketState</a> <a class="code" href="classInspSocket.html#GetState_28_29">InspSocket::GetState</a>() -<a name="l00252"></a>00252 { -<a name="l00253"></a>00253 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#state">state</a>; -<a name="l00254"></a>00254 } -<a name="l00255"></a>00255 -<a name="l00256"></a><a class="code" href="classInspSocket.html#GetFd_28_29">00256</a> <span class="keywordtype">int</span> <a class="code" href="classInspSocket.html#GetFd_28_29">InspSocket::GetFd</a>() -<a name="l00257"></a>00257 { -<a name="l00258"></a>00258 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#fd">fd</a>; -<a name="l00259"></a>00259 } -<a name="l00260"></a>00260 -<a name="l00261"></a><a class="code" href="classInspSocket.html#OnConnected_28_29">00261</a> <span class="keywordtype">bool</span> <a class="code" href="classInspSocket.html#OnConnected_28_29">InspSocket::OnConnected</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; } -<a name="l00262"></a><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">00262</a> <span class="keywordtype">void</span> <a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">InspSocket::OnError</a>(<a class="code" href="socket_8h.html#InspSocketError">InspSocketError</a> e) { <span class="keywordflow">return</span>; } -<a name="l00263"></a><a class="code" href="classInspSocket.html#OnDisconnect_28_29">00263</a> <span class="keywordtype">int</span> <a class="code" href="classInspSocket.html#OnDisconnect_28_29">InspSocket::OnDisconnect</a>() { <span class="keywordflow">return</span> 0; } -<a name="l00264"></a><a class="code" href="classInspSocket.html#OnIncomingConnection_28int_20newfd_2C_20char_20_2Aip_29">00264</a> <span class="keywordtype">int</span> <a class="code" href="classInspSocket.html#OnIncomingConnection_28int_20newfd_2C_20char_20_2Aip_29">InspSocket::OnIncomingConnection</a>(<span class="keywordtype">int</span> newfd, <span class="keywordtype">char</span>* ip) { <span class="keywordflow">return</span> 0; } -<a name="l00265"></a><a class="code" href="classInspSocket.html#OnDataReady_28_29">00265</a> <span class="keywordtype">bool</span> <a class="code" href="classInspSocket.html#OnDataReady_28_29">InspSocket::OnDataReady</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; } -<a name="l00266"></a><a class="code" href="classInspSocket.html#OnTimeout_28_29">00266</a> <span class="keywordtype">void</span> <a class="code" href="classInspSocket.html#OnTimeout_28_29">InspSocket::OnTimeout</a>() { <span class="keywordflow">return</span>; } -<a name="l00267"></a><a class="code" href="classInspSocket.html#OnClose_28_29">00267</a> <span class="keywordtype">void</span> <a class="code" href="classInspSocket.html#OnClose_28_29">InspSocket::OnClose</a>() { <span class="keywordflow">return</span>; } -<a name="l00268"></a>00268 -<a name="l00269"></a><a class="code" href="classInspSocket.html#_7EInspSocket_28_29">00269</a> <a class="code" href="classInspSocket.html#_7EInspSocket_28_29">InspSocket::~InspSocket</a>() -<a name="l00270"></a>00270 { -<a name="l00271"></a>00271 this-><a class="code" href="classInspSocket.html#Close_28_29">Close</a>(); -<a name="l00272"></a>00272 } -<a name="l00273"></a>00273 -<a name="l00274"></a>00274 <span class="comment">/*</span> -<a name="l00275"></a>00275 <span class="comment">int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr)</span> -<a name="l00276"></a>00276 <span class="comment">int OpenTCPSocket (void)</span> -<a name="l00277"></a>00277 <span class="comment">*/</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +<a name="l00245"></a>00245 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00246"></a>00246 } +<a name="l00247"></a>00247 +<a name="l00248"></a><a class="code" href="classInspSocket.html#SetState_28InspSocketState_20s_29">00248</a> <span class="keywordtype">void</span> <a class="code" href="classInspSocket.html#SetState_28InspSocketState_20s_29">InspSocket::SetState</a>(<a class="code" href="socket_8h.html#InspSocketState">InspSocketState</a> s) +<a name="l00249"></a>00249 { +<a name="l00250"></a>00250 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Socket state change"</span>); +<a name="l00251"></a>00251 this-><a class="code" href="classInspSocket.html#state">state</a> = s; +<a name="l00252"></a>00252 } +<a name="l00253"></a>00253 +<a name="l00254"></a><a class="code" href="classInspSocket.html#GetState_28_29">00254</a> <a class="code" href="socket_8h.html#InspSocketState">InspSocketState</a> <a class="code" href="classInspSocket.html#GetState_28_29">InspSocket::GetState</a>() +<a name="l00255"></a>00255 { +<a name="l00256"></a>00256 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#state">state</a>; +<a name="l00257"></a>00257 } +<a name="l00258"></a>00258 +<a name="l00259"></a><a class="code" href="classInspSocket.html#GetFd_28_29">00259</a> <span class="keywordtype">int</span> <a class="code" href="classInspSocket.html#GetFd_28_29">InspSocket::GetFd</a>() +<a name="l00260"></a>00260 { +<a name="l00261"></a>00261 <span class="keywordflow">return</span> this-><a class="code" href="classInspSocket.html#fd">fd</a>; +<a name="l00262"></a>00262 } +<a name="l00263"></a>00263 +<a name="l00264"></a><a class="code" href="classInspSocket.html#OnConnected_28_29">00264</a> <span class="keywordtype">bool</span> <a class="code" href="classInspSocket.html#OnConnected_28_29">InspSocket::OnConnected</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; } +<a name="l00265"></a><a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">00265</a> <span class="keywordtype">void</span> <a class="code" href="classInspSocket.html#OnError_28InspSocketError_20e_29">InspSocket::OnError</a>(<a class="code" href="socket_8h.html#InspSocketError">InspSocketError</a> e) { <span class="keywordflow">return</span>; } +<a name="l00266"></a><a class="code" href="classInspSocket.html#OnDisconnect_28_29">00266</a> <span class="keywordtype">int</span> <a class="code" href="classInspSocket.html#OnDisconnect_28_29">InspSocket::OnDisconnect</a>() { <span class="keywordflow">return</span> 0; } +<a name="l00267"></a><a class="code" href="classInspSocket.html#OnIncomingConnection_28int_20newfd_2C_20char_20_2Aip_29">00267</a> <span class="keywordtype">int</span> <a class="code" href="classInspSocket.html#OnIncomingConnection_28int_20newfd_2C_20char_20_2Aip_29">InspSocket::OnIncomingConnection</a>(<span class="keywordtype">int</span> newfd, <span class="keywordtype">char</span>* ip) { <span class="keywordflow">return</span> 0; } +<a name="l00268"></a><a class="code" href="classInspSocket.html#OnDataReady_28_29">00268</a> <span class="keywordtype">bool</span> <a class="code" href="classInspSocket.html#OnDataReady_28_29">InspSocket::OnDataReady</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; } +<a name="l00269"></a><a class="code" href="classInspSocket.html#OnTimeout_28_29">00269</a> <span class="keywordtype">void</span> <a class="code" href="classInspSocket.html#OnTimeout_28_29">InspSocket::OnTimeout</a>() { <span class="keywordflow">return</span>; } +<a name="l00270"></a><a class="code" href="classInspSocket.html#OnClose_28_29">00270</a> <span class="keywordtype">void</span> <a class="code" href="classInspSocket.html#OnClose_28_29">InspSocket::OnClose</a>() { <span class="keywordflow">return</span>; } +<a name="l00271"></a>00271 +<a name="l00272"></a><a class="code" href="classInspSocket.html#_7EInspSocket_28_29">00272</a> <a class="code" href="classInspSocket.html#_7EInspSocket_28_29">InspSocket::~InspSocket</a>() +<a name="l00273"></a>00273 { +<a name="l00274"></a>00274 this-><a class="code" href="classInspSocket.html#Close_28_29">Close</a>(); +<a name="l00275"></a>00275 } +<a name="l00276"></a>00276 +<a name="l00277"></a>00277 <span class="comment">/*</span> +<a name="l00278"></a>00278 <span class="comment">int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr)</span> +<a name="l00279"></a>00279 <span class="comment">int OpenTCPSocket (void)</span> +<a name="l00280"></a>00280 <span class="comment">*/</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/socket_8cpp.html b/docs/module-doc/socket_8cpp.html index 84acf418e..506657c69 100644 --- a/docs/module-doc/socket_8cpp.html +++ b/docs/module-doc/socket_8cpp.html @@ -22,7 +22,7 @@ <code>#include <fstream></code><br> <code>#include "<a class="el" href="socket_8h-source.html">socket.h</a>"</code><br> <code>#include "inspircd.h"</code><br> -<code>#include "inspircd_io.h"</code><br> +<code>#include "<a class="el" href="inspircd__io_8h-source.html">inspircd_io.h</a>"</code><br> <code>#include "inspircd_util.h"</code><br> <code>#include "inspstring.h"</code><br> <code>#include "helperfuncs.h"</code><br> @@ -31,8 +31,9 @@ <p> Include dependency graph for socket.cpp:<p><center><img src="socket_8cpp__incl.gif" border="0" usemap="#socket.cpp_map" alt=""></center> <map name="socket.cpp_map"> -<area href="socket_8h-source.html" shape="rect" coords="160,362,232,388" alt=""> -<area href="socketengine_8h-source.html" shape="rect" coords="140,159,252,186" alt=""> +<area href="socket_8h-source.html" shape="rect" coords="160,260,232,287" alt=""> +<area href="inspircd__io_8h-source.html" shape="rect" coords="148,412,244,439" alt=""> +<area href="socketengine_8h-source.html" shape="rect" coords="140,108,252,135" alt=""> </map> <p> @@ -41,17 +42,13 @@ Include dependency graph for socket.cpp:<p><center><img src="socket_8cpp__incl.g <tr><td colspan="2"><br><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classSocketEngine.html">SocketEngine</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="socket_8cpp.html#SE">SE</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">FILE * </td><td class="memItemRight" valign="bottom"><a class="el" href="socket_8cpp.html#log_5Ffile">log_file</a></td></tr> - <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="socket_8cpp.html#boundPortCount">boundPortCount</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="socket_8cpp.html#openSockfd_5BMAXSOCKS_5D">openSockfd</a> [MAXSOCKS]</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="socket_8cpp.html#TIME">TIME</a></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="socket_8cpp.html#unlimitcore">unlimitcore</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="socket_8cpp.html#MaxConn">MaxConn</a></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classInspSocket.html">InspSocket</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="socket_8cpp.html#socket_5Fref_5B_36_35_35_33_35_5D">socket_ref</a> [65535]</td></tr> </table> <hr><h2>Variable Documentation</h2> @@ -78,52 +75,6 @@ Include dependency graph for socket.cpp:<p><center><img src="socket_8cpp__incl.g </td> </tr> </table> -<a class="anchor" name="log_5Ffile"></a><!-- doxytag: member="socket.cpp::log_file" ref="log_5Ffile" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">FILE* <a class="el" href="socket_8cpp.html#log_5Ffile">log_file</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="MaxConn"></a><!-- doxytag: member="socket.cpp::MaxConn" ref="MaxConn" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">int <a class="el" href="socket_8cpp.html#MaxConn">MaxConn</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> <a class="anchor" name="openSockfd_5BMAXSOCKS_5D"></a><!-- doxytag: member="socket.cpp::openSockfd" ref="openSockfd_5BMAXSOCKS_5D" args="[MAXSOCKS]" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> @@ -170,13 +121,13 @@ Include dependency graph for socket.cpp:<p><center><img src="socket_8cpp__incl.g </td> </tr> </table> -<a class="anchor" name="TIME"></a><!-- doxytag: member="socket.cpp::TIME" ref="TIME" args="" --><p> +<a class="anchor" name="socket_5Fref_5B_36_35_35_33_35_5D"></a><!-- doxytag: member="socket.cpp::socket_ref" ref="socket_5Fref_5B_36_35_35_33_35_5D" args="[65535]" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top">time_t <a class="el" href="users_8cpp.html#TIME">TIME</a> </td> + <td class="md" nowrap valign="top"><a class="el" href="classInspSocket.html">InspSocket</a>* <a class="el" href="socket_8cpp.html#socket_5Fref_5B_36_35_35_33_35_5D">socket_ref</a>[65535] </td> </tr> </table> </td> @@ -190,16 +141,18 @@ Include dependency graph for socket.cpp:<p><center><img src="socket_8cpp__incl.g <td> <p> - </td> + +<p> +Definition at line <a class="el" href="socket_8cpp-source.html#l00046">46</a> of file <a class="el" href="socket_8cpp-source.html">socket.cpp</a>. </td> </tr> </table> -<a class="anchor" name="unlimitcore"></a><!-- doxytag: member="socket.cpp::unlimitcore" ref="unlimitcore" args="" --><p> +<a class="anchor" name="TIME"></a><!-- doxytag: member="socket.cpp::TIME" ref="TIME" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top">bool <a class="el" href="socket_8cpp.html#unlimitcore">unlimitcore</a> </td> + <td class="md" nowrap valign="top">time_t <a class="el" href="users_8cpp.html#TIME">TIME</a> </td> </tr> </table> </td> @@ -216,7 +169,7 @@ Include dependency graph for socket.cpp:<p><center><img src="socket_8cpp__incl.g </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/socket_8cpp__incl.gif b/docs/module-doc/socket_8cpp__incl.gif Binary files differindex 96429a7a6..71318697c 100644 --- a/docs/module-doc/socket_8cpp__incl.gif +++ b/docs/module-doc/socket_8cpp__incl.gif diff --git a/docs/module-doc/socket_8cpp__incl.map b/docs/module-doc/socket_8cpp__incl.map index 2be61668c..1374f07ed 100644 --- a/docs/module-doc/socket_8cpp__incl.map +++ b/docs/module-doc/socket_8cpp__incl.map @@ -1,3 +1,4 @@ base referer -rect $socket_8h-source.html 160,362 232,388 -rect $socketengine_8h-source.html 140,159 252,186 +rect $socket_8h-source.html 160,260 232,287 +rect $inspircd__io_8h-source.html 148,412 244,439 +rect $socketengine_8h-source.html 140,108 252,135 diff --git a/docs/module-doc/socket_8cpp__incl.md5 b/docs/module-doc/socket_8cpp__incl.md5 index 61a543f9d..5059c3bba 100644 --- a/docs/module-doc/socket_8cpp__incl.md5 +++ b/docs/module-doc/socket_8cpp__incl.md5 @@ -1 +1 @@ -c5a330a4e5a7da84d33f6af21a61216b
\ No newline at end of file +90e1383e8aa075991d7a330be1573c66
\ No newline at end of file diff --git a/docs/module-doc/socket_8h-source.html b/docs/module-doc/socket_8h-source.html index 21535c883..f6c76d043 100644 --- a/docs/module-doc/socket_8h-source.html +++ b/docs/module-doc/socket_8h-source.html @@ -110,7 +110,7 @@ <a name="l00302"></a>00302 }; <a name="l00303"></a>00303 <a name="l00304"></a>00304 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/socket_8h.html b/docs/module-doc/socket_8h.html index d527d07ad..65f86a55e 100644 --- a/docs/module-doc/socket_8h.html +++ b/docs/module-doc/socket_8h.html @@ -19,10 +19,11 @@ Include dependency graph for socket.h:<p><center><img src="socket_8h__incl.gif" <p> This graph shows which files directly or indirectly include this file:<p><center><img src="socket_8h__dep__incl.gif" border="0" usemap="#socket.hdep_map" alt=""></center> <map name="socket.hdep_map"> -<area href="modules_8cpp-source.html" shape="rect" coords="261,32,360,59" alt=""> +<area href="modules_8cpp-source.html" shape="rect" coords="410,57,508,84" alt=""> <area href="socket_8cpp-source.html" shape="rect" coords="127,57,212,84" alt=""> <area href="modules_8h-source.html" shape="rect" coords="128,108,211,135" alt=""> -<area href="channels_8cpp-source.html" shape="rect" coords="261,108,360,135" alt=""> +<area href="channels_8cpp-source.html" shape="rect" coords="262,108,360,135" alt=""> +<area href="typedefs_8h-source.html" shape="rect" coords="268,159,354,185" alt=""> </map> <p> @@ -139,7 +140,7 @@ Definition at line <a class="el" href="socket_8h-source.html#l00029">29</a> of f </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/socket_8h__dep__incl.gif b/docs/module-doc/socket_8h__dep__incl.gif Binary files differindex 8649832ea..c36bb318a 100644 --- a/docs/module-doc/socket_8h__dep__incl.gif +++ b/docs/module-doc/socket_8h__dep__incl.gif diff --git a/docs/module-doc/socket_8h__dep__incl.map b/docs/module-doc/socket_8h__dep__incl.map index c89bd0ae5..41318c6e5 100644 --- a/docs/module-doc/socket_8h__dep__incl.map +++ b/docs/module-doc/socket_8h__dep__incl.map @@ -1,5 +1,6 @@ base referer -rect $modules_8cpp-source.html 261,32 360,59 +rect $modules_8cpp-source.html 410,57 508,84 rect $socket_8cpp-source.html 127,57 212,84 rect $modules_8h-source.html 128,108 211,135 -rect $channels_8cpp-source.html 261,108 360,135 +rect $channels_8cpp-source.html 262,108 360,135 +rect $typedefs_8h-source.html 268,159 354,185 diff --git a/docs/module-doc/socket_8h__dep__incl.md5 b/docs/module-doc/socket_8h__dep__incl.md5 index bffef7bdc..197554b02 100644 --- a/docs/module-doc/socket_8h__dep__incl.md5 +++ b/docs/module-doc/socket_8h__dep__incl.md5 @@ -1 +1 @@ -0eb028aa994c3569f9be98fd88930f79
\ No newline at end of file +eb848111c3060b658816757104f37d5b
\ No newline at end of file diff --git a/docs/module-doc/socketengine_8cpp-source.html b/docs/module-doc/socketengine_8cpp-source.html index a1281f8be..54fd76fc4 100644 --- a/docs/module-doc/socketengine_8cpp-source.html +++ b/docs/module-doc/socketengine_8cpp-source.html @@ -43,7 +43,7 @@ <a name="l00034"></a>00034 <a name="l00035"></a><a class="code" href="classSocketEngine.html#SocketEngine_28_29">00035</a> <a class="code" href="classSocketEngine.html#SocketEngine_28_29">SocketEngine::SocketEngine</a>() <a name="l00036"></a>00036 { -<a name="l00037"></a>00037 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::SocketEngine()"</span>); +<a name="l00037"></a>00037 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::SocketEngine()"</span>); <a name="l00038"></a>00038 <span class="preprocessor">#ifdef USE_EPOLL</span> <a name="l00039"></a>00039 <span class="preprocessor"></span> <a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a> = epoll_create(65535); <a name="l00040"></a>00040 <span class="preprocessor">#endif</span> @@ -54,7 +54,7 @@ <a name="l00045"></a>00045 <a name="l00046"></a><a class="code" href="classSocketEngine.html#_7ESocketEngine_28_29">00046</a> <a class="code" href="classSocketEngine.html#_7ESocketEngine_28_29">SocketEngine::~SocketEngine</a>() <a name="l00047"></a>00047 { -<a name="l00048"></a>00048 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::~SocketEngine()"</span>); +<a name="l00048"></a>00048 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::~SocketEngine()"</span>); <a name="l00049"></a>00049 <span class="preprocessor">#ifdef USE_EPOLL</span> <a name="l00050"></a>00050 <span class="preprocessor"></span> close(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>); <a name="l00051"></a>00051 <span class="preprocessor">#endif</span> @@ -79,30 +79,30 @@ <a name="l00070"></a>00070 <a class="code" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">ref</a>[fd] = type; <a name="l00071"></a>00071 <span class="keywordflow">if</span> (readable) <a name="l00072"></a>00072 { -<a name="l00073"></a>00073 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Set readbit"</span>); +<a name="l00073"></a>00073 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Set readbit"</span>); <a name="l00074"></a>00074 <a class="code" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">ref</a>[fd] |= <a class="code" href="socketengine_8h.html#X_5FREADBIT">X_READBIT</a>; <a name="l00075"></a>00075 } -<a name="l00076"></a>00076 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Add socket %d"</span>,fd); +<a name="l00076"></a>00076 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Add socket %d"</span>,fd); <a name="l00077"></a>00077 <span class="preprocessor">#ifdef USE_EPOLL</span> <a name="l00078"></a>00078 <span class="preprocessor"></span> <span class="keyword">struct </span>epoll_event ev; -<a name="l00079"></a>00079 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: Add socket to events, ep=%d socket=%d"</span>,<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>,fd); +<a name="l00079"></a>00079 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: Add socket to events, ep=%d socket=%d"</span>,<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>,fd); <a name="l00080"></a>00080 readable ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET; <a name="l00081"></a>00081 ev.data.fd = fd; <a name="l00082"></a>00082 <span class="keywordtype">int</span> i = epoll_ctl(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, EPOLL_CTL_ADD, fd, &ev); <a name="l00083"></a>00083 <span class="keywordflow">if</span> (i < 0) <a name="l00084"></a>00084 { -<a name="l00085"></a>00085 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: List insertion failure!"</span>); +<a name="l00085"></a>00085 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: List insertion failure!"</span>); <a name="l00086"></a>00086 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00087"></a>00087 } <a name="l00088"></a>00088 <span class="preprocessor">#endif</span> <a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_KQUEUE</span> <a name="l00090"></a>00090 <span class="preprocessor"></span> <span class="keyword">struct </span>kevent ke; -<a name="l00091"></a>00091 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: Add socket to events, kq=%d socket=%d"</span>,<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>,fd); +<a name="l00091"></a>00091 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: Add socket to events, kq=%d socket=%d"</span>,<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>,fd); <a name="l00092"></a>00092 EV_SET(&ke, fd, readable ? EVFILT_READ : EVFILT_WRITE, EV_ADD, 0, 0, NULL); <a name="l00093"></a>00093 <span class="keywordtype">int</span> i = kevent(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, &ke, 1, 0, 0, NULL); <a name="l00094"></a>00094 <span class="keywordflow">if</span> (i == -1) <a name="l00095"></a>00095 { -<a name="l00096"></a>00096 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: List insertion failure!"</span>); +<a name="l00096"></a>00096 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: List insertion failure!"</span>); <a name="l00097"></a>00097 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00098"></a>00098 } <a name="l00099"></a>00099 <span class="preprocessor">#endif</span> @@ -111,7 +111,7 @@ <a name="l00102"></a>00102 <a name="l00103"></a><a class="code" href="classSocketEngine.html#DelFd_28int_20fd_29">00103</a> <span class="keywordtype">bool</span> <a class="code" href="classSocketEngine.html#DelFd_28int_20fd_29">SocketEngine::DelFd</a>(<span class="keywordtype">int</span> fd) <a name="l00104"></a>00104 { -<a name="l00105"></a>00105 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::DelFd(%d)"</span>,fd); +<a name="l00105"></a>00105 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"SocketEngine::DelFd(%d)"</span>,fd); <a name="l00106"></a>00106 <a name="l00107"></a>00107 <span class="keywordflow">if</span> ((fd < 0) || (fd > 65535)) <a name="l00108"></a>00108 <span class="keywordflow">return</span> <span class="keyword">false</span>; @@ -122,18 +122,18 @@ <a name="l00113"></a>00113 <span class="keywordflow">if</span> (*i == fd) <a name="l00114"></a>00114 { <a name="l00115"></a>00115 <a class="code" href="classSocketEngine.html#fds">fds</a>.erase(i); -<a name="l00116"></a>00116 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Deleted fd %d"</span>,fd); +<a name="l00116"></a>00116 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Deleted fd %d"</span>,fd); <a name="l00117"></a>00117 found = <span class="keyword">true</span>; <a name="l00118"></a>00118 <span class="keywordflow">break</span>; <a name="l00119"></a>00119 } <a name="l00120"></a>00120 } <a name="l00121"></a>00121 <span class="preprocessor">#ifdef USE_KQUEUE</span> <a name="l00122"></a>00122 <span class="preprocessor"></span> <span class="keyword">struct </span>kevent ke; -<a name="l00123"></a>00123 EV_SET(&ke, fd, <a class="code" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">ref</a>[fd] && <a class="code" href="socketengine_8h.html#X_5FREADBIT">X_READBIT</a> ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); +<a name="l00123"></a>00123 EV_SET(&ke, fd, <a class="code" href="socketengine_8cpp.html#ref_5B_36_35_35_33_35_5D">ref</a>[fd] & <a class="code" href="socketengine_8h.html#X_5FREADBIT">X_READBIT</a> ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); <a name="l00124"></a>00124 <span class="keywordtype">int</span> i = kevent(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, &ke, 1, 0, 0, NULL); <a name="l00125"></a>00125 <span class="keywordflow">if</span> (i == -1) <a name="l00126"></a>00126 { -<a name="l00127"></a>00127 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: Failed to remove socket from queue!"</span>); +<a name="l00127"></a>00127 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"kqueue: Failed to remove socket from queue!"</span>); <a name="l00128"></a>00128 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00129"></a>00129 } <a name="l00130"></a>00130 <span class="preprocessor">#endif</span> @@ -144,7 +144,7 @@ <a name="l00135"></a>00135 <span class="keywordtype">int</span> i = epoll_ctl(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, EPOLL_CTL_DEL, fd, &ev); <a name="l00136"></a>00136 <span class="keywordflow">if</span> (i < 0) <a name="l00137"></a>00137 { -<a name="l00138"></a>00138 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: List deletion failure!"</span>); +<a name="l00138"></a>00138 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"epoll: List deletion failure!"</span>); <a name="l00139"></a>00139 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00140"></a>00140 } <a name="l00141"></a>00141 <span class="preprocessor">#endif</span> @@ -180,42 +180,39 @@ <a name="l00171"></a>00171 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> a = 0; a < <a class="code" href="classSocketEngine.html#fds">fds</a>.size(); a++) <a name="l00172"></a>00172 { <a name="l00173"></a>00173 <span class="keywordflow">if</span> ((FD_ISSET (<a class="code" href="classSocketEngine.html#fds">fds</a>[a], &rfdset)) || (FD_ISSET (<a class="code" href="classSocketEngine.html#fds">fds</a>[a], &wfdset))) -<a name="l00174"></a>00174 { -<a name="l00175"></a>00175 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"...Adding active %d"</span>,<a class="code" href="classSocketEngine.html#fds">fds</a>[a]); -<a name="l00176"></a>00176 fdlist.push_back(<a class="code" href="classSocketEngine.html#fds">fds</a>[a]); -<a name="l00177"></a>00177 } -<a name="l00178"></a>00178 } -<a name="l00179"></a>00179 } -<a name="l00180"></a>00180 <span class="preprocessor">#endif</span> -<a name="l00181"></a>00181 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_KQUEUE</span> -<a name="l00182"></a>00182 <span class="preprocessor"></span> <a class="code" href="classSocketEngine.html#ts">ts</a>.tv_nsec = 10000L; -<a name="l00183"></a>00183 <a class="code" href="classSocketEngine.html#ts">ts</a>.tv_sec = 0; -<a name="l00184"></a>00184 <span class="keywordtype">int</span> i = kevent(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, NULL, 0, &<a class="code" href="classSocketEngine.html#ke_5Flist_5B_36_35_35_33_35_5D">ke_list</a>[0], 65535, &<a class="code" href="classSocketEngine.html#ts">ts</a>); -<a name="l00185"></a>00185 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < i; j++) -<a name="l00186"></a>00186 fdlist.push_back(<a class="code" href="classSocketEngine.html#ke_5Flist_5B_36_35_35_33_35_5D">ke_list</a>[j].ident); -<a name="l00187"></a>00187 <span class="preprocessor">#endif</span> -<a name="l00188"></a>00188 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_EPOLL</span> -<a name="l00189"></a>00189 <span class="preprocessor"></span> <span class="keywordtype">int</span> i = epoll_wait(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, events, 65535, 100); -<a name="l00190"></a>00190 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < i; j++) -<a name="l00191"></a>00191 fdlist.push_back(events[j].data.fd); -<a name="l00192"></a>00192 <span class="preprocessor">#endif</span> -<a name="l00193"></a>00193 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00194"></a>00194 } -<a name="l00195"></a>00195 -<a name="l00196"></a><a class="code" href="classSocketEngine.html#GetName_28_29">00196</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classSocketEngine.html#GetName_28_29">SocketEngine::GetName</a>() -<a name="l00197"></a>00197 { -<a name="l00198"></a>00198 <span class="preprocessor">#ifdef USE_SELECT</span> -<a name="l00199"></a>00199 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"select"</span>; +<a name="l00174"></a>00174 fdlist.push_back(<a class="code" href="classSocketEngine.html#fds">fds</a>[a]); +<a name="l00175"></a>00175 } +<a name="l00176"></a>00176 } +<a name="l00177"></a>00177 <span class="preprocessor">#endif</span> +<a name="l00178"></a>00178 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_KQUEUE</span> +<a name="l00179"></a>00179 <span class="preprocessor"></span> <a class="code" href="classSocketEngine.html#ts">ts</a>.tv_nsec = 10000L; +<a name="l00180"></a>00180 <a class="code" href="classSocketEngine.html#ts">ts</a>.tv_sec = 0; +<a name="l00181"></a>00181 <span class="keywordtype">int</span> i = kevent(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, NULL, 0, &<a class="code" href="classSocketEngine.html#ke_5Flist_5B_36_35_35_33_35_5D">ke_list</a>[0], 65535, &<a class="code" href="classSocketEngine.html#ts">ts</a>); +<a name="l00182"></a>00182 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < i; j++) +<a name="l00183"></a>00183 fdlist.push_back(<a class="code" href="classSocketEngine.html#ke_5Flist_5B_36_35_35_33_35_5D">ke_list</a>[j].ident); +<a name="l00184"></a>00184 <span class="preprocessor">#endif</span> +<a name="l00185"></a>00185 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_EPOLL</span> +<a name="l00186"></a>00186 <span class="preprocessor"></span> <span class="keywordtype">int</span> i = epoll_wait(<a class="code" href="classSocketEngine.html#EngineHandle">EngineHandle</a>, events, 65535, 100); +<a name="l00187"></a>00187 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j < i; j++) +<a name="l00188"></a>00188 fdlist.push_back(events[j].data.fd); +<a name="l00189"></a>00189 <span class="preprocessor">#endif</span> +<a name="l00190"></a>00190 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00191"></a>00191 } +<a name="l00192"></a>00192 +<a name="l00193"></a><a class="code" href="classSocketEngine.html#GetName_28_29">00193</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classSocketEngine.html#GetName_28_29">SocketEngine::GetName</a>() +<a name="l00194"></a>00194 { +<a name="l00195"></a>00195 <span class="preprocessor">#ifdef USE_SELECT</span> +<a name="l00196"></a>00196 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"select"</span>; +<a name="l00197"></a>00197 <span class="preprocessor">#endif</span> +<a name="l00198"></a>00198 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_KQUEUE</span> +<a name="l00199"></a>00199 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"kqueue"</span>; <a name="l00200"></a>00200 <span class="preprocessor">#endif</span> -<a name="l00201"></a>00201 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_KQUEUE</span> -<a name="l00202"></a>00202 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"kqueue"</span>; +<a name="l00201"></a>00201 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_EPOLL</span> +<a name="l00202"></a>00202 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"epoll"</span>; <a name="l00203"></a>00203 <span class="preprocessor">#endif</span> -<a name="l00204"></a>00204 <span class="preprocessor"></span><span class="preprocessor">#ifdef USE_EPOLL</span> -<a name="l00205"></a>00205 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"epoll"</span>; -<a name="l00206"></a>00206 <span class="preprocessor">#endif</span> -<a name="l00207"></a>00207 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"misconfigured"</span>; -<a name="l00208"></a>00208 } -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +<a name="l00204"></a>00204 <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="stringliteral">"misconfigured"</span>; +<a name="l00205"></a>00205 } +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/socketengine_8cpp.html b/docs/module-doc/socketengine_8cpp.html index 1c9d3c524..6c02070b0 100644 --- a/docs/module-doc/socketengine_8cpp.html +++ b/docs/module-doc/socketengine_8cpp.html @@ -55,7 +55,7 @@ Definition at line <a class="el" href="socketengine_8cpp-source.html#l00033">33< Referenced by <a class="el" href="socketengine_8cpp-source.html#l00065">SocketEngine::AddFd()</a>, <a class="el" href="socketengine_8cpp-source.html#l00103">SocketEngine::DelFd()</a>, <a class="el" href="socketengine_8cpp-source.html#l00057">SocketEngine::GetType()</a>, and <a class="el" href="socketengine_8cpp-source.html#l00146">SocketEngine::Wait()</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/socketengine_8h-source.html b/docs/module-doc/socketengine_8h-source.html index 16d95e2ab..a9b9340c5 100644 --- a/docs/module-doc/socketengine_8h-source.html +++ b/docs/module-doc/socketengine_8h-source.html @@ -82,7 +82,7 @@ <a name="l00142"></a>00142 }; <a name="l00143"></a>00143 <a name="l00144"></a>00144 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/socketengine_8h.html b/docs/module-doc/socketengine_8h.html index b4e62a88f..d98efd075 100644 --- a/docs/module-doc/socketengine_8h.html +++ b/docs/module-doc/socketengine_8h.html @@ -154,7 +154,7 @@ Definition at line <a class="el" href="socketengine_8h-source.html#l00045">45</a <p> Definition at line <a class="el" href="socketengine_8h-source.html#l00044">44</a> of file <a class="el" href="socketengine_8h-source.html">socketengine.h</a>. <p> -Referenced by <a class="el" href="socket_8cpp-source.html#l00054">InspSocket::InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00214">InspSocket::Poll()</a>. </td> +Referenced by <a class="el" href="socket_8cpp-source.html#l00053">InspSocket::InspSocket()</a>, and <a class="el" href="socket_8cpp-source.html#l00217">InspSocket::Poll()</a>. </td> </tr> </table> <a class="anchor" name="X_5FLISTEN"></a><!-- doxytag: member="socketengine.h::X_LISTEN" ref="X_5FLISTEN" args="" --><p> @@ -211,7 +211,7 @@ Definition at line <a class="el" href="socketengine_8h-source.html#l00055">55</a Referenced by <a class="el" href="socketengine_8cpp-source.html#l00065">SocketEngine::AddFd()</a>, <a class="el" href="socketengine_8cpp-source.html#l00103">SocketEngine::DelFd()</a>, and <a class="el" href="socketengine_8cpp-source.html#l00146">SocketEngine::Wait()</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index 6c489839c..289af1dd0 100644 --- a/docs/module-doc/structdns__ip4list-members.html +++ b/docs/module-doc/structdns__ip4list-members.html @@ -8,7 +8,7 @@ <h1>dns_ip4list Member List</h1>This is the complete list of members for <a class="el" href="structdns__ip4list.html">dns_ip4list</a>, including all inherited members.<p><table> <tr class="memlist"><td><a class="el" href="structdns__ip4list.html#ip">ip</a></td><td><a class="el" href="structdns__ip4list.html">dns_ip4list</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structdns__ip4list.html#next">next</a></td><td><a class="el" href="structdns__ip4list.html">dns_ip4list</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structdns__ip4list.html b/docs/module-doc/structdns__ip4list.html index 63146e509..253c29fc6 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -74,7 +74,7 @@ Definition at line <a class="el" href="dns_8h-source.html#l00028">28</a> of file </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="dns_8h-source.html">dns.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structirc_1_1InAddr__HashComp-members.html b/docs/module-doc/structirc_1_1InAddr__HashComp-members.html index 4b699df1c..a37cd2c2d 100644 --- a/docs/module-doc/structirc_1_1InAddr__HashComp-members.html +++ b/docs/module-doc/structirc_1_1InAddr__HashComp-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>irc::InAddr_HashComp Member List</h1>This is the complete list of members for <a class="el" href="structirc_1_1InAddr__HashComp.html">irc::InAddr_HashComp</a>, including all inherited members.<p><table> <tr class="memlist"><td><a class="el" href="structirc_1_1InAddr__HashComp.html#operator_28_29_28const_20in_5Faddr_20_26s_31_2C_20const_20in_5Faddr_20_26s_32_29_20const_20">operator()</a>(const in_addr &s1, const in_addr &s2) const </td><td><a class="el" href="structirc_1_1InAddr__HashComp.html">irc::InAddr_HashComp</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structirc_1_1InAddr__HashComp.html b/docs/module-doc/structirc_1_1InAddr__HashComp.html index 5efab0fa6..fd121ce96 100644 --- a/docs/module-doc/structirc_1_1InAddr__HashComp.html +++ b/docs/module-doc/structirc_1_1InAddr__HashComp.html @@ -68,7 +68,7 @@ The operator () does the actual comparison in hash_map. </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="hashcomp_8h-source.html">hashcomp.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structirc_1_1StrHashComp-members.html b/docs/module-doc/structirc_1_1StrHashComp-members.html index e82ae67a0..c74828c81 100644 --- a/docs/module-doc/structirc_1_1StrHashComp-members.html +++ b/docs/module-doc/structirc_1_1StrHashComp-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>irc::StrHashComp Member List</h1>This is the complete list of members for <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>, including all inherited members.<p><table> <tr class="memlist"><td><a class="el" href="structirc_1_1StrHashComp.html#operator_28_29_28const_20std_3A_3Astring_20_26s_31_2C_20const_20std_3A_3Astring_20_26s_32_29_20const_20">operator()</a>(const std::string &s1, const std::string &s2) const </td><td><a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structirc_1_1StrHashComp.html b/docs/module-doc/structirc_1_1StrHashComp.html index 586ef4671..1abcc2304 100644 --- a/docs/module-doc/structirc_1_1StrHashComp.html +++ b/docs/module-doc/structirc_1_1StrHashComp.html @@ -68,7 +68,7 @@ The operator () does the actual comparison in hash_map. </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="hashcomp_8h-source.html">hashcomp.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structirc_1_1irc__char__traits-members.html b/docs/module-doc/structirc_1_1irc__char__traits-members.html index 0a8db33f9..f4bb52951 100644 --- a/docs/module-doc/structirc_1_1irc__char__traits-members.html +++ b/docs/module-doc/structirc_1_1irc__char__traits-members.html @@ -11,7 +11,7 @@ <tr class="memlist"><td><a class="el" href="structirc_1_1irc__char__traits.html#find_28const_20char_20_2As_31_2C_20int_20n_2C_20char_20c_29">find</a>(const char *s1, int n, char c)</td><td><a class="el" href="structirc_1_1irc__char__traits.html">irc::irc_char_traits</a></td><td><code> [static]</code></td></tr> <tr class="memlist"><td><a class="el" href="structirc_1_1irc__char__traits.html#lt_28char_20c_31st_2C_20char_20c_32nd_29">lt</a>(char c1st, char c2nd)</td><td><a class="el" href="structirc_1_1irc__char__traits.html">irc::irc_char_traits</a></td><td><code> [static]</code></td></tr> <tr class="memlist"><td><a class="el" href="structirc_1_1irc__char__traits.html#ne_28char_20c_31st_2C_20char_20c_32nd_29">ne</a>(char c1st, char c2nd)</td><td><a class="el" href="structirc_1_1irc__char__traits.html">irc::irc_char_traits</a></td><td><code> [static]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structirc_1_1irc__char__traits.html b/docs/module-doc/structirc_1_1irc__char__traits.html index 1684d8075..c85d4331c 100644 --- a/docs/module-doc/structirc_1_1irc__char__traits.html +++ b/docs/module-doc/structirc_1_1irc__char__traits.html @@ -256,7 +256,7 @@ Check if two chars do NOT match. </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="hashcomp_8h-source.html">hashcomp.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html index 645a04575..831baf385 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html +++ b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>nspace::hash< in_addr > Member List</h1>This is the complete list of members for <a class="el" href="structnspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a>, including all inherited members.<p><table> <tr class="memlist"><td><a class="el" href="structnspace_1_1hash_3_01in__addr_01_4.html#operator_28_29_28const_20struct_20in_5Faddr_20_26a_29_20const_20">operator()</a>(const struct in_addr &a) const </td><td><a class="el" href="structnspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html index a914a72b6..3cfadbcc5 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html +++ b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html @@ -54,7 +54,7 @@ Definition at line <a class="el" href="hashcomp_8h-source.html#l00054">54</a> of </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="hashcomp_8h-source.html">hashcomp.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html b/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html index 0de234d8f..020a922aa 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html +++ b/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>nspace::hash< string > Member List</h1>This is the complete list of members for <a class="el" href="structnspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a>, including all inherited members.<p><table> <tr class="memlist"><td><a class="el" href="structnspace_1_1hash_3_01string_01_4.html#operator_28_29_28const_20string_20_26s_29_20const_20">operator()</a>(const string &s) const </td><td><a class="el" href="structnspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html b/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html index 0f2566776..ce45bfe89 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html +++ b/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html @@ -54,7 +54,7 @@ Definition at line <a class="el" href="hashcomp_8h-source.html#l00062">62</a> of </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="hashcomp_8h-source.html">hashcomp.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/tree.html b/docs/module-doc/tree.html index 39c87256d..b3fce4fbe 100644 --- a/docs/module-doc/tree.html +++ b/docs/module-doc/tree.html @@ -82,6 +82,7 @@ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="ctables_8h.html" target="basefrm">ctables.h</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="dns_8h.html" target="basefrm">dns.h</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="hashcomp_8h.html" target="basefrm">hashcomp.h</a></p> + <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="inspircd__io_8h.html" target="basefrm">inspircd_io.h</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="message_8h.html" target="basefrm">message.h</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="mode_8h.html" target="basefrm">mode.h</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="modules_8cpp.html" target="basefrm">modules.cpp</a></p> @@ -90,6 +91,8 @@ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="socket_8h.html" target="basefrm">socket.h</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="socketengine_8cpp.html" target="basefrm">socketengine.cpp</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="socketengine_8h.html" target="basefrm">socketengine.h</a></p> + <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="typedefs_8h.html" target="basefrm">typedefs.h</a></p> + <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="userprocess_8h.html" target="basefrm">userprocess.h</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="users_8cpp.html" target="basefrm">users.cpp</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="users_8h.html" target="basefrm">users.h</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2lastnode.png" alt="\" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="xline_8h.html" target="basefrm">xline.h</a></p> @@ -131,6 +134,7 @@ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classQLine.html" target="basefrm">QLine</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classRequest.html" target="basefrm">Request</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classServer.html" target="basefrm">Server</a></p> + <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classServerConfig.html" target="basefrm">ServerConfig</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classSocketEngine.html" target="basefrm">SocketEngine</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="structirc_1_1StrHashComp.html" target="basefrm">irc::StrHashComp</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classucrec.html" target="basefrm">ucrec</a></p> @@ -179,6 +183,7 @@ <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2lastnode.png" alt="\" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classRequest.html" target="basefrm">Request</a></p> </div> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classServer.html" target="basefrm">Server</a></p> + <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classServerConfig.html" target="basefrm">ServerConfig</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classucrec.html" target="basefrm">ucrec</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classVersion.html" target="basefrm">Version</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2plastnode.png" alt="\" width=16 height=22 onclick="toggleFolder('folder10', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder10', this)"/><a class="el" href="classXLine.html" target="basefrm">XLine</a></p> diff --git a/docs/module-doc/typedefs_8h-source.html b/docs/module-doc/typedefs_8h-source.html new file mode 100644 index 000000000..35b7b586f --- /dev/null +++ b/docs/module-doc/typedefs_8h-source.html @@ -0,0 +1,43 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: typedefs.h Source File</title> +<link href="inspircd.doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.4.4-20050815 --> +<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<div class="nav"> +<a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000004.html">include</a></div> +<h1>typedefs.h</h1><a href="typedefs_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __TYPEDEF_H__</span> +<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __TYPEDEF_H__</span> +<a name="l00003"></a>00003 <span class="preprocessor"></span> +<a name="l00004"></a>00004 <span class="preprocessor">#include "<a class="code" href="users_8h.html">users.h</a>"</span> +<a name="l00005"></a>00005 <span class="preprocessor">#include "<a class="code" href="channels_8h.html">channels.h</a>"</span> +<a name="l00006"></a>00006 <span class="preprocessor">#include "<a class="code" href="hashcomp_8h.html">hashcomp.h</a>"</span> +<a name="l00007"></a>00007 <span class="preprocessor">#include "inspstring.h"</span> +<a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="ctables_8h.html">ctables.h</a>"</span> +<a name="l00009"></a>00009 <span class="preprocessor">#include "inspircd.h"</span> +<a name="l00010"></a>00010 <span class="preprocessor">#include "<a class="code" href="modules_8h.html">modules.h</a>"</span> +<a name="l00011"></a>00011 <span class="preprocessor">#include "globals.h"</span> +<a name="l00012"></a>00012 <span class="preprocessor">#include "inspircd_config.h"</span> +<a name="l00013"></a>00013 <span class="preprocessor">#include <string></span> +<a name="l00014"></a>00014 <span class="preprocessor">#ifdef GCC3</span> +<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#include <ext/hash_map></span> +<a name="l00016"></a>00016 <span class="preprocessor">#else</span> +<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#include <hash_map></span> +<a name="l00018"></a>00018 <span class="preprocessor">#endif</span> +<a name="l00019"></a>00019 <span class="preprocessor"></span> +<a name="l00020"></a><a class="code" href="typedefs_8h.html#user_5Fhash">00020</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, userrec*, nspace::hash<string>, <a class="code" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="code" href="typedefs_8h.html#user_5Fhash">user_hash</a>; +<a name="l00021"></a><a class="code" href="typedefs_8h.html#chan_5Fhash">00021</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, chanrec*, nspace::hash<string>, <a class="code" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="code" href="typedefs_8h.html#chan_5Fhash">chan_hash</a>; +<a name="l00022"></a><a class="code" href="typedefs_8h.html#address_5Fcache">00022</a> <span class="keyword">typedef</span> nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, <a class="code" href="structirc_1_1InAddr__HashComp.html">irc::InAddr_HashComp</a>> <a class="code" href="typedefs_8h.html#address_5Fcache">address_cache</a>; +<a name="l00023"></a><a class="code" href="typedefs_8h.html#whowas_5Fhash">00023</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, <a class="code" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="code" href="typedefs_8h.html#whowas_5Fhash">whowas_hash</a>; +<a name="l00024"></a><a class="code" href="typedefs_8h.html#command_5Ftable">00024</a> <span class="keyword">typedef</span> std::deque<command_t> <a class="code" href="typedefs_8h.html#command_5Ftable">command_table</a>; +<a name="l00025"></a><a class="code" href="typedefs_8h.html#servernamelist">00025</a> <span class="keyword">typedef</span> std::vector<std::string> <a class="code" href="typedefs_8h.html#servernamelist">servernamelist</a>; +<a name="l00026"></a><a class="code" href="typedefs_8h.html#ExtModeList">00026</a> <span class="keyword">typedef</span> std::vector<ExtMode> <a class="code" href="typedefs_8h.html#ExtModeList">ExtModeList</a>; +<a name="l00027"></a><a class="code" href="typedefs_8h.html#ExtModeListIter">00027</a> <span class="keyword">typedef</span> ExtModeList::iterator <a class="code" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a>; +<a name="l00028"></a>00028 +<a name="l00029"></a>00029 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> +</body> +</html> diff --git a/docs/module-doc/typedefs_8h.html b/docs/module-doc/typedefs_8h.html new file mode 100644 index 000000000..45b02de74 --- /dev/null +++ b/docs/module-doc/typedefs_8h.html @@ -0,0 +1,272 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: typedefs.h File Reference</title> +<link href="inspircd.doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.4.4-20050815 --> +<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<div class="nav"> +<a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000004.html">include</a></div> +<h1>typedefs.h File Reference</h1><code>#include "<a class="el" href="users_8h-source.html">users.h</a>"</code><br> +<code>#include "<a class="el" href="channels_8h-source.html">channels.h</a>"</code><br> +<code>#include "<a class="el" href="hashcomp_8h-source.html">hashcomp.h</a>"</code><br> +<code>#include "inspstring.h"</code><br> +<code>#include "<a class="el" href="ctables_8h-source.html">ctables.h</a>"</code><br> +<code>#include "inspircd.h"</code><br> +<code>#include "<a class="el" href="modules_8h-source.html">modules.h</a>"</code><br> +<code>#include "globals.h"</code><br> +<code>#include "inspircd_config.h"</code><br> +<code>#include <string></code><br> +<code>#include <ext/hash_map></code><br> + +<p> +Include dependency graph for typedefs.h:<p><center><img src="typedefs_8h__incl.gif" border="0" usemap="#typedefs.h_map" alt=""></center> +<map name="typedefs.h_map"> +<area href="users_8h-source.html" shape="rect" coords="156,159,220,185" alt=""> +<area href="channels_8h-source.html" shape="rect" coords="295,209,380,236" alt=""> +<area href="hashcomp_8h-source.html" shape="rect" coords="141,412,235,439" alt=""> +<area href="ctables_8h-source.html" shape="rect" coords="300,361,375,388" alt=""> +<area href="modules_8h-source.html" shape="rect" coords="147,311,229,337" alt=""> +</map> + +<p> +This graph shows which files directly or indirectly include this file:<p><center><img src="typedefs_8h__dep__incl.gif" border="0" usemap="#typedefs.hdep_map" alt=""></center> +<map name="typedefs.hdep_map"> +<area href="modules_8cpp-source.html" shape="rect" coords="140,7,239,33" alt=""> +</map> + +<p> +<a href="typedefs_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> +<tr><td></td></tr> +<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef nspace::hash_map<<br> + <a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classuserrec.html">userrec</a> *, nspace::hash<<br> + <a class="el" href="namespaceirc.html#string">string</a> >, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="typedefs_8h.html#user_5Fhash">user_hash</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef nspace::hash_map<<br> + <a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classchanrec.html">chanrec</a> *, nspace::hash<<br> + <a class="el" href="namespaceirc.html#string">string</a> >, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="typedefs_8h.html#chan_5Fhash">chan_hash</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef nspace::hash_map<<br> + in_addr, <a class="el" href="namespaceirc.html#string">string</a> *, nspace::hash<<br> + in_addr >, <a class="el" href="structirc_1_1InAddr__HashComp.html">irc::InAddr_HashComp</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="typedefs_8h.html#address_5Fcache">address_cache</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef nspace::hash_map<<br> + <a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classWhoWasUser.html">WhoWasUser</a> *,<br> + nspace::hash< <a class="el" href="namespaceirc.html#string">string</a> >, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="typedefs_8h.html#whowas_5Fhash">whowas_hash</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::deque< <a class="el" href="classcommand__t.html">command_t</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="typedefs_8h.html#command_5Ftable">command_table</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector< <a class="el" href="namespaceirc.html#string">std::string</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="typedefs_8h.html#servernamelist">servernamelist</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::vector< <a class="el" href="classExtMode.html">ExtMode</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="typedefs_8h.html#ExtModeList">ExtModeList</a></td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef ExtModeList::iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a></td></tr> + +</table> +<hr><h2>Typedef Documentation</h2> +<a class="anchor" name="address_5Fcache"></a><!-- doxytag: member="typedefs.h::address_cache" ref="address_5Fcache" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">typedef nspace::hash_map<in_addr,<a class="el" href="namespaceirc.html#string">string</a>*, nspace::hash<in_addr>, <a class="el" href="structirc_1_1InAddr__HashComp.html">irc::InAddr_HashComp</a>> <a class="el" href="typedefs_8h.html#address_5Fcache">address_cache</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="typedefs_8h-source.html#l00022">22</a> of file <a class="el" href="typedefs_8h-source.html">typedefs.h</a>. </td> + </tr> +</table> +<a class="anchor" name="chan_5Fhash"></a><!-- doxytag: member="typedefs.h::chan_hash" ref="chan_5Fhash" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">typedef nspace::hash_map<<a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classchanrec.html">chanrec</a>*, nspace::hash<<a class="el" href="namespaceirc.html#string">string</a>>, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="el" href="typedefs_8h.html#chan_5Fhash">chan_hash</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="typedefs_8h-source.html#l00021">21</a> of file <a class="el" href="typedefs_8h-source.html">typedefs.h</a>. </td> + </tr> +</table> +<a class="anchor" name="command_5Ftable"></a><!-- doxytag: member="typedefs.h::command_table" ref="command_5Ftable" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">typedef std::deque<<a class="el" href="classcommand__t.html">command_t</a>> <a class="el" href="typedefs_8h.html#command_5Ftable">command_table</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="typedefs_8h-source.html#l00024">24</a> of file <a class="el" href="typedefs_8h-source.html">typedefs.h</a>. </td> + </tr> +</table> +<a class="anchor" name="ExtModeList"></a><!-- doxytag: member="typedefs.h::ExtModeList" ref="ExtModeList" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">typedef std::vector<<a class="el" href="classExtMode.html">ExtMode</a>> <a class="el" href="typedefs_8h.html#ExtModeList">ExtModeList</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="typedefs_8h-source.html#l00026">26</a> of file <a class="el" href="typedefs_8h-source.html">typedefs.h</a>. </td> + </tr> +</table> +<a class="anchor" name="ExtModeListIter"></a><!-- doxytag: member="typedefs.h::ExtModeListIter" ref="ExtModeListIter" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">typedef ExtModeList::iterator <a class="el" href="typedefs_8h.html#ExtModeListIter">ExtModeListIter</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="typedefs_8h-source.html#l00027">27</a> of file <a class="el" href="typedefs_8h-source.html">typedefs.h</a>. </td> + </tr> +</table> +<a class="anchor" name="servernamelist"></a><!-- doxytag: member="typedefs.h::servernamelist" ref="servernamelist" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">typedef std::vector<<a class="el" href="namespaceirc.html#string">std::string</a>> <a class="el" href="typedefs_8h.html#servernamelist">servernamelist</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="typedefs_8h-source.html#l00025">25</a> of file <a class="el" href="typedefs_8h-source.html">typedefs.h</a>. </td> + </tr> +</table> +<a class="anchor" name="user_5Fhash"></a><!-- doxytag: member="typedefs.h::user_hash" ref="user_5Fhash" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">typedef nspace::hash_map<<a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classuserrec.html">userrec</a>*, nspace::hash<<a class="el" href="namespaceirc.html#string">string</a>>, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="el" href="typedefs_8h.html#user_5Fhash">user_hash</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="typedefs_8h-source.html#l00020">20</a> of file <a class="el" href="typedefs_8h-source.html">typedefs.h</a>. </td> + </tr> +</table> +<a class="anchor" name="whowas_5Fhash"></a><!-- doxytag: member="typedefs.h::whowas_hash" ref="whowas_5Fhash" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">typedef nspace::hash_map<<a class="el" href="namespaceirc.html#string">std::string</a>, <a class="el" href="classWhoWasUser.html">WhoWasUser</a>*, nspace::hash<<a class="el" href="namespaceirc.html#string">string</a>>, <a class="el" href="structirc_1_1StrHashComp.html">irc::StrHashComp</a>> <a class="el" href="typedefs_8h.html#whowas_5Fhash">whowas_hash</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="typedefs_8h-source.html#l00023">23</a> of file <a class="el" href="typedefs_8h-source.html">typedefs.h</a>. </td> + </tr> +</table> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:27 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> +</body> +</html> diff --git a/docs/module-doc/typedefs_8h__dep__incl.gif b/docs/module-doc/typedefs_8h__dep__incl.gif Binary files differnew file mode 100644 index 000000000..9f1b6aa92 --- /dev/null +++ b/docs/module-doc/typedefs_8h__dep__incl.gif diff --git a/docs/module-doc/typedefs_8h__dep__incl.map b/docs/module-doc/typedefs_8h__dep__incl.map new file mode 100644 index 000000000..096b0abd5 --- /dev/null +++ b/docs/module-doc/typedefs_8h__dep__incl.map @@ -0,0 +1,2 @@ +base referer +rect $modules_8cpp-source.html 140,7 239,33 diff --git a/docs/module-doc/typedefs_8h__dep__incl.md5 b/docs/module-doc/typedefs_8h__dep__incl.md5 new file mode 100644 index 000000000..0d707fc49 --- /dev/null +++ b/docs/module-doc/typedefs_8h__dep__incl.md5 @@ -0,0 +1 @@ +a0f44bb677c4bae9f3f18d396131af56
\ No newline at end of file diff --git a/docs/module-doc/typedefs_8h__incl.gif b/docs/module-doc/typedefs_8h__incl.gif Binary files differnew file mode 100644 index 000000000..25517e2e2 --- /dev/null +++ b/docs/module-doc/typedefs_8h__incl.gif diff --git a/docs/module-doc/typedefs_8h__incl.map b/docs/module-doc/typedefs_8h__incl.map new file mode 100644 index 000000000..632ae99bc --- /dev/null +++ b/docs/module-doc/typedefs_8h__incl.map @@ -0,0 +1,6 @@ +base referer +rect $users_8h-source.html 156,159 220,185 +rect $channels_8h-source.html 295,209 380,236 +rect $hashcomp_8h-source.html 141,412 235,439 +rect $ctables_8h-source.html 300,361 375,388 +rect $modules_8h-source.html 147,311 229,337 diff --git a/docs/module-doc/typedefs_8h__incl.md5 b/docs/module-doc/typedefs_8h__incl.md5 new file mode 100644 index 000000000..8fd87bc7b --- /dev/null +++ b/docs/module-doc/typedefs_8h__incl.md5 @@ -0,0 +1 @@ +1fe97cc4a91ebf3317aa83aa4ddd3f2d
\ No newline at end of file diff --git a/docs/module-doc/userprocess_8h-source.html b/docs/module-doc/userprocess_8h-source.html new file mode 100644 index 000000000..982522ae5 --- /dev/null +++ b/docs/module-doc/userprocess_8h-source.html @@ -0,0 +1,27 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: userprocess.h Source File</title> +<link href="inspircd.doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.4.4-20050815 --> +<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<div class="nav"> +<a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000004.html">include</a></div> +<h1>userprocess.h</h1><a href="userprocess_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __USERPROCESS_H__</span> +<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __USERPROCESS_H__</span> +<a name="l00003"></a>00003 <span class="preprocessor"></span> +<a name="l00004"></a>00004 <span class="preprocessor">#include "<a class="code" href="users_8h.html">users.h</a>"</span> +<a name="l00005"></a>00005 +<a name="l00006"></a>00006 <span class="keywordtype">void</span> <a class="code" href="userprocess_8h.html#CheckDie_28_29">CheckDie</a>(); +<a name="l00007"></a>00007 <span class="keywordtype">void</span> <a class="code" href="userprocess_8h.html#LoadAllModules_28_29">LoadAllModules</a>(); +<a name="l00008"></a>00008 <span class="keywordtype">void</span> <a class="code" href="userprocess_8h.html#CheckRoot_28_29">CheckRoot</a>(); +<a name="l00009"></a>00009 <span class="keywordtype">void</span> <a class="code" href="userprocess_8h.html#OpenLog_28char_20_2A_2Aargv_2C_20int_20argc_29">OpenLog</a>(<span class="keywordtype">char</span>** argv, <span class="keywordtype">int</span> argc); +<a name="l00010"></a>00010 <span class="keywordtype">bool</span> <a class="code" href="userprocess_8h.html#DoBackgroundUserStuff_28time_5Ft_20TIME_29">DoBackgroundUserStuff</a>(time_t TIME); +<a name="l00011"></a>00011 <span class="keywordtype">void</span> <a class="code" href="userprocess_8h.html#ProcessUser_28userrec_20_2Acu_29">ProcessUser</a>(<a class="code" href="classuserrec.html">userrec</a>* cu); +<a name="l00012"></a>00012 +<a name="l00013"></a>00013 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> +</body> +</html> diff --git a/docs/module-doc/userprocess_8h.html b/docs/module-doc/userprocess_8h.html new file mode 100644 index 000000000..1e60a7526 --- /dev/null +++ b/docs/module-doc/userprocess_8h.html @@ -0,0 +1,216 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: userprocess.h File Reference</title> +<link href="inspircd.doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.4.4-20050815 --> +<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<div class="nav"> +<a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000004.html">include</a></div> +<h1>userprocess.h File Reference</h1><code>#include "<a class="el" href="users_8h-source.html">users.h</a>"</code><br> + +<p> +Include dependency graph for userprocess.h:<p><center><img src="userprocess_8h__incl.gif" border="0" usemap="#userprocess.h_map" alt=""></center> +<map name="userprocess.h_map"> +<area href="users_8h-source.html" shape="rect" coords="163,108,227,135" alt=""> +<area href="channels_8h-source.html" shape="rect" coords="283,108,368,135" alt=""> +<area href="connection_8h-source.html" shape="rect" coords="276,58,375,84" alt=""> +</map> + +<p> +<a href="userprocess_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> +<tr><td></td></tr> +<tr><td colspan="2"><br><h2>Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="userprocess_8h.html#CheckDie_28_29">CheckDie</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="userprocess_8h.html#LoadAllModules_28_29">LoadAllModules</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="userprocess_8h.html#CheckRoot_28_29">CheckRoot</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="userprocess_8h.html#OpenLog_28char_20_2A_2Aargv_2C_20int_20argc_29">OpenLog</a> (char **argv, int argc)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="userprocess_8h.html#DoBackgroundUserStuff_28time_5Ft_20TIME_29">DoBackgroundUserStuff</a> (time_t <a class="el" href="users_8cpp.html#TIME">TIME</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="userprocess_8h.html#ProcessUser_28userrec_20_2Acu_29">ProcessUser</a> (<a class="el" href="classuserrec.html">userrec</a> *cu)</td></tr> + +</table> +<hr><h2>Function Documentation</h2> +<a class="anchor" name="CheckDie_28_29"></a><!-- doxytag: member="userprocess.h::CheckDie" ref="CheckDie_28_29" args="()" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">void CheckDie </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="CheckRoot_28_29"></a><!-- doxytag: member="userprocess.h::CheckRoot" ref="CheckRoot_28_29" args="()" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">void CheckRoot </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="DoBackgroundUserStuff_28time_5Ft_20TIME_29"></a><!-- doxytag: member="userprocess.h::DoBackgroundUserStuff" ref="DoBackgroundUserStuff_28time_5Ft_20TIME_29" args="(time_t TIME)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">bool DoBackgroundUserStuff </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">time_t </td> + <td class="mdname1" valign="top" nowrap> <em>TIME</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="LoadAllModules_28_29"></a><!-- doxytag: member="userprocess.h::LoadAllModules" ref="LoadAllModules_28_29" args="()" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">void LoadAllModules </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="OpenLog_28char_20_2A_2Aargv_2C_20int_20argc_29"></a><!-- doxytag: member="userprocess.h::OpenLog" ref="OpenLog_28char_20_2A_2Aargv_2C_20int_20argc_29" args="(char **argv, int argc)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">void OpenLog </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char ** </td> + <td class="mdname" nowrap> <em>argv</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td class="md"></td> + <td class="md" nowrap>int </td> + <td class="mdname" nowrap> <em>argc</em></td> + </tr> + <tr> + <td class="md"></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="ProcessUser_28userrec_20_2Acu_29"></a><!-- doxytag: member="userprocess.h::ProcessUser" ref="ProcessUser_28userrec_20_2Acu_29" args="(userrec *cu)" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">void ProcessUser </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>cu</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> +</body> +</html> diff --git a/docs/module-doc/userprocess_8h__incl.gif b/docs/module-doc/userprocess_8h__incl.gif Binary files differnew file mode 100644 index 000000000..594200be4 --- /dev/null +++ b/docs/module-doc/userprocess_8h__incl.gif diff --git a/docs/module-doc/userprocess_8h__incl.map b/docs/module-doc/userprocess_8h__incl.map new file mode 100644 index 000000000..597eed7b6 --- /dev/null +++ b/docs/module-doc/userprocess_8h__incl.map @@ -0,0 +1,4 @@ +base referer +rect $users_8h-source.html 163,108 227,135 +rect $channels_8h-source.html 283,108 368,135 +rect $connection_8h-source.html 276,58 375,84 diff --git a/docs/module-doc/userprocess_8h__incl.md5 b/docs/module-doc/userprocess_8h__incl.md5 new file mode 100644 index 000000000..3dc031b2d --- /dev/null +++ b/docs/module-doc/userprocess_8h__incl.md5 @@ -0,0 +1 @@ +bd342784e8f38bb1e1aa5077552ba0a3
\ No newline at end of file diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 85fe1cfcf..2ada48e14 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -39,285 +39,278 @@ <a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="commands_8h.html">commands.h</a>"</span> <a name="l00031"></a>00031 <span class="preprocessor">#include "helperfuncs.h"</span> <a name="l00032"></a>00032 -<a name="l00033"></a>00033 <span class="keyword">extern</span> std::stringstream <a class="code" href="channels_8cpp.html#config_5Ff">config_f</a>; -<a name="l00034"></a>00034 <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a>[MAXBUF]; +<a name="l00033"></a>00033 <span class="keyword">extern</span> <a class="code" href="classServerConfig.html">ServerConfig</a>* <a class="code" href="channels_8cpp.html#Config">Config</a>; +<a name="l00034"></a>00034 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#TIME">TIME</a>; <a name="l00035"></a>00035 -<a name="l00036"></a>00036 <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#TIME">TIME</a>; -<a name="l00037"></a>00037 -<a name="l00038"></a><a class="code" href="classuserrec.html#userrec_28_29">00038</a> <a class="code" href="classuserrec.html#userrec_28_29">userrec::userrec</a>() -<a name="l00039"></a>00039 { -<a name="l00040"></a>00040 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> -<a name="l00041"></a>00041 strcpy(<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<span class="stringliteral">""</span>); -<a name="l00042"></a>00042 strcpy(<a class="code" href="classconnection.html#ip_5B_31_36_5D">ip</a>,<span class="stringliteral">"127.0.0.1"</span>); -<a name="l00043"></a>00043 <a class="code" href="classuserrec.html#timeout">timeout</a> = 0; -<a name="l00044"></a>00044 strcpy(<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<span class="stringliteral">""</span>); -<a name="l00045"></a>00045 strcpy(<a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,<span class="stringliteral">""</span>); -<a name="l00046"></a>00046 strcpy(<a class="code" href="classuserrec.html#dhost_5B_31_36_30_5D">dhost</a>,<span class="stringliteral">""</span>); -<a name="l00047"></a>00047 strcpy(<a class="code" href="classuserrec.html#fullname_5BMAXGECOS_2B_31_5D">fullname</a>,<span class="stringliteral">""</span>); -<a name="l00048"></a>00048 strcpy(<a class="code" href="classuserrec.html#modes_5B_35_34_5D">modes</a>,<span class="stringliteral">""</span>); -<a name="l00049"></a>00049 <a class="code" href="classuserrec.html#server">server</a> = (<span class="keywordtype">char</span>*)FindServerNamePtr(<a class="code" href="channels_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a>); -<a name="l00050"></a>00050 strcpy(<a class="code" href="classuserrec.html#awaymsg_5BMAXAWAY_2B_31_5D">awaymsg</a>,<span class="stringliteral">""</span>); -<a name="l00051"></a>00051 strcpy(<a class="code" href="classuserrec.html#oper_5BNICKMAX_5D">oper</a>,<span class="stringliteral">""</span>); -<a name="l00052"></a>00052 <a class="code" href="classuserrec.html#reset_5Fdue">reset_due</a> = <a class="code" href="channels_8cpp.html#TIME">TIME</a>; -<a name="l00053"></a>00053 <a class="code" href="classuserrec.html#lines_5Fin">lines_in</a> = 0; -<a name="l00054"></a>00054 <a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="classconnection.html#lastping">lastping</a> = <a class="code" href="classconnection.html#signon">signon</a> = <a class="code" href="classconnection.html#idle_5Flastmsg">idle_lastmsg</a> = <a class="code" href="classconnection.html#nping">nping</a> = <a class="code" href="classconnection.html#registered">registered</a> = 0; -<a name="l00055"></a>00055 <a class="code" href="classuserrec.html#flood">flood</a> = <a class="code" href="classconnection.html#port">port</a> = <a class="code" href="classconnection.html#bytes_5Fin">bytes_in</a> = <a class="code" href="classconnection.html#bytes_5Fout">bytes_out</a> = <a class="code" href="classconnection.html#cmds_5Fin">cmds_in</a> = <a class="code" href="classconnection.html#cmds_5Fout">cmds_out</a> = 0; -<a name="l00056"></a>00056 <a class="code" href="classconnection.html#haspassed">haspassed</a> = <span class="keyword">false</span>; -<a name="l00057"></a>00057 <a class="code" href="classuserrec.html#dns_5Fdone">dns_done</a> = <span class="keyword">false</span>; -<a name="l00058"></a>00058 <a class="code" href="classuserrec.html#recvq">recvq</a> = <span class="stringliteral">""</span>; -<a name="l00059"></a>00059 <a class="code" href="classuserrec.html#sendq">sendq</a> = <span class="stringliteral">""</span>; -<a name="l00060"></a>00060 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < MAXCHANS; i++) -<a name="l00061"></a>00061 { -<a name="l00062"></a>00062 this-><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[i].<a class="code" href="classucrec.html#channel">channel</a> = NULL; -<a name="l00063"></a>00063 this-><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[i].<a class="code" href="classucrec.html#uc_5Fmodes">uc_modes</a> = 0; -<a name="l00064"></a>00064 } -<a name="l00065"></a>00065 <a class="code" href="classuserrec.html#invites">invites</a>.clear(); -<a name="l00066"></a>00066 } -<a name="l00067"></a>00067 -<a name="l00068"></a><a class="code" href="classuserrec.html#_7Euserrec_28_29">00068</a> <a class="code" href="classuserrec.html#_7Euserrec_28_29">userrec::~userrec</a>() -<a name="l00069"></a>00069 { +<a name="l00036"></a><a class="code" href="classuserrec.html#userrec_28_29">00036</a> <a class="code" href="classuserrec.html#userrec_28_29">userrec::userrec</a>() +<a name="l00037"></a>00037 { +<a name="l00038"></a>00038 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> +<a name="l00039"></a>00039 strcpy(<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<span class="stringliteral">""</span>); +<a name="l00040"></a>00040 strcpy(<a class="code" href="classconnection.html#ip_5B_31_36_5D">ip</a>,<span class="stringliteral">"127.0.0.1"</span>); +<a name="l00041"></a>00041 <a class="code" href="classuserrec.html#timeout">timeout</a> = 0; +<a name="l00042"></a>00042 strcpy(<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<span class="stringliteral">""</span>); +<a name="l00043"></a>00043 strcpy(<a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>,<span class="stringliteral">""</span>); +<a name="l00044"></a>00044 strcpy(<a class="code" href="classuserrec.html#dhost_5B_31_36_30_5D">dhost</a>,<span class="stringliteral">""</span>); +<a name="l00045"></a>00045 strcpy(<a class="code" href="classuserrec.html#fullname_5BMAXGECOS_2B_31_5D">fullname</a>,<span class="stringliteral">""</span>); +<a name="l00046"></a>00046 strcpy(<a class="code" href="classuserrec.html#modes_5B_35_34_5D">modes</a>,<span class="stringliteral">""</span>); +<a name="l00047"></a>00047 <a class="code" href="classuserrec.html#server">server</a> = (<span class="keywordtype">char</span>*)FindServerNamePtr(Config-><a class="code" href="classServerConfig.html#ServerName_5BMAXBUF_5D">ServerName</a>); +<a name="l00048"></a>00048 strcpy(<a class="code" href="classuserrec.html#awaymsg_5BMAXAWAY_2B_31_5D">awaymsg</a>,<span class="stringliteral">""</span>); +<a name="l00049"></a>00049 strcpy(<a class="code" href="classuserrec.html#oper_5BNICKMAX_5D">oper</a>,<span class="stringliteral">""</span>); +<a name="l00050"></a>00050 <a class="code" href="classuserrec.html#reset_5Fdue">reset_due</a> = <a class="code" href="channels_8cpp.html#TIME">TIME</a>; +<a name="l00051"></a>00051 <a class="code" href="classuserrec.html#lines_5Fin">lines_in</a> = 0; +<a name="l00052"></a>00052 <a class="code" href="classconnection.html#fd">fd</a> = <a class="code" href="classconnection.html#lastping">lastping</a> = <a class="code" href="classconnection.html#signon">signon</a> = <a class="code" href="classconnection.html#idle_5Flastmsg">idle_lastmsg</a> = <a class="code" href="classconnection.html#nping">nping</a> = <a class="code" href="classconnection.html#registered">registered</a> = 0; +<a name="l00053"></a>00053 <a class="code" href="classuserrec.html#flood">flood</a> = <a class="code" href="classconnection.html#port">port</a> = <a class="code" href="classconnection.html#bytes_5Fin">bytes_in</a> = <a class="code" href="classconnection.html#bytes_5Fout">bytes_out</a> = <a class="code" href="classconnection.html#cmds_5Fin">cmds_in</a> = <a class="code" href="classconnection.html#cmds_5Fout">cmds_out</a> = 0; +<a name="l00054"></a>00054 <a class="code" href="classconnection.html#haspassed">haspassed</a> = <span class="keyword">false</span>; +<a name="l00055"></a>00055 <a class="code" href="classuserrec.html#dns_5Fdone">dns_done</a> = <span class="keyword">false</span>; +<a name="l00056"></a>00056 <a class="code" href="classuserrec.html#recvq">recvq</a> = <span class="stringliteral">""</span>; +<a name="l00057"></a>00057 <a class="code" href="classuserrec.html#sendq">sendq</a> = <span class="stringliteral">""</span>; +<a name="l00058"></a>00058 <a class="code" href="classuserrec.html#chans">chans</a>.clear(); +<a name="l00059"></a>00059 <a class="code" href="classuserrec.html#invites">invites</a>.clear(); +<a name="l00060"></a>00060 } +<a name="l00061"></a>00061 +<a name="l00062"></a><a class="code" href="classuserrec.html#_7Euserrec_28_29">00062</a> <a class="code" href="classuserrec.html#_7Euserrec_28_29">userrec::~userrec</a>() +<a name="l00063"></a>00063 { +<a name="l00064"></a>00064 } +<a name="l00065"></a>00065 +<a name="l00066"></a><a class="code" href="classuserrec.html#CloseSocket_28_29">00066</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#CloseSocket_28_29">userrec::CloseSocket</a>() +<a name="l00067"></a>00067 { +<a name="l00068"></a>00068 shutdown(this->fd,2); +<a name="l00069"></a>00069 close(this->fd); <a name="l00070"></a>00070 } -<a name="l00071"></a>00071 -<a name="l00072"></a><a class="code" href="classuserrec.html#CloseSocket_28_29">00072</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#CloseSocket_28_29">userrec::CloseSocket</a>() +<a name="l00071"></a>00071 +<a name="l00072"></a><a class="code" href="classuserrec.html#GetFullHost_28_29">00072</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#GetFullHost_28_29">userrec::GetFullHost</a>() <a name="l00073"></a>00073 { -<a name="l00074"></a>00074 shutdown(this->fd,2); -<a name="l00075"></a>00075 close(this->fd); -<a name="l00076"></a>00076 } -<a name="l00077"></a>00077 -<a name="l00078"></a><a class="code" href="classuserrec.html#GetFullHost_28_29">00078</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#GetFullHost_28_29">userrec::GetFullHost</a>() -<a name="l00079"></a>00079 { -<a name="l00080"></a>00080 <span class="keyword">static</span> <span class="keywordtype">char</span> result[MAXBUF]; -<a name="l00081"></a>00081 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<a class="code" href="classuserrec.html#dhost_5B_31_36_30_5D">dhost</a>); -<a name="l00082"></a>00082 <span class="keywordflow">return</span> result; -<a name="l00083"></a>00083 } -<a name="l00084"></a>00084 -<a name="l00085"></a><a class="code" href="classuserrec.html#ReadData_28void_20_2Abuffer_2C_20size_5Ft_20size_29">00085</a> <span class="keywordtype">int</span> <a class="code" href="classuserrec.html#ReadData_28void_20_2Abuffer_2C_20size_5Ft_20size_29">userrec::ReadData</a>(<span class="keywordtype">void</span>* buffer, size_t size) -<a name="l00086"></a>00086 { -<a name="l00087"></a>00087 <span class="keywordflow">if</span> (this->fd > -1) -<a name="l00088"></a>00088 { -<a name="l00089"></a>00089 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"userrec::ReadData on fd %d"</span>,this->fd); -<a name="l00090"></a>00090 <span class="keywordflow">return</span> read(this->fd, buffer, size); -<a name="l00091"></a>00091 } -<a name="l00092"></a>00092 <span class="keywordflow">else</span> <span class="keywordflow">return</span> 0; -<a name="l00093"></a>00093 } -<a name="l00094"></a>00094 +<a name="l00074"></a>00074 <span class="keyword">static</span> <span class="keywordtype">char</span> result[MAXBUF]; +<a name="l00075"></a>00075 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<a class="code" href="classuserrec.html#dhost_5B_31_36_30_5D">dhost</a>); +<a name="l00076"></a>00076 <span class="keywordflow">return</span> result; +<a name="l00077"></a>00077 } +<a name="l00078"></a>00078 +<a name="l00079"></a><a class="code" href="classuserrec.html#ReadData_28void_20_2Abuffer_2C_20size_5Ft_20size_29">00079</a> <span class="keywordtype">int</span> <a class="code" href="classuserrec.html#ReadData_28void_20_2Abuffer_2C_20size_5Ft_20size_29">userrec::ReadData</a>(<span class="keywordtype">void</span>* buffer, size_t size) +<a name="l00080"></a>00080 { +<a name="l00081"></a>00081 <span class="keywordflow">if</span> (this->fd > -1) +<a name="l00082"></a>00082 { +<a name="l00083"></a>00083 <span class="keywordflow">return</span> read(this->fd, buffer, size); +<a name="l00084"></a>00084 } +<a name="l00085"></a>00085 <span class="keywordflow">else</span> <span class="keywordflow">return</span> 0; +<a name="l00086"></a>00086 } +<a name="l00087"></a>00087 +<a name="l00088"></a>00088 +<a name="l00089"></a><a class="code" href="classuserrec.html#GetFullRealHost_28_29">00089</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#GetFullRealHost_28_29">userrec::GetFullRealHost</a>() +<a name="l00090"></a>00090 { +<a name="l00091"></a>00091 <span class="keyword">static</span> <span class="keywordtype">char</span> fresult[MAXBUF]; +<a name="l00092"></a>00092 snprintf(fresult,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>); +<a name="l00093"></a>00093 <span class="keywordflow">return</span> fresult; +<a name="l00094"></a>00094 } <a name="l00095"></a>00095 -<a name="l00096"></a><a class="code" href="classuserrec.html#GetFullRealHost_28_29">00096</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#GetFullRealHost_28_29">userrec::GetFullRealHost</a>() +<a name="l00096"></a><a class="code" href="classuserrec.html#IsInvited_28char_20_2Achannel_29">00096</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#IsInvited_28char_20_2Achannel_29">userrec::IsInvited</a>(<span class="keywordtype">char</span>* channel) <a name="l00097"></a>00097 { -<a name="l00098"></a>00098 <span class="keyword">static</span> <span class="keywordtype">char</span> fresult[MAXBUF]; -<a name="l00099"></a>00099 snprintf(fresult,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#nick_5BNICKMAX_5D">nick</a>,<a class="code" href="classuserrec.html#ident_5BIDENTMAX_2B_32_5D">ident</a>,<a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>); -<a name="l00100"></a>00100 <span class="keywordflow">return</span> fresult; -<a name="l00101"></a>00101 } -<a name="l00102"></a>00102 -<a name="l00103"></a><a class="code" href="classuserrec.html#IsInvited_28char_20_2Achannel_29">00103</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#IsInvited_28char_20_2Achannel_29">userrec::IsInvited</a>(<span class="keywordtype">char</span>* channel) -<a name="l00104"></a>00104 { -<a name="l00105"></a>00105 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#invites">invites</a>.begin(); i != <a class="code" href="classuserrec.html#invites">invites</a>.end(); i++) -<a name="l00106"></a>00106 { -<a name="l00107"></a>00107 <span class="keywordflow">if</span> (i->channel) { -<a name="l00108"></a>00108 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -<a name="l00109"></a>00109 { -<a name="l00110"></a>00110 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00111"></a>00111 } -<a name="l00112"></a>00112 } -<a name="l00113"></a>00113 } -<a name="l00114"></a>00114 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00115"></a>00115 } -<a name="l00116"></a>00116 -<a name="l00117"></a><a class="code" href="classuserrec.html#GetInviteList_28_29">00117</a> <a class="code" href="users_8h.html#InvitedList">InvitedList</a>* <a class="code" href="classuserrec.html#GetInviteList_28_29">userrec::GetInviteList</a>() -<a name="l00118"></a>00118 { -<a name="l00119"></a>00119 <span class="keywordflow">return</span> &<a class="code" href="classuserrec.html#invites">invites</a>; +<a name="l00098"></a>00098 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#invites">invites</a>.begin(); i != <a class="code" href="classuserrec.html#invites">invites</a>.end(); i++) +<a name="l00099"></a>00099 { +<a name="l00100"></a>00100 <span class="keywordflow">if</span> (i->channel) { +<a name="l00101"></a>00101 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +<a name="l00102"></a>00102 { +<a name="l00103"></a>00103 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00104"></a>00104 } +<a name="l00105"></a>00105 } +<a name="l00106"></a>00106 } +<a name="l00107"></a>00107 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00108"></a>00108 } +<a name="l00109"></a>00109 +<a name="l00110"></a><a class="code" href="classuserrec.html#GetInviteList_28_29">00110</a> <a class="code" href="users_8h.html#InvitedList">InvitedList</a>* <a class="code" href="classuserrec.html#GetInviteList_28_29">userrec::GetInviteList</a>() +<a name="l00111"></a>00111 { +<a name="l00112"></a>00112 <span class="keywordflow">return</span> &<a class="code" href="classuserrec.html#invites">invites</a>; +<a name="l00113"></a>00113 } +<a name="l00114"></a>00114 +<a name="l00115"></a><a class="code" href="classuserrec.html#InviteTo_28char_20_2Achannel_29">00115</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#InviteTo_28char_20_2Achannel_29">userrec::InviteTo</a>(<span class="keywordtype">char</span>* channel) +<a name="l00116"></a>00116 { +<a name="l00117"></a>00117 <a class="code" href="classInvited.html">Invited</a> i; +<a name="l00118"></a>00118 strlcpy(i.<a class="code" href="classInvited.html#channel_5BCHANMAX_5D">channel</a>,channel,CHANMAX); +<a name="l00119"></a>00119 <a class="code" href="classuserrec.html#invites">invites</a>.push_back(i); <a name="l00120"></a>00120 } <a name="l00121"></a>00121 -<a name="l00122"></a><a class="code" href="classuserrec.html#InviteTo_28char_20_2Achannel_29">00122</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#InviteTo_28char_20_2Achannel_29">userrec::InviteTo</a>(<span class="keywordtype">char</span>* channel) +<a name="l00122"></a><a class="code" href="classuserrec.html#RemoveInvite_28char_20_2Achannel_29">00122</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#RemoveInvite_28char_20_2Achannel_29">userrec::RemoveInvite</a>(<span class="keywordtype">char</span>* channel) <a name="l00123"></a>00123 { -<a name="l00124"></a>00124 <a class="code" href="classInvited.html">Invited</a> i; -<a name="l00125"></a>00125 strlcpy(i.<a class="code" href="classInvited.html#channel_5BCHANMAX_5D">channel</a>,channel,CHANMAX); -<a name="l00126"></a>00126 <a class="code" href="classuserrec.html#invites">invites</a>.push_back(i); -<a name="l00127"></a>00127 } -<a name="l00128"></a>00128 -<a name="l00129"></a><a class="code" href="classuserrec.html#RemoveInvite_28char_20_2Achannel_29">00129</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#RemoveInvite_28char_20_2Achannel_29">userrec::RemoveInvite</a>(<span class="keywordtype">char</span>* channel) -<a name="l00130"></a>00130 { -<a name="l00131"></a>00131 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Removing invites"</span>); -<a name="l00132"></a>00132 <span class="keywordflow">if</span> (channel) -<a name="l00133"></a>00133 { -<a name="l00134"></a>00134 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#invites">invites</a>.size()) -<a name="l00135"></a>00135 { -<a name="l00136"></a>00136 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#invites">invites</a>.begin(); i != <a class="code" href="classuserrec.html#invites">invites</a>.end(); i++) -<a name="l00137"></a>00137 { -<a name="l00138"></a>00138 <span class="keywordflow">if</span> (i->channel) -<a name="l00139"></a>00139 { -<a name="l00140"></a>00140 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -<a name="l00141"></a>00141 { -<a name="l00142"></a>00142 <a class="code" href="classuserrec.html#invites">invites</a>.erase(i); -<a name="l00143"></a>00143 <span class="keywordflow">return</span>; -<a name="l00144"></a>00144 } -<a name="l00145"></a>00145 } -<a name="l00146"></a>00146 } -<a name="l00147"></a>00147 } -<a name="l00148"></a>00148 } -<a name="l00149"></a>00149 } -<a name="l00150"></a>00150 -<a name="l00151"></a><a class="code" href="classuserrec.html#HasPermission_28char_20_2Acommand_29">00151</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#HasPermission_28char_20_2Acommand_29">userrec::HasPermission</a>(<span class="keywordtype">char</span>* command) -<a name="l00152"></a>00152 { -<a name="l00153"></a>00153 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -<a name="l00154"></a>00154 <span class="keywordtype">char</span>* mycmd; -<a name="l00155"></a>00155 <span class="keywordtype">char</span>* savept; -<a name="l00156"></a>00156 <span class="keywordtype">char</span>* savept2; -<a name="l00157"></a>00157 -<a name="l00158"></a>00158 <span class="comment">// users on u-lined servers can completely bypass</span> -<a name="l00159"></a>00159 <span class="comment">// all permissions based checks.</span> -<a name="l00160"></a>00160 <span class="comment">//</span> -<a name="l00161"></a>00161 <span class="comment">// of course, if this is sent to a remote server and this</span> -<a name="l00162"></a>00162 <span class="comment">// server is not ulined there, then that other server</span> -<a name="l00163"></a>00163 <span class="comment">// silently drops the command.</span> -<a name="l00164"></a>00164 <span class="keywordflow">if</span> (<a class="code" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline</a>(this->server)) -<a name="l00165"></a>00165 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00166"></a>00166 -<a name="l00167"></a>00167 <span class="comment">// are they even an oper at all?</span> -<a name="l00168"></a>00168 <span class="keywordflow">if</span> (strchr(this->modes,<span class="charliteral">'o'</span>)) -<a name="l00169"></a>00169 { -<a name="l00170"></a>00170 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j < ConfValueEnum(<span class="stringliteral">"type"</span>,&<a class="code" href="channels_8cpp.html#config_5Ff">config_f</a>); j++) -<a name="l00171"></a>00171 { -<a name="l00172"></a>00172 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&<a class="code" href="channels_8cpp.html#config_5Ff">config_f</a>); -<a name="l00173"></a>00173 <span class="keywordflow">if</span> (!strcmp(TypeName,this->oper)) -<a name="l00174"></a>00174 { -<a name="l00175"></a>00175 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&<a class="code" href="channels_8cpp.html#config_5Ff">config_f</a>); -<a name="l00176"></a>00176 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); -<a name="l00177"></a>00177 <span class="keywordflow">while</span> (myclass) -<a name="l00178"></a>00178 { -<a name="l00179"></a>00179 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < ConfValueEnum(<span class="stringliteral">"class"</span>,&<a class="code" href="channels_8cpp.html#config_5Ff">config_f</a>); k++) -<a name="l00180"></a>00180 { -<a name="l00181"></a>00181 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&<a class="code" href="channels_8cpp.html#config_5Ff">config_f</a>); -<a name="l00182"></a>00182 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) -<a name="l00183"></a>00183 { -<a name="l00184"></a>00184 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&<a class="code" href="channels_8cpp.html#config_5Ff">config_f</a>); -<a name="l00185"></a>00185 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); -<a name="l00186"></a>00186 <span class="keywordflow">while</span> (mycmd) -<a name="l00187"></a>00187 { -<a name="l00188"></a>00188 <span class="keywordflow">if</span> ((!strcasecmp(mycmd,command)) || (*mycmd == <span class="charliteral">'*'</span>)) -<a name="l00189"></a>00189 { -<a name="l00190"></a>00190 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00191"></a>00191 } -<a name="l00192"></a>00192 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); -<a name="l00193"></a>00193 } -<a name="l00194"></a>00194 } -<a name="l00195"></a>00195 } -<a name="l00196"></a>00196 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); -<a name="l00197"></a>00197 } -<a name="l00198"></a>00198 } -<a name="l00199"></a>00199 } -<a name="l00200"></a>00200 } -<a name="l00201"></a>00201 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00202"></a>00202 } -<a name="l00203"></a>00203 -<a name="l00204"></a>00204 -<a name="l00205"></a><a class="code" href="classuserrec.html#AddBuffer_28std_3A_3Astring_20a_29">00205</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#AddBuffer_28std_3A_3Astring_20a_29">userrec::AddBuffer</a>(<a class="code" href="namespaceirc.html#string">std::string</a> a) -<a name="l00206"></a>00206 { -<a name="l00207"></a>00207 <a class="code" href="namespaceirc.html#string">std::string</a> b = <span class="stringliteral">""</span>; -<a name="l00208"></a>00208 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < a.length(); i++) -<a name="l00209"></a>00209 <span class="keywordflow">if</span> ((a[i] != <span class="charliteral">'\r'</span>) && (a[i] != <span class="charliteral">'\0'</span>) && (a[i] != 7)) -<a name="l00210"></a>00210 b = b + a[i]; -<a name="l00211"></a>00211 std::stringstream stream(<a class="code" href="classuserrec.html#recvq">recvq</a>); -<a name="l00212"></a>00212 stream << b; -<a name="l00213"></a>00213 <a class="code" href="classuserrec.html#recvq">recvq</a> = stream.str(); -<a name="l00214"></a>00214 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; -<a name="l00215"></a>00215 <span class="comment">// count the size of the first line in the buffer.</span> -<a name="l00216"></a>00216 <span class="keywordflow">while</span> (i < <a class="code" href="classuserrec.html#recvq">recvq</a>.length()) -<a name="l00217"></a>00217 { -<a name="l00218"></a>00218 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>[i++] == <span class="charliteral">'\n'</span>) -<a name="l00219"></a>00219 <span class="keywordflow">break</span>; -<a name="l00220"></a>00220 } -<a name="l00221"></a>00221 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>.length() > (unsigned)this-><a class="code" href="classuserrec.html#recvqmax">recvqmax</a>) -<a name="l00222"></a>00222 { -<a name="l00223"></a>00223 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(<span class="stringliteral">"RecvQ exceeded"</span>); -<a name="l00224"></a>00224 WriteOpers(<span class="stringliteral">"*** User %s RecvQ of %d exceeds connect class maximum of %d"</span>,this->nick,<a class="code" href="classuserrec.html#recvq">recvq</a>.length(),this-><a class="code" href="classuserrec.html#recvqmax">recvqmax</a>); -<a name="l00225"></a>00225 } -<a name="l00226"></a>00226 <span class="comment">// return false if we've had more than 600 characters WITHOUT</span> -<a name="l00227"></a>00227 <span class="comment">// a carriage return (this is BAD, drop the socket)</span> -<a name="l00228"></a>00228 <span class="keywordflow">return</span> (i < 600); -<a name="l00229"></a>00229 } -<a name="l00230"></a>00230 -<a name="l00231"></a><a class="code" href="classuserrec.html#BufferIsReady_28_29">00231</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#BufferIsReady_28_29">userrec::BufferIsReady</a>() -<a name="l00232"></a>00232 { -<a name="l00233"></a>00233 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < <a class="code" href="classuserrec.html#recvq">recvq</a>.length(); i++) -<a name="l00234"></a>00234 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>[i] == <span class="charliteral">'\n'</span>) -<a name="l00235"></a>00235 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00236"></a>00236 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00237"></a>00237 } -<a name="l00238"></a>00238 -<a name="l00239"></a><a class="code" href="classuserrec.html#ClearBuffer_28_29">00239</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#ClearBuffer_28_29">userrec::ClearBuffer</a>() -<a name="l00240"></a>00240 { -<a name="l00241"></a>00241 <a class="code" href="classuserrec.html#recvq">recvq</a> = <span class="stringliteral">""</span>; -<a name="l00242"></a>00242 } -<a name="l00243"></a>00243 -<a name="l00244"></a><a class="code" href="classuserrec.html#GetBuffer_28_29">00244</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classuserrec.html#GetBuffer_28_29">userrec::GetBuffer</a>() -<a name="l00245"></a>00245 { -<a name="l00246"></a>00246 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a> == <span class="stringliteral">""</span>) -<a name="l00247"></a>00247 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -<a name="l00248"></a>00248 <span class="keywordtype">char</span>* line = (<span class="keywordtype">char</span>*)<a class="code" href="classuserrec.html#recvq">recvq</a>.c_str(); -<a name="l00249"></a>00249 <a class="code" href="namespaceirc.html#string">std::string</a> ret = <span class="stringliteral">""</span>; -<a name="l00250"></a>00250 <span class="keywordflow">while</span> ((*line != <span class="charliteral">'\n'</span>) && (strlen(line))) -<a name="l00251"></a>00251 { -<a name="l00252"></a>00252 ret = ret + *line; -<a name="l00253"></a>00253 line++; -<a name="l00254"></a>00254 } -<a name="l00255"></a>00255 <span class="keywordflow">if</span> ((*line == <span class="charliteral">'\n'</span>) || (*line == <span class="charliteral">'\r'</span>)) -<a name="l00256"></a>00256 line++; -<a name="l00257"></a>00257 <a class="code" href="classuserrec.html#recvq">recvq</a> = line; -<a name="l00258"></a>00258 <span class="keywordflow">return</span> ret; -<a name="l00259"></a>00259 } -<a name="l00260"></a>00260 -<a name="l00261"></a><a class="code" href="classuserrec.html#AddWriteBuf_28std_3A_3Astring_20data_29">00261</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#AddWriteBuf_28std_3A_3Astring_20data_29">userrec::AddWriteBuf</a>(<a class="code" href="namespaceirc.html#string">std::string</a> data) -<a name="l00262"></a>00262 { -<a name="l00263"></a>00263 <span class="keywordflow">if</span> (this->GetWriteError() != <span class="stringliteral">""</span>) -<a name="l00264"></a>00264 <span class="keywordflow">return</span>; -<a name="l00265"></a>00265 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#sendq">sendq</a>.length() + data.length() > (unsigned)this-><a class="code" href="classuserrec.html#sendqmax">sendqmax</a>) -<a name="l00266"></a>00266 { -<a name="l00267"></a>00267 WriteOpers(<span class="stringliteral">"*** User %s SendQ of %d exceeds connect class maximum of %d"</span>,this->nick,<a class="code" href="classuserrec.html#sendq">sendq</a>.length() + data.length(),this-><a class="code" href="classuserrec.html#sendqmax">sendqmax</a>); -<a name="l00268"></a>00268 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(<span class="stringliteral">"SendQ exceeded"</span>); -<a name="l00269"></a>00269 <span class="keywordflow">return</span>; -<a name="l00270"></a>00270 } -<a name="l00271"></a>00271 std::stringstream stream; -<a name="l00272"></a>00272 stream << <a class="code" href="classuserrec.html#sendq">sendq</a> << data; -<a name="l00273"></a>00273 <a class="code" href="classuserrec.html#sendq">sendq</a> = stream.str(); -<a name="l00274"></a>00274 } -<a name="l00275"></a>00275 -<a name="l00276"></a>00276 <span class="comment">// send AS MUCH OF THE USERS SENDQ as we are able to (might not be all of it)</span> -<a name="l00277"></a><a class="code" href="classuserrec.html#FlushWriteBuf_28_29">00277</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#FlushWriteBuf_28_29">userrec::FlushWriteBuf</a>() -<a name="l00278"></a>00278 { -<a name="l00279"></a>00279 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#sendq">sendq</a>.length()) -<a name="l00280"></a>00280 { -<a name="l00281"></a>00281 <span class="keywordtype">char</span>* tb = (<span class="keywordtype">char</span>*)this-><a class="code" href="classuserrec.html#sendq">sendq</a>.c_str(); -<a name="l00282"></a>00282 <span class="keywordtype">int</span> n_sent = write(this->fd,tb,this->sendq.length()); -<a name="l00283"></a>00283 <span class="keywordflow">if</span> (n_sent == -1) -<a name="l00284"></a>00284 { -<a name="l00285"></a>00285 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(strerror(errno)); -<a name="l00286"></a>00286 } -<a name="l00287"></a>00287 <span class="keywordflow">else</span> -<a name="l00288"></a>00288 { -<a name="l00289"></a>00289 <span class="comment">// advance the queue</span> -<a name="l00290"></a>00290 tb += n_sent; -<a name="l00291"></a>00291 this-><a class="code" href="classuserrec.html#sendq">sendq</a> = tb; -<a name="l00292"></a>00292 <span class="comment">// update the user's stats counters</span> -<a name="l00293"></a>00293 this-><a class="code" href="classconnection.html#bytes_5Fout">bytes_out</a> += n_sent; -<a name="l00294"></a>00294 this-><a class="code" href="classconnection.html#cmds_5Fout">cmds_out</a>++; -<a name="l00295"></a>00295 } -<a name="l00296"></a>00296 } -<a name="l00297"></a>00297 } -<a name="l00298"></a>00298 -<a name="l00299"></a><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">00299</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">userrec::SetWriteError</a>(<a class="code" href="namespaceirc.html#string">std::string</a> error) -<a name="l00300"></a>00300 { -<a name="l00301"></a>00301 log(<a class="code" href="modules_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Setting error string for %s to '%s'"</span>,this->nick,error.c_str()); -<a name="l00302"></a>00302 <span class="comment">// don't try to set the error twice, its already set take the first string.</span> -<a name="l00303"></a>00303 <span class="keywordflow">if</span> (this->WriteError == <span class="stringliteral">""</span>) -<a name="l00304"></a>00304 this-><a class="code" href="classuserrec.html#WriteError">WriteError</a> = error; -<a name="l00305"></a>00305 } -<a name="l00306"></a>00306 -<a name="l00307"></a><a class="code" href="classuserrec.html#GetWriteError_28_29">00307</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classuserrec.html#GetWriteError_28_29">userrec::GetWriteError</a>() -<a name="l00308"></a>00308 { -<a name="l00309"></a>00309 <span class="keywordflow">return</span> this-><a class="code" href="classuserrec.html#WriteError">WriteError</a>; -<a name="l00310"></a>00310 } -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +<a name="l00124"></a>00124 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Removing invites"</span>); +<a name="l00125"></a>00125 <span class="keywordflow">if</span> (channel) +<a name="l00126"></a>00126 { +<a name="l00127"></a>00127 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#invites">invites</a>.size()) +<a name="l00128"></a>00128 { +<a name="l00129"></a>00129 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#invites">invites</a>.begin(); i != <a class="code" href="classuserrec.html#invites">invites</a>.end(); i++) +<a name="l00130"></a>00130 { +<a name="l00131"></a>00131 <span class="keywordflow">if</span> (i->channel) +<a name="l00132"></a>00132 { +<a name="l00133"></a>00133 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +<a name="l00134"></a>00134 { +<a name="l00135"></a>00135 <a class="code" href="classuserrec.html#invites">invites</a>.erase(i); +<a name="l00136"></a>00136 <span class="keywordflow">return</span>; +<a name="l00137"></a>00137 } +<a name="l00138"></a>00138 } +<a name="l00139"></a>00139 } +<a name="l00140"></a>00140 } +<a name="l00141"></a>00141 } +<a name="l00142"></a>00142 } +<a name="l00143"></a>00143 +<a name="l00144"></a><a class="code" href="classuserrec.html#HasPermission_28char_20_2Acommand_29">00144</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#HasPermission_28char_20_2Acommand_29">userrec::HasPermission</a>(<span class="keywordtype">char</span>* command) +<a name="l00145"></a>00145 { +<a name="l00146"></a>00146 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +<a name="l00147"></a>00147 <span class="keywordtype">char</span>* mycmd; +<a name="l00148"></a>00148 <span class="keywordtype">char</span>* savept; +<a name="l00149"></a>00149 <span class="keywordtype">char</span>* savept2; +<a name="l00150"></a>00150 +<a name="l00151"></a>00151 <span class="comment">// users on u-lined servers can completely bypass</span> +<a name="l00152"></a>00152 <span class="comment">// all permissions based checks.</span> +<a name="l00153"></a>00153 <span class="comment">//</span> +<a name="l00154"></a>00154 <span class="comment">// of course, if this is sent to a remote server and this</span> +<a name="l00155"></a>00155 <span class="comment">// server is not ulined there, then that other server</span> +<a name="l00156"></a>00156 <span class="comment">// silently drops the command.</span> +<a name="l00157"></a>00157 <span class="keywordflow">if</span> (<a class="code" href="commands_8h.html#is_5Fuline_28const_20char_20_2Aserver_29">is_uline</a>(this->server)) +<a name="l00158"></a>00158 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00159"></a>00159 +<a name="l00160"></a>00160 <span class="comment">// are they even an oper at all?</span> +<a name="l00161"></a>00161 <span class="keywordflow">if</span> (strchr(this->modes,<span class="charliteral">'o'</span>)) +<a name="l00162"></a>00162 { +<a name="l00163"></a>00163 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j < Config->ConfValueEnum(<span class="stringliteral">"type"</span>,&Config-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); j++) +<a name="l00164"></a>00164 { +<a name="l00165"></a>00165 Config-><a class="code" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a>(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&Config-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); +<a name="l00166"></a>00166 <span class="keywordflow">if</span> (!strcmp(TypeName,this->oper)) +<a name="l00167"></a>00167 { +<a name="l00168"></a>00168 Config-><a class="code" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a>(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&Config-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); +<a name="l00169"></a>00169 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); +<a name="l00170"></a>00170 <span class="keywordflow">while</span> (myclass) +<a name="l00171"></a>00171 { +<a name="l00172"></a>00172 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < Config->ConfValueEnum(<span class="stringliteral">"class"</span>,&Config-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); k++) +<a name="l00173"></a>00173 { +<a name="l00174"></a>00174 Config-><a class="code" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a>(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&Config-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); +<a name="l00175"></a>00175 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) +<a name="l00176"></a>00176 { +<a name="l00177"></a>00177 Config-><a class="code" href="classServerConfig.html#ConfValue_28char_20_2Atag_2C_20char_20_2Avar_2C_20int_20index_2C_20char_20_2Aresult_2C_20std_3A_3Astringstream_20_2Aconfig_29">ConfValue</a>(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&Config-><a class="code" href="classServerConfig.html#config_5Ff">config_f</a>); +<a name="l00178"></a>00178 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); +<a name="l00179"></a>00179 <span class="keywordflow">while</span> (mycmd) +<a name="l00180"></a>00180 { +<a name="l00181"></a>00181 <span class="keywordflow">if</span> ((!strcasecmp(mycmd,command)) || (*mycmd == <span class="charliteral">'*'</span>)) +<a name="l00182"></a>00182 { +<a name="l00183"></a>00183 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00184"></a>00184 } +<a name="l00185"></a>00185 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); +<a name="l00186"></a>00186 } +<a name="l00187"></a>00187 } +<a name="l00188"></a>00188 } +<a name="l00189"></a>00189 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); +<a name="l00190"></a>00190 } +<a name="l00191"></a>00191 } +<a name="l00192"></a>00192 } +<a name="l00193"></a>00193 } +<a name="l00194"></a>00194 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00195"></a>00195 } +<a name="l00196"></a>00196 +<a name="l00197"></a>00197 +<a name="l00198"></a><a class="code" href="classuserrec.html#AddBuffer_28std_3A_3Astring_20a_29">00198</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#AddBuffer_28std_3A_3Astring_20a_29">userrec::AddBuffer</a>(<a class="code" href="namespaceirc.html#string">std::string</a> a) +<a name="l00199"></a>00199 { +<a name="l00200"></a>00200 <a class="code" href="namespaceirc.html#string">std::string</a> b = <span class="stringliteral">""</span>; +<a name="l00201"></a>00201 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < a.length(); i++) +<a name="l00202"></a>00202 <span class="keywordflow">if</span> ((a[i] != <span class="charliteral">'\r'</span>) && (a[i] != <span class="charliteral">'\0'</span>) && (a[i] != 7)) +<a name="l00203"></a>00203 b = b + a[i]; +<a name="l00204"></a>00204 std::stringstream stream(<a class="code" href="classuserrec.html#recvq">recvq</a>); +<a name="l00205"></a>00205 stream << b; +<a name="l00206"></a>00206 <a class="code" href="classuserrec.html#recvq">recvq</a> = stream.str(); +<a name="l00207"></a>00207 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; +<a name="l00208"></a>00208 <span class="comment">// count the size of the first line in the buffer.</span> +<a name="l00209"></a>00209 <span class="keywordflow">while</span> (i < <a class="code" href="classuserrec.html#recvq">recvq</a>.length()) +<a name="l00210"></a>00210 { +<a name="l00211"></a>00211 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>[i++] == <span class="charliteral">'\n'</span>) +<a name="l00212"></a>00212 <span class="keywordflow">break</span>; +<a name="l00213"></a>00213 } +<a name="l00214"></a>00214 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>.length() > (unsigned)this-><a class="code" href="classuserrec.html#recvqmax">recvqmax</a>) +<a name="l00215"></a>00215 { +<a name="l00216"></a>00216 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(<span class="stringliteral">"RecvQ exceeded"</span>); +<a name="l00217"></a>00217 WriteOpers(<span class="stringliteral">"*** User %s RecvQ of %d exceeds connect class maximum of %d"</span>,this->nick,<a class="code" href="classuserrec.html#recvq">recvq</a>.length(),this-><a class="code" href="classuserrec.html#recvqmax">recvqmax</a>); +<a name="l00218"></a>00218 } +<a name="l00219"></a>00219 <span class="comment">// return false if we've had more than 600 characters WITHOUT</span> +<a name="l00220"></a>00220 <span class="comment">// a carriage return (this is BAD, drop the socket)</span> +<a name="l00221"></a>00221 <span class="keywordflow">return</span> (i < 600); +<a name="l00222"></a>00222 } +<a name="l00223"></a>00223 +<a name="l00224"></a><a class="code" href="classuserrec.html#BufferIsReady_28_29">00224</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#BufferIsReady_28_29">userrec::BufferIsReady</a>() +<a name="l00225"></a>00225 { +<a name="l00226"></a>00226 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < <a class="code" href="classuserrec.html#recvq">recvq</a>.length(); i++) +<a name="l00227"></a>00227 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a>[i] == <span class="charliteral">'\n'</span>) +<a name="l00228"></a>00228 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00229"></a>00229 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00230"></a>00230 } +<a name="l00231"></a>00231 +<a name="l00232"></a><a class="code" href="classuserrec.html#ClearBuffer_28_29">00232</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#ClearBuffer_28_29">userrec::ClearBuffer</a>() +<a name="l00233"></a>00233 { +<a name="l00234"></a>00234 <a class="code" href="classuserrec.html#recvq">recvq</a> = <span class="stringliteral">""</span>; +<a name="l00235"></a>00235 } +<a name="l00236"></a>00236 +<a name="l00237"></a><a class="code" href="classuserrec.html#GetBuffer_28_29">00237</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classuserrec.html#GetBuffer_28_29">userrec::GetBuffer</a>() +<a name="l00238"></a>00238 { +<a name="l00239"></a>00239 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#recvq">recvq</a> == <span class="stringliteral">""</span>) +<a name="l00240"></a>00240 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +<a name="l00241"></a>00241 <span class="keywordtype">char</span>* line = (<span class="keywordtype">char</span>*)<a class="code" href="classuserrec.html#recvq">recvq</a>.c_str(); +<a name="l00242"></a>00242 <a class="code" href="namespaceirc.html#string">std::string</a> ret = <span class="stringliteral">""</span>; +<a name="l00243"></a>00243 <span class="keywordflow">while</span> ((*line != <span class="charliteral">'\n'</span>) && (strlen(line))) +<a name="l00244"></a>00244 { +<a name="l00245"></a>00245 ret = ret + *line; +<a name="l00246"></a>00246 line++; +<a name="l00247"></a>00247 } +<a name="l00248"></a>00248 <span class="keywordflow">if</span> ((*line == <span class="charliteral">'\n'</span>) || (*line == <span class="charliteral">'\r'</span>)) +<a name="l00249"></a>00249 line++; +<a name="l00250"></a>00250 <a class="code" href="classuserrec.html#recvq">recvq</a> = line; +<a name="l00251"></a>00251 <span class="keywordflow">return</span> ret; +<a name="l00252"></a>00252 } +<a name="l00253"></a>00253 +<a name="l00254"></a><a class="code" href="classuserrec.html#AddWriteBuf_28std_3A_3Astring_20data_29">00254</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#AddWriteBuf_28std_3A_3Astring_20data_29">userrec::AddWriteBuf</a>(<a class="code" href="namespaceirc.html#string">std::string</a> data) +<a name="l00255"></a>00255 { +<a name="l00256"></a>00256 <span class="keywordflow">if</span> (this->GetWriteError() != <span class="stringliteral">""</span>) +<a name="l00257"></a>00257 <span class="keywordflow">return</span>; +<a name="l00258"></a>00258 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#sendq">sendq</a>.length() + data.length() > (unsigned)this-><a class="code" href="classuserrec.html#sendqmax">sendqmax</a>) +<a name="l00259"></a>00259 { +<a name="l00260"></a>00260 WriteOpers(<span class="stringliteral">"*** User %s SendQ of %d exceeds connect class maximum of %d"</span>,this->nick,<a class="code" href="classuserrec.html#sendq">sendq</a>.length() + data.length(),this-><a class="code" href="classuserrec.html#sendqmax">sendqmax</a>); +<a name="l00261"></a>00261 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(<span class="stringliteral">"SendQ exceeded"</span>); +<a name="l00262"></a>00262 <span class="keywordflow">return</span>; +<a name="l00263"></a>00263 } +<a name="l00264"></a>00264 std::stringstream stream; +<a name="l00265"></a>00265 stream << <a class="code" href="classuserrec.html#sendq">sendq</a> << data; +<a name="l00266"></a>00266 <a class="code" href="classuserrec.html#sendq">sendq</a> = stream.str(); +<a name="l00267"></a>00267 } +<a name="l00268"></a>00268 +<a name="l00269"></a>00269 <span class="comment">// send AS MUCH OF THE USERS SENDQ as we are able to (might not be all of it)</span> +<a name="l00270"></a><a class="code" href="classuserrec.html#FlushWriteBuf_28_29">00270</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#FlushWriteBuf_28_29">userrec::FlushWriteBuf</a>() +<a name="l00271"></a>00271 { +<a name="l00272"></a>00272 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#sendq">sendq</a>.length()) +<a name="l00273"></a>00273 { +<a name="l00274"></a>00274 <span class="keywordtype">char</span>* tb = (<span class="keywordtype">char</span>*)this-><a class="code" href="classuserrec.html#sendq">sendq</a>.c_str(); +<a name="l00275"></a>00275 <span class="keywordtype">int</span> n_sent = write(this->fd,tb,this->sendq.length()); +<a name="l00276"></a>00276 <span class="keywordflow">if</span> (n_sent == -1) +<a name="l00277"></a>00277 { +<a name="l00278"></a>00278 this-><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">SetWriteError</a>(strerror(errno)); +<a name="l00279"></a>00279 } +<a name="l00280"></a>00280 <span class="keywordflow">else</span> +<a name="l00281"></a>00281 { +<a name="l00282"></a>00282 <span class="comment">// advance the queue</span> +<a name="l00283"></a>00283 tb += n_sent; +<a name="l00284"></a>00284 this-><a class="code" href="classuserrec.html#sendq">sendq</a> = tb; +<a name="l00285"></a>00285 <span class="comment">// update the user's stats counters</span> +<a name="l00286"></a>00286 this-><a class="code" href="classconnection.html#bytes_5Fout">bytes_out</a> += n_sent; +<a name="l00287"></a>00287 this-><a class="code" href="classconnection.html#cmds_5Fout">cmds_out</a>++; +<a name="l00288"></a>00288 } +<a name="l00289"></a>00289 } +<a name="l00290"></a>00290 } +<a name="l00291"></a>00291 +<a name="l00292"></a><a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">00292</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#SetWriteError_28std_3A_3Astring_20error_29">userrec::SetWriteError</a>(<a class="code" href="namespaceirc.html#string">std::string</a> error) +<a name="l00293"></a>00293 { +<a name="l00294"></a>00294 log(<a class="code" href="inspircd__io_8h.html#DEBUG">DEBUG</a>,<span class="stringliteral">"Setting error string for %s to '%s'"</span>,this->nick,error.c_str()); +<a name="l00295"></a>00295 <span class="comment">// don't try to set the error twice, its already set take the first string.</span> +<a name="l00296"></a>00296 <span class="keywordflow">if</span> (this->WriteError == <span class="stringliteral">""</span>) +<a name="l00297"></a>00297 this-><a class="code" href="classuserrec.html#WriteError">WriteError</a> = error; +<a name="l00298"></a>00298 } +<a name="l00299"></a>00299 +<a name="l00300"></a><a class="code" href="classuserrec.html#GetWriteError_28_29">00300</a> <a class="code" href="namespaceirc.html#string">std::string</a> <a class="code" href="classuserrec.html#GetWriteError_28_29">userrec::GetWriteError</a>() +<a name="l00301"></a>00301 { +<a name="l00302"></a>00302 <span class="keywordflow">return</span> this-><a class="code" href="classuserrec.html#WriteError">WriteError</a>; +<a name="l00303"></a>00303 } +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index 03f0c51bf..772f374d9 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -30,44 +30,19 @@ Include dependency graph for users.cpp:<p><center><img src="users_8cpp__incl.gif <a href="users_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Variables</h2></td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">std::stringstream </td><td class="memItemRight" valign="bottom"><a class="el" href="users_8cpp.html#config_5Ff">config_f</a></td></tr> - -<tr><td class="memItemLeft" nowrap align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="users_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a> [MAXBUF]</td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classServerConfig.html">ServerConfig</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="users_8cpp.html#Config">Config</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="users_8cpp.html#TIME">TIME</a></td></tr> </table> <hr><h2>Variable Documentation</h2> -<a class="anchor" name="config_5Ff"></a><!-- doxytag: member="users.cpp::config_f" ref="config_5Ff" args="" --><p> -<table class="mdTable" cellpadding="2" cellspacing="0"> - <tr> - <td class="mdRow"> - <table cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="md" nowrap valign="top">std::stringstream <a class="el" href="users_8cpp.html#config_5Ff">config_f</a> </td> - </tr> - </table> - </td> - </tr> -</table> -<table cellspacing="5" cellpadding="0" border="0"> - <tr> - <td> - - </td> - <td> - -<p> - </td> - </tr> -</table> -<a class="anchor" name="ServerName_5BMAXBUF_5D"></a><!-- doxytag: member="users.cpp::ServerName" ref="ServerName_5BMAXBUF_5D" args="[MAXBUF]" --><p> +<a class="anchor" name="Config"></a><!-- doxytag: member="users.cpp::Config" ref="Config" args="" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top">char <a class="el" href="users_8cpp.html#ServerName_5BMAXBUF_5D">ServerName</a>[MAXBUF] </td> + <td class="md" nowrap valign="top"><a class="el" href="classServerConfig.html">ServerConfig</a>* <a class="el" href="users_8cpp.html#Config">Config</a> </td> </tr> </table> </td> @@ -107,7 +82,7 @@ Include dependency graph for users.cpp:<p><center><img src="users_8cpp__incl.gif </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 170ef7e1a..d3dec62be 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -102,7 +102,7 @@ <a name="l00139"></a>00139 <a name="l00147"></a><a class="code" href="classuserrec.html#modes_5B_35_34_5D">00147</a> <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#modes_5B_35_34_5D">modes</a>[54]; <a name="l00148"></a>00148 -<a name="l00149"></a><a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">00149</a> <a class="code" href="classucrec.html">ucrec</a> <a class="code" href="classuserrec.html#chans_5BMAXCHANS_5D">chans</a>[MAXCHANS]; +<a name="l00149"></a><a class="code" href="classuserrec.html#chans">00149</a> std::vector<ucrec> <a class="code" href="classuserrec.html#chans">chans</a>; <a name="l00150"></a>00150 <a name="l00153"></a><a class="code" href="classuserrec.html#server">00153</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#server">server</a>; <a name="l00154"></a>00154 @@ -192,7 +192,7 @@ <a name="l00342"></a>00342 }; <a name="l00343"></a>00343 <a name="l00344"></a>00344 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index d8b0e6494..e64cb27de 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -23,13 +23,15 @@ Include dependency graph for users.h:<p><center><img src="users_8h__incl.gif" bo <p> This graph shows which files directly or indirectly include this file:<p><center><img src="users_8h__dep__incl.gif" border="0" usemap="#users.hdep_map" alt=""></center> <map name="users.hdep_map"> -<area href="channels_8cpp-source.html" shape="rect" coords="269,83,368,109" alt=""> -<area href="modules_8cpp-source.html" shape="rect" coords="269,159,368,185" alt=""> -<area href="users_8cpp-source.html" shape="rect" coords="279,285,359,312" alt=""> -<area href="commands_8h-source.html" shape="rect" coords="121,260,220,287" alt=""> -<area href="message_8h-source.html" shape="rect" coords="128,57,213,84" alt=""> -<area href="mode_8h-source.html" shape="rect" coords="137,108,204,135" alt=""> -<area href="xline_8h-source.html" shape="rect" coords="140,159,201,185" alt=""> +<area href="channels_8cpp-source.html" shape="rect" coords="277,83,376,109" alt=""> +<area href="modules_8cpp-source.html" shape="rect" coords="277,184,376,211" alt=""> +<area href="users_8cpp-source.html" shape="rect" coords="287,336,367,363" alt=""> +<area href="commands_8h-source.html" shape="rect" coords="125,311,224,337" alt=""> +<area href="message_8h-source.html" shape="rect" coords="132,57,217,84" alt=""> +<area href="mode_8h-source.html" shape="rect" coords="141,108,208,135" alt=""> +<area href="typedefs_8h-source.html" shape="rect" coords="132,209,217,236" alt=""> +<area href="userprocess_8h-source.html" shape="rect" coords="123,412,227,439" alt=""> +<area href="xline_8h-source.html" shape="rect" coords="144,159,205,185" alt=""> </map> <p> @@ -275,7 +277,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line <a class="el" href="users_8h-source.html#l00097">97</a> of file <a class="el" href="users_8h-source.html">users.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/users_8h__dep__incl.gif b/docs/module-doc/users_8h__dep__incl.gif Binary files differindex aa0164236..de6531f7e 100644 --- a/docs/module-doc/users_8h__dep__incl.gif +++ b/docs/module-doc/users_8h__dep__incl.gif diff --git a/docs/module-doc/users_8h__dep__incl.map b/docs/module-doc/users_8h__dep__incl.map index 58ad59725..8476fde3d 100644 --- a/docs/module-doc/users_8h__dep__incl.map +++ b/docs/module-doc/users_8h__dep__incl.map @@ -1,8 +1,10 @@ base referer -rect $channels_8cpp-source.html 269,83 368,109 -rect $modules_8cpp-source.html 269,159 368,185 -rect $users_8cpp-source.html 279,285 359,312 -rect $commands_8h-source.html 121,260 220,287 -rect $message_8h-source.html 128,57 213,84 -rect $mode_8h-source.html 137,108 204,135 -rect $xline_8h-source.html 140,159 201,185 +rect $channels_8cpp-source.html 277,83 376,109 +rect $modules_8cpp-source.html 277,184 376,211 +rect $users_8cpp-source.html 287,336 367,363 +rect $commands_8h-source.html 125,311 224,337 +rect $message_8h-source.html 132,57 217,84 +rect $mode_8h-source.html 141,108 208,135 +rect $typedefs_8h-source.html 132,209 217,236 +rect $userprocess_8h-source.html 123,412 227,439 +rect $xline_8h-source.html 144,159 205,185 diff --git a/docs/module-doc/users_8h__dep__incl.md5 b/docs/module-doc/users_8h__dep__incl.md5 index 657a6ee6c..34eb02fef 100644 --- a/docs/module-doc/users_8h__dep__incl.md5 +++ b/docs/module-doc/users_8h__dep__incl.md5 @@ -1 +1 @@ -1df71afa1aaf320bbe4ab884cb21df5d
\ No newline at end of file +e4bee193bd70218d154c4fd5eeba5fa4
\ No newline at end of file diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index f60c2a20b..19224f400 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -37,94 +37,99 @@ <a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="users_8h.html">users.h</a>"</span> <a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="channels_8h.html">channels.h</a>"</span> <a name="l00030"></a>00030 -<a name="l00031"></a>00031 -<a name="l00034"></a><a class="code" href="classXLine.html">00034</a> <span class="keyword">class </span><a class="code" href="classXLine.html">XLine</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -<a name="l00035"></a>00035 { -<a name="l00036"></a>00036 <span class="keyword">public</span>: -<a name="l00037"></a>00037 -<a name="l00040"></a><a class="code" href="classXLine.html#set_5Ftime">00040</a> time_t <a class="code" href="classXLine.html#set_5Ftime">set_time</a>; -<a name="l00041"></a>00041 -<a name="l00044"></a><a class="code" href="classXLine.html#duration">00044</a> <span class="keywordtype">long</span> <a class="code" href="classXLine.html#duration">duration</a>; -<a name="l00045"></a>00045 -<a name="l00048"></a><a class="code" href="classXLine.html#source_5B_32_35_36_5D">00048</a> <span class="keywordtype">char</span> <a class="code" href="classXLine.html#source_5B_32_35_36_5D">source</a>[256]; -<a name="l00049"></a>00049 -<a name="l00052"></a><a class="code" href="classXLine.html#reason_5BMAXBUF_5D">00052</a> <span class="keywordtype">char</span> <a class="code" href="classXLine.html#reason_5BMAXBUF_5D">reason</a>[MAXBUF]; -<a name="l00053"></a>00053 -<a name="l00056"></a><a class="code" href="classXLine.html#n_5Fmatches">00056</a> <span class="keywordtype">long</span> <a class="code" href="classXLine.html#n_5Fmatches">n_matches</a>; -<a name="l00057"></a>00057 -<a name="l00058"></a>00058 }; -<a name="l00059"></a>00059 -<a name="l00062"></a><a class="code" href="classKLine.html">00062</a> <span class="keyword">class </span><a class="code" href="classKLine.html">KLine</a> : <span class="keyword">public</span> <a class="code" href="classXLine.html">XLine</a> -<a name="l00063"></a>00063 { -<a name="l00064"></a>00064 <span class="keyword">public</span>: -<a name="l00068"></a><a class="code" href="classKLine.html#hostmask_5B_32_30_30_5D">00068</a> <span class="keywordtype">char</span> <a class="code" href="classKLine.html#hostmask_5B_32_30_30_5D">hostmask</a>[200]; -<a name="l00069"></a>00069 }; -<a name="l00070"></a>00070 -<a name="l00073"></a><a class="code" href="classGLine.html">00073</a> <span class="keyword">class </span><a class="code" href="classGLine.html">GLine</a> : <span class="keyword">public</span> <a class="code" href="classXLine.html">XLine</a> -<a name="l00074"></a>00074 { -<a name="l00075"></a>00075 <span class="keyword">public</span>: -<a name="l00079"></a><a class="code" href="classGLine.html#hostmask_5B_32_30_30_5D">00079</a> <span class="keywordtype">char</span> <a class="code" href="classGLine.html#hostmask_5B_32_30_30_5D">hostmask</a>[200]; -<a name="l00080"></a>00080 }; -<a name="l00081"></a>00081 -<a name="l00082"></a><a class="code" href="classELine.html">00082</a> <span class="keyword">class </span><a class="code" href="classELine.html">ELine</a> : <span class="keyword">public</span> <a class="code" href="classXLine.html">XLine</a> -<a name="l00083"></a>00083 { -<a name="l00084"></a>00084 <span class="keyword">public</span>: -<a name="l00088"></a><a class="code" href="classELine.html#hostmask_5B_32_30_30_5D">00088</a> <span class="keywordtype">char</span> <a class="code" href="classELine.html#hostmask_5B_32_30_30_5D">hostmask</a>[200]; -<a name="l00089"></a>00089 }; -<a name="l00090"></a>00090 -<a name="l00093"></a><a class="code" href="classZLine.html">00093</a> <span class="keyword">class </span><a class="code" href="classZLine.html">ZLine</a> : <span class="keyword">public</span> <a class="code" href="classXLine.html">XLine</a> -<a name="l00094"></a>00094 { -<a name="l00095"></a>00095 <span class="keyword">public</span>: -<a name="l00099"></a><a class="code" href="classZLine.html#ipaddr_5B_34_30_5D">00099</a> <span class="keywordtype">char</span> <a class="code" href="classZLine.html#ipaddr_5B_34_30_5D">ipaddr</a>[40]; -<a name="l00103"></a><a class="code" href="classZLine.html#is_5Fglobal">00103</a> <span class="keywordtype">bool</span> <a class="code" href="classZLine.html#is_5Fglobal">is_global</a>; -<a name="l00104"></a>00104 }; -<a name="l00105"></a>00105 -<a name="l00108"></a><a class="code" href="classQLine.html">00108</a> <span class="keyword">class </span><a class="code" href="classQLine.html">QLine</a> : <span class="keyword">public</span> <a class="code" href="classXLine.html">XLine</a> -<a name="l00109"></a>00109 { -<a name="l00110"></a>00110 <span class="keyword">public</span>: -<a name="l00114"></a><a class="code" href="classQLine.html#nick_5B_36_34_5D">00114</a> <span class="keywordtype">char</span> <a class="code" href="classQLine.html#nick_5B_36_34_5D">nick</a>[64]; -<a name="l00118"></a><a class="code" href="classQLine.html#is_5Fglobal">00118</a> <span class="keywordtype">bool</span> <a class="code" href="classQLine.html#is_5Fglobal">is_global</a>; -<a name="l00119"></a>00119 }; -<a name="l00120"></a>00120 -<a name="l00121"></a>00121 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#read_5Fxline_5Fdefaults_28_29">read_xline_defaults</a>(); -<a name="l00122"></a>00122 -<a name="l00123"></a>00123 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#add_5Fgline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_gline</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); -<a name="l00124"></a>00124 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29">add_qline</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* nickname); -<a name="l00125"></a>00125 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29">add_zline</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); -<a name="l00126"></a>00126 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_kline</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); -<a name="l00127"></a>00127 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#add_5Feline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_eline</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); -<a name="l00128"></a>00128 -<a name="l00129"></a>00129 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#del_5Fgline_28const_20char_20_2Ahostmask_29">del_gline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); -<a name="l00130"></a>00130 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#del_5Fqline_28const_20char_20_2Anickname_29">del_qline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nickname); -<a name="l00131"></a>00131 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">del_zline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); -<a name="l00132"></a>00132 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#del_5Fkline_28const_20char_20_2Ahostmask_29">del_kline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); -<a name="l00133"></a>00133 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#del_5Feline_28const_20char_20_2Ahostmask_29">del_eline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); -<a name="l00134"></a>00134 -<a name="l00135"></a>00135 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#matches_5Fqline_28const_20char_20_2Anick_29">matches_qline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nick); -<a name="l00136"></a>00136 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#matches_5Fgline_28const_20char_20_2Ahost_29">matches_gline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* host); -<a name="l00137"></a>00137 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#matches_5Fzline_28const_20char_20_2Aipaddr_29">matches_zline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); -<a name="l00138"></a>00138 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#matches_5Fkline_28const_20char_20_2Ahost_29">matches_kline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* host); -<a name="l00139"></a>00139 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#matches_5Fexception_28const_20char_20_2Ahost_29">matches_exception</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* host); -<a name="l00140"></a>00140 -<a name="l00141"></a>00141 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#expire_5Flines_28_29">expire_lines</a>(); -<a name="l00142"></a>00142 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#apply_5Flines_28_29">apply_lines</a>(); -<a name="l00143"></a>00143 -<a name="l00144"></a>00144 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#stats_5Fk_28userrec_20_2Auser_29">stats_k</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00145"></a>00145 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#stats_5Fg_28userrec_20_2Auser_29">stats_g</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00146"></a>00146 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#stats_5Fq_28userrec_20_2Auser_29">stats_q</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00147"></a>00147 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#stats_5Fz_28userrec_20_2Auser_29">stats_z</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00148"></a>00148 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#stats_5Fe_28userrec_20_2Auser_29">stats_e</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -<a name="l00149"></a>00149 -<a name="l00150"></a>00150 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#gline_5Fset_5Fcreation_5Ftime_28char_20_2Ahost_2C_20time_5Ft_20create_5Ftime_29">gline_set_creation_time</a>(<span class="keywordtype">char</span>* host, time_t create_time); -<a name="l00151"></a>00151 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#qline_5Fset_5Fcreation_5Ftime_28char_20_2Anick_2C_20time_5Ft_20create_5Ftime_29">qline_set_creation_time</a>(<span class="keywordtype">char</span>* nick, time_t create_time); -<a name="l00152"></a>00152 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#zline_5Fset_5Fcreation_5Ftime_28char_20_2Aip_2C_20time_5Ft_20create_5Ftime_29">zline_set_creation_time</a>(<span class="keywordtype">char</span>* ip, time_t create_time); -<a name="l00153"></a>00153 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#eline_5Fset_5Fcreation_5Ftime_28char_20_2Ahost_2C_20time_5Ft_20create_5Ftime_29">eline_set_creation_time</a>(<span class="keywordtype">char</span>* host, time_t create_time); -<a name="l00154"></a>00154 -<a name="l00155"></a>00155 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#zline_5Fmake_5Fglobal_28const_20char_20_2Aipaddr_29">zline_make_global</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); -<a name="l00156"></a>00156 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#qline_5Fmake_5Fglobal_28const_20char_20_2Anickname_29">qline_make_global</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nickname); -<a name="l00157"></a>00157 -<a name="l00158"></a>00158 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by +<a name="l00031"></a><a class="code" href="xline_8h.html#APPLY_5FGLINES">00031</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="xline_8h.html#APPLY_5FGLINES">APPLY_GLINES</a> = 1; +<a name="l00032"></a><a class="code" href="xline_8h.html#APPLY_5FKLINES">00032</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="xline_8h.html#APPLY_5FKLINES">APPLY_KLINES</a> = 2; +<a name="l00033"></a><a class="code" href="xline_8h.html#APPLY_5FQLINES">00033</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="xline_8h.html#APPLY_5FQLINES">APPLY_QLINES</a> = 4; +<a name="l00034"></a><a class="code" href="xline_8h.html#APPLY_5FZLINES">00034</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="xline_8h.html#APPLY_5FZLINES">APPLY_ZLINES</a> = 8; +<a name="l00035"></a><a class="code" href="xline_8h.html#APPLY_5FALL">00035</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="xline_8h.html#APPLY_5FALL">APPLY_ALL</a> = <a class="code" href="xline_8h.html#APPLY_5FGLINES">APPLY_GLINES</a> | <a class="code" href="xline_8h.html#APPLY_5FKLINES">APPLY_KLINES</a> | <a class="code" href="xline_8h.html#APPLY_5FQLINES">APPLY_QLINES</a> | <a class="code" href="xline_8h.html#APPLY_5FZLINES">APPLY_ZLINES</a>; +<a name="l00036"></a>00036 +<a name="l00039"></a><a class="code" href="classXLine.html">00039</a> <span class="keyword">class </span><a class="code" href="classXLine.html">XLine</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +<a name="l00040"></a>00040 { +<a name="l00041"></a>00041 <span class="keyword">public</span>: +<a name="l00042"></a>00042 +<a name="l00045"></a><a class="code" href="classXLine.html#set_5Ftime">00045</a> time_t <a class="code" href="classXLine.html#set_5Ftime">set_time</a>; +<a name="l00046"></a>00046 +<a name="l00049"></a><a class="code" href="classXLine.html#duration">00049</a> <span class="keywordtype">long</span> <a class="code" href="classXLine.html#duration">duration</a>; +<a name="l00050"></a>00050 +<a name="l00053"></a><a class="code" href="classXLine.html#source_5B_32_35_36_5D">00053</a> <span class="keywordtype">char</span> <a class="code" href="classXLine.html#source_5B_32_35_36_5D">source</a>[256]; +<a name="l00054"></a>00054 +<a name="l00057"></a><a class="code" href="classXLine.html#reason_5BMAXBUF_5D">00057</a> <span class="keywordtype">char</span> <a class="code" href="classXLine.html#reason_5BMAXBUF_5D">reason</a>[MAXBUF]; +<a name="l00058"></a>00058 +<a name="l00061"></a><a class="code" href="classXLine.html#n_5Fmatches">00061</a> <span class="keywordtype">long</span> <a class="code" href="classXLine.html#n_5Fmatches">n_matches</a>; +<a name="l00062"></a>00062 +<a name="l00063"></a>00063 }; +<a name="l00064"></a>00064 +<a name="l00067"></a><a class="code" href="classKLine.html">00067</a> <span class="keyword">class </span><a class="code" href="classKLine.html">KLine</a> : <span class="keyword">public</span> <a class="code" href="classXLine.html">XLine</a> +<a name="l00068"></a>00068 { +<a name="l00069"></a>00069 <span class="keyword">public</span>: +<a name="l00073"></a><a class="code" href="classKLine.html#hostmask_5B_32_30_30_5D">00073</a> <span class="keywordtype">char</span> <a class="code" href="classKLine.html#hostmask_5B_32_30_30_5D">hostmask</a>[200]; +<a name="l00074"></a>00074 }; +<a name="l00075"></a>00075 +<a name="l00078"></a><a class="code" href="classGLine.html">00078</a> <span class="keyword">class </span><a class="code" href="classGLine.html">GLine</a> : <span class="keyword">public</span> <a class="code" href="classXLine.html">XLine</a> +<a name="l00079"></a>00079 { +<a name="l00080"></a>00080 <span class="keyword">public</span>: +<a name="l00084"></a><a class="code" href="classGLine.html#hostmask_5B_32_30_30_5D">00084</a> <span class="keywordtype">char</span> <a class="code" href="classGLine.html#hostmask_5B_32_30_30_5D">hostmask</a>[200]; +<a name="l00085"></a>00085 }; +<a name="l00086"></a>00086 +<a name="l00087"></a><a class="code" href="classELine.html">00087</a> <span class="keyword">class </span><a class="code" href="classELine.html">ELine</a> : <span class="keyword">public</span> <a class="code" href="classXLine.html">XLine</a> +<a name="l00088"></a>00088 { +<a name="l00089"></a>00089 <span class="keyword">public</span>: +<a name="l00093"></a><a class="code" href="classELine.html#hostmask_5B_32_30_30_5D">00093</a> <span class="keywordtype">char</span> <a class="code" href="classELine.html#hostmask_5B_32_30_30_5D">hostmask</a>[200]; +<a name="l00094"></a>00094 }; +<a name="l00095"></a>00095 +<a name="l00098"></a><a class="code" href="classZLine.html">00098</a> <span class="keyword">class </span><a class="code" href="classZLine.html">ZLine</a> : <span class="keyword">public</span> <a class="code" href="classXLine.html">XLine</a> +<a name="l00099"></a>00099 { +<a name="l00100"></a>00100 <span class="keyword">public</span>: +<a name="l00104"></a><a class="code" href="classZLine.html#ipaddr_5B_34_30_5D">00104</a> <span class="keywordtype">char</span> <a class="code" href="classZLine.html#ipaddr_5B_34_30_5D">ipaddr</a>[40]; +<a name="l00108"></a><a class="code" href="classZLine.html#is_5Fglobal">00108</a> <span class="keywordtype">bool</span> <a class="code" href="classZLine.html#is_5Fglobal">is_global</a>; +<a name="l00109"></a>00109 }; +<a name="l00110"></a>00110 +<a name="l00113"></a><a class="code" href="classQLine.html">00113</a> <span class="keyword">class </span><a class="code" href="classQLine.html">QLine</a> : <span class="keyword">public</span> <a class="code" href="classXLine.html">XLine</a> +<a name="l00114"></a>00114 { +<a name="l00115"></a>00115 <span class="keyword">public</span>: +<a name="l00119"></a><a class="code" href="classQLine.html#nick_5B_36_34_5D">00119</a> <span class="keywordtype">char</span> <a class="code" href="classQLine.html#nick_5B_36_34_5D">nick</a>[64]; +<a name="l00123"></a><a class="code" href="classQLine.html#is_5Fglobal">00123</a> <span class="keywordtype">bool</span> <a class="code" href="classQLine.html#is_5Fglobal">is_global</a>; +<a name="l00124"></a>00124 }; +<a name="l00125"></a>00125 +<a name="l00126"></a>00126 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#read_5Fxline_5Fdefaults_28_29">read_xline_defaults</a>(); +<a name="l00127"></a>00127 +<a name="l00128"></a>00128 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#add_5Fgline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_gline</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); +<a name="l00129"></a>00129 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29">add_qline</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* nickname); +<a name="l00130"></a>00130 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29">add_zline</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); +<a name="l00131"></a>00131 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_kline</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); +<a name="l00132"></a>00132 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#add_5Feline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29">add_eline</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#duration_28const_20char_20_2Astr_29">duration</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); +<a name="l00133"></a>00133 +<a name="l00134"></a>00134 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#del_5Fgline_28const_20char_20_2Ahostmask_29">del_gline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); +<a name="l00135"></a>00135 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#del_5Fqline_28const_20char_20_2Anickname_29">del_qline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nickname); +<a name="l00136"></a>00136 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#del_5Fzline_28const_20char_20_2Aipaddr_29">del_zline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); +<a name="l00137"></a>00137 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#del_5Fkline_28const_20char_20_2Ahostmask_29">del_kline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); +<a name="l00138"></a>00138 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#del_5Feline_28const_20char_20_2Ahostmask_29">del_eline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); +<a name="l00139"></a>00139 +<a name="l00140"></a>00140 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#matches_5Fqline_28const_20char_20_2Anick_29">matches_qline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nick); +<a name="l00141"></a>00141 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#matches_5Fgline_28const_20char_20_2Ahost_29">matches_gline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* host); +<a name="l00142"></a>00142 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#matches_5Fzline_28const_20char_20_2Aipaddr_29">matches_zline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); +<a name="l00143"></a>00143 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#matches_5Fkline_28const_20char_20_2Ahost_29">matches_kline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* host); +<a name="l00144"></a>00144 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#matches_5Fexception_28const_20char_20_2Ahost_29">matches_exception</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* host); +<a name="l00145"></a>00145 +<a name="l00146"></a>00146 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#expire_5Flines_28_29">expire_lines</a>(); +<a name="l00147"></a>00147 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#apply_5Flines_28const_20int_20What_29">apply_lines</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> What); +<a name="l00148"></a>00148 +<a name="l00149"></a>00149 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#stats_5Fk_28userrec_20_2Auser_29">stats_k</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00150"></a>00150 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#stats_5Fg_28userrec_20_2Auser_29">stats_g</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00151"></a>00151 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#stats_5Fq_28userrec_20_2Auser_29">stats_q</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00152"></a>00152 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#stats_5Fz_28userrec_20_2Auser_29">stats_z</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00153"></a>00153 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#stats_5Fe_28userrec_20_2Auser_29">stats_e</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +<a name="l00154"></a>00154 +<a name="l00155"></a>00155 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#gline_5Fset_5Fcreation_5Ftime_28char_20_2Ahost_2C_20time_5Ft_20create_5Ftime_29">gline_set_creation_time</a>(<span class="keywordtype">char</span>* host, time_t create_time); +<a name="l00156"></a>00156 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#qline_5Fset_5Fcreation_5Ftime_28char_20_2Anick_2C_20time_5Ft_20create_5Ftime_29">qline_set_creation_time</a>(<span class="keywordtype">char</span>* nick, time_t create_time); +<a name="l00157"></a>00157 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#zline_5Fset_5Fcreation_5Ftime_28char_20_2Aip_2C_20time_5Ft_20create_5Ftime_29">zline_set_creation_time</a>(<span class="keywordtype">char</span>* ip, time_t create_time); +<a name="l00158"></a>00158 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#eline_5Fset_5Fcreation_5Ftime_28char_20_2Ahost_2C_20time_5Ft_20create_5Ftime_29">eline_set_creation_time</a>(<span class="keywordtype">char</span>* host, time_t create_time); +<a name="l00159"></a>00159 +<a name="l00160"></a>00160 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#zline_5Fmake_5Fglobal_28const_20char_20_2Aipaddr_29">zline_make_global</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); +<a name="l00161"></a>00161 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#qline_5Fmake_5Fglobal_28const_20char_20_2Anickname_29">qline_make_global</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nickname); +<a name="l00162"></a>00162 +<a name="l00163"></a>00163 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index 90b264090..cc11181c6 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -87,7 +87,7 @@ This graph shows which files directly or indirectly include this file:<p><center <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html#expire_5Flines_28_29">expire_lines</a> ()</td></tr> -<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html#apply_5Flines_28_29">apply_lines</a> ()</td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html#apply_5Flines_28const_20int_20What_29">apply_lines</a> (const int What)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html#stats_5Fk_28userrec_20_2Auser_29">stats_k</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> @@ -111,6 +111,17 @@ This graph shows which files directly or indirectly include this file:<p><center <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html#qline_5Fmake_5Fglobal_28const_20char_20_2Anickname_29">qline_make_global</a> (const char *nickname)</td></tr> +<tr><td colspan="2"><br><h2>Variables</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html#APPLY_5FGLINES">APPLY_GLINES</a> = 1</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html#APPLY_5FKLINES">APPLY_KLINES</a> = 2</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html#APPLY_5FQLINES">APPLY_QLINES</a> = 4</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html#APPLY_5FZLINES">APPLY_ZLINES</a> = 8</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="xline_8h.html#APPLY_5FALL">APPLY_ALL</a> = <a class="el" href="xline_8h.html#APPLY_5FGLINES">APPLY_GLINES</a> | <a class="el" href="xline_8h.html#APPLY_5FKLINES">APPLY_KLINES</a> | <a class="el" href="xline_8h.html#APPLY_5FQLINES">APPLY_QLINES</a> | <a class="el" href="xline_8h.html#APPLY_5FZLINES">APPLY_ZLINES</a></td></tr> + </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="add_5Feline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29"></a><!-- doxytag: member="xline.h::add_eline" ref="add_5Feline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29" args="(long duration, const char *source, const char *reason, const char *hostmask)" --><p> @@ -161,7 +172,7 @@ This graph shows which files directly or indirectly include this file:<p><center <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00731">Server::AddELine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00658">Server::AddELine()</a>. </td> </tr> </table> <a class="anchor" name="add_5Fgline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29"></a><!-- doxytag: member="xline.h::add_gline" ref="add_5Fgline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29" args="(long duration, const char *source, const char *reason, const char *hostmask)" --><p> @@ -212,7 +223,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00731">Server::AddEL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00711">Server::AddGLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00638">Server::AddGLine()</a>. </td> </tr> </table> <a class="anchor" name="add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29"></a><!-- doxytag: member="xline.h::add_kline" ref="add_5Fkline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Ahostmask_29" args="(long duration, const char *source, const char *reason, const char *hostmask)" --><p> @@ -263,7 +274,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00711">Server::AddGL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00726">Server::AddKLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00653">Server::AddKLine()</a>. </td> </tr> </table> <a class="anchor" name="add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29"></a><!-- doxytag: member="xline.h::add_qline" ref="add_5Fqline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Anickname_29" args="(long duration, const char *source, const char *reason, const char *nickname)" --><p> @@ -314,7 +325,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00726">Server::AddKL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00716">Server::AddQLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00643">Server::AddQLine()</a>. </td> </tr> </table> <a class="anchor" name="add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29"></a><!-- doxytag: member="xline.h::add_zline" ref="add_5Fzline_28long_20duration_2C_20const_20char_20_2Asource_2C_20const_20char_20_2Areason_2C_20const_20char_20_2Aipaddr_29" args="(long duration, const char *source, const char *reason, const char *ipaddr)" --><p> @@ -365,10 +376,10 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00716">Server::AddQL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00721">Server::AddZLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00648">Server::AddZLine()</a>. </td> </tr> </table> -<a class="anchor" name="apply_5Flines_28_29"></a><!-- doxytag: member="xline.h::apply_lines" ref="apply_5Flines_28_29" args="()" --><p> +<a class="anchor" name="apply_5Flines_28const_20int_20What_29"></a><!-- doxytag: member="xline.h::apply_lines" ref="apply_5Flines_28const_20int_20What_29" args="(const int What)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -376,7 +387,8 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00721">Server::AddZL <tr> <td class="md" nowrap valign="top">void apply_lines </td> <td class="md" valign="top">( </td> - <td class="mdname1" valign="top" nowrap> </td> + <td class="md" nowrap valign="top">const int </td> + <td class="mdname1" valign="top" nowrap> <em>What</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> @@ -422,7 +434,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00721">Server::AddZL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00756">Server::DelELine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00683">Server::DelELine()</a>. </td> </tr> </table> <a class="anchor" name="del_5Fgline_28const_20char_20_2Ahostmask_29"></a><!-- doxytag: member="xline.h::del_gline" ref="del_5Fgline_28const_20char_20_2Ahostmask_29" args="(const char *hostmask)" --><p> @@ -452,7 +464,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00756">Server::DelEL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00736">Server::DelGLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00663">Server::DelGLine()</a>. </td> </tr> </table> <a class="anchor" name="del_5Fkline_28const_20char_20_2Ahostmask_29"></a><!-- doxytag: member="xline.h::del_kline" ref="del_5Fkline_28const_20char_20_2Ahostmask_29" args="(const char *hostmask)" --><p> @@ -482,7 +494,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00736">Server::DelGL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00751">Server::DelKLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00678">Server::DelKLine()</a>. </td> </tr> </table> <a class="anchor" name="del_5Fqline_28const_20char_20_2Anickname_29"></a><!-- doxytag: member="xline.h::del_qline" ref="del_5Fqline_28const_20char_20_2Anickname_29" args="(const char *nickname)" --><p> @@ -512,7 +524,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00751">Server::DelKL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00741">Server::DelQLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00668">Server::DelQLine()</a>. </td> </tr> </table> <a class="anchor" name="del_5Fzline_28const_20char_20_2Aipaddr_29"></a><!-- doxytag: member="xline.h::del_zline" ref="del_5Fzline_28const_20char_20_2Aipaddr_29" args="(const char *ipaddr)" --><p> @@ -542,7 +554,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00741">Server::DelQL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00746">Server::DelZLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00673">Server::DelZLine()</a>. </td> </tr> </table> <a class="anchor" name="eline_5Fset_5Fcreation_5Ftime_28char_20_2Ahost_2C_20time_5Ft_20create_5Ftime_29"></a><!-- doxytag: member="xline.h::eline_set_creation_time" ref="eline_5Fset_5Fcreation_5Ftime_28char_20_2Ahost_2C_20time_5Ft_20create_5Ftime_29" args="(char *host, time_t create_time)" --><p> @@ -1083,7 +1095,133 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00746">Server::DelZL </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by +<hr><h2>Variable Documentation</h2> +<a class="anchor" name="APPLY_5FALL"></a><!-- doxytag: member="xline.h::APPLY_ALL" ref="APPLY_5FALL" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">const int <a class="el" href="xline_8h.html#APPLY_5FALL">APPLY_ALL</a> = <a class="el" href="xline_8h.html#APPLY_5FGLINES">APPLY_GLINES</a> | <a class="el" href="xline_8h.html#APPLY_5FKLINES">APPLY_KLINES</a> | <a class="el" href="xline_8h.html#APPLY_5FQLINES">APPLY_QLINES</a> | <a class="el" href="xline_8h.html#APPLY_5FZLINES">APPLY_ZLINES</a> </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="xline_8h-source.html#l00035">35</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> + </tr> +</table> +<a class="anchor" name="APPLY_5FGLINES"></a><!-- doxytag: member="xline.h::APPLY_GLINES" ref="APPLY_5FGLINES" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">const int <a class="el" href="xline_8h.html#APPLY_5FGLINES">APPLY_GLINES</a> = 1 </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="xline_8h-source.html#l00031">31</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> + </tr> +</table> +<a class="anchor" name="APPLY_5FKLINES"></a><!-- doxytag: member="xline.h::APPLY_KLINES" ref="APPLY_5FKLINES" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">const int <a class="el" href="xline_8h.html#APPLY_5FKLINES">APPLY_KLINES</a> = 2 </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="xline_8h-source.html#l00032">32</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> + </tr> +</table> +<a class="anchor" name="APPLY_5FQLINES"></a><!-- doxytag: member="xline.h::APPLY_QLINES" ref="APPLY_5FQLINES" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">const int <a class="el" href="xline_8h.html#APPLY_5FQLINES">APPLY_QLINES</a> = 4 </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="xline_8h-source.html#l00033">33</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> + </tr> +</table> +<a class="anchor" name="APPLY_5FZLINES"></a><!-- doxytag: member="xline.h::APPLY_ZLINES" ref="APPLY_5FZLINES" args="" --><p> +<table class="mdTable" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top">const int <a class="el" href="xline_8h.html#APPLY_5FZLINES">APPLY_ZLINES</a> = 8 </td> + </tr> + </table> + </td> + </tr> +</table> +<table cellspacing="5" cellpadding="0" border="0"> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="xline_8h-source.html#l00034">34</a> of file <a class="el" href="xline_8h-source.html">xline.h</a>. </td> + </tr> +</table> +<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> |