diff options
Diffstat (limited to 'docs')
181 files changed, 4386 insertions, 3102 deletions
diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3 index 9a8030ec4..bc5466d24 100644 --- a/docs/man/man3/Admin.3 +++ b/docs/man/man3/Admin.3 @@ -1,4 +1,4 @@ -.TH "Admin" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Admin" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -43,10 +43,10 @@ Definition at line 123 of file modules.h. .PP .SS "Admin::Admin (std::string name, std::string email, std::string nick)" .PP -Definition at line 304 of file modules.cpp. +Definition at line 306 of file modules.cpp. .PP .nf -304 : Name(name), Email(email), Nick(nick) { }; +306 : Name(name), Email(email), Nick(nick) { }; .fi .SH "Member Data Documentation" .PP diff --git a/docs/man/man3/BanItem.3 b/docs/man/man3/BanItem.3 index c98be4ec2..d860624f0 100644 --- a/docs/man/man3/BanItem.3 +++ b/docs/man/man3/BanItem.3 @@ -1,4 +1,4 @@ -.TH "BanItem" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "BanItem" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3 index d0f0a1d5f..1b6478571 100644 --- a/docs/man/man3/ConfigReader.3 +++ b/docs/man/man3/ConfigReader.3 @@ -1,4 +1,4 @@ -.TH "ConfigReader" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ConfigReader" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -84,239 +84,239 @@ 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 944 of file modules.h. +Definition at line 1072 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ConfigReader::ConfigReader ()" .PP -Default constructor. This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.Definition at line 762 of file modules.cpp. +Default constructor. This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.Definition at line 833 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -763 { -764 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -765 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -766 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -767 if (!this->readerror) -768 this->error = CONF_FILE_NOT_FOUND; -769 } +834 { +835 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +836 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +837 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +838 if (!this->readerror) +839 this->error = CONF_FILE_NOT_FOUND; +840 } .fi .SS "ConfigReader::ConfigReader (std::string filename)" .PP -Overloaded constructor. This constructor initialises the ConfigReader class to read a user-specified config fileDefinition at line 781 of file modules.cpp. +Overloaded constructor. This constructor initialises the ConfigReader class to read a user-specified config fileDefinition at line 852 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -782 { -783 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -784 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -785 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -786 if (!this->readerror) -787 this->error = CONF_FILE_NOT_FOUND; -788 }; +853 { +854 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +855 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +856 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +857 if (!this->readerror) +858 this->error = CONF_FILE_NOT_FOUND; +859 }; .fi .SS "ConfigReader::~\fBConfigReader\fP ()" .PP -Default destructor. This method destroys the ConfigReader class.Definition at line 772 of file modules.cpp. +Default destructor. This method destroys the ConfigReader class.Definition at line 843 of file modules.cpp. .PP References cache, and errorlog. .PP .nf -773 { -774 if (this->cache) -775 delete this->cache; -776 if (this->errorlog) -777 delete this->errorlog; -778 } +844 { +845 if (this->cache) +846 delete this->cache; +847 if (this->errorlog) +848 delete this->errorlog; +849 } .fi .SH "Member Function Documentation" .PP .SS "void ConfigReader::DumpErrors (bool bail, \fBuserrec\fP * user)" .PP -Dumps the list of errors in a config file to an output location. 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.Definition at line 859 of file modules.cpp. +Dumps the list of errors in a config file to an output location. 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.Definition at line 930 of file modules.cpp. .PP References errorlog, connection::fd, and userrec::nick. .PP .nf -860 { -861 if (bail) -862 { -863 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); -864 exit(0); -865 } -866 else -867 { -868 char dataline[1024]; -869 if (user) -870 { -871 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); -872 while (!errorlog->eof()) -873 { -874 errorlog->getline(dataline,1024); -875 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); -876 } -877 } -878 else -879 { -880 WriteOpers('There were errors in the configuration file:',user->nick); -881 while (!errorlog->eof()) -882 { -883 errorlog->getline(dataline,1024); -884 WriteOpers(dataline); -885 } -886 } -887 return; -888 } -889 } +931 { +932 if (bail) +933 { +934 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); +935 exit(0); +936 } +937 else +938 { +939 char dataline[1024]; +940 if (user) +941 { +942 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); +943 while (!errorlog->eof()) +944 { +945 errorlog->getline(dataline,1024); +946 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); +947 } +948 } +949 else +950 { +951 WriteOpers('There were errors in the configuration file:',user->nick); +952 while (!errorlog->eof()) +953 { +954 errorlog->getline(dataline,1024); +955 WriteOpers(dataline); +956 } +957 } +958 return; +959 } +960 } .fi .SS "int ConfigReader::Enumerate (std::string tag)" .PP -Counts the number of times a given tag appears in the config file. 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.Definition at line 892 of file modules.cpp. +Counts the number of times a given tag appears in the config file. 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.Definition at line 963 of file modules.cpp. .PP References cache. .PP .nf -893 { -894 return EnumConf(cache,tag.c_str()); -895 } +964 { +965 return EnumConf(cache,tag.c_str()); +966 } .fi .SS "int ConfigReader::EnumerateValues (std::string tag, int index)" .PP -Returns the number of items within a tag. 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.Definition at line 897 of file modules.cpp. +Returns the number of items within a tag. 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.Definition at line 968 of file modules.cpp. .PP References cache. .PP .nf -898 { -899 return EnumValues(cache, tag.c_str(), index); -900 } +969 { +970 return EnumValues(cache, tag.c_str(), index); +971 } .fi .SS "long ConfigReader::GetError ()" .PP -Returns the last error to occur. 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.Definition at line 852 of file modules.cpp. +Returns the last error to occur. 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.Definition at line 923 of file modules.cpp. .PP References error. .PP .nf -853 { -854 long olderr = this->error; -855 this->error = 0; -856 return olderr; -857 } +924 { +925 long olderr = this->error; +926 this->error = 0; +927 return olderr; +928 } .fi .SS "bool ConfigReader::ReadFlag (std::string tag, std::string name, int index)" .PP -Retrieves a boolean value from the config file. 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.Definition at line 806 of file modules.cpp. +Retrieves a boolean value from the config file. 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.Definition at line 877 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -807 { -808 char val[MAXBUF]; -809 char t[MAXBUF]; -810 char n[MAXBUF]; -811 strlcpy(t,tag.c_str(),MAXBUF); -812 strlcpy(n,name.c_str(),MAXBUF); -813 int res = ReadConf(cache,t,n,index,val); -814 if (!res) -815 { -816 this->error = CONF_VALUE_NOT_FOUND; -817 return false; -818 } -819 std::string s = val; -820 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); -821 } +878 { +879 char val[MAXBUF]; +880 char t[MAXBUF]; +881 char n[MAXBUF]; +882 strlcpy(t,tag.c_str(),MAXBUF); +883 strlcpy(n,name.c_str(),MAXBUF); +884 int res = ReadConf(cache,t,n,index,val); +885 if (!res) +886 { +887 this->error = CONF_VALUE_NOT_FOUND; +888 return false; +889 } +890 std::string s = val; +891 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); +892 } .fi .SS "long ConfigReader::ReadInteger (std::string tag, std::string name, int index, bool needs_unsigned)" .PP -Retrieves an integer value from the config file. 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_UNSIGNEDDefinition at line 823 of file modules.cpp. +Retrieves an integer value from the config file. 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_UNSIGNEDDefinition at line 894 of file modules.cpp. .PP References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error. .PP .nf -824 { -825 char val[MAXBUF]; -826 char t[MAXBUF]; -827 char n[MAXBUF]; -828 strlcpy(t,tag.c_str(),MAXBUF); -829 strlcpy(n,name.c_str(),MAXBUF); -830 int res = ReadConf(cache,t,n,index,val); -831 if (!res) -832 { -833 this->error = CONF_VALUE_NOT_FOUND; -834 return 0; -835 } -836 for (int i = 0; i < strlen(val); i++) -837 { -838 if (!isdigit(val[i])) -839 { -840 this->error = CONF_NOT_A_NUMBER; -841 return 0; -842 } -843 } -844 if ((needs_unsigned) && (atoi(val)<0)) -845 { -846 this->error = CONF_NOT_UNSIGNED; -847 return 0; -848 } -849 return atoi(val); -850 } +895 { +896 char val[MAXBUF]; +897 char t[MAXBUF]; +898 char n[MAXBUF]; +899 strlcpy(t,tag.c_str(),MAXBUF); +900 strlcpy(n,name.c_str(),MAXBUF); +901 int res = ReadConf(cache,t,n,index,val); +902 if (!res) +903 { +904 this->error = CONF_VALUE_NOT_FOUND; +905 return 0; +906 } +907 for (int i = 0; i < strlen(val); i++) +908 { +909 if (!isdigit(val[i])) +910 { +911 this->error = CONF_NOT_A_NUMBER; +912 return 0; +913 } +914 } +915 if ((needs_unsigned) && (atoi(val)<0)) +916 { +917 this->error = CONF_NOT_UNSIGNED; +918 return 0; +919 } +920 return atoi(val); +921 } .fi .SS "std::string ConfigReader::ReadValue (std::string tag, std::string name, int index)" .PP -Retrieves a value from the config file. 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.Definition at line 790 of file modules.cpp. +Retrieves a value from the config file. 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.Definition at line 861 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -791 { -792 char val[MAXBUF]; -793 char t[MAXBUF]; -794 char n[MAXBUF]; -795 strlcpy(t,tag.c_str(),MAXBUF); -796 strlcpy(n,name.c_str(),MAXBUF); -797 int res = ReadConf(cache,t,n,index,val); -798 if (!res) -799 { -800 this->error = CONF_VALUE_NOT_FOUND; -801 return ''; -802 } -803 return std::string(val); -804 } +862 { +863 char val[MAXBUF]; +864 char t[MAXBUF]; +865 char n[MAXBUF]; +866 strlcpy(t,tag.c_str(),MAXBUF); +867 strlcpy(n,name.c_str(),MAXBUF); +868 int res = ReadConf(cache,t,n,index,val); +869 if (!res) +870 { +871 this->error = CONF_VALUE_NOT_FOUND; +872 return ''; +873 } +874 return std::string(val); +875 } .fi .SS "bool ConfigReader::Verify ()" .PP -Returns true if a config file is valid. This method is partially implemented and will only return false if the config file does not exist or could not be opened.Definition at line 902 of file modules.cpp. +Returns true if a config file is valid. This method is partially implemented and will only return false if the config file does not exist or could not be opened.Definition at line 973 of file modules.cpp. .PP References readerror. .PP .nf -903 { -904 return this->readerror; -905 } +974 { +975 return this->readerror; +976 } .fi .SH "Member Data Documentation" .PP .SS "std::stringstream* \fBConfigReader::cache\fP\fC [protected]\fP" .PP -The contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed). It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.Definition at line 952 of file modules.h. +The contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed). It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.Definition at line 1080 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 957 of file modules.h. +Definition at line 1085 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 953 of file modules.h. +Definition at line 1081 of file modules.h. .PP Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader(). .SS "bool \fBConfigReader::readerror\fP\fC [protected]\fP" .PP -Used to store errors. Definition at line 956 of file modules.h. +Used to store errors. Definition at line 1084 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 eed17b2c2..ed5ed3e81 100644 --- a/docs/man/man3/ConnectClass.3 +++ b/docs/man/man3/ConnectClass.3 @@ -1,4 +1,4 @@ -.TH "ConnectClass" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ConnectClass" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/DNS.3 b/docs/man/man3/DNS.3 index b45e7b7a3..8c44aa268 100644 --- a/docs/man/man3/DNS.3 +++ b/docs/man/man3/DNS.3 @@ -1,4 +1,4 @@ -.TH "DNS" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "DNS" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ELine.3 b/docs/man/man3/ELine.3 index 0454ad266..e7d6c5374 100644 --- a/docs/man/man3/ELine.3 +++ b/docs/man/man3/ELine.3 @@ -1,4 +1,4 @@ -.TH "ELine" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ELine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3 index 99fb1e77b..a95a85bdf 100644 --- a/docs/man/man3/ExemptItem.3 +++ b/docs/man/man3/ExemptItem.3 @@ -1,4 +1,4 @@ -.TH "ExemptItem" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ExemptItem" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExtMode.3 b/docs/man/man3/ExtMode.3 index f22da5c54..8df2a5c5f 100644 --- a/docs/man/man3/ExtMode.3 +++ b/docs/man/man3/ExtMode.3 @@ -1,4 +1,4 @@ -.TH "ExtMode" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ExtMode" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -41,41 +41,41 @@ Inherits \fBclassbase\fP. .PP .SS "ExtMode::ExtMode (char mc, int ty, bool oper, int p_on, int p_off)\fC [inline]\fP" .PP -Definition at line 199 of file modules.cpp. +Definition at line 201 of file modules.cpp. .PP References modechar, needsoper, params_when_off, params_when_on, and type. .PP .nf -199 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; +201 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; .fi .SH "Member Data Documentation" .PP .SS "bool \fBExtMode::list\fP" .PP -Definition at line 198 of file modules.cpp. +Definition at line 200 of file modules.cpp. .SS "char \fBExtMode::modechar\fP" .PP -Definition at line 193 of file modules.cpp. +Definition at line 195 of file modules.cpp. .PP Referenced by ExtMode(). .SS "bool \fBExtMode::needsoper\fP" .PP -Definition at line 197 of file modules.cpp. +Definition at line 199 of file modules.cpp. .PP Referenced by ExtMode(). .SS "int \fBExtMode::params_when_off\fP" .PP -Definition at line 196 of file modules.cpp. +Definition at line 198 of file modules.cpp. .PP Referenced by ExtMode(). .SS "int \fBExtMode::params_when_on\fP" .PP -Definition at line 195 of file modules.cpp. +Definition at line 197 of file modules.cpp. .PP Referenced by ExtMode(). .SS "int \fBExtMode::type\fP" .PP -Definition at line 194 of file modules.cpp. +Definition at line 196 of file modules.cpp. .PP Referenced by ExtMode(). diff --git a/docs/man/man3/Extensible.3 b/docs/man/man3/Extensible.3 index 65703e1f2..94ffff5f8 100644 --- a/docs/man/man3/Extensible.3 +++ b/docs/man/man3/Extensible.3 @@ -1,4 +1,4 @@ -.TH "Extensible" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Extensible" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3 index b09240cc6..6bea2ee1e 100644 --- a/docs/man/man3/FileReader.3 +++ b/docs/man/man3/FileReader.3 @@ -1,4 +1,4 @@ -.TH "FileReader" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "FileReader" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -57,100 +57,100 @@ 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 1033 of file modules.h. +Definition at line 1161 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "FileReader::FileReader ()" .PP -Default constructor. This method does not load any file into memory, you must use the LoadFile method after constructing the class this way.Definition at line 915 of file modules.cpp. +Default constructor. This method does not load any file into memory, you must use the LoadFile method after constructing the class this way.Definition at line 986 of file modules.cpp. .PP .nf -916 { -917 } +987 { +988 } .fi .SS "FileReader::FileReader (std::string filename)" .PP -Secondary constructor. 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.Definition at line 908 of file modules.cpp. +Secondary constructor. 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.Definition at line 979 of file modules.cpp. .PP References fc, and file_cache. .PP .nf -909 { -910 file_cache c; -911 readfile(c,filename.c_str()); -912 this->fc = c; -913 } +980 { +981 file_cache c; +982 readfile(c,filename.c_str()); +983 this->fc = c; +984 } .fi .SS "FileReader::~\fBFileReader\fP ()" .PP -Default destructor. This deletes the memory allocated to the file.Definition at line 927 of file modules.cpp. +Default destructor. This deletes the memory allocated to the file.Definition at line 998 of file modules.cpp. .PP .nf -928 { -929 } +999 { +1000 } .fi .SH "Member Function Documentation" .PP .SS "bool FileReader::Exists ()" .PP -Returns true if the file exists This function will return false if the file could not be opened. Definition at line 931 of file modules.cpp. +Returns true if the file exists This function will return false if the file could not be opened. Definition at line 1002 of file modules.cpp. .PP References fc. .PP .nf -932 { -933 if (fc.size() == 0) -934 { -935 return(false); -936 } -937 else -938 { -939 return(true); -940 } -941 } +1003 { +1004 if (fc.size() == 0) +1005 { +1006 return(false); +1007 } +1008 else +1009 { +1010 return(true); +1011 } +1012 } .fi .SS "int FileReader::FileSize ()" .PP -Returns the size of the file in lines. 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.Definition at line 950 of file modules.cpp. +Returns the size of the file in lines. 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.Definition at line 1021 of file modules.cpp. .PP References fc. .PP .nf -951 { -952 return fc.size(); -953 } +1022 { +1023 return fc.size(); +1024 } .fi .SS "std::string FileReader::GetLine (int x)" .PP -Retrieve one line from the file. 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.Definition at line 943 of file modules.cpp. +Retrieve one line from the file. 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.Definition at line 1014 of file modules.cpp. .PP References fc. .PP .nf -944 { -945 if ((x<0) || (x>fc.size())) -946 return ''; -947 return fc[x]; -948 } +1015 { +1016 if ((x<0) || (x>fc.size())) +1017 return ''; +1018 return fc[x]; +1019 } .fi .SS "void FileReader::LoadFile (std::string filename)" .PP -Used to load a file. 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.Definition at line 919 of file modules.cpp. +Used to load a file. 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.Definition at line 990 of file modules.cpp. .PP References fc, and file_cache. .PP .nf -920 { -921 file_cache c; -922 readfile(c,filename.c_str()); -923 this->fc = c; -924 } +991 { +992 file_cache c; +993 readfile(c,filename.c_str()); +994 this->fc = c; +995 } .fi .SH "Member Data Documentation" .PP .SS "\fBfile_cache\fP \fBFileReader::fc\fP\fC [private]\fP" .PP -Definition at line 1035 of file modules.h. +Definition at line 1163 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 ab03c1448..0c263effd 100644 --- a/docs/man/man3/GLine.3 +++ b/docs/man/man3/GLine.3 @@ -1,4 +1,4 @@ -.TH "GLine" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "GLine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3 index eb277802b..1a74b43f1 100644 --- a/docs/man/man3/HostItem.3 +++ b/docs/man/man3/HostItem.3 @@ -1,4 +1,4 @@ -.TH "HostItem" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "HostItem" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/InAddr_HashComp.3 b/docs/man/man3/InAddr_HashComp.3 index 0e0630d21..a0b6759c0 100644 --- a/docs/man/man3/InAddr_HashComp.3 +++ b/docs/man/man3/InAddr_HashComp.3 @@ -1,4 +1,4 @@ -.TH "InAddr_HashComp" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "InAddr_HashComp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -17,18 +17,18 @@ InAddr_HashComp \- .PP .SS "bool InAddr_HashComp::operator() (const in_addr & s1, const in_addr & s2) const\fC [inline]\fP" .PP -Definition at line 159 of file modules.cpp. +Definition at line 161 of file modules.cpp. .PP .nf -160 { -161 size_t q; -162 size_t p; -163 -164 memcpy(&q,&s1,sizeof(size_t)); -165 memcpy(&p,&s2,sizeof(size_t)); -166 -167 return (q == p); -168 } +162 { +163 size_t q; +164 size_t p; +165 +166 memcpy(&q,&s1,sizeof(size_t)); +167 memcpy(&p,&s2,sizeof(size_t)); +168 +169 return (q == p); +170 } .fi diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3 index ef09e83a1..187472a3c 100644 --- a/docs/man/man3/InviteItem.3 +++ b/docs/man/man3/InviteItem.3 @@ -1,4 +1,4 @@ -.TH "InviteItem" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "InviteItem" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Invited.3 b/docs/man/man3/Invited.3 index 9f8acb58e..be48e1d72 100644 --- a/docs/man/man3/Invited.3 +++ b/docs/man/man3/Invited.3 @@ -1,4 +1,4 @@ -.TH "Invited" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Invited" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/KLine.3 b/docs/man/man3/KLine.3 index e4b8175d8..42eb9f1dd 100644 --- a/docs/man/man3/KLine.3 +++ b/docs/man/man3/KLine.3 @@ -1,4 +1,4 @@ -.TH "KLine" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "KLine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3 index 51821f88b..6e62ab564 100644 --- a/docs/man/man3/ModeParameter.3 +++ b/docs/man/man3/ModeParameter.3 @@ -1,4 +1,4 @@ -.TH "ModeParameter" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModeParameter" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3 index 5a2bb7733..9acfc10ce 100644 --- a/docs/man/man3/Module.3 +++ b/docs/man/man3/Module.3 @@ -1,4 +1,4 @@ -.TH "Module" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Module" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -36,6 +36,10 @@ Inherits \fBclassbase\fP. .br .RI "\fICalled when a user quits. \fP" .ti -1c +.RI "virtual void \fBOnUserDisconnect\fP (\fBuserrec\fP *user)" +.br +.RI "\fICalled whenever a user's socket is closed. \fP" +.ti -1c .RI "virtual void \fBOnUserJoin\fP (\fBuserrec\fP *user, \fBchanrec\fP *channel)" .br .RI "\fICalled when a user joins a channel. \fP" @@ -191,6 +195,14 @@ Inherits \fBclassbase\fP. .RI "virtual int \fBOnMeshToken\fP (char token, \fBstring_list\fP params, \fBserverrec\fP *source, \fBserverrec\fP *reply, std::string tcp_host, std::string ipaddr, int port)" .br .RI "\fICalled whenever an unknown token is received in a server to server link. \fP" +.ti -1c +.RI "virtual void \fBOnEvent\fP (\fBEvent\fP *event)" +.br +.RI "\fICalled whenever an \fBEvent\fP class is sent to all module by another module. \fP" +.ti -1c +.RI "virtual char * \fBOnRequest\fP (\fBRequest\fP *request)" +.br +.RI "\fICalled whenever a \fBRequest\fP class is sent to your module by another module. \fP" .in -1c .SH "Detailed Description" .PP @@ -198,40 +210,40 @@ 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 135 of file modules.h. +Definition at line 233 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Module::Module ()" .PP -Default constructor creates a module class. Definition at line 306 of file modules.cpp. +Default constructor creates a module class. Definition at line 361 of file modules.cpp. .PP .nf -306 { } +361 { } .fi .SS "Module::~\fBModule\fP ()\fC [virtual]\fP" .PP -Default destructor destroys a module class. Definition at line 307 of file modules.cpp. +Default destructor destroys a module class. Definition at line 362 of file modules.cpp. .PP .nf -307 { } +362 { } .fi .SH "Member Function Documentation" .PP .SS "\fBVersion\fP Module::GetVersion ()\fC [virtual]\fP" .PP -Returns the version number of a Module. The method should return a \fBVersion\fP object with its version information assigned via \fBVersion::Version\fPDefinition at line 318 of file modules.cpp. +Returns the version number of a Module. The method should return a \fBVersion\fP object with its version information assigned via \fBVersion::Version\fPDefinition at line 374 of file modules.cpp. .PP References VF_VENDOR. .PP .nf -318 { return Version(1,0,0,0,VF_VENDOR); } +374 { return Version(1,0,0,0,VF_VENDOR); } .fi .SS "void Module::On005Numeric (std::string & output)\fC [virtual]\fP" .PP -Called when a 005 numeric is about to be output. The module should modify the 005 numeric if needed to indicate its features.Definition at line 330 of file modules.cpp. +Called when a 005 numeric is about to be output. The module should modify the 005 numeric if needed to indicate its features.Definition at line 386 of file modules.cpp. .PP .nf -330 { }; +386 { }; .fi .SS "int Module::OnAccessCheck (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel, int access_type)\fC [virtual]\fP" .PP @@ -259,226 +271,249 @@ Called before an action which requires a channel privilage check. This function .br .br - Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined).Definition at line 327 of file modules.cpp. + Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined).Definition at line 383 of file modules.cpp. .PP References ACR_DEFAULT. .PP .nf -327 { return ACR_DEFAULT; }; +383 { return ACR_DEFAULT; }; .fi .SS "void Module::OnBackgroundTimer (time_t curtime)\fC [virtual]\fP" .PP -Called once every five seconds for background processing. This timer can be used to control timed features. Its period is not accurate enough to be used as a clock, but it is gauranteed to be called at least once in any five second period, directly from the main loop of the server.Definition at line 333 of file modules.cpp. +Called once every five seconds for background processing. This timer can be used to control timed features. Its period is not accurate enough to be used as a clock, but it is gauranteed to be called at least once in any five second period, directly from the main loop of the server.Definition at line 389 of file modules.cpp. .PP .nf -333 { }; +389 { }; .fi .SS "int Module::OnChangeLocalUserGECOS (\fBuserrec\fP * user, std::string newhost)\fC [virtual]\fP" .PP -Called whenever a change of a local users GECOS (fullname field) is attempted. return 1 to deny the name change, or 0 to allow it.Definition at line 347 of file modules.cpp. +Called whenever a change of a local users GECOS (fullname field) is attempted. return 1 to deny the name change, or 0 to allow it.Definition at line 403 of file modules.cpp. .PP .nf -347 { return 0; }; +403 { return 0; }; .fi .SS "int Module::OnChangeLocalUserHost (\fBuserrec\fP * user, std::string newhost)\fC [virtual]\fP" .PP -Called whenever a change of a local users displayed host is attempted. Return 1 to deny the host change, or 0 to allow it.Definition at line 346 of file modules.cpp. +Called whenever a change of a local users displayed host is attempted. Return 1 to deny the host change, or 0 to allow it.Definition at line 402 of file modules.cpp. .PP .nf -346 { return 0; }; +402 { return 0; }; .fi .SS "\fBstring_list\fP Module::OnChannelSync (\fBchanrec\fP * chan)\fC [virtual]\fP" .PP -Called during a netburst to sync channel data. This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 329 of file modules.cpp. +Called during a netburst to sync channel data. This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 385 of file modules.cpp. .PP References string_list. .PP .nf -329 { string_list empty; return empty; } +385 { string_list empty; return empty; } .fi .SS "int Module::OnCheckBan (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" .PP -Called whenever a user joins a channel, to determine if banlist checks should go ahead or not. This method will always be called for each join, wether or not the user actually matches a channel ban, and determines the outcome of an if statement around the whole section of ban checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. Definition at line 344 of file modules.cpp. +Called whenever a user joins a channel, to determine if banlist checks should go ahead or not. This method will always be called for each join, wether or not the user actually matches a channel ban, and determines the outcome of an if statement around the whole section of ban checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. Definition at line 400 of file modules.cpp. .PP .nf -344 { return 0; }; +400 { return 0; }; .fi .SS "int Module::OnCheckInvite (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" .PP -Called whenever a user joins a channel, to determine if invite checks should go ahead or not. This method will always be called for each join, wether or not the channel is actually +i, and determines the outcome of an if statement around the whole section of invite checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event.Definition at line 341 of file modules.cpp. +Called whenever a user joins a channel, to determine if invite checks should go ahead or not. This method will always be called for each join, wether or not the channel is actually +i, and determines the outcome of an if statement around the whole section of invite checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event.Definition at line 397 of file modules.cpp. .PP .nf -341 { return 0; }; +397 { return 0; }; .fi .SS "int Module::OnCheckKey (\fBuserrec\fP * user, \fBchanrec\fP * chan, std::string keygiven)\fC [virtual]\fP" .PP -Called whenever a user joins a channel, to determine if key checks should go ahead or not. This method will always be called for each join, wether or not the channel is actually +k, and determines the outcome of an if statement around the whole section of key checking code. if the user specified no key, the keygiven string will be a valid but empty value. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. Definition at line 342 of file modules.cpp. +Called whenever a user joins a channel, to determine if key checks should go ahead or not. This method will always be called for each join, wether or not the channel is actually +k, and determines the outcome of an if statement around the whole section of key checking code. if the user specified no key, the keygiven string will be a valid but empty value. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. Definition at line 398 of file modules.cpp. .PP .nf -342 { return 0; }; +398 { return 0; }; .fi .SS "int Module::OnCheckLimit (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" .PP -Called whenever a user joins a channel, to determine if channel limit checks should go ahead or not. This method will always be called for each join, wether or not the channel is actually +l, and determines the outcome of an if statement around the whole section of channel limit checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. Definition at line 343 of file modules.cpp. +Called whenever a user joins a channel, to determine if channel limit checks should go ahead or not. This method will always be called for each join, wether or not the channel is actually +l, and determines the outcome of an if statement around the whole section of channel limit checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. Definition at line 399 of file modules.cpp. .PP .nf -343 { return 0; }; +399 { return 0; }; .fi .SS "bool Module::OnCheckReady (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called to check if a user who is connecting can now be allowed to register If any modules return false for this function, the user is held in the waiting state until all modules return true. For example a module which implements ident lookups will continue to return false for a user until their ident lookup is completed. Note that the registration timeout for a user overrides these checks, if the registration timeout is reached, the user is disconnected even if modules report that the user is not ready to connect.Definition at line 336 of file modules.cpp. +Called to check if a user who is connecting can now be allowed to register If any modules return false for this function, the user is held in the waiting state until all modules return true. For example a module which implements ident lookups will continue to return false for a user until their ident lookup is completed. Note that the registration timeout for a user overrides these checks, if the registration timeout is reached, the user is disconnected even if modules report that the user is not ready to connect.Definition at line 392 of file modules.cpp. +.PP +.nf +392 { return true; }; +.fi +.SS "void Module::OnEvent (\fBEvent\fP * event)\fC [virtual]\fP" +.PP +Called whenever an \fBEvent\fP class is sent to all module by another module. Please see the documentation of \fBEvent::Send()\fP for further information. The \fBEvent\fP sent can always be assumed to be non-NULL, you should *always* check the value of \fBEvent::GetEventID()\fP before doing anything to the event data, and you should *not* change the event data in any way!Definition at line 406 of file modules.cpp. .PP .nf -336 { return true; }; +406 { return; }; .fi .SS "int Module::OnExtendedMode (\fBuserrec\fP * user, void * target, char modechar, int type, bool mode_on, \fBstring_list\fP & params)\fC [virtual]\fP" .PP -Called whenever an extended mode is to be processed. The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with \fBServer::AddExtendedMode\fP If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it.Definition at line 317 of file modules.cpp. +Called whenever an extended mode is to be processed. The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with \fBServer::AddExtendedMode\fP If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it.Definition at line 373 of file modules.cpp. .PP .nf -317 { return false; } +373 { return false; } .fi .SS "void Module::OnInfo (\fBuserrec\fP * user)\fC [virtual]\fP" .PP Called whenever a user types /INFO. The userrec will contain the information of the user who typed the command. Modules may use this method to output their own credits in /INFO (which is the ircd's version of an about box). It is purposefully not possible to modify any info that has already been output, or halt the list. You must write a 371 numeric to the user, containing your info in the following format: .PP -<nick> :information hereDefinition at line 320 of file modules.cpp. +<nick> :information hereDefinition at line 376 of file modules.cpp. .PP .nf -320 { }; +376 { }; .fi .SS "int Module::OnKill (\fBuserrec\fP * source, \fBuserrec\fP * dest, std::string reason)\fC [virtual]\fP" .PP -Called when a client is disconnected by KILL. If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers. If you do so youre risking race conditions, desyncs and worse!Definition at line 331 of file modules.cpp. +Called when a client is disconnected by KILL. If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers. If you do so youre risking race conditions, desyncs and worse!Definition at line 387 of file modules.cpp. .PP .nf -331 { return 0; }; +387 { return 0; }; .fi .SS "void Module::OnLoadModule (\fBModule\fP * mod, std::string name)\fC [virtual]\fP" .PP -Called whenever a module is loaded. mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded 'm_killwidgets.so' with 'm_makewidgets.so'. It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module).Definition at line 332 of file modules.cpp. +Called whenever a module is loaded. mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded 'm_killwidgets.so' with 'm_makewidgets.so'. It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module).Definition at line 388 of file modules.cpp. .PP .nf -332 { }; +388 { }; .fi .SS "int Module::OnLocalTopicChange (\fBuserrec\fP * user, \fBchanrec\fP * chan, std::string topic)\fC [virtual]\fP" .PP -Called whenever a topic is changed by a local user. Return 1 to deny the topic change, or 0 to allow it.Definition at line 348 of file modules.cpp. +Called whenever a topic is changed by a local user. Return 1 to deny the topic change, or 0 to allow it.Definition at line 404 of file modules.cpp. .PP .nf -348 { return 0; }; +404 { return 0; }; .fi .SS "int Module::OnMeshToken (char token, \fBstring_list\fP params, \fBserverrec\fP * source, \fBserverrec\fP * reply, std::string tcp_host, std::string ipaddr, int port)\fC [virtual]\fP" .PP -Called whenever an unknown token is received in a server to server link. The token value is the unknown token -- please check that no other modules are using the token that you use. Returning 1 supresses the 'unknown token type' error which is usually sent to all opers with +s. The params list is a list of parameters, and if any parameters start with a colon (:) it is treated as the whole of the last parameter, identical to how RFC messages are handled. source is the sender of the message, and reply is what should be replied to for a unicast message. Note that there are not many messages in the mesh protocol which require unicast messaging. tcp_host is the server name as a string, ipaddr is its ip address in dotted decimal notation and port is the port number it is using.Definition at line 349 of file modules.cpp. +Called whenever an unknown token is received in a server to server link. The token value is the unknown token -- please check that no other modules are using the token that you use. Returning 1 supresses the 'unknown token type' error which is usually sent to all opers with +s. The params list is a list of parameters, and if any parameters start with a colon (:) it is treated as the whole of the last parameter, identical to how RFC messages are handled. source is the sender of the message, and reply is what should be replied to for a unicast message. Note that there are not many messages in the mesh protocol which require unicast messaging. tcp_host is the server name as a string, ipaddr is its ip address in dotted decimal notation and port is the port number it is using.Definition at line 405 of file modules.cpp. .PP .nf -349 { return 0; }; +405 { return 0; }; .fi .SS "void Module::OnOper (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called whenever a user opers locally. The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.Definition at line 319 of file modules.cpp. +Called whenever a user opers locally. The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.Definition at line 375 of file modules.cpp. .PP .nf -319 { }; +375 { }; .fi .SS "void Module::OnPacketReceive (std::string & data, std::string serv)\fC [virtual]\fP" .PP -Called after a packet is received from another irc server. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd.Definition at line 313 of file modules.cpp. +Called after a packet is received from another irc server. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd.Definition at line 369 of file modules.cpp. .PP .nf -313 { } +369 { } .fi .SS "void Module::OnPacketTransmit (std::string & data, std::string serv)\fC [virtual]\fP" .PP -Called before a packet is transmitted across the irc network between two irc servers. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.Definition at line 312 of file modules.cpp. +Called before a packet is transmitted across the irc network between two irc servers. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.Definition at line 368 of file modules.cpp. .PP .nf -312 { } +368 { } .fi .SS "int Module::OnPreCommand (std::string command, char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called whenever any command is about to be executed. This event occurs for all registered commands, wether they are registered in the core, or another module, but it will not occur for invalid commands (e.g. ones which do not exist within the command table). By returning 1 from this method you may prevent the command being executed. If you do this, no output is created by the core, and it is down to your module to produce any output neccessary. Note that unless you return 1, you should not destroy any structures (e.g. by using \fBServer::QuitUser\fP) otherwise when the command's handler function executes after your method returns, it will be passed an invalid pointer to the user object and crash!)Definition at line 335 of file modules.cpp. +Called whenever any command is about to be executed. This event occurs for all registered commands, wether they are registered in the core, or another module, but it will not occur for invalid commands (e.g. ones which do not exist within the command table). By returning 1 from this method you may prevent the command being executed. If you do this, no output is created by the core, and it is down to your module to produce any output neccessary. Note that unless you return 1, you should not destroy any structures (e.g. by using \fBServer::QuitUser\fP) otherwise when the command's handler function executes after your method returns, it will be passed an invalid pointer to the user object and crash!)Definition at line 391 of file modules.cpp. .PP .nf -335 { return 0; }; +391 { return 0; }; .fi .SS "int Module::OnRawMode (\fBuserrec\fP * user, \fBchanrec\fP * chan, char mode, std::string param, bool adding, int pcnt)\fC [virtual]\fP" .PP -Called whenever a mode character is processed. Return 1 from this function to block the mode character from being processed entirely, so that you may perform your own code instead. Note that this method allows you to override modes defined by other modes, but this is NOT RECOMMENDED!Definition at line 340 of file modules.cpp. +Called whenever a mode character is processed. Return 1 from this function to block the mode character from being processed entirely, so that you may perform your own code instead. Note that this method allows you to override modes defined by other modes, but this is NOT RECOMMENDED!Definition at line 396 of file modules.cpp. .PP .nf -340 { return 0; }; +396 { return 0; }; .fi .SS "void Module::OnRehash ()\fC [virtual]\fP" .PP -Called on rehash. This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application.Definition at line 314 of file modules.cpp. +Called on rehash. This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application.Definition at line 370 of file modules.cpp. .PP .nf -314 { } +370 { } +.fi +.SS "char * Module::OnRequest (\fBRequest\fP * request)\fC [virtual]\fP" +.PP +Called whenever a \fBRequest\fP class is sent to your module by another module. Please see the documentation of \fBRequest::Send()\fP for further information. The \fBRequest\fP sent can always be assumed to be non-NULL, you should not change the request object or its data. Your method may return arbitary data in the char* result which the requesting module may be able to use for pre-determined purposes (e.g. the results of an SQL query, etc).Definition at line 407 of file modules.cpp. +.PP +Referenced by Request::Send(). +.PP +.nf +407 { return NULL; }; .fi .SS "void Module::OnSendList (\fBuserrec\fP * user, \fBchanrec\fP * channel, char mode)\fC [virtual]\fP" .PP -Called whenever a list is needed for a listmode. For example, when a /MODE #channel +b (without any other parameters) is called, if a module was handling +b this function would be called. The function can then output any lists it wishes to. Please note that all modules will see all mode characters to provide the ability to extend each other, so please only output a list if the mode character given matches the one(s) you want to handle.Definition at line 334 of file modules.cpp. +Called whenever a list is needed for a listmode. For example, when a /MODE #channel +b (without any other parameters) is called, if a module was handling +b this function would be called. The function can then output any lists it wishes to. Please note that all modules will see all mode characters to provide the ability to extend each other, so please only output a list if the mode character given matches the one(s) you want to handle.Definition at line 390 of file modules.cpp. .PP .nf -334 { }; +390 { }; .fi .SS "void Module::OnServerRaw (std::string & raw, bool inbound, \fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called when a raw command is transmitted or received. This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter 'raw'. If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets.Definition at line 315 of file modules.cpp. +Called when a raw command is transmitted or received. This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter 'raw'. If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets.Definition at line 371 of file modules.cpp. .PP .nf -315 { } +371 { } .fi .SS "void Module::OnStats (char symbol)\fC [virtual]\fP" .PP -Called on all /STATS commands This method is triggered for all /STATS use, including stats symbols handled by the core. Definition at line 345 of file modules.cpp. +Called on all /STATS commands This method is triggered for all /STATS use, including stats symbols handled by the core. Definition at line 401 of file modules.cpp. .PP .nf -345 { }; +401 { }; .fi .SS "void Module::OnUserConnect (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called when a user connects. The details of the connecting user are available to you in the parameter userrec *userDefinition at line 308 of file modules.cpp. +Called when a user connects. The details of the connecting user are available to you in the parameter userrec *userDefinition at line 363 of file modules.cpp. +.PP +.nf +363 { } +.fi +.SS "void Module::OnUserDisconnect (\fBuserrec\fP * user)\fC [virtual]\fP" +.PP +Called whenever a user's socket is closed. The details of the exiting user are available to you in the parameter userrec *user This event is called for all users, registered or not, as a cleanup method for modules which might assign resources to user, such as dns lookups, objects and sockets.Definition at line 365 of file modules.cpp. .PP .nf -308 { } +365 { } .fi .SS "void Module::OnUserJoin (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP" .PP -Called when a user joins a channel. The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channelDefinition at line 310 of file modules.cpp. +Called when a user joins a channel. The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channelDefinition at line 366 of file modules.cpp. .PP .nf -310 { } +366 { } .fi .SS "void Module::OnUserKick (\fBuserrec\fP * source, \fBuserrec\fP * user, \fBchanrec\fP * chan, std::string reason)\fC [virtual]\fP" .PP -Called whenever a user is kicked. If this method is called, the kick is already underway and cannot be prevented, so to prevent a kick, please use \fBModule::OnUserPreKick\fP instead of this method.Definition at line 339 of file modules.cpp. +Called whenever a user is kicked. If this method is called, the kick is already underway and cannot be prevented, so to prevent a kick, please use \fBModule::OnUserPreKick\fP instead of this method.Definition at line 395 of file modules.cpp. .PP .nf -339 { }; +395 { }; .fi .SS "void Module::OnUserPart (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP" .PP -Called when a user parts a channel. The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channelDefinition at line 311 of file modules.cpp. +Called when a user parts a channel. The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channelDefinition at line 367 of file modules.cpp. .PP .nf -311 { } +367 { } .fi .SS "void Module::OnUserPostNick (\fBuserrec\fP * user, std::string oldnick)\fC [virtual]\fP" .PP -Called after any nickchange, local or remote. This can be used to track users after nickchanges have been applied. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). Because this method is called after the nickchange is taken place, no return values are possible to indicate forbidding of the nick change. Use OnUserPreNick for this. Definition at line 326 of file modules.cpp. +Called after any nickchange, local or remote. This can be used to track users after nickchanges have been applied. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). Because this method is called after the nickchange is taken place, no return values are possible to indicate forbidding of the nick change. Use OnUserPreNick for this. Definition at line 382 of file modules.cpp. .PP .nf -326 { }; +382 { }; .fi .SS "int Module::OnUserPreInvite (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel)\fC [virtual]\fP" .PP -Called whenever a user is about to invite another user into a channel, before any processing is done. Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels.Definition at line 322 of file modules.cpp. +Called whenever a user is about to invite another user into a channel, before any processing is done. Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels.Definition at line 378 of file modules.cpp. .PP .nf -322 { return 0; }; +378 { return 0; }; .fi .SS "int Module::OnUserPreJoin (\fBuserrec\fP * user, \fBchanrec\fP * chan, const char * cname)\fC [virtual]\fP" .PP @@ -486,68 +521,68 @@ Called whenever a user is about to join a channel, before any processing is done .PP IMPORTANT NOTE! .PP -If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.Definition at line 316 of file modules.cpp. +If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.Definition at line 372 of file modules.cpp. .PP .nf -316 { return 0; } +372 { return 0; } .fi .SS "int Module::OnUserPreKick (\fBuserrec\fP * source, \fBuserrec\fP * user, \fBchanrec\fP * chan, std::string reason)\fC [virtual]\fP" .PP -Called whenever a user is about to be kicked. Returning a value of 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. Definition at line 338 of file modules.cpp. +Called whenever a user is about to be kicked. Returning a value of 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. Definition at line 394 of file modules.cpp. .PP .nf -338 { return 0; }; +394 { return 0; }; .fi .SS "int Module::OnUserPreMessage (\fBuserrec\fP * user, void * dest, int target_type, std::string & text)\fC [virtual]\fP" .PP -Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done. Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.Definition at line 323 of file modules.cpp. +Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done. Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.Definition at line 379 of file modules.cpp. .PP .nf -323 { return 0; }; +379 { return 0; }; .fi .SS "int Module::OnUserPreNick (\fBuserrec\fP * user, std::string newnick)\fC [virtual]\fP" .PP -Called before any nickchange, local or remote. This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.Definition at line 325 of file modules.cpp. +Called before any nickchange, local or remote. This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.Definition at line 381 of file modules.cpp. .PP .nf -325 { return 0; }; +381 { return 0; }; .fi .SS "int Module::OnUserPreNotice (\fBuserrec\fP * user, void * dest, int target_type, std::string & text)\fC [virtual]\fP" .PP -Called whenever a user is about to NOTICE A user or a channel, before any processing is done. Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.Definition at line 324 of file modules.cpp. +Called whenever a user is about to NOTICE A user or a channel, before any processing is done. Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.Definition at line 380 of file modules.cpp. .PP .nf -324 { return 0; }; +380 { return 0; }; .fi .SS "void Module::OnUserQuit (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called when a user quits. The details of the exiting user are available to you in the parameter userrec *userDefinition at line 309 of file modules.cpp. +Called when a user quits. The details of the exiting user are available to you in the parameter userrec *user This event is only called when the user is fully registered when they quit. To catch raw disconnections, use the OnUserDisconnect method.Definition at line 364 of file modules.cpp. .PP .nf -309 { } +364 { } .fi .SS "void Module::OnUserRegister (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called whenever a user is about to register their connection (e.g. before the user is sent the MOTD etc). Modules can use this method if they are performing a function which must be done before the actual connection is completed (e.g. ident lookups, dnsbl lookups, etc). Note that you should NOT delete the user record here by causing a disconnection! Use OnUserConnect for that instead.Definition at line 337 of file modules.cpp. +Called whenever a user is about to register their connection (e.g. before the user is sent the MOTD etc). Modules can use this method if they are performing a function which must be done before the actual connection is completed (e.g. ident lookups, dnsbl lookups, etc). Note that you should NOT delete the user record here by causing a disconnection! Use OnUserConnect for that instead.Definition at line 393 of file modules.cpp. .PP .nf -337 { }; +393 { }; .fi .SS "\fBstring_list\fP Module::OnUserSync (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called during a netburst to sync user data. This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 328 of file modules.cpp. +Called during a netburst to sync user data. This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 384 of file modules.cpp. .PP References string_list. .PP .nf -328 { string_list empty; return empty; } +384 { string_list empty; return empty; } .fi .SS "void Module::OnWhois (\fBuserrec\fP * source, \fBuserrec\fP * dest)\fC [virtual]\fP" .PP -Called whenever a /WHOIS is performed on a local user. The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.Definition at line 321 of file modules.cpp. +Called whenever a /WHOIS is performed on a local user. The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.Definition at line 377 of file modules.cpp. .PP .nf -321 { }; +377 { }; .fi diff --git a/docs/man/man3/ModuleFactory.3 b/docs/man/man3/ModuleFactory.3 index ae4465776..44c837e10 100644 --- a/docs/man/man3/ModuleFactory.3 +++ b/docs/man/man3/ModuleFactory.3 @@ -1,4 +1,4 @@ -.TH "ModuleFactory" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModuleFactory" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -32,22 +32,22 @@ 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 1088 of file modules.h. +Definition at line 1216 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ModuleFactory::ModuleFactory ()\fC [inline]\fP" .PP -Definition at line 1091 of file modules.h. +Definition at line 1219 of file modules.h. .PP .nf -1091 { } +1219 { } .fi .SS "virtual ModuleFactory::~\fBModuleFactory\fP ()\fC [inline, virtual]\fP" .PP -Definition at line 1092 of file modules.h. +Definition at line 1220 of file modules.h. .PP .nf -1092 { } +1220 { } .fi .SH "Member Function Documentation" .PP diff --git a/docs/man/man3/QLine.3 b/docs/man/man3/QLine.3 index d6d1fc70d..54c689494 100644 --- a/docs/man/man3/QLine.3 +++ b/docs/man/man3/QLine.3 @@ -1,4 +1,4 @@ -.TH "QLine" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "QLine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3 index 59d18fd04..3749d4cd3 100644 --- a/docs/man/man3/Server.3 +++ b/docs/man/man3/Server.3 @@ -1,4 +1,4 @@ -.TH "Server" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Server" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -243,6 +243,10 @@ Inherits \fBclassbase\fP. .RI "virtual bool \fBMeshCheckCommon\fP (\fBuserrec\fP *u, std::string servername)" .br .RI "\fIThis function is used to check if user u has any channels in common with users on servername. \fP" +.ti -1c +.RI "virtual \fBModule\fP * \fBFindModule\fP (std::string name)" +.br +.RI "\fIThis function finds a module by name. \fP" .in -1c .SH "Detailed Description" .PP @@ -250,24 +254,24 @@ 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 505 of file modules.h. +Definition at line 627 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Server::Server ()" .PP -Default constructor. Creates a Server object.Definition at line 355 of file modules.cpp. +Default constructor. Creates a Server object.Definition at line 414 of file modules.cpp. .PP .nf -356 { -357 } +415 { +416 } .fi .SS "Server::~\fBServer\fP ()\fC [virtual]\fP" .PP -Default destructor. Destroys a Server object.Definition at line 359 of file modules.cpp. +Default destructor. Destroys a Server object.Definition at line 418 of file modules.cpp. .PP .nf -360 { -361 } +419 { +420 } .fi .SH "Member Function Documentation" .PP @@ -277,25 +281,25 @@ Adds a command to the command table. This allows modules to add extra commands i .PP typedef void (handlerfunc) (char**, int, userrec*); ... void \fBhandle_kill(char **parameters, int pcnt, userrec *user)\fP .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.Definition at line 436 of file modules.cpp. +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.Definition at line 495 of file modules.cpp. .PP References createcommand(). .PP .nf -437 { -438 createcommand(cmd,f,flags,minparams,source); -439 } +496 { +497 createcommand(cmd,f,flags,minparams,source); +498 } .fi .SS "void Server::AddELine (long duration, std::string source, std::string reason, std::string hostmask)\fC [virtual]\fP" .PP -Adds a E-line The E-line is enforced as soon as it is added. 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. Definition at line 654 of file modules.cpp. +Adds a E-line The E-line is enforced as soon as it is added. 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. Definition at line 713 of file modules.cpp. .PP References add_eline(), and duration(). .PP .nf -655 { -656 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -657 } +714 { +715 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +716 } .fi .SS "bool Server::AddExtendedListMode (char modechar)\fC [virtual]\fP" .PP @@ -309,510 +313,528 @@ Adds an extended mode letter which is parsed by a module and handled in a list f .PP (4) The mode and its parameter are NOT stored in the channels modes structure .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.Definition at line 581 of file modules.cpp. +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.Definition at line 640 of file modules.cpp. .PP References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL. .PP .nf -582 { -583 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -584 if (res) -585 ModeMakeList(modechar); -586 return res; -587 } +641 { +642 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +643 if (res) +644 ModeMakeList(modechar); +645 return res; +646 } .fi .SS "bool Server::AddExtendedMode (char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)\fC [virtual]\fP" .PP -Adds an extended mode letter which is parsed by a module. 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.Definition at line 561 of file modules.cpp. +Adds an extended mode letter which is parsed by a module. 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.Definition at line 620 of file modules.cpp. .PP References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. .PP .nf -562 { -563 if (type == MT_SERVER) -564 { -565 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); -566 return false; -567 } -568 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -569 { -570 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); -571 return false; -572 } -573 if ((params_when_on>1) || (params_when_off>1)) -574 { -575 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); -576 return false; -577 } -578 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -579 } +621 { +622 if (type == MT_SERVER) +623 { +624 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); +625 return false; +626 } +627 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +628 { +629 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); +630 return false; +631 } +632 if ((params_when_on>1) || (params_when_off>1)) +633 { +634 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); +635 return false; +636 } +637 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +638 } .fi .SS "void Server::AddGLine (long duration, std::string source, std::string reason, std::string hostmask)\fC [virtual]\fP" .PP -Adds a G-line The G-line is propogated to all of the servers in the mesh and enforced as soon as it is added. 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.Definition at line 634 of file modules.cpp. +Adds a G-line The G-line is propogated to all of the servers in the mesh and enforced as soon as it is added. 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.Definition at line 693 of file modules.cpp. .PP References add_gline(), and duration(). .PP .nf -635 { -636 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -637 } +694 { +695 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +696 } .fi .SS "void Server::AddKLine (long duration, std::string source, std::string reason, std::string hostmask)\fC [virtual]\fP" .PP -Adds a K-line The K-line is enforced as soon as it is added. 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. Definition at line 649 of file modules.cpp. +Adds a K-line The K-line is enforced as soon as it is added. 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. Definition at line 708 of file modules.cpp. .PP References add_kline(), and duration(). .PP .nf -650 { -651 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -652 } +709 { +710 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +711 } .fi .SS "void Server::AddQLine (long duration, std::string source, std::string reason, std::string nickname)\fC [virtual]\fP" .PP -Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enforced as soon as it is added. 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. Definition at line 639 of file modules.cpp. +Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enforced as soon as it is added. 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. Definition at line 698 of file modules.cpp. .PP References add_qline(), and duration(). .PP .nf -640 { -641 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -642 } +699 { +700 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +701 } .fi .SS "void Server::AddZLine (long duration, std::string source, std::string reason, std::string ipaddr)\fC [virtual]\fP" .PP -Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added. 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. Definition at line 644 of file modules.cpp. +Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added. 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. Definition at line 703 of file modules.cpp. .PP References add_zline(), and duration(). .PP .nf -645 { -646 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -647 } +704 { +705 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +706 } .fi .SS "long Server::CalcDuration (std::string duration)\fC [virtual]\fP" .PP -Calculates a duration This method will take a string containing a formatted duration (e.g. '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.Definition at line 684 of file modules.cpp. +Calculates a duration This method will take a string containing a formatted duration (e.g. '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.Definition at line 743 of file modules.cpp. .PP References duration(). .PP .nf -685 { -686 return duration(delta.c_str()); -687 } +744 { +745 return duration(delta.c_str()); +746 } .fi .SS "void Server::CallCommandHandler (std::string commandname, char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" .PP Calls the handler for a command, either implemented by the core or by another module. 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 \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.Definition at line 426 of file modules.cpp. +) 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.Definition at line 485 of file modules.cpp. .PP .nf -427 { -428 call_handler(commandname.c_str(),parameters,pcnt,user); -429 } +486 { +487 call_handler(commandname.c_str(),parameters,pcnt,user); +488 } .fi .SS "void Server::ChangeGECOS (\fBuserrec\fP * user, std::string gecos)\fC [virtual]\fP" .PP -Change GECOS (fullname) of a user. 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.Definition at line 514 of file modules.cpp. +Change GECOS (fullname) of a user. 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.Definition at line 573 of file modules.cpp. .PP References ChangeName(). .PP .nf -515 { -516 ChangeName(user,gecos.c_str()); -517 } +574 { +575 ChangeName(user,gecos.c_str()); +576 } .fi .SS "void Server::ChangeHost (\fBuserrec\fP * user, std::string host)\fC [virtual]\fP" .PP -Change displayed hostname of a user. 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.Definition at line 509 of file modules.cpp. +Change displayed hostname of a user. 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.Definition at line 568 of file modules.cpp. .PP References ChangeDisplayedHost(). .PP .nf -510 { -511 ChangeDisplayedHost(user,host.c_str()); -512 } +569 { +570 ChangeDisplayedHost(user,host.c_str()); +571 } .fi .SS "void Server::ChangeUserNick (\fBuserrec\fP * user, std::string nickname)\fC [virtual]\fP" .PP -Forces a user nickchange. 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.Definition at line 410 of file modules.cpp. +Forces a user nickchange. 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.Definition at line 469 of file modules.cpp. .PP .nf -411 { -412 force_nickchange(user,nickname.c_str()); -413 } +470 { +471 force_nickchange(user,nickname.c_str()); +472 } .fi .SS "std::string Server::ChanMode (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP" .PP -Attempts to look up a user's privilages on a channel. This function will return a string containing either @, , +, or an empty string, representing the user's privilages upon the channel you specify.Definition at line 534 of file modules.cpp. +Attempts to look up a user's privilages on a channel. This function will return a string containing either @, , +, or an empty string, representing the user's privilages upon the channel you specify.Definition at line 593 of file modules.cpp. .PP References cmode(). .PP .nf -535 { -536 return cmode(User,Chan); -537 } +594 { +595 return cmode(User,Chan); +596 } .fi .SS "bool Server::CommonChannels (\fBuserrec\fP * u1, \fBuserrec\fP * u2)\fC [virtual]\fP" .PP -Returns true if two users share a common channel. This method is used internally by the NICK and QUIT commands, and the \fBServer::SendCommon\fP method.Definition at line 487 of file modules.cpp. +Returns true if two users share a common channel. This method is used internally by the NICK and QUIT commands, and the \fBServer::SendCommon\fP method.Definition at line 546 of file modules.cpp. .PP References common_channels(). .PP .nf -488 { -489 return (common_channels(u1,u2) != 0); -490 } +547 { +548 return (common_channels(u1,u2) != 0); +549 } .fi .SS "int Server::CountUsers (\fBchanrec\fP * c)\fC [virtual]\fP" .PP -Returns a count of the number of users on a channel. This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel.Definition at line 589 of file modules.cpp. +Returns a count of the number of users on a channel. This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel.Definition at line 648 of file modules.cpp. .PP .nf -590 { -591 return usercount(c); -592 } +649 { +650 return usercount(c); +651 } .fi .SS "bool Server::DelELine (std::string hostmask)\fC [virtual]\fP" .PP -Deletes a local E-Line. Definition at line 679 of file modules.cpp. +Deletes a local E-Line. Definition at line 738 of file modules.cpp. .PP References del_eline(). .PP .nf -680 { -681 del_eline(hostmask.c_str()); -682 } +739 { +740 del_eline(hostmask.c_str()); +741 } .fi .SS "bool Server::DelGLine (std::string hostmask)\fC [virtual]\fP" .PP -Deletes a G-Line from all servers on the mesh. Definition at line 659 of file modules.cpp. +Deletes a G-Line from all servers on the mesh. Definition at line 718 of file modules.cpp. .PP References del_gline(). .PP .nf -660 { -661 del_gline(hostmask.c_str()); -662 } +719 { +720 del_gline(hostmask.c_str()); +721 } .fi .SS "bool Server::DelKLine (std::string hostmask)\fC [virtual]\fP" .PP -Deletes a local K-Line. Definition at line 674 of file modules.cpp. +Deletes a local K-Line. Definition at line 733 of file modules.cpp. .PP References del_kline(). .PP .nf -675 { -676 del_kline(hostmask.c_str()); -677 } +734 { +735 del_kline(hostmask.c_str()); +736 } .fi .SS "bool Server::DelQLine (std::string nickname)\fC [virtual]\fP" .PP -Deletes a Q-Line from all servers on the mesh. Definition at line 664 of file modules.cpp. +Deletes a Q-Line from all servers on the mesh. Definition at line 723 of file modules.cpp. .PP References del_qline(). .PP .nf -665 { -666 del_qline(nickname.c_str()); -667 } +724 { +725 del_qline(nickname.c_str()); +726 } .fi .SS "bool Server::DelZLine (std::string ipaddr)\fC [virtual]\fP" .PP -Deletes a Z-Line from all servers on the mesh. Definition at line 669 of file modules.cpp. +Deletes a Z-Line from all servers on the mesh. Definition at line 728 of file modules.cpp. .PP References del_zline(). .PP .nf -670 { -671 del_zline(ipaddr.c_str()); -672 } +729 { +730 del_zline(ipaddr.c_str()); +731 } .fi .SS "\fBchanrec\fP * Server::FindChannel (std::string channel)\fC [virtual]\fP" .PP -Attempts to look up a channel and return a pointer to it. This function will return NULL if the channel does not exist.Definition at line 529 of file modules.cpp. +Attempts to look up a channel and return a pointer to it. This function will return NULL if the channel does not exist.Definition at line 588 of file modules.cpp. .PP .nf -530 { -531 return FindChan(channel.c_str()); -532 } +589 { +590 return FindChan(channel.c_str()); +591 } +.fi +.SS "\fBModule\fP * Server::FindModule (std::string name)\fC [virtual]\fP" +.PP +This function finds a module by name. You must provide the filename of the module. If the module cannot be found (is not loaded) the function will return NULL.Definition at line 821 of file modules.cpp. +.PP +References MODCOUNT, module_names, and modules. +.PP +.nf +822 { +823 for (int i = 0; i <= MODCOUNT; i++) +824 { +825 if (module_names[i] == name) +826 { +827 return modules[i]; +828 } +829 } +830 return NULL; +831 } .fi .SS "\fBuserrec\fP * Server::FindNick (std::string nick)\fC [virtual]\fP" .PP -Attempts to look up a nick and return a pointer to it. This function will return NULL if the nick does not exist.Definition at line 524 of file modules.cpp. +Attempts to look up a nick and return a pointer to it. This function will return NULL if the nick does not exist.Definition at line 583 of file modules.cpp. .PP .nf -525 { -526 return Find(nick); -527 } +584 { +585 return Find(nick); +586 } .fi .SS "\fBAdmin\fP Server::GetAdmin ()\fC [virtual]\fP" .PP -Returns the information of the server as returned by the /ADMIN command. 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.Definition at line 554 of file modules.cpp. +Returns the information of the server as returned by the /ADMIN command. 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.Definition at line 613 of file modules.cpp. .PP .nf -555 { -556 return Admin(getadminname(),getadminemail(),getadminnick()); -557 } +614 { +615 return Admin(getadminname(),getadminemail(),getadminnick()); +616 } .fi .SS "std::string Server::GetNetworkName ()\fC [virtual]\fP" .PP -Returns the network name, global to all linked servers. Definition at line 549 of file modules.cpp. +Returns the network name, global to all linked servers. Definition at line 608 of file modules.cpp. .PP .nf -550 { -551 return getnetworkname(); -552 } +609 { +610 return getnetworkname(); +611 } .fi .SS "std::string Server::GetServerName ()\fC [virtual]\fP" .PP -Returns the server name of the server where the module is loaded. Definition at line 544 of file modules.cpp. +Returns the server name of the server where the module is loaded. Definition at line 603 of file modules.cpp. .PP .nf -545 { -546 return getservername(); -547 } +604 { +605 return getservername(); +606 } .fi .SS "\fBchanuserlist\fP Server::GetUsers (\fBchanrec\fP * chan)\fC [virtual]\fP" .PP -Fetches the userlist of a channel. This function must be here and not a member of userrec or chanrec due to include constraints.Definition at line 391 of file modules.cpp. +Fetches the userlist of a channel. This function must be here and not a member of userrec or chanrec due to include constraints.Definition at line 450 of file modules.cpp. .PP References chanuserlist, clientlist, has_channel(), and isnick(). .PP .nf -392 { -393 chanuserlist userl; -394 userl.clear(); -395 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) -396 { -397 if (i->second) -398 { -399 if (has_channel(i->second,chan)) -400 { -401 if (isnick(i->second->nick)) -402 { -403 userl.push_back(i->second); -404 } -405 } -406 } -407 } -408 return userl; -409 } +451 { +452 chanuserlist userl; +453 userl.clear(); +454 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) +455 { +456 if (i->second) +457 { +458 if (has_channel(i->second,chan)) +459 { +460 if (isnick(i->second->nick)) +461 { +462 userl.push_back(i->second); +463 } +464 } +465 } +466 } +467 return userl; +468 } .fi .SS "bool Server::IsNick (std::string nick)\fC [virtual]\fP" .PP -Returns true if a nick is valid. Nicks for unregistered connections will return false.Definition at line 519 of file modules.cpp. +Returns true if a nick is valid. Nicks for unregistered connections will return false.Definition at line 578 of file modules.cpp. .PP References isnick(). .PP .nf -520 { -521 return (isnick(nick.c_str()) != 0); -522 } +579 { +580 return (isnick(nick.c_str()) != 0); +581 } .fi .SS "bool Server::IsOnChannel (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP" .PP -Checks if a user is on a channel. This function will return true or false to indicate if user 'User' is on channel 'Chan'.Definition at line 539 of file modules.cpp. +Checks if a user is on a channel. This function will return true or false to indicate if user 'User' is on channel 'Chan'.Definition at line 598 of file modules.cpp. .PP References has_channel(). .PP .nf -540 { -541 return has_channel(User,Chan); -542 } +599 { +600 return has_channel(User,Chan); +601 } .fi .SS "bool Server::IsUlined (std::string server)\fC [virtual]\fP" .PP -Returns true if the servername you give is ulined. 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.Definition at line 421 of file modules.cpp. +Returns true if the servername you give is ulined. 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.Definition at line 480 of file modules.cpp. .PP References is_uline(). .PP .nf -422 { -423 return is_uline(server.c_str()); -424 } +481 { +482 return is_uline(server.c_str()); +483 } .fi .SS "bool Server::IsValidMask (std::string mask)\fC [virtual]\fP" .PP -Returns true if a nick!ident string is correctly formatted, false if otherwise. Definition at line 689 of file modules.cpp. -.PP -.nf -690 { -691 const char* dest = mask.c_str(); -692 if (strchr(dest,'!')==0) -693 return false; -694 if (strchr(dest,'@')==0) -695 return false; -696 for (int i = 0; i < strlen(dest); i++) -697 if (dest[i] < 32) -698 return false; -699 for (int i = 0; i < strlen(dest); i++) -700 if (dest[i] > 126) -701 return false; -702 int c = 0; -703 for (int i = 0; i < strlen(dest); i++) -704 if (dest[i] == '!') -705 c++; -706 if (c>1) -707 return false; -708 c = 0; -709 for (int i = 0; i < strlen(dest); i++) -710 if (dest[i] == '@') -711 c++; -712 if (c>1) -713 return false; -714 -715 return true; -716 } +Returns true if a nick!ident string is correctly formatted, false if otherwise. Definition at line 748 of file modules.cpp. +.PP +.nf +749 { +750 const char* dest = mask.c_str(); +751 if (strchr(dest,'!')==0) +752 return false; +753 if (strchr(dest,'@')==0) +754 return false; +755 for (int i = 0; i < strlen(dest); i++) +756 if (dest[i] < 32) +757 return false; +758 for (int i = 0; i < strlen(dest); i++) +759 if (dest[i] > 126) +760 return false; +761 int c = 0; +762 for (int i = 0; i < strlen(dest); i++) +763 if (dest[i] == '!') +764 c++; +765 if (c>1) +766 return false; +767 c = 0; +768 for (int i = 0; i < strlen(dest); i++) +769 if (dest[i] == '@') +770 c++; +771 if (c>1) +772 return false; +773 +774 return true; +775 } .fi .SS "\fBchanrec\fP * Server::JoinUserToChannel (\fBuserrec\fP * user, std::string cname, std::string key)\fC [virtual]\fP" .PP -Forces a user to join a channel. 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.Definition at line 381 of file modules.cpp. +Forces a user to join a channel. 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.Definition at line 440 of file modules.cpp. .PP .nf -382 { -383 return add_channel(user,cname.c_str(),key.c_str(),true); -384 } +441 { +442 return add_channel(user,cname.c_str(),key.c_str(),true); +443 } .fi .SS "void Server::Log (int level, std::string s)\fC [virtual]\fP" .PP -Writes a log string. 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.Definition at line 431 of file modules.cpp. +Writes a log string. 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.Definition at line 490 of file modules.cpp. .PP .nf -432 { -433 log(level,'%s',s.c_str()); -434 } +491 { +492 log(level,'%s',s.c_str()); +493 } .fi .SS "bool Server::MatchText (std::string sliteral, std::string spattern)\fC [virtual]\fP" .PP -Matches text against a glob pattern. 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.Definition at line 368 of file modules.cpp. +Matches text against a glob pattern. 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.Definition at line 427 of file modules.cpp. .PP .nf -369 { -370 char literal[MAXBUF],pattern[MAXBUF]; -371 strlcpy(literal,sliteral.c_str(),MAXBUF); -372 strlcpy(pattern,spattern.c_str(),MAXBUF); -373 return match(literal,pattern); -374 } +428 { +429 char literal[MAXBUF],pattern[MAXBUF]; +430 strlcpy(literal,sliteral.c_str(),MAXBUF); +431 strlcpy(pattern,spattern.c_str(),MAXBUF); +432 return match(literal,pattern); +433 } .fi .SS "bool Server::MeshCheckChan (\fBchanrec\fP * c, std::string servername)\fC [virtual]\fP" .PP -This function is used to check if any users on channel c are on server servername. This is used internally by PRIVMSG etc. You should not need to use it.Definition at line 744 of file modules.cpp. +This function is used to check if any users on channel c are on server servername. This is used internally by PRIVMSG etc. You should not need to use it.Definition at line 803 of file modules.cpp. .PP .nf -745 { -746 if (c) -747 { -748 return ChanAnyOnThisServer(c,(char*)servername.c_str()); -749 } -750 else return false; -751 } +804 { +805 if (c) +806 { +807 return ChanAnyOnThisServer(c,(char*)servername.c_str()); +808 } +809 else return false; +810 } .fi .SS "bool Server::MeshCheckCommon (\fBuserrec\fP * u, std::string servername)\fC [virtual]\fP" .PP -This function is used to check if user u has any channels in common with users on servername. This is used internally by \fBServer::MeshSendCommon\fP. You should very rarely need to use it.Definition at line 753 of file modules.cpp. +This function is used to check if user u has any channels in common with users on servername. This is used internally by \fBServer::MeshSendCommon\fP. You should very rarely need to use it.Definition at line 812 of file modules.cpp. .PP .nf -754 { -755 if (u) -756 { -757 return CommonOnThisServer(u,(char*)servername.c_str()); -758 } -759 else return false; -760 } +813 { +814 if (u) +815 { +816 return CommonOnThisServer(u,(char*)servername.c_str()); +817 } +818 else return false; +819 } .fi .SS "void Server::MeshSendAll (std::string text)\fC [virtual]\fP" .PP -Sends a line of text to all connected servers. If a server is not directly reachable, the core deals with routing the message, and will also deal with failures transparently.Definition at line 718 of file modules.cpp. +Sends a line of text to all connected servers. If a server is not directly reachable, the core deals with routing the message, and will also deal with failures transparently.Definition at line 777 of file modules.cpp. .PP .nf -719 { -720 NetSendToAll((char*)text.c_str()); -721 } +778 { +779 NetSendToAll((char*)text.c_str()); +780 } .fi .SS "void Server::MeshSendAllAlive (std::string text)\fC [virtual]\fP" .PP -This function is equivalent to Server::MeshSendToAll except it will only route to servers which are directly routable. Definition at line 729 of file modules.cpp. +This function is equivalent to Server::MeshSendToAll except it will only route to servers which are directly routable. Definition at line 788 of file modules.cpp. .PP .nf -730 { -731 NetSendToAllAlive((char*)text.c_str()); -732 } +789 { +790 NetSendToAllAlive((char*)text.c_str()); +791 } .fi .SS "void Server::MeshSendAllExcept (std::string target, std::string text)\fC [virtual]\fP" .PP -This function sends to all servers EXCEPT the one you specify. You should usually use this function to send messages, specifying the SENDER of your message as 'target'. This will prevent message loops.Definition at line 739 of file modules.cpp. +This function sends to all servers EXCEPT the one you specify. You should usually use this function to send messages, specifying the SENDER of your message as 'target'. This will prevent message loops.Definition at line 798 of file modules.cpp. .PP .nf -740 { -741 NetSendToAllExcept(target.c_str(),(char*)text.c_str()); -742 } +799 { +800 NetSendToAllExcept(target.c_str(),(char*)text.c_str()); +801 } .fi .SS "void Server::MeshSendCommon (\fBuserrec\fP * user, std::string text)\fC [virtual]\fP" .PP -This method sends a line of text to all servers who have users which share common channels with the user you provide. For example, if user A is on server A, and they are on channels #one and #two, and user B is on server B, and also on channel #one, but user C is on server C and on neither #one or #two, this function will cause the text to only be sent to server B. However, if server B is only reachable via C, it will route it to C (you do not have to worry about this routing, it is done transparently, but its good to know how things work!)Definition at line 723 of file modules.cpp. +This method sends a line of text to all servers who have users which share common channels with the user you provide. For example, if user A is on server A, and they are on channels #one and #two, and user B is on server B, and also on channel #one, but user C is on server C and on neither #one or #two, this function will cause the text to only be sent to server B. However, if server B is only reachable via C, it will route it to C (you do not have to worry about this routing, it is done transparently, but its good to know how things work!)Definition at line 782 of file modules.cpp. .PP .nf -724 { -725 if (user) -726 NetSendToCommon(user,(char*)text.c_str()); -727 } +783 { +784 if (user) +785 NetSendToCommon(user,(char*)text.c_str()); +786 } .fi .SS "void Server::MeshSendUnicast (std::string destination, std::string text)\fC [virtual]\fP" .PP -This function sends a line of text directly to a server. If the server is not directly routable at this time, the server attempts to route text through the mesh.Definition at line 734 of file modules.cpp. +This function sends a line of text directly to a server. If the server is not directly routable at this time, the server attempts to route text through the mesh.Definition at line 793 of file modules.cpp. .PP .nf -735 { -736 NetSendToOne((char*)destination.c_str(),(char*)text.c_str()); -737 } +794 { +795 NetSendToOne((char*)destination.c_str(),(char*)text.c_str()); +796 } .fi .SS "\fBchanrec\fP * Server::PartUserFromChannel (\fBuserrec\fP * user, std::string cname, std::string reason)\fC [virtual]\fP" .PP -Forces a user to part a channel. 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.Definition at line 386 of file modules.cpp. +Forces a user to part a channel. 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.Definition at line 445 of file modules.cpp. .PP .nf -387 { -388 return del_channel(user,cname.c_str(),reason.c_str(),false); -389 } +446 { +447 return del_channel(user,cname.c_str(),reason.c_str(),false); +448 } .fi .SS "bool Server::PseudoToUser (\fBuserrec\fP * alive, \fBuserrec\fP * zombie, std::string message)\fC [virtual]\fP" .PP -This user takes one user, and switches their file descriptor with another user, so that one user 'becomes' the other. 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.Definition at line 604 of file modules.cpp. -.PP -References ucrec::channel, userrec::chans, chanrec::created, connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. -.PP -.nf -605 { -606 zombie->fd = alive->fd; -607 alive->fd = FD_MAGIC_NUMBER; -608 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); -609 kill_link(alive,message.c_str()); -610 for (int i = 0; i != MAXCHANS; i++) -611 { -612 if (zombie->chans[i].channel != NULL) -613 { -614 if (zombie->chans[i].channel->name) -615 { -616 chanrec* Ptr = zombie->chans[i].channel; -617 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); -618 if (Ptr->topicset) -619 { -620 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); -621 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -622 } -623 userlist(zombie,Ptr); -624 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); -625 WriteServ(zombie->fd,'324 %s %s +%s',zombie->nick, Ptr->name,chanmodes(Ptr)); -626 WriteServ(zombie->fd,'329 %s %s %d', zombie->nick, Ptr->name, Ptr->created); -627 -628 } -629 } -630 } -631 -632 } +This user takes one user, and switches their file descriptor with another user, so that one user 'becomes' the other. 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.Definition at line 663 of file modules.cpp. +.PP +References ucrec::channel, userrec::chans, connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. +.PP +.nf +664 { +665 zombie->fd = alive->fd; +666 alive->fd = FD_MAGIC_NUMBER; +667 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); +668 kill_link(alive,message.c_str()); +669 for (int i = 0; i != MAXCHANS; i++) +670 { +671 if (zombie->chans[i].channel != NULL) +672 { +673 if (zombie->chans[i].channel->name) +674 { +675 chanrec* Ptr = zombie->chans[i].channel; +676 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); +677 if (Ptr->topicset) +678 { +679 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); +680 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +681 } +682 userlist(zombie,Ptr); +683 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); +684 //WriteServ(zombie->fd,'324 %s %s +%s',zombie->nick, Ptr->name,chanmodes(Ptr)); +685 //WriteServ(zombie->fd,'329 %s %s %d', zombie->nick, Ptr->name, Ptr->created); +686 +687 } +688 } +689 } +690 +691 } .fi .SS "void Server::QuitUser (\fBuserrec\fP * user, std::string reason)\fC [virtual]\fP" .PP @@ -820,65 +842,65 @@ Forces a user to quit with the specified reason. To the user, it will appear as .PP 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.Definition at line 415 of file modules.cpp. +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.Definition at line 474 of file modules.cpp. .PP References userrec::nick, and send_network_quit(). .PP .nf -416 { -417 send_network_quit(user->nick,reason.c_str()); -418 kill_link(user,reason.c_str()); -419 } +475 { +476 send_network_quit(user->nick,reason.c_str()); +477 kill_link(user,reason.c_str()); +478 } .fi .SS "void Server::Send (int Socket, std::string s)\fC [virtual]\fP" .PP -Sends a line of text down a TCP/IP socket. This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required.Definition at line 446 of file modules.cpp. +Sends a line of text down a TCP/IP socket. This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required.Definition at line 505 of file modules.cpp. .PP .nf -447 { -448 Write(Socket,'%s',s.c_str()); -449 } +506 { +507 Write(Socket,'%s',s.c_str()); +508 } .fi .SS "void Server::SendChannel (\fBuserrec\fP * User, \fBchanrec\fP * Channel, std::string s, bool IncludeSender)\fC [virtual]\fP" .PP -Sends text from a user to a channel (mulicast). 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).Definition at line 475 of file modules.cpp. +Sends text from a user to a channel (mulicast). 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).Definition at line 534 of file modules.cpp. .PP .nf -476 { -477 if (IncludeSender) -478 { -479 WriteChannel(Channel,User,'%s',s.c_str()); -480 } -481 else -482 { -483 ChanExceptSender(Channel,User,'%s',s.c_str()); -484 } -485 } +535 { +536 if (IncludeSender) +537 { +538 WriteChannel(Channel,User,'%s',s.c_str()); +539 } +540 else +541 { +542 ChanExceptSender(Channel,User,'%s',s.c_str()); +543 } +544 } .fi .SS "void Server::SendCommon (\fBuserrec\fP * User, std::string text, bool IncludeSender)\fC [virtual]\fP" .PP -Sends text from a user to one or more channels (mulicast). 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.Definition at line 492 of file modules.cpp. +Sends text from a user to one or more channels (mulicast). 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.Definition at line 551 of file modules.cpp. .PP .nf -493 { -494 if (IncludeSender) -495 { -496 WriteCommon(User,'%s',text.c_str()); -497 } -498 else -499 { -500 WriteCommonExcept(User,'%s',text.c_str()); -501 } -502 } +552 { +553 if (IncludeSender) +554 { +555 WriteCommon(User,'%s',text.c_str()); +556 } +557 else +558 { +559 WriteCommonExcept(User,'%s',text.c_str()); +560 } +561 } .fi .SS "void Server::SendFrom (int Socket, \fBuserrec\fP * User, std::string s)\fC [virtual]\fP" .PP -Sends text from a user to a socket. 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)Definition at line 456 of file modules.cpp. +Sends text from a user to a socket. 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)Definition at line 515 of file modules.cpp. .PP .nf -457 { -458 WriteFrom(Socket,User,'%s',s.c_str()); -459 } +516 { +517 WriteFrom(Socket,User,'%s',s.c_str()); +518 } .fi .SS "void Server::SendMode (char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" .PP @@ -896,32 +918,32 @@ modes[2] = user->nick; .PP 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!Definition at line 441 of file modules.cpp. +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!Definition at line 500 of file modules.cpp. .PP References server_mode(). .PP .nf -442 { -443 server_mode(parameters,pcnt,user); -444 } +501 { +502 server_mode(parameters,pcnt,user); +503 } .fi .SS "void Server::SendOpers (std::string s)\fC [virtual]\fP" .PP -Sends text to all opers. This method sends a server notice to all opers with the usermode +s.Definition at line 363 of file modules.cpp. +Sends text to all opers. This method sends a server notice to all opers with the usermode +s.Definition at line 422 of file modules.cpp. .PP .nf -364 { -365 WriteOpers('%s',s.c_str()); -366 } +423 { +424 WriteOpers('%s',s.c_str()); +425 } .fi .SS "void Server::SendServ (int Socket, std::string s)\fC [virtual]\fP" .PP -Sends text from the server to a socket. This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459)Definition at line 451 of file modules.cpp. +Sends text from the server to a socket. This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459)Definition at line 510 of file modules.cpp. .PP .nf -452 { -453 WriteServ(Socket,'%s',s.c_str()); -454 } +511 { +512 WriteServ(Socket,'%s',s.c_str()); +513 } .fi .SS "void Server::SendTo (\fBuserrec\fP * Source, \fBuserrec\fP * Dest, std::string s)\fC [virtual]\fP" .PP @@ -933,23 +955,23 @@ The format will become: .PP :localserver TEXT .PP -Which is useful for numerics and server notices to single users, etc.Definition at line 461 of file modules.cpp. +Which is useful for numerics and server notices to single users, etc.Definition at line 520 of file modules.cpp. .PP References connection::fd. .PP .nf -462 { -463 if (!Source) -464 { -465 // if source is NULL, then the message originates from the local server -466 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); -467 } -468 else -469 { -470 // otherwise it comes from the user specified -471 WriteTo(Source,Dest,'%s',s.c_str()); -472 } -473 } +521 { +522 if (!Source) +523 { +524 // if source is NULL, then the message originates from the local server +525 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); +526 } +527 else +528 { +529 // otherwise it comes from the user specified +530 WriteTo(Source,Dest,'%s',s.c_str()); +531 } +532 } .fi .SS "void Server::SendToModeMask (std::string modes, int flags, std::string text)\fC [virtual]\fP" .PP @@ -957,36 +979,36 @@ Sends to all users matching a mode mask You must specify one or more usermodes a .PP 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.Definition at line 376 of file modules.cpp. +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.Definition at line 435 of file modules.cpp. .PP .nf -377 { -378 WriteMode(modes.c_str(),flags,'%s',text.c_str()); -379 } +436 { +437 WriteMode(modes.c_str(),flags,'%s',text.c_str()); +438 } .fi .SS "void Server::SendWallops (\fBuserrec\fP * User, std::string text)\fC [virtual]\fP" .PP -Sends a WALLOPS message. This method writes a WALLOPS message to all users with the +w flag, originating from the specified user.Definition at line 504 of file modules.cpp. +Sends a WALLOPS message. This method writes a WALLOPS message to all users with the +w flag, originating from the specified user.Definition at line 563 of file modules.cpp. .PP .nf -505 { -506 WriteWallOps(User,false,'%s',text.c_str()); -507 } +564 { +565 WriteWallOps(User,false,'%s',text.c_str()); +566 } .fi .SS "bool Server::UserToPseudo (\fBuserrec\fP * user, std::string message)\fC [virtual]\fP" .PP -Remove a user's connection to the irc server, but leave their client in existence in the user hash. 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.Definition at line 595 of file modules.cpp. +Remove a user's connection to the irc server, but leave their client in existence in the user hash. 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.Definition at line 654 of file modules.cpp. .PP References connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. .PP .nf -596 { -597 unsigned int old_fd = user->fd; -598 user->fd = FD_MAGIC_NUMBER; -599 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); -600 close(old_fd); -601 shutdown (old_fd,2); -602 } +655 { +656 unsigned int old_fd = user->fd; +657 user->fd = FD_MAGIC_NUMBER; +658 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); +659 close(old_fd); +660 shutdown (old_fd,2); +661 } .fi diff --git a/docs/man/man3/StrHashComp.3 b/docs/man/man3/StrHashComp.3 index 9ef8b6982..1c6c04405 100644 --- a/docs/man/man3/StrHashComp.3 +++ b/docs/man/man3/StrHashComp.3 @@ -1,4 +1,4 @@ -.TH "StrHashComp" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "StrHashComp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -24,8 +24,10 @@ Definition at line 146 of file modules.cpp. 148 char a[MAXBUF],b[MAXBUF]; 149 strlcpy(a,s1.c_str(),MAXBUF); 150 strlcpy(b,s2.c_str(),MAXBUF); -151 return (strcasecmp(a,b) == 0); -152 } +151 strlower(a); +152 strlower(b); +153 return (strcasecmp(a,b) == 0); +154 } .fi diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3 index 859d315d6..245c2b184 100644 --- a/docs/man/man3/Version.3 +++ b/docs/man/man3/Version.3 @@ -1,4 +1,4 @@ -.TH "Version" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Version" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -49,10 +49,10 @@ Definition at line 111 of file modules.h. .PP .SS "Version::Version (int major, int minor, int revision, int build, int flags)" .PP -Definition at line 300 of file modules.cpp. +Definition at line 302 of file modules.cpp. .PP .nf -300 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +302 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; .fi .SH "Member Data Documentation" .PP diff --git a/docs/man/man3/XLine.3 b/docs/man/man3/XLine.3 index 9a220f0f1..cb8a54538 100644 --- a/docs/man/man3/XLine.3 +++ b/docs/man/man3/XLine.3 @@ -1,4 +1,4 @@ -.TH "XLine" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "XLine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ZLine.3 b/docs/man/man3/ZLine.3 index d3cf8c290..3ce871a94 100644 --- a/docs/man/man3/ZLine.3 +++ b/docs/man/man3/ZLine.3 @@ -1,4 +1,4 @@ -.TH "ZLine" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ZLine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/base.h.3 b/docs/man/man3/base.h.3 index 24279547a..5d513596e 100644 --- a/docs/man/man3/base.h.3 +++ b/docs/man/man3/base.h.3 @@ -1,4 +1,4 @@ -.TH "base.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "base.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/channels.cpp.3 b/docs/man/man3/channels.cpp.3 index 9b812d4e9..cba651bbc 100644 --- a/docs/man/man3/channels.cpp.3 +++ b/docs/man/man3/channels.cpp.3 @@ -1,4 +1,4 @@ -.TH "channels.cpp" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "channels.cpp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -271,13 +271,19 @@ Definition at line 88 of file channels.cpp. Definition at line 103 of file channels.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 959 of file modules.cpp. +Definition at line 1030 of file modules.cpp. +.PP +Referenced by Server::FindModule(). .SS "std::vector<std::string> \fBmodule_names\fP" .PP Definition at line 92 of file channels.cpp. +.PP +Referenced by Server::FindModule(). .SS "std::vector<\fBModule\fP*> modules" .PP Definition at line 64 of file channels.cpp. +.PP +Referenced by Server::FindModule(). .SS "char \fBmotd\fP[MAXBUF]" .PP Definition at line 76 of file channels.cpp. diff --git a/docs/man/man3/channels.h.3 b/docs/man/man3/channels.h.3 index bafd88bd4..028883c6d 100644 --- a/docs/man/man3/channels.h.3 +++ b/docs/man/man3/channels.h.3 @@ -1,4 +1,4 @@ -.TH "channels.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "channels.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3 index 6a5e817bd..5c9d0d9c4 100644 --- a/docs/man/man3/chanrec.3 +++ b/docs/man/man3/chanrec.3 @@ -1,4 +1,4 @@ -.TH "chanrec" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "chanrec" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -254,7 +254,7 @@ Referenced by chanrec(). .PP Creation time. Definition at line 111 of file channels.h. .PP -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(). .SS "char \fBchanrec::custom_modes\fP[MAXMODES]" .PP Custom modes for the channel. Plugins may use this field in any way they see fit.Definition at line 103 of file channels.h. diff --git a/docs/man/man3/classbase.3 b/docs/man/man3/classbase.3 index da9faefb7..a8299e1f5 100644 --- a/docs/man/man3/classbase.3 +++ b/docs/man/man3/classbase.3 @@ -1,4 +1,4 @@ -.TH "classbase" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "classbase" 3 "20 Apr 2005" "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, \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, \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 4fa056288..ba965234c 100644 --- a/docs/man/man3/command_t.3 +++ b/docs/man/man3/command_t.3 @@ -1,4 +1,4 @@ -.TH "command_t" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "command_t" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/commands.h.3 b/docs/man/man3/commands.h.3 index d01b59391..27fa66676 100644 --- a/docs/man/man3/commands.h.3 +++ b/docs/man/man3/commands.h.3 @@ -1,4 +1,4 @@ -.TH "commands.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "commands.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3 index baba8f9d3..d1e4e7e63 100644 --- a/docs/man/man3/connection.3 +++ b/docs/man/man3/connection.3 @@ -1,4 +1,4 @@ -.TH "connection" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "connection" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.h.3 b/docs/man/man3/connection.h.3 index cca65c993..e57b5cede 100644 --- a/docs/man/man3/connection.h.3 +++ b/docs/man/man3/connection.h.3 @@ -1,4 +1,4 @@ -.TH "connection.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "connection.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ctables.h.3 b/docs/man/man3/ctables.h.3 index 27dd9e13a..cf8d86cc3 100644 --- a/docs/man/man3/ctables.h.3 +++ b/docs/man/man3/ctables.h.3 @@ -1,4 +1,4 @@ -.TH "ctables.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ctables.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns.h.3 b/docs/man/man3/dns.h.3 index 8ecd135f8..508f04cff 100644 --- a/docs/man/man3/dns.h.3 +++ b/docs/man/man3/dns.h.3 @@ -1,4 +1,4 @@ -.TH "dns.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "dns.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns_ip4list.3 b/docs/man/man3/dns_ip4list.3 index 5565e04c4..756ce99df 100644 --- a/docs/man/man3/dns_ip4list.3 +++ b/docs/man/man3/dns_ip4list.3 @@ -1,4 +1,4 @@ -.TH "dns_ip4list" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "dns_ip4list" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ircd_connector.3 b/docs/man/man3/ircd_connector.3 index ff0630ea8..9a47718e0 100644 --- a/docs/man/man3/ircd_connector.3 +++ b/docs/man/man3/ircd_connector.3 @@ -1,4 +1,4 @@ -.TH "ircd_connector" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ircd_connector" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/message.h.3 b/docs/man/man3/message.h.3 index 003124253..613102a3a 100644 --- a/docs/man/man3/message.h.3 +++ b/docs/man/man3/message.h.3 @@ -1,4 +1,4 @@ -.TH "message.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "message.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/mode.h.3 b/docs/man/man3/mode.h.3 index 065d24ebd..be2164f1b 100644 --- a/docs/man/man3/mode.h.3 +++ b/docs/man/man3/mode.h.3 @@ -1,4 +1,4 @@ -.TH "mode.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "mode.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/modules.cpp.3 b/docs/man/man3/modules.cpp.3 index 5e8cde7c9..b91ae0484 100644 --- a/docs/man/man3/modules.cpp.3 +++ b/docs/man/man3/modules.cpp.3 @@ -1,4 +1,4 @@ -.TH "modules.cpp" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "modules.cpp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -299,160 +299,160 @@ Definition at line 59 of file modules.cpp. .PP .SS "typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, \fBInAddr_HashComp\fP> \fBaddress_cache\fP" .PP -Definition at line 175 of file modules.cpp. +Definition at line 177 of file modules.cpp. .SS "typedef nspace::hash_map<std::string, \fBchanrec\fP*, nspace::hash<string>, \fBStrHashComp\fP> \fBchan_hash\fP" .PP -Definition at line 174 of file modules.cpp. +Definition at line 176 of file modules.cpp. .SS "typedef std::deque<\fBcommand_t\fP> \fBcommand_table\fP" .PP -Definition at line 176 of file modules.cpp. +Definition at line 178 of file modules.cpp. .SS "typedef std::vector<\fBExtMode\fP> \fBExtModeList\fP" .PP -Definition at line 202 of file modules.cpp. +Definition at line 204 of file modules.cpp. .SS "typedef ExtModeList::iterator \fBExtModeListIter\fP" .PP -Definition at line 203 of file modules.cpp. +Definition at line 205 of file modules.cpp. .PP Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). .SS "typedef nspace::hash_map<std::string, \fBuserrec\fP*, nspace::hash<string>, \fBStrHashComp\fP> \fBuser_hash\fP" .PP -Definition at line 173 of file modules.cpp. +Definition at line 175 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 275 of file modules.cpp. +Definition at line 277 of file modules.cpp. .PP References EMode, and ModeDefined(). .PP Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode(). .PP .nf -276 { -277 if (ModeDefined(modechar,type)) { -278 return false; -279 } -280 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -281 return true; -282 } +278 { +279 if (ModeDefined(modechar,type)) { +280 return false; +281 } +282 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +283 return true; +284 } .fi .SS "std::vector<\fBircd_module\fP*> factory (255)" .PP .SS "bool ModeDefined (char modechar, int type)" .PP -Definition at line 209 of file modules.cpp. +Definition at line 211 of file modules.cpp. .PP References DEBUG, EMode, and ExtModeListIter. .PP Referenced by DoAddExtendedMode(). .PP .nf -210 { -211 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); -212 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -213 { -214 if ((i->modechar == modechar) && (i->type == type)) -215 { -216 return true; -217 } -218 } -219 return false; -220 } +212 { +213 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); +214 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +215 { +216 if ((i->modechar == modechar) && (i->type == type)) +217 { +218 return true; +219 } +220 } +221 return false; +222 } .fi .SS "int ModeDefinedOff (char modechar, int type)" .PP -Definition at line 262 of file modules.cpp. +Definition at line 264 of file modules.cpp. .PP References EMode, and ExtModeListIter. .PP .nf -263 { -264 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -265 { -266 if ((i->modechar == modechar) && (i->type == type)) -267 { -268 return i->params_when_off; -269 } -270 } -271 return 0; -272 } +265 { +266 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +267 { +268 if ((i->modechar == modechar) && (i->type == type)) +269 { +270 return i->params_when_off; +271 } +272 } +273 return 0; +274 } .fi .SS "int ModeDefinedOn (char modechar, int type)" .PP -Definition at line 249 of file modules.cpp. +Definition at line 251 of file modules.cpp. .PP References EMode, and ExtModeListIter. .PP .nf -250 { -251 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -252 { -253 if ((i->modechar == modechar) && (i->type == type)) -254 { -255 return i->params_when_on; -256 } -257 } -258 return 0; -259 } +252 { +253 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +254 { +255 if ((i->modechar == modechar) && (i->type == type)) +256 { +257 return i->params_when_on; +258 } +259 } +260 return 0; +261 } .fi .SS "bool ModeDefinedOper (char modechar, int type)" .PP -Definition at line 235 of file modules.cpp. +Definition at line 237 of file modules.cpp. .PP References DEBUG, EMode, and ExtModeListIter. .PP .nf -236 { -237 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); -238 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -239 { -240 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -241 { -242 return true; -243 } -244 } -245 return false; -246 } +238 { +239 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); +240 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +241 { +242 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +243 { +244 return true; +245 } +246 } +247 return false; +248 } .fi .SS "bool ModeIsListMode (char modechar, int type)" .PP -Definition at line 222 of file modules.cpp. +Definition at line 224 of file modules.cpp. .PP References DEBUG, EMode, and ExtModeListIter. .PP .nf -223 { -224 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); -225 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -226 { -227 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -228 { -229 return true; -230 } -231 } -232 return false; -233 } +225 { +226 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); +227 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +228 { +229 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +230 { +231 return true; +232 } +233 } +234 return false; +235 } .fi .SS "void ModeMakeList (char modechar)" .PP -Definition at line 285 of file modules.cpp. +Definition at line 287 of file modules.cpp. .PP References EMode, ExtModeListIter, and MT_CHANNEL. .PP Referenced by Server::AddExtendedListMode(). .PP .nf -286 { -287 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -288 { -289 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -290 { -291 i->list = true; -292 return; -293 } -294 } -295 return; -296 } +288 { +289 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +290 { +291 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +292 { +293 i->list = true; +294 return; +295 } +296 } +297 return; +298 } .fi .SS "std::vector<\fBModule\fP*> modules (255)" .PP @@ -475,15 +475,15 @@ Definition at line 103 of file modules.cpp. Definition at line 97 of file modules.cpp. .SS "\fBchan_hash\fP \fBchanlist\fP" .PP -Definition at line 180 of file modules.cpp. +Definition at line 182 of file modules.cpp. .SS "\fBuser_hash\fP \fBclientlist\fP" .PP -Definition at line 179 of file modules.cpp. +Definition at line 181 of file modules.cpp. .PP Referenced by Server::GetUsers(). .SS "\fBcommand_table\fP \fBcmdlist\fP" .PP -Definition at line 182 of file modules.cpp. +Definition at line 184 of file modules.cpp. .SS "std::stringstream \fBconfig_f\fP" .PP Definition at line 104 of file modules.cpp. @@ -504,7 +504,7 @@ Definition at line 77 of file modules.cpp. Definition at line 83 of file modules.cpp. .SS "\fBExtModeList\fP \fBEMode\fP" .PP -Definition at line 206 of file modules.cpp. +Definition at line 208 of file modules.cpp. .PP Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). .SS "std::vector<\fBircd_module\fP*> factory" @@ -515,7 +515,7 @@ Definition at line 66 of file modules.cpp. Definition at line 94 of file modules.cpp. .SS "\fBaddress_cache\fP \fBIP\fP" .PP -Definition at line 185 of file modules.cpp. +Definition at line 187 of file modules.cpp. .SS "char \fBlist\fP[MAXBUF]" .PP Definition at line 81 of file modules.cpp. @@ -533,7 +533,7 @@ Definition at line 91 of file modules.cpp. Definition at line 106 of file modules.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 959 of file modules.cpp. +Definition at line 1030 of file modules.cpp. .SS "std::vector<std::string> \fBmodule_names\fP" .PP Definition at line 95 of file modules.cpp. @@ -542,7 +542,7 @@ Definition at line 95 of file modules.cpp. Definition at line 65 of file modules.cpp. .SS "\fBfile_cache\fP \fBMOTD\fP" .PP -Definition at line 183 of file modules.cpp. +Definition at line 185 of file modules.cpp. .SS "char \fBmotd\fP[MAXBUF]" .PP Definition at line 79 of file modules.cpp. @@ -569,7 +569,7 @@ Definition at line 82 of file modules.cpp. Definition at line 78 of file modules.cpp. .SS "\fBfile_cache\fP \fBRULES\fP" .PP -Definition at line 184 of file modules.cpp. +Definition at line 186 of file modules.cpp. .SS "char \fBrules\fP[MAXBUF]" .PP Definition at line 80 of file modules.cpp. @@ -590,7 +590,7 @@ Definition at line 68 of file modules.cpp. Definition at line 99 of file modules.cpp. .SS "\fBuser_hash\fP \fBwhowas\fP" .PP -Definition at line 181 of file modules.cpp. +Definition at line 183 of file modules.cpp. .SS "int \fBWHOWAS_MAX\fP" .PP Definition at line 87 of file modules.cpp. diff --git a/docs/man/man3/modules.h.3 b/docs/man/man3/modules.h.3 index df75da980..d2fb56fd4 100644 --- a/docs/man/man3/modules.h.3 +++ b/docs/man/man3/modules.h.3 @@ -1,4 +1,4 @@ -.TH "modules.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "modules.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -31,6 +31,10 @@ modules.h \- .br .RI "\fIAllows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file. \fP" .ti -1c +.RI "class \fBEvent\fP" +.br +.RI "\fIThe Event class is a unicast message directed at all modules. \fP" +.ti -1c .RI "class \fBFileReader\fP" .br .RI "\fICaches a text file into memory and can be used to retrieve lines from it. \fP" @@ -43,6 +47,14 @@ modules.h \- .br .RI "\fIInstantiates classes inherited from \fBModule\fP This class creates a class inherited from type \fBModule\fP, using new. \fP" .ti -1c +.RI "class \fBModuleMessage\fP" +.br +.RI "\fIThe ModuleMessage class is the base class of \fBRequest\fP and \fBEvent\fP This class is used to represent a basic data structure which is passed between modules for safe inter-module communications. \fP" +.ti -1c +.RI "class \fBRequest\fP" +.br +.RI "\fIThe Request class is a unicast message directed at a given module. \fP" +.ti -1c .RI "class \fBServer\fP" .br .RI "\fIAllows 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. \fP" @@ -218,22 +230,22 @@ Referenced by Module::OnAccessCheck(). Definition at line 38 of file modules.h. .SS "#define CONF_FILE_NOT_FOUND 0x000200" .PP -Definition at line 935 of file modules.h. +Definition at line 1063 of file modules.h. .PP Referenced by ConfigReader::ConfigReader(). .SS "#define CONF_NOT_A_NUMBER 0x000010" .PP -Definition at line 932 of file modules.h. +Definition at line 1060 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_NOT_UNSIGNED 0x000080" .PP -Definition at line 933 of file modules.h. +Definition at line 1061 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_VALUE_NOT_FOUND 0x000100" .PP -Definition at line 934 of file modules.h. +Definition at line 1062 of file modules.h. .PP Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). .SS "#define DEBUG 10" @@ -252,6 +264,8 @@ Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). .SS "#define FOREACH_MOD for (int i = 0; i <= \fBMODCOUNT\fP; i++) modules[i]->" .PP Definition at line 79 of file modules.h. +.PP +Referenced by Event::Send(). .SS "#define FOREACH_RESULT(x)" .PP \fBValue:\fP.nf @@ -319,7 +333,7 @@ Low level definition of a \fBFileReader\fP classes file cache area. Definition a Referenced by FileReader::FileReader(), and FileReader::LoadFile(). .SS "typedef DLLFactory<\fBModuleFactory\fP> \fBircd_module\fP" .PP -Definition at line 1101 of file modules.h. +Definition at line 1229 of file modules.h. .SS "typedef \fBfile_cache\fP \fBstring_list\fP" .PP Definition at line 68 of file modules.h. diff --git a/docs/man/man3/nspace.3 b/docs/man/man3/nspace.3 index 44795c08d..9ff36fa71 100644 --- a/docs/man/man3/nspace.3 +++ b/docs/man/man3/nspace.3 @@ -1,4 +1,4 @@ -.TH "nspace" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_nspace_hash_ in_addr _.3 b/docs/man/man3/nspace_nspace_hash_ in_addr _.3 index 6725acc75..2c771436c 100644 --- a/docs/man/man3/nspace_nspace_hash_ in_addr _.3 +++ b/docs/man/man3/nspace_nspace_hash_ in_addr _.3 @@ -1,4 +1,4 @@ -.TH "nspace::nspace::hash< in_addr >" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace::nspace::hash< in_addr >" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_nspace_hash_ string _.3 b/docs/man/man3/nspace_nspace_hash_ string _.3 index 680c5c330..2c89b3913 100644 --- a/docs/man/man3/nspace_nspace_hash_ string _.3 +++ b/docs/man/man3/nspace_nspace_hash_ string _.3 @@ -1,4 +1,4 @@ -.TH "nspace::nspace::hash< string >" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace::nspace::hash< string >" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/serverrec.3 b/docs/man/man3/serverrec.3 index 9db02494f..937637ec0 100644 --- a/docs/man/man3/serverrec.3 +++ b/docs/man/man3/serverrec.3 @@ -1,4 +1,4 @@ -.TH "serverrec" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "serverrec" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/servers.cpp.3 b/docs/man/man3/servers.cpp.3 index 7e5d6d624..00ab9528d 100644 --- a/docs/man/man3/servers.cpp.3 +++ b/docs/man/man3/servers.cpp.3 @@ -1,4 +1,4 @@ -.TH "servers.cpp" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "servers.cpp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/servers.h.3 b/docs/man/man3/servers.h.3 index 656a48f10..707489eb1 100644 --- a/docs/man/man3/servers.h.3 +++ b/docs/man/man3/servers.h.3 @@ -1,4 +1,4 @@ -.TH "servers.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "servers.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/std.3 b/docs/man/man3/std.3 index 2fa2488ad..37b3ebb26 100644 --- a/docs/man/man3/std.3 +++ b/docs/man/man3/std.3 @@ -1,4 +1,4 @@ -.TH "std" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "std" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3 index 27ad6b9b0..5b5cc3285 100644 --- a/docs/man/man3/ucrec.3 +++ b/docs/man/man3/ucrec.3 @@ -1,4 +1,4 @@ -.TH "ucrec" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ucrec" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3 index 4b5c038c5..83d323e83 100644 --- a/docs/man/man3/userrec.3 +++ b/docs/man/man3/userrec.3 @@ -1,4 +1,4 @@ -.TH "userrec" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "userrec" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/users.cpp.3 b/docs/man/man3/users.cpp.3 index f869f127f..5b1969971 100644 --- a/docs/man/man3/users.cpp.3 +++ b/docs/man/man3/users.cpp.3 @@ -1,4 +1,4 @@ -.TH "users.cpp" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "users.cpp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3 index a17206813..6e3177d25 100644 --- a/docs/man/man3/users.h.3 +++ b/docs/man/man3/users.h.3 @@ -1,4 +1,4 @@ -.TH "users.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "users.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/xline.h.3 b/docs/man/man3/xline.h.3 index 0b33eb10c..3cbdff2e2 100644 --- a/docs/man/man3/xline.h.3 +++ b/docs/man/man3/xline.h.3 @@ -1,4 +1,4 @@ -.TH "xline.h" 3 "16 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "xline.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index e069b5b0d..ce826efc6 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -17,6 +17,7 @@ <tr><td class="indexkey"><a class="el" href="classDNS.html">DNS</a></td><td class="indexvalue">Allows fast nonblocking resolution of hostnames and ip addresses </td></tr> <tr><td class="indexkey"><a class="el" href="structdns__ip4list.html">dns_ip4list</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="classELine.html">ELine</a></td><td class="indexvalue"></td></tr> + <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> @@ -31,9 +32,11 @@ <tr><td class="indexkey"><a class="el" href="classModeParameter.html">ModeParameter</a></td><td class="indexvalue">Holds a custom parameter to a module-defined channel mode e.g </td></tr> <tr><td class="indexkey"><a class="el" href="classModule.html">Module</a></td><td class="indexvalue">Base class for all InspIRCd modules This class is the base class for InspIRCd modules </td></tr> <tr><td class="indexkey"><a class="el" href="classModuleFactory.html">ModuleFactory</a></td><td class="indexvalue">Instantiates classes inherited from <a class="el" href="classModule.html">Module</a> This class creates a class inherited from type <a class="el" href="classModule.html">Module</a>, using new </td></tr> + <tr><td class="indexkey"><a class="el" href="classModuleMessage.html">ModuleMessage</a></td><td class="indexvalue">Base class of <a class="el" href="classRequest.html">Request</a> and <a class="el" href="classEvent.html">Event</a> This class is used to represent a basic data structure which is passed between modules for safe inter-module communications </td></tr> <tr><td class="indexkey"><a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a></td><td class="indexvalue"></td></tr> <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="classserverrec.html">serverrec</a></td><td class="indexvalue">A class that defines the local server or a remote server </td></tr> <tr><td class="indexkey"><a class="el" href="structStrHashComp.html">StrHashComp</a></td><td class="indexvalue"></td></tr> @@ -43,7 +46,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 Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 6f01f69c9..0d0fa25dd 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -55,7 +55,7 @@ 00079 00080 <span class="preprocessor">#endif</span> 00081 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:12 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:53 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index 39144e858..1231ee991 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -49,7 +49,7 @@ Definition at line <a class="el" href="base_8h-source.html#l00025">25</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 Sat Apr 16 18:57:14 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index afc7c3751..a78f32fa8 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -204,7 +204,7 @@ 00197 } 00198 <span class="keywordflow">return</span> std::string(<span class="stringliteral">""</span>); 00199 } -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:12 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:53 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 8f56213c3..304e4c8b6 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -631,7 +631,9 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00103">103</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00959">959</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l01030">1030</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#l00821">Server::FindModule()</a>. </td> </tr> </table> <a name="a27" doxytag="channels.cpp::module_names"></a><p> @@ -655,7 +657,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00959">959</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00092">92</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00092">92</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00821">Server::FindModule()</a>. </td> </tr> </table> <a name="a2" doxytag="channels.cpp::modules"></a><p> @@ -679,7 +683,9 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00092">92</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00064">64</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00064">64</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00821">Server::FindModule()</a>. </td> </tr> </table> <a name="a13" doxytag="channels.cpp::motd"></a><p> @@ -1068,7 +1074,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00084">84</a> Definition at line <a class="el" href="channels_8cpp-source.html#l00083">83</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:57 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index 32531048c..fd902fdf7 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -139,7 +139,7 @@ 00218 00219 <span class="preprocessor">#endif</span> 00220 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:12 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:53 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 508baaa99..766d863c1 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -258,7 +258,7 @@ Holds a complete invite list. Definition at line <a class="el" href="channels_8h-source.html#l00088">88</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 Sat Apr 16 18:57:14 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:57 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index bae94ed42..7719c1e74 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#o0">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#o2">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#a1">~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 Sat Apr 16 18:57:16 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 5b83607d3..c0e85bdbf 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -76,9 +76,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l00123">123</a> of <p> <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>. +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>. <p> -<div class="fragment"><pre>00304 : <a class="code" href="classAdmin.html#o0">Name</a>(name), <a class="code" href="classAdmin.html#o1">Email</a>(email), <a class="code" href="classAdmin.html#o2">Nick</a>(nick) { }; +<div class="fragment"><pre>00306 : <a class="code" href="classAdmin.html#o0">Name</a>(name), <a class="code" href="classAdmin.html#o1">Email</a>(email), <a class="code" href="classAdmin.html#o2">Nick</a>(nick) { }; </pre></div> </td> </tr> </table> @@ -157,7 +157,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00126">126</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 Sat Apr 16 18:57:16 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 785c404d0..c29fa5d5b 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#o0">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#a1">~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#a1">~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 Sat Apr 16 18:57:16 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index bb5735fd4..221f69061 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -22,7 +22,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#l00045">45</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 Sat Apr 16 18:57:16 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index b3ca1da2d..6f7d3e741 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#a8">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#a1">~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#a2">~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 Sat Apr 16 18:57:16 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index d6b6882f7..5a037b4de 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -67,7 +67,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#l00944">944</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#l01072">1072</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="ConfigReader::ConfigReader"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -97,17 +97,17 @@ 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#l00762">762</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#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#l00952">cache</a>, <a class="el" href="modules_8h-source.html#l00935">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00957">error</a>, <a class="el" href="modules_8h-source.html#l00953">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00956">readerror</a>. +References <a class="el" href="modules_8h-source.html#l01080">cache</a>, <a class="el" href="modules_8h-source.html#l01063">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01085">error</a>, <a class="el" href="modules_8h-source.html#l01081">errorlog</a>, and <a class="el" href="modules_8h-source.html#l01084">readerror</a>. <p> -<div class="fragment"><pre>00763 { -00764 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00765 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00766 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00767 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00768 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; -00769 } +<div class="fragment"><pre>00834 { +00835 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00836 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00837 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00838 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00839 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; +00840 } </pre></div> </td> </tr> </table> @@ -141,17 +141,17 @@ 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#l00781">781</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#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#l00952">cache</a>, <a class="el" href="modules_8h-source.html#l00935">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00957">error</a>, <a class="el" href="modules_8h-source.html#l00953">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00956">readerror</a>. +References <a class="el" href="modules_8h-source.html#l01080">cache</a>, <a class="el" href="modules_8h-source.html#l01063">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l01085">error</a>, <a class="el" href="modules_8h-source.html#l01081">errorlog</a>, and <a class="el" href="modules_8h-source.html#l01084">readerror</a>. <p> -<div class="fragment"><pre>00782 { -00783 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00784 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00785 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); -00786 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00787 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; -00788 }; +<div class="fragment"><pre>00853 { +00854 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00855 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00856 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); +00857 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00858 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; +00859 }; </pre></div> </td> </tr> </table> @@ -184,16 +184,16 @@ Default destructor. <p> This method destroys the ConfigReader class. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00772">772</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#l00843">843</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00952">cache</a>, and <a class="el" href="modules_8h-source.html#l00953">errorlog</a>. +References <a class="el" href="modules_8h-source.html#l01080">cache</a>, and <a class="el" href="modules_8h-source.html#l01081">errorlog</a>. <p> -<div class="fragment"><pre>00773 { -00774 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) -00775 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; -00776 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) -00777 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; -00778 } +<div class="fragment"><pre>00844 { +00845 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) +00846 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; +00847 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) +00848 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; +00849 } </pre></div> </td> </tr> </table> @@ -237,40 +237,40 @@ 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#l00859">859</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00953">errorlog</a>, <a class="el" href="connection_8h-source.html#l00171">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00106">userrec::nick</a>. -<p> -<div class="fragment"><pre>00860 { -00861 <span class="keywordflow">if</span> (bail) -00862 { -00863 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); -00864 exit(0); -00865 } -00866 <span class="keywordflow">else</span> -00867 { -00868 <span class="keywordtype">char</span> dataline[1024]; -00869 <span class="keywordflow">if</span> (user) -00870 { -00871 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00872 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00873 { -00874 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00875 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); -00876 } -00877 } -00878 <span class="keywordflow">else</span> -00879 { -00880 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00881 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00882 { -00883 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00884 WriteOpers(dataline); -00885 } -00886 } -00887 <span class="keywordflow">return</span>; -00888 } -00889 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00930">930</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l01081">errorlog</a>, <a class="el" href="connection_8h-source.html#l00171">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00106">userrec::nick</a>. +<p> +<div class="fragment"><pre>00931 { +00932 <span class="keywordflow">if</span> (bail) +00933 { +00934 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); +00935 exit(0); +00936 } +00937 <span class="keywordflow">else</span> +00938 { +00939 <span class="keywordtype">char</span> dataline[1024]; +00940 <span class="keywordflow">if</span> (user) +00941 { +00942 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00943 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00944 { +00945 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00946 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); +00947 } +00948 } +00949 <span class="keywordflow">else</span> +00950 { +00951 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00952 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00953 { +00954 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00955 WriteOpers(dataline); +00956 } +00957 } +00958 <span class="keywordflow">return</span>; +00959 } +00960 } </pre></div> </td> </tr> </table> @@ -304,13 +304,13 @@ 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#a3">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#l00892">892</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#l00963">963</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00952">cache</a>. +References <a class="el" href="modules_8h-source.html#l01080">cache</a>. <p> -<div class="fragment"><pre>00893 { -00894 <span class="keywordflow">return</span> EnumConf(cache,tag.c_str()); -00895 } +<div class="fragment"><pre>00964 { +00965 <span class="keywordflow">return</span> EnumConf(cache,tag.c_str()); +00966 } </pre></div> </td> </tr> </table> @@ -353,13 +353,13 @@ 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#l00897">897</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#l00968">968</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00952">cache</a>. +References <a class="el" href="modules_8h-source.html#l01080">cache</a>. <p> -<div class="fragment"><pre>00898 { -00899 <span class="keywordflow">return</span> EnumValues(cache, tag.c_str(), index); -00900 } +<div class="fragment"><pre>00969 { +00970 <span class="keywordflow">return</span> EnumValues(cache, tag.c_str(), index); +00971 } </pre></div> </td> </tr> </table> @@ -392,15 +392,15 @@ 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#a6">GetError()</a> resets the error flag back to 0. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00923">923</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00957">error</a>. +References <a class="el" href="modules_8h-source.html#l01085">error</a>. <p> -<div class="fragment"><pre>00853 { -00854 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; -00855 this->error = 0; -00856 <span class="keywordflow">return</span> olderr; -00857 } +<div class="fragment"><pre>00924 { +00925 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; +00926 this->error = 0; +00927 <span class="keywordflow">return</span> olderr; +00928 } </pre></div> </td> </tr> </table> @@ -449,25 +449,25 @@ 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#l00806">806</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00952">cache</a>, <a class="el" href="modules_8h-source.html#l00934">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00957">error</a>. -<p> -<div class="fragment"><pre>00807 { -00808 <span class="keywordtype">char</span> val[MAXBUF]; -00809 <span class="keywordtype">char</span> t[MAXBUF]; -00810 <span class="keywordtype">char</span> n[MAXBUF]; -00811 strlcpy(t,tag.c_str(),MAXBUF); -00812 strlcpy(n,name.c_str(),MAXBUF); -00813 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); -00814 <span class="keywordflow">if</span> (!res) -00815 { -00816 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; -00817 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00818 } -00819 std::string s = val; -00820 <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>)); -00821 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00877">877</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l01080">cache</a>, <a class="el" href="modules_8h-source.html#l01062">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l01085">error</a>. +<p> +<div class="fragment"><pre>00878 { +00879 <span class="keywordtype">char</span> val[MAXBUF]; +00880 <span class="keywordtype">char</span> t[MAXBUF]; +00881 <span class="keywordtype">char</span> n[MAXBUF]; +00882 strlcpy(t,tag.c_str(),MAXBUF); +00883 strlcpy(n,name.c_str(),MAXBUF); +00884 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); +00885 <span class="keywordflow">if</span> (!res) +00886 { +00887 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00888 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00889 } +00890 std::string s = val; +00891 <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>)); +00892 } </pre></div> </td> </tr> </table> @@ -522,37 +522,37 @@ 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#a6">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#a6">GetError()</a> will return CONF_NOT_UNSIGNED <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00823">823</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00952">cache</a>, <a class="el" href="modules_8h-source.html#l00932">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l00933">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l00934">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00957">error</a>. -<p> -<div class="fragment"><pre>00824 { -00825 <span class="keywordtype">char</span> val[MAXBUF]; -00826 <span class="keywordtype">char</span> t[MAXBUF]; -00827 <span class="keywordtype">char</span> n[MAXBUF]; -00828 strlcpy(t,tag.c_str(),MAXBUF); -00829 strlcpy(n,name.c_str(),MAXBUF); -00830 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); -00831 <span class="keywordflow">if</span> (!res) -00832 { -00833 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; -00834 <span class="keywordflow">return</span> 0; -00835 } -00836 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) -00837 { -00838 <span class="keywordflow">if</span> (!isdigit(val[i])) -00839 { -00840 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_A_NUMBER</a>; -00841 <span class="keywordflow">return</span> 0; -00842 } -00843 } -00844 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) -00845 { -00846 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_NOT_UNSIGNED</a>; -00847 <span class="keywordflow">return</span> 0; -00848 } -00849 <span class="keywordflow">return</span> atoi(val); -00850 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00894">894</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l01080">cache</a>, <a class="el" href="modules_8h-source.html#l01060">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l01061">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l01062">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l01085">error</a>. +<p> +<div class="fragment"><pre>00895 { +00896 <span class="keywordtype">char</span> val[MAXBUF]; +00897 <span class="keywordtype">char</span> t[MAXBUF]; +00898 <span class="keywordtype">char</span> n[MAXBUF]; +00899 strlcpy(t,tag.c_str(),MAXBUF); +00900 strlcpy(n,name.c_str(),MAXBUF); +00901 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); +00902 <span class="keywordflow">if</span> (!res) +00903 { +00904 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00905 <span class="keywordflow">return</span> 0; +00906 } +00907 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) +00908 { +00909 <span class="keywordflow">if</span> (!isdigit(val[i])) +00910 { +00911 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_A_NUMBER</a>; +00912 <span class="keywordflow">return</span> 0; +00913 } +00914 } +00915 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) +00916 { +00917 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_NOT_UNSIGNED</a>; +00918 <span class="keywordflow">return</span> 0; +00919 } +00920 <span class="keywordflow">return</span> atoi(val); +00921 } </pre></div> </td> </tr> </table> @@ -601,24 +601,24 @@ 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#l00790">790</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00952">cache</a>, <a class="el" href="modules_8h-source.html#l00934">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00957">error</a>. -<p> -<div class="fragment"><pre>00791 { -00792 <span class="keywordtype">char</span> val[MAXBUF]; -00793 <span class="keywordtype">char</span> t[MAXBUF]; -00794 <span class="keywordtype">char</span> n[MAXBUF]; -00795 strlcpy(t,tag.c_str(),MAXBUF); -00796 strlcpy(n,name.c_str(),MAXBUF); -00797 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); -00798 <span class="keywordflow">if</span> (!res) -00799 { -00800 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; -00801 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00802 } -00803 <span class="keywordflow">return</span> std::string(val); -00804 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00861">861</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l01080">cache</a>, <a class="el" href="modules_8h-source.html#l01062">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l01085">error</a>. +<p> +<div class="fragment"><pre>00862 { +00863 <span class="keywordtype">char</span> val[MAXBUF]; +00864 <span class="keywordtype">char</span> t[MAXBUF]; +00865 <span class="keywordtype">char</span> n[MAXBUF]; +00866 strlcpy(t,tag.c_str(),MAXBUF); +00867 strlcpy(n,name.c_str(),MAXBUF); +00868 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); +00869 <span class="keywordflow">if</span> (!res) +00870 { +00871 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00872 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00873 } +00874 <span class="keywordflow">return</span> std::string(val); +00875 } </pre></div> </td> </tr> </table> @@ -651,13 +651,13 @@ 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#l00902">902</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#l00973">973</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00956">readerror</a>. +References <a class="el" href="modules_8h-source.html#l01084">readerror</a>. <p> -<div class="fragment"><pre>00903 { -00904 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; -00905 } +<div class="fragment"><pre>00974 { +00975 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; +00976 } </pre></div> </td> </tr> </table> @@ -685,9 +685,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#l00952">952</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#l01080">1080</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#l00762">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00892">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00897">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00806">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00823">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00790">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00772">~ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00833">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00963">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00968">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00877">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00894">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00861">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00843">~ConfigReader()</a>. </td> </tr> </table> <a name="p3" doxytag="ConfigReader::error"></a><p> @@ -711,9 +711,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00762">ConfigReader( <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00957">957</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#l01085">1085</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#l00762">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00852">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00806">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00823">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00790">ReadValue()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00833">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00923">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00877">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00894">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00861">ReadValue()</a>. </td> </tr> </table> <a name="p1" doxytag="ConfigReader::errorlog"></a><p> @@ -737,9 +737,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00762">ConfigReader( <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00953">953</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#l01081">1081</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#l00762">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00859">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00772">~ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00833">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00930">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00843">~ConfigReader()</a>. </td> </tr> </table> <a name="p2" doxytag="ConfigReader::readerror"></a><p> @@ -765,14 +765,14 @@ Used to store errors. <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00956">956</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#l01084">1084</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#l00762">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00902">Verify()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00833">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00973">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 Sat Apr 16 18:57:16 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index bbbf32b4a..d29d1363b 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classConnectClass.html#o1">registration_timeout</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#o0">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#a1">~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 Sat Apr 16 18:57:16 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index 0040ce39c..de93840c8 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -253,7 +253,7 @@ Definition at line <a class="el" href="users_8h-source.html#l00050">50</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 Sat Apr 16 18:57:16 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classDNS-members.html b/docs/module-doc/classDNS-members.html index a17427054..9fe87f425 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -34,7 +34,7 @@ <tr class="memlist"><td><a class="el" href="classDNS.html#a8">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#r2">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#a2">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 63e9c2789..29354bad4 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -916,7 +916,7 @@ Definition at line <a class="el" href="dns_8h-source.html#l00040">40</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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index ed98f22ed..d0902d831 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#o0">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#o2">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#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index 559c61372..b04ff66b1 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -45,7 +45,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00088">88</a> of fi </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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classEvent-members.html b/docs/module-doc/classEvent-members.html new file mode 100644 index 000000000..24baef684 --- /dev/null +++ b/docs/module-doc/classEvent-members.html @@ -0,0 +1,25 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: Member List</title> +<link href="inspircd.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.3 --> +<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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<h1>Event Member List</h1>This is the complete list of members for <a class="el" href="classEvent.html">Event</a>, including all inherited members.<table> + <tr class="memlist"><td><a class="el" href="classclassbase.html#o0">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#a0">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="classEvent.html#p0">data</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="classEvent.html#a0">Event</a>(char *anydata, Module *src, std::string eventid)</td><td><a class="el" href="classEvent.html">Event</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classEvent.html#a1">GetData</a>()</td><td><a class="el" href="classEvent.html">Event</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classEvent.html#a3">GetEventID</a>()</td><td><a class="el" href="classEvent.html">Event</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classEvent.html#a2">GetSource</a>()</td><td><a class="el" href="classEvent.html">Event</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classEvent.html#p2">id</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="classEvent.html#a4">Send</a>()</td><td><a class="el" href="classEvent.html">Event</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classEvent.html#p1">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#a1">~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 Apr 20 15:47:03 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.3 </small></address> +</body> +</html> diff --git a/docs/module-doc/classEvent.html b/docs/module-doc/classEvent.html new file mode 100644 index 000000000..170fa3474 --- /dev/null +++ b/docs/module-doc/classEvent.html @@ -0,0 +1,355 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: Event class Reference</title> +<link href="inspircd.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.3 --> +<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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<h1>Event Class Reference</h1>The Event class is a unicast message directed at all modules. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="modules_8h-source.html">modules.h</a>></code> +<p> +Inherits <a class="el" href="classModuleMessage.html">ModuleMessage</a>. +<p> +<a href="classEvent-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="classEvent.html#a0">Event</a> (char *anydata, <a class="el" href="classModule.html">Module</a> *src, std::string eventid)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new Event. </em> <a href="#a0"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char * </td><td class="memItemRight" valign=bottom><a class="el" href="classEvent.html#a1">GetData</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the Event data. </em> <a href="#a1"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classModule.html">Module</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classEvent.html#a2">GetSource</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the event Source. </em> <a href="#a2"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="classEvent.html#a3">GetEventID</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the event ID. </em> <a href="#a3"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char * </td><td class="memItemRight" valign=bottom><a class="el" href="classEvent.html#a4">Send</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Send the Event. </em> <a href="#a4"></a><em><br><br></td></tr> +<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char * </td><td class="memItemRight" valign=bottom><a class="el" href="classEvent.html#p0">data</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">This member holds a pointer to arbitary data set by the emitter of the message. </em> <a href="#p0"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classModule.html">Module</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classEvent.html#p1">source</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply. </em> <a href="#p1"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="classEvent.html#p2">id</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The event identifier. </em> <a href="#p2"></a><em><br><br></td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +The Event class is a unicast message directed at all modules. +<p> +When the class is properly instantiated it may be sent to all modules using the <a class="el" href="classEvent.html#a4">Send()</a> method, which will trigger the OnEvent method in all modules passing the object as its parameter. +<p> + +<p> +Definition at line <a class="el" href="modules_8h-source.html#l00191">191</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +<a name="a0" doxytag="Event::Event"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> Event::Event </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> <em>anydata</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classModule.html">Module</a> * </td> + <td class="mdname" nowrap> <em>src</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>eventid</em></td> + </tr> + <tr> + <td></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> +Create a new Event. +<p> + +<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>. +<p> +<div class="fragment"><pre>00337 : <a class="code" href="classEvent.html#p0">data</a>(anydata), <a class="code" href="classEvent.html#p1">source</a>(src), <a class="code" href="classEvent.html#p2">id</a>(eventid) { }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a name="a1" doxytag="Event::GetData"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> char * Event::GetData </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> +Get the Event data. +<p> + +<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>. +<p> +References <a class="el" href="modules_8h-source.html#l00196">data</a>. +<p> +<div class="fragment"><pre>00340 { +00341 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#p0">data</a>; +00342 } +</pre></div> </td> + </tr> +</table> +<a name="a3" doxytag="Event::GetEventID"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string Event::GetEventID </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> +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#l00355">355</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00205">id</a>. +<p> +<div class="fragment"><pre>00356 { +00357 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#p2">id</a>; +00358 } +</pre></div> </td> + </tr> +</table> +<a name="a2" doxytag="Event::GetSource"></a><p> +<table class="mdTable" width="100%" 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="classModule.html">Module</a> * Event::GetSource </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> +Get the event Source. +<p> + +<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>. +<p> +References <a class="el" href="modules_8h-source.html#l00200">source</a>. +<p> +<div class="fragment"><pre>00345 { +00346 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#p1">source</a>; +00347 } +</pre></div> </td> + </tr> +</table> +<a name="a4" doxytag="Event::Send"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> char * Event::Send </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Send the Event. +<p> +The return result of an <a class="el" href="classEvent.html#a4">Event::Send()</a> will always be NULL as no replies are expected. +<p> +Implements <a class="el" href="classModuleMessage.html#a0">ModuleMessage</a>. +<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>. +<p> +References <a class="el" href="modules_8h-source.html#l00079">FOREACH_MOD</a>. +<p> +<div class="fragment"><pre>00350 { +00351 <a class="code" href="modules_8h.html#a24">FOREACH_MOD</a> OnEvent(<span class="keyword">this</span>); +00352 <span class="keywordflow">return</span> NULL; +00353 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="p0" doxytag="Event::data"></a><p> +<table class="mdTable" width="100%" 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="classEvent.html#p0">Event::data</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This member holds a pointer to arbitary data set by the emitter of the message. +<p> + +<p> +Definition at line <a class="el" href="modules_8h-source.html#l00196">196</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#l00339">GetData()</a>. </td> + </tr> +</table> +<a name="p2" doxytag="Event::id"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string <a class="el" href="classEvent.html#p2">Event::id</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +The event identifier. +<p> +This is arbitary text which should be used to distinguish one type of event from another. +<p> +Definition at line <a class="el" href="modules_8h-source.html#l00205">205</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#l00355">GetEventID()</a>. </td> + </tr> +</table> +<a name="p1" doxytag="Event::source"></a><p> +<table class="mdTable" width="100%" 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="classModule.html">Module</a>* <a class="el" href="classEvent.html#p1">Event::source</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply. +<p> + +<p> +Definition at line <a class="el" href="modules_8h-source.html#l00200">200</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#l00344">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 Wed Apr 20 15:47:03 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.3 </small></address> +</body> +</html> diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index e59d1b28a..d52ce9172 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#o0">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#a1">~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#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index 0c3574ea9..0b63537a6 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -22,7 +22,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#l00053">53</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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index e10f3d1de..8c3c7da3d 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#o2">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#o1">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#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index 5ef8c14e8..c90e27944 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -82,11 +82,11 @@ <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00199">199</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#l00201">201</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00193">modechar</a>, <a class="el" href="modules_8cpp-source.html#l00197">needsoper</a>, <a class="el" href="modules_8cpp-source.html#l00196">params_when_off</a>, <a class="el" href="modules_8cpp-source.html#l00195">params_when_on</a>, and <a class="el" href="modules_8cpp-source.html#l00194">type</a>. +References <a class="el" href="modules_8cpp-source.html#l00195">modechar</a>, <a class="el" href="modules_8cpp-source.html#l00199">needsoper</a>, <a class="el" href="modules_8cpp-source.html#l00198">params_when_off</a>, <a class="el" href="modules_8cpp-source.html#l00197">params_when_on</a>, and <a class="el" href="modules_8cpp-source.html#l00196">type</a>. <p> -<div class="fragment"><pre>00199 : <a class="code" href="classExtMode.html#o0">modechar</a>(mc), <a class="code" href="classExtMode.html#o1">type</a>(ty), <a class="code" href="classExtMode.html#o4">needsoper</a>(oper), <a class="code" href="classExtMode.html#o2">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#o3">params_when_off</a>(p_off) { }; +<div class="fragment"><pre>00201 : <a class="code" href="classExtMode.html#o0">modechar</a>(mc), <a class="code" href="classExtMode.html#o1">type</a>(ty), <a class="code" href="classExtMode.html#o4">needsoper</a>(oper), <a class="code" href="classExtMode.html#o2">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#o3">params_when_off</a>(p_off) { }; </pre></div> </td> </tr> </table> @@ -112,7 +112,7 @@ References <a class="el" href="modules_8cpp-source.html#l00193">modechar</a>, <a <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00198">198</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00200">200</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="o0" doxytag="ExtMode::modechar"></a><p> @@ -136,9 +136,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00198">198</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00193">193</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#l00195">195</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#l00199">ExtMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00201">ExtMode()</a>. </td> </tr> </table> <a name="o4" doxytag="ExtMode::needsoper"></a><p> @@ -162,9 +162,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00199">ExtMode()</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00197">197</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#l00199">199</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#l00199">ExtMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00201">ExtMode()</a>. </td> </tr> </table> <a name="o3" doxytag="ExtMode::params_when_off"></a><p> @@ -188,9 +188,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00199">ExtMode()</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00196">196</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#l00198">198</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#l00199">ExtMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00201">ExtMode()</a>. </td> </tr> </table> <a name="o2" doxytag="ExtMode::params_when_on"></a><p> @@ -214,9 +214,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00199">ExtMode()</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00195">195</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#l00197">197</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#l00199">ExtMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00201">ExtMode()</a>. </td> </tr> </table> <a name="o1" doxytag="ExtMode::type"></a><p> @@ -240,14 +240,14 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00199">ExtMode()</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00194">194</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#l00196">196</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#l00199">ExtMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00201">ExtMode()</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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index 73741464a..a7cbccc24 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classExtensible.html#a2">GetExt</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="classExtensible.html#a1">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#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 4bfd3bcbc..c97ad8fcc 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -170,7 +170,7 @@ Definition at line <a class="el" href="base_8h-source.html#l00054">54</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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index bc5d70b15..e6eb6aae8 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#a3">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#a1">~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#a2">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 27989604a..ffccc4d37 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -47,7 +47,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#l01033">1033</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#l01161">1161</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="FileReader::FileReader"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -77,10 +77,10 @@ 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#l00915">915</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#l00986">986</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00916 { -00917 } +<div class="fragment"><pre>00987 { +00988 } </pre></div> </td> </tr> </table> @@ -114,15 +114,15 @@ 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#a6">FileReader::FileSize</a> returns 0. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00908">908</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#l00979">979</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01035">fc</a>, and <a class="el" href="modules_8h-source.html#l00067">file_cache</a>. +References <a class="el" href="modules_8h-source.html#l01163">fc</a>, and <a class="el" href="modules_8h-source.html#l00067">file_cache</a>. <p> -<div class="fragment"><pre>00909 { -00910 <a class="code" href="modules_8h.html#a31">file_cache</a> c; -00911 readfile(c,filename.c_str()); -00912 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00913 } +<div class="fragment"><pre>00980 { +00981 <a class="code" href="modules_8h.html#a31">file_cache</a> c; +00982 readfile(c,filename.c_str()); +00983 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00984 } </pre></div> </td> </tr> </table> @@ -155,10 +155,10 @@ Default destructor. <p> This deletes the memory allocated to the file. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00927">927</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#l00998">998</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00928 { -00929 } +<div class="fragment"><pre>00999 { +01000 } </pre></div> </td> </tr> </table> @@ -192,20 +192,20 @@ 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#l00931">931</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#l01002">1002</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01035">fc</a>. +References <a class="el" href="modules_8h-source.html#l01163">fc</a>. <p> -<div class="fragment"><pre>00932 { -00933 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) -00934 { -00935 <span class="keywordflow">return</span>(<span class="keyword">false</span>); -00936 } -00937 <span class="keywordflow">else</span> -00938 { -00939 <span class="keywordflow">return</span>(<span class="keyword">true</span>); -00940 } -00941 } +<div class="fragment"><pre>01003 { +01004 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) +01005 { +01006 <span class="keywordflow">return</span>(<span class="keyword">false</span>); +01007 } +01008 <span class="keywordflow">else</span> +01009 { +01010 <span class="keywordflow">return</span>(<span class="keyword">true</span>); +01011 } +01012 } </pre></div> </td> </tr> </table> @@ -238,13 +238,13 @@ 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#l00950">950</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#l01021">1021</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01035">fc</a>. +References <a class="el" href="modules_8h-source.html#l01163">fc</a>. <p> -<div class="fragment"><pre>00951 { -00952 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); -00953 } +<div class="fragment"><pre>01022 { +01023 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); +01024 } </pre></div> </td> </tr> </table> @@ -278,15 +278,15 @@ 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#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#l01014">1014</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01035">fc</a>. +References <a class="el" href="modules_8h-source.html#l01163">fc</a>. <p> -<div class="fragment"><pre>00944 { -00945 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) -00946 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00947 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; -00948 } +<div class="fragment"><pre>01015 { +01016 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) +01017 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +01018 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; +01019 } </pre></div> </td> </tr> </table> @@ -320,15 +320,15 @@ 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#a6">FileReader::FileSize</a> returns 0. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00919">919</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#l00990">990</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l01035">fc</a>, and <a class="el" href="modules_8h-source.html#l00067">file_cache</a>. +References <a class="el" href="modules_8h-source.html#l01163">fc</a>, and <a class="el" href="modules_8h-source.html#l00067">file_cache</a>. <p> -<div class="fragment"><pre>00920 { -00921 <a class="code" href="modules_8h.html#a31">file_cache</a> c; -00922 readfile(c,filename.c_str()); -00923 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00924 } +<div class="fragment"><pre>00991 { +00992 <a class="code" href="modules_8h.html#a31">file_cache</a> c; +00993 readfile(c,filename.c_str()); +00994 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00995 } </pre></div> </td> </tr> </table> @@ -354,14 +354,14 @@ References <a class="el" href="modules_8h-source.html#l01035">fc</a>, and <a cla <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01035">1035</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#l01163">1163</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#l00931">Exists()</a>, <a class="el" href="modules_8cpp-source.html#l00908">FileReader()</a>, <a class="el" href="modules_8cpp-source.html#l00950">FileSize()</a>, <a class="el" href="modules_8cpp-source.html#l00943">GetLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00919">LoadFile()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l01002">Exists()</a>, <a class="el" href="modules_8cpp-source.html#l00979">FileReader()</a>, <a class="el" href="modules_8cpp-source.html#l01021">FileSize()</a>, <a class="el" href="modules_8cpp-source.html#l01014">GetLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00990">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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index f5454e24f..c4ab25dee 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#o0">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#o2">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#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index e52436cf3..623741c5a 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -53,7 +53,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00079">79</a> of fi </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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index cb6435314..f1eeb07c7 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#o0">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#a1">~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#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index 48949e5a1..97e3f7154 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -178,7 +178,7 @@ Definition at line <a class="el" href="channels_8h-source.html#l00032">32</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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index 1f7752662..58554fc61 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#o0">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#a1">~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#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 64c783345..626406afd 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -22,7 +22,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#l00061">61</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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index bf1e4b403..fee911d38 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#o0">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#a0">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#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 1eb4499ae..57b456cd1 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -52,7 +52,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00085">userrec::Invite </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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index 8c6e38b4d..b76cb3967 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#o0">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#o2">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#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index c7fa38491..424dee41d 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -53,7 +53,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00068">68</a> of fi </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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index e82f15415..dca5b61d4 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#o0">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#o1">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#a1">~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 Sat Apr 16 18:57:18 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index 4f2a502ec..8cd028b8c 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -110,7 +110,7 @@ Referenced by <a class="el" href="channels_8cpp-source.html#l00149">chanrec::Set </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 Sat Apr 16 18:57:18 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index f0f9eee41..899b9eb48 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -10,50 +10,53 @@ <tr class="memlist"><td><a class="el" href="classclassbase.html#a0">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#a2">GetVersion</a>()</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="classModule.html#a0">Module</a>()</td><td><a class="el" href="classModule.html">Module</a></td><td></td></tr> - <tr class="memlist"><td><a class="el" href="classModule.html#a26">On005Numeric</a>(std::string &output)</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="classModule.html#a23">OnAccessCheck</a>(userrec *source, userrec *dest, chanrec *channel, int access_type)</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="classModule.html#a29">OnBackgroundTimer</a>(time_t curtime)</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="classModule.html#a41">OnChangeLocalUserGECOS</a>(userrec *user, std::string newhost)</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="classModule.html#a40">OnChangeLocalUserHost</a>(userrec *user, std::string newhost)</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="classModule.html#a25">OnChannelSync</a>(chanrec *chan)</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="classModule.html#a38">OnCheckBan</a>(userrec *user, chanrec *chan)</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="classModule.html#a35">OnCheckInvite</a>(userrec *user, chanrec *chan)</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="classModule.html#a36">OnCheckKey</a>(userrec *user, chanrec *chan, std::string keygiven)</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="classModule.html#a37">OnCheckLimit</a>(userrec *user, chanrec *chan)</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="classModule.html#a32">OnCheckReady</a>(userrec *user)</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="classModule.html#a11">OnExtendedMode</a>(userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)</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="classModule.html#a16">OnInfo</a>(userrec *user)</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="classModule.html#a27">OnKill</a>(userrec *source, userrec *dest, std::string reason)</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="classModule.html#a28">OnLoadModule</a>(Module *mod, std::string name)</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="classModule.html#a42">OnLocalTopicChange</a>(userrec *user, chanrec *chan, std::string topic)</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="classModule.html#a43">OnMeshToken</a>(char token, string_list params, serverrec *source, serverrec *reply, std::string tcp_host, std::string ipaddr, int port)</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="classModule.html#a15">OnOper</a>(userrec *user)</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="classModule.html#a8">OnPacketReceive</a>(std::string &data, std::string serv)</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="classModule.html#a7">OnPacketTransmit</a>(std::string &data, std::string serv)</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="classModule.html#a31">OnPreCommand</a>(std::string command, char **parameters, int pcnt, userrec *user)</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="classModule.html#a34">OnRawMode</a>(userrec *user, chanrec *chan, char mode, std::string param, bool adding, int pcnt)</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="classModule.html#a9">OnRehash</a>()</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="classModule.html#a30">OnSendList</a>(userrec *user, chanrec *channel, char mode)</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="classModule.html#a10">OnServerRaw</a>(std::string &raw, bool inbound, userrec *user)</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="classModule.html#a39">OnStats</a>(char symbol)</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="classModule.html#a27">On005Numeric</a>(std::string &output)</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="classModule.html#a24">OnAccessCheck</a>(userrec *source, userrec *dest, chanrec *channel, int access_type)</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="classModule.html#a30">OnBackgroundTimer</a>(time_t curtime)</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="classModule.html#a42">OnChangeLocalUserGECOS</a>(userrec *user, std::string newhost)</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="classModule.html#a41">OnChangeLocalUserHost</a>(userrec *user, std::string newhost)</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="classModule.html#a26">OnChannelSync</a>(chanrec *chan)</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="classModule.html#a39">OnCheckBan</a>(userrec *user, chanrec *chan)</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="classModule.html#a36">OnCheckInvite</a>(userrec *user, chanrec *chan)</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="classModule.html#a37">OnCheckKey</a>(userrec *user, chanrec *chan, std::string keygiven)</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="classModule.html#a38">OnCheckLimit</a>(userrec *user, chanrec *chan)</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="classModule.html#a33">OnCheckReady</a>(userrec *user)</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="classModule.html#a45">OnEvent</a>(Event *event)</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="classModule.html#a12">OnExtendedMode</a>(userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)</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="classModule.html#a17">OnInfo</a>(userrec *user)</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="classModule.html#a28">OnKill</a>(userrec *source, userrec *dest, std::string reason)</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="classModule.html#a29">OnLoadModule</a>(Module *mod, std::string name)</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="classModule.html#a43">OnLocalTopicChange</a>(userrec *user, chanrec *chan, std::string topic)</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="classModule.html#a44">OnMeshToken</a>(char token, string_list params, serverrec *source, serverrec *reply, std::string tcp_host, std::string ipaddr, int port)</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="classModule.html#a16">OnOper</a>(userrec *user)</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="classModule.html#a9">OnPacketReceive</a>(std::string &data, std::string serv)</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="classModule.html#a8">OnPacketTransmit</a>(std::string &data, std::string serv)</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="classModule.html#a32">OnPreCommand</a>(std::string command, char **parameters, int pcnt, userrec *user)</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="classModule.html#a35">OnRawMode</a>(userrec *user, chanrec *chan, char mode, std::string param, bool adding, int pcnt)</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="classModule.html#a10">OnRehash</a>()</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="classModule.html#a46">OnRequest</a>(Request *request)</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="classModule.html#a31">OnSendList</a>(userrec *user, chanrec *channel, char mode)</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="classModule.html#a11">OnServerRaw</a>(std::string &raw, bool inbound, userrec *user)</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="classModule.html#a40">OnStats</a>(char symbol)</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="classModule.html#a3">OnUserConnect</a>(userrec *user)</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="classModule.html#a5">OnUserJoin</a>(userrec *user, chanrec *channel)</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="classModule.html#a14">OnUserKick</a>(userrec *source, userrec *user, chanrec *chan, std::string reason)</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="classModule.html#a6">OnUserPart</a>(userrec *user, chanrec *channel)</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="classModule.html#a22">OnUserPostNick</a>(userrec *user, std::string oldnick)</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="classModule.html#a18">OnUserPreInvite</a>(userrec *source, userrec *dest, chanrec *channel)</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="classModule.html#a12">OnUserPreJoin</a>(userrec *user, chanrec *chan, const char *cname)</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="classModule.html#a13">OnUserPreKick</a>(userrec *source, userrec *user, chanrec *chan, std::string reason)</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="classModule.html#a19">OnUserPreMessage</a>(userrec *user, void *dest, int target_type, std::string &text)</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="classModule.html#a21">OnUserPreNick</a>(userrec *user, std::string newnick)</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="classModule.html#a20">OnUserPreNotice</a>(userrec *user, void *dest, int target_type, std::string &text)</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="classModule.html#a5">OnUserDisconnect</a>(userrec *user)</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="classModule.html#a6">OnUserJoin</a>(userrec *user, chanrec *channel)</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="classModule.html#a15">OnUserKick</a>(userrec *source, userrec *user, chanrec *chan, std::string reason)</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="classModule.html#a7">OnUserPart</a>(userrec *user, chanrec *channel)</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="classModule.html#a23">OnUserPostNick</a>(userrec *user, std::string oldnick)</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="classModule.html#a19">OnUserPreInvite</a>(userrec *source, userrec *dest, chanrec *channel)</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="classModule.html#a13">OnUserPreJoin</a>(userrec *user, chanrec *chan, const char *cname)</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="classModule.html#a14">OnUserPreKick</a>(userrec *source, userrec *user, chanrec *chan, std::string reason)</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="classModule.html#a20">OnUserPreMessage</a>(userrec *user, void *dest, int target_type, std::string &text)</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="classModule.html#a22">OnUserPreNick</a>(userrec *user, std::string newnick)</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="classModule.html#a21">OnUserPreNotice</a>(userrec *user, void *dest, int target_type, std::string &text)</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="classModule.html#a4">OnUserQuit</a>(userrec *user)</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="classModule.html#a33">OnUserRegister</a>(userrec *user)</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="classModule.html#a24">OnUserSync</a>(userrec *user)</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="classModule.html#a17">OnWhois</a>(userrec *source, userrec *dest)</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="classModule.html#a34">OnUserRegister</a>(userrec *user)</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="classModule.html#a25">OnUserSync</a>(userrec *user)</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="classModule.html#a18">OnWhois</a>(userrec *source, userrec *dest)</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#a1">~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#a1">~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 Sat Apr 16 18:57:20 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 03900e9e5..6062b0714 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -30,123 +30,132 @@ Inherits <a class="el" href="classclassbase.html">classbase</a>. <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a4">OnUserQuit</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a user quits. </em> <a href="#a4"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a5">OnUserJoin</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *channel)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a5">OnUserDisconnect</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a user joins a channel. </em> <a href="#a5"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a6">OnUserPart</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *channel)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user's socket is closed. </em> <a href="#a5"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a6">OnUserJoin</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *channel)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a user parts a channel. </em> <a href="#a6"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a7">OnPacketTransmit</a> (std::string &data, std::string serv)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a user joins a channel. </em> <a href="#a6"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a7">OnUserPart</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *channel)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called before a packet is transmitted across the irc network between two irc servers. </em> <a href="#a7"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a8">OnPacketReceive</a> (std::string &data, std::string serv)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a user parts a channel. </em> <a href="#a7"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a8">OnPacketTransmit</a> (std::string &data, std::string serv)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called after a packet is received from another irc server. </em> <a href="#a8"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a9">OnRehash</a> ()</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called before a packet is transmitted across the irc network between two irc servers. </em> <a href="#a8"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a9">OnPacketReceive</a> (std::string &data, std::string serv)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called on rehash. </em> <a href="#a9"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a10">OnServerRaw</a> (std::string &raw, bool inbound, <a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called after a packet is received from another irc server. </em> <a href="#a9"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a10">OnRehash</a> ()</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a raw command is transmitted or received. </em> <a href="#a10"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a11">OnExtendedMode</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *target, char modechar, int type, bool mode_on, <a class="el" href="modules_8h.html#a32">string_list</a> &params)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called on rehash. </em> <a href="#a10"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a11">OnServerRaw</a> (std::string &raw, bool inbound, <a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever an extended mode is to be processed. </em> <a href="#a11"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a12">OnUserPreJoin</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, const char *cname)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a raw command is transmitted or received. </em> <a href="#a11"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a12">OnExtendedMode</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *target, char modechar, int type, bool mode_on, <a class="el" href="modules_8h.html#a32">string_list</a> &params)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to join a channel, before any processing is done. </em> <a href="#a12"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a13">OnUserPreKick</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, std::string reason)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever an extended mode is to be processed. </em> <a href="#a12"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a13">OnUserPreJoin</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, const char *cname)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to be kicked. </em> <a href="#a13"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a14">OnUserKick</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, std::string reason)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to join a channel, before any processing is done. </em> <a href="#a13"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a14">OnUserPreKick</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, std::string reason)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is kicked. </em> <a href="#a14"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a15">OnOper</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to be kicked. </em> <a href="#a14"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a15">OnUserKick</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, std::string reason)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user opers locally. </em> <a href="#a15"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a16">OnInfo</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is kicked. </em> <a href="#a15"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a16">OnOper</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user types /INFO. </em> <a href="#a16"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a17">OnWhois</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user opers locally. </em> <a href="#a16"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a17">OnInfo</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a /WHOIS is performed on a local user. </em> <a href="#a17"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a18">OnUserPreInvite</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, <a class="el" href="classchanrec.html">chanrec</a> *channel)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user types /INFO. </em> <a href="#a17"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a18">OnWhois</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to invite another user into a channel, before any processing is done. </em> <a href="#a18"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a19">OnUserPreMessage</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *dest, int target_type, std::string &text)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a /WHOIS is performed on a local user. </em> <a href="#a18"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a19">OnUserPreInvite</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, <a class="el" href="classchanrec.html">chanrec</a> *channel)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done. </em> <a href="#a19"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a20">OnUserPreNotice</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *dest, int target_type, std::string &text)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to invite another user into a channel, before any processing is done. </em> <a href="#a19"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a20">OnUserPreMessage</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *dest, int target_type, std::string &text)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to NOTICE A user or a channel, before any processing is done. </em> <a href="#a20"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a21">OnUserPreNick</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string newnick)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done. </em> <a href="#a20"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a21">OnUserPreNotice</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *dest, int target_type, std::string &text)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called before any nickchange, local or remote. </em> <a href="#a21"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a22">OnUserPostNick</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string oldnick)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to NOTICE A user or a channel, before any processing is done. </em> <a href="#a21"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a22">OnUserPreNick</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string newnick)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called after any nickchange, local or remote. </em> <a href="#a22"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a23">OnAccessCheck</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, <a class="el" href="classchanrec.html">chanrec</a> *channel, int access_type)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called before any nickchange, local or remote. </em> <a href="#a22"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a23">OnUserPostNick</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string oldnick)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called before an action which requires a channel privilage check. </em> <a href="#a23"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a32">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a24">OnUserSync</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called after any nickchange, local or remote. </em> <a href="#a23"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a24">OnAccessCheck</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, <a class="el" href="classchanrec.html">chanrec</a> *channel, int access_type)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called during a netburst to sync user data. </em> <a href="#a24"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a32">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a25">OnChannelSync</a> (<a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called before an action which requires a channel privilage check. </em> <a href="#a24"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a32">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a25">OnUserSync</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called during a netburst to sync channel data. </em> <a href="#a25"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a26">On005Numeric</a> (std::string &output)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called during a netburst to sync user data. </em> <a href="#a25"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a32">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a26">OnChannelSync</a> (<a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a 005 numeric is about to be output. </em> <a href="#a26"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a27">OnKill</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, std::string reason)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called during a netburst to sync channel data. </em> <a href="#a26"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a27">On005Numeric</a> (std::string &output)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a client is disconnected by KILL. </em> <a href="#a27"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a28">OnLoadModule</a> (<a class="el" href="classModule.html">Module</a> *mod, std::string name)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a 005 numeric is about to be output. </em> <a href="#a27"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a28">OnKill</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, std::string reason)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a module is loaded. </em> <a href="#a28"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a29">OnBackgroundTimer</a> (time_t curtime)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a client is disconnected by KILL. </em> <a href="#a28"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a29">OnLoadModule</a> (<a class="el" href="classModule.html">Module</a> *mod, std::string name)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called once every five seconds for background processing. </em> <a href="#a29"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a30">OnSendList</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *channel, char mode)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a module is loaded. </em> <a href="#a29"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a30">OnBackgroundTimer</a> (time_t curtime)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a list is needed for a listmode. </em> <a href="#a30"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a31">OnPreCommand</a> (std::string command, char **parameters, int pcnt, <a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called once every five seconds for background processing. </em> <a href="#a30"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a31">OnSendList</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *channel, char mode)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever any command is about to be executed. </em> <a href="#a31"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a32">OnCheckReady</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a list is needed for a listmode. </em> <a href="#a31"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a32">OnPreCommand</a> (std::string command, char **parameters, int pcnt, <a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called to check if a user who is connecting can now be allowed to register If any modules return false for this function, the user is held in the waiting state until all modules return true. </em> <a href="#a32"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a33">OnUserRegister</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever any command is about to be executed. </em> <a href="#a32"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a33">OnCheckReady</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to register their connection (e.g. </em> <a href="#a33"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a34">OnRawMode</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, char mode, std::string param, bool adding, int pcnt)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called to check if a user who is connecting can now be allowed to register If any modules return false for this function, the user is held in the waiting state until all modules return true. </em> <a href="#a33"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a34">OnUserRegister</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a mode character is processed. </em> <a href="#a34"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a35">OnCheckInvite</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user is about to register their connection (e.g. </em> <a href="#a34"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a35">OnRawMode</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, char mode, std::string param, bool adding, int pcnt)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user joins a channel, to determine if invite checks should go ahead or not. </em> <a href="#a35"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a36">OnCheckKey</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, std::string keygiven)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a mode character is processed. </em> <a href="#a35"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a36">OnCheckInvite</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user joins a channel, to determine if key checks should go ahead or not. </em> <a href="#a36"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a37">OnCheckLimit</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user joins a channel, to determine if invite checks should go ahead or not. </em> <a href="#a36"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a37">OnCheckKey</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, std::string keygiven)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user joins a channel, to determine if channel limit checks should go ahead or not. </em> <a href="#a37"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a38">OnCheckBan</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user joins a channel, to determine if key checks should go ahead or not. </em> <a href="#a37"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a38">OnCheckLimit</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user joins a channel, to determine if banlist checks should go ahead or not. </em> <a href="#a38"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a39">OnStats</a> (char symbol)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user joins a channel, to determine if channel limit checks should go ahead or not. </em> <a href="#a38"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a39">OnCheckBan</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called on all /STATS commands This method is triggered for all /STATS use, including stats symbols handled by the core. </em> <a href="#a39"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a40">OnChangeLocalUserHost</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string newhost)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a user joins a channel, to determine if banlist checks should go ahead or not. </em> <a href="#a39"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a40">OnStats</a> (char symbol)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a change of a local users displayed host is attempted. </em> <a href="#a40"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a41">OnChangeLocalUserGECOS</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string newhost)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called on all /STATS commands This method is triggered for all /STATS use, including stats symbols handled by the core. </em> <a href="#a40"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a41">OnChangeLocalUserHost</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string newhost)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a change of a local users GECOS (fullname field) is attempted. </em> <a href="#a41"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a42">OnLocalTopicChange</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, std::string topic)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a change of a local users displayed host is attempted. </em> <a href="#a41"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a42">OnChangeLocalUserGECOS</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string newhost)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a topic is changed by a local user. </em> <a href="#a42"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a43">OnMeshToken</a> (char token, <a class="el" href="modules_8h.html#a32">string_list</a> params, <a class="el" href="classserverrec.html">serverrec</a> *source, <a class="el" href="classserverrec.html">serverrec</a> *reply, std::string tcp_host, std::string ipaddr, int port)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a change of a local users GECOS (fullname field) is attempted. </em> <a href="#a42"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a43">OnLocalTopicChange</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, std::string topic)</td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever an unknown token is received in a server to server link. </em> <a href="#a43"></a><em><br><br></td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a topic is changed by a local user. </em> <a href="#a43"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a44">OnMeshToken</a> (char token, <a class="el" href="modules_8h.html#a32">string_list</a> params, <a class="el" href="classserverrec.html">serverrec</a> *source, <a class="el" href="classserverrec.html">serverrec</a> *reply, std::string tcp_host, std::string ipaddr, int port)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever an unknown token is received in a server to server link. </em> <a href="#a44"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a45">OnEvent</a> (<a class="el" href="classEvent.html">Event</a> *event)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever an <a class="el" href="classEvent.html">Event</a> class is sent to all module by another module. </em> <a href="#a45"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual char * </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a46">OnRequest</a> (<a class="el" href="classRequest.html">Request</a> *request)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a <a class="el" href="classRequest.html">Request</a> class is sent to your module by another module. </em> <a href="#a46"></a><em><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Base class for all InspIRCd modules This class is the base class for InspIRCd modules. @@ -155,7 +164,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#l00135">135</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#l00233">233</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Module::Module"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -185,9 +194,9 @@ Default constructor creates a module class. <p> <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>. +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>. <p> -<div class="fragment"><pre>00306 { } +<div class="fragment"><pre>00361 { } </pre></div> </td> </tr> </table> @@ -220,9 +229,9 @@ Default destructor destroys a module class. <p> <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>. +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>. <p> -<div class="fragment"><pre>00307 { } +<div class="fragment"><pre>00362 { } </pre></div> </td> </tr> </table> @@ -256,15 +265,15 @@ 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#a0">Version::Version</a> <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>. +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>. <p> References <a class="el" href="modules_8h-source.html#l00054">VF_VENDOR</a>. <p> -<div class="fragment"><pre>00318 { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0,VF_VENDOR); } +<div class="fragment"><pre>00374 { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0,VF_VENDOR); } </pre></div> </td> </tr> </table> -<a name="a26" doxytag="Module::On005Numeric"></a><p> +<a name="a27" doxytag="Module::On005Numeric"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -294,13 +303,13 @@ Called when a 005 numeric is about to be output. <p> The module should modify the 005 numeric if needed to indicate its features. <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>. +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>. <p> -<div class="fragment"><pre>00330 { }; +<div class="fragment"><pre>00386 { }; </pre></div> </td> </tr> </table> -<a name="a23" doxytag="Module::OnAccessCheck"></a><p> +<a name="a24" doxytag="Module::OnAccessCheck"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -363,15 +372,15 @@ This function is called before many functions which check a users status on a ch <br> Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined). <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00383">383</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>. <p> -<div class="fragment"><pre>00327 { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#a8">ACR_DEFAULT</a>; }; +<div class="fragment"><pre>00383 { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#a8">ACR_DEFAULT</a>; }; </pre></div> </td> </tr> </table> -<a name="a29" doxytag="Module::OnBackgroundTimer"></a><p> +<a name="a30" doxytag="Module::OnBackgroundTimer"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -401,13 +410,13 @@ Called once every five seconds for background processing. <p> This timer can be used to control timed features. Its period is not accurate enough to be used as a clock, but it is gauranteed to be called at least once in any five second period, directly from the main loop of the server. <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>. +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>. <p> -<div class="fragment"><pre>00333 { }; +<div class="fragment"><pre>00389 { }; </pre></div> </td> </tr> </table> -<a name="a41" doxytag="Module::OnChangeLocalUserGECOS"></a><p> +<a name="a42" doxytag="Module::OnChangeLocalUserGECOS"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -446,13 +455,13 @@ Called whenever a change of a local users GECOS (fullname field) is attempted. <p> return 1 to deny the name change, or 0 to allow it. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00403">403</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00347 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00403 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a40" doxytag="Module::OnChangeLocalUserHost"></a><p> +<a name="a41" doxytag="Module::OnChangeLocalUserHost"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -491,13 +500,13 @@ Called whenever a change of a local users displayed host is attempted. <p> Return 1 to deny the host change, or 0 to allow it. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00402">402</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00346 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00402 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a25" doxytag="Module::OnChannelSync"></a><p> +<a name="a26" doxytag="Module::OnChannelSync"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -527,15 +536,15 @@ Called during a netburst to sync channel data. <p> This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00385">385</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="modules_8h-source.html#l00068">string_list</a>. <p> -<div class="fragment"><pre>00329 { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<div class="fragment"><pre>00385 { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } </pre></div> </td> </tr> </table> -<a name="a38" doxytag="Module::OnCheckBan"></a><p> +<a name="a39" doxytag="Module::OnCheckBan"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -574,13 +583,13 @@ Called whenever a user joins a channel, to determine if banlist checks should go <p> This method will always be called for each join, wether or not the user actually matches a channel ban, and determines the outcome of an if statement around the whole section of ban checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. <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#l00400">400</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00344 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00400 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a35" doxytag="Module::OnCheckInvite"></a><p> +<a name="a36" doxytag="Module::OnCheckInvite"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -619,13 +628,13 @@ Called whenever a user joins a channel, to determine if invite checks should go <p> This method will always be called for each join, wether or not the channel is actually +i, and determines the outcome of an if statement around the whole section of invite checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00397">397</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00341 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00397 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a36" doxytag="Module::OnCheckKey"></a><p> +<a name="a37" doxytag="Module::OnCheckKey"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -670,13 +679,13 @@ Called whenever a user joins a channel, to determine if key checks should go ahe <p> This method will always be called for each join, wether or not the channel is actually +k, and determines the outcome of an if statement around the whole section of key checking code. if the user specified no key, the keygiven string will be a valid but empty value. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00398">398</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00342 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00398 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a37" doxytag="Module::OnCheckLimit"></a><p> +<a name="a38" doxytag="Module::OnCheckLimit"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -715,13 +724,13 @@ Called whenever a user joins a channel, to determine if channel limit checks sho <p> This method will always be called for each join, wether or not the channel is actually +l, and determines the outcome of an if statement around the whole section of channel limit checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. <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>. +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>. <p> -<div class="fragment"><pre>00343 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00399 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a32" doxytag="Module::OnCheckReady"></a><p> +<a name="a33" doxytag="Module::OnCheckReady"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -751,13 +760,49 @@ Called to check if a user who is connecting can now be allowed to register If an <p> For example a module which implements ident lookups will continue to return false for a user until their ident lookup is completed. Note that the registration timeout for a user overrides these checks, if the registration timeout is reached, the user is disconnected even if modules report that the user is not ready to connect. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00392">392</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00336 { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; +<div class="fragment"><pre>00392 { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; </pre></div> </td> </tr> </table> -<a name="a11" doxytag="Module::OnExtendedMode"></a><p> +<a name="a45" doxytag="Module::OnEvent"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void Module::OnEvent </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classEvent.html">Event</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>event</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Called whenever an <a class="el" href="classEvent.html">Event</a> class is sent to all module by another module. +<p> +Please see the documentation of <a class="el" href="classEvent.html#a4">Event::Send()</a> for further information. The <a class="el" href="classEvent.html">Event</a> sent can always be assumed to be non-NULL, you should *always* check the value of <a class="el" href="classEvent.html#a3">Event::GetEventID()</a> before doing anything to the event data, and you should *not* change the event data in any way! +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00406">406</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00406 { <span class="keywordflow">return</span>; }; +</pre></div> </td> + </tr> +</table> +<a name="a12" doxytag="Module::OnExtendedMode"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -820,13 +865,13 @@ Called whenever an extended mode is to be processed. <p> The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with <a class="el" href="classServer.html#a21">Server::AddExtendedMode</a> If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it. <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>. +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>. <p> -<div class="fragment"><pre>00317 { <span class="keywordflow">return</span> <span class="keyword">false</span>; } +<div class="fragment"><pre>00373 { <span class="keywordflow">return</span> <span class="keyword">false</span>; } </pre></div> </td> </tr> </table> -<a name="a16" doxytag="Module::OnInfo"></a><p> +<a name="a17" doxytag="Module::OnInfo"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -857,13 +902,13 @@ Called whenever a user types /INFO. The userrec will contain the information of the user who typed the command. Modules may use this method to output their own credits in /INFO (which is the ircd's version of an about box). It is purposefully not possible to modify any info that has already been output, or halt the list. You must write a 371 numeric to the user, containing your info in the following format:<p> <nick> :information here <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>. +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>. <p> -<div class="fragment"><pre>00320 { }; +<div class="fragment"><pre>00376 { }; </pre></div> </td> </tr> </table> -<a name="a27" doxytag="Module::OnKill"></a><p> +<a name="a28" doxytag="Module::OnKill"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -908,13 +953,13 @@ Called when a client is disconnected by KILL. <p> If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers. If you do so youre risking race conditions, desyncs and worse! <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00387">387</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00331 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00387 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a28" doxytag="Module::OnLoadModule"></a><p> +<a name="a29" doxytag="Module::OnLoadModule"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -953,13 +998,13 @@ Called whenever a module is loaded. <p> mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded "m_killwidgets.so" with "m_makewidgets.so". It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module). <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00388">388</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00332 { }; +<div class="fragment"><pre>00388 { }; </pre></div> </td> </tr> </table> -<a name="a42" doxytag="Module::OnLocalTopicChange"></a><p> +<a name="a43" doxytag="Module::OnLocalTopicChange"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1004,13 +1049,13 @@ Called whenever a topic is changed by a local user. <p> Return 1 to deny the topic change, or 0 to allow it. <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>. +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>. <p> -<div class="fragment"><pre>00348 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00404 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a43" doxytag="Module::OnMeshToken"></a><p> +<a name="a44" doxytag="Module::OnMeshToken"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1079,13 +1124,13 @@ Called whenever an unknown token is received in a server to server link. <p> The token value is the unknown token -- please check that no other modules are using the token that you use. Returning 1 supresses the 'unknown token type' error which is usually sent to all opers with +s. The params list is a list of parameters, and if any parameters start with a colon (:) it is treated as the whole of the last parameter, identical to how RFC messages are handled. source is the sender of the message, and reply is what should be replied to for a unicast message. Note that there are not many messages in the mesh protocol which require unicast messaging. tcp_host is the server name as a string, ipaddr is its ip address in dotted decimal notation and port is the port number it is using. <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>. +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>. <p> -<div class="fragment"><pre>00349 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00405 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a15" doxytag="Module::OnOper"></a><p> +<a name="a16" doxytag="Module::OnOper"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1115,13 +1160,13 @@ Called whenever a user opers locally. <p> The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core. <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>. +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>. <p> -<div class="fragment"><pre>00319 { }; +<div class="fragment"><pre>00375 { }; </pre></div> </td> </tr> </table> -<a name="a8" doxytag="Module::OnPacketReceive"></a><p> +<a name="a9" doxytag="Module::OnPacketReceive"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1160,13 +1205,13 @@ Called after a packet is received from another irc server. <p> This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd. <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#l00369">369</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00313 { } +<div class="fragment"><pre>00369 { } </pre></div> </td> </tr> </table> -<a name="a7" doxytag="Module::OnPacketTransmit"></a><p> +<a name="a8" doxytag="Module::OnPacketTransmit"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1205,13 +1250,13 @@ Called before a packet is transmitted across the irc network between two irc ser <p> This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program. <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>. +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>. <p> -<div class="fragment"><pre>00312 { } +<div class="fragment"><pre>00368 { } </pre></div> </td> </tr> </table> -<a name="a31" doxytag="Module::OnPreCommand"></a><p> +<a name="a32" doxytag="Module::OnPreCommand"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1262,13 +1307,13 @@ Called whenever any command is about to be executed. <p> This event occurs for all registered commands, wether they are registered in the core, or another module, but it will not occur for invalid commands (e.g. ones which do not exist within the command table). By returning 1 from this method you may prevent the command being executed. If you do this, no output is created by the core, and it is down to your module to produce any output neccessary. Note that unless you return 1, you should not destroy any structures (e.g. by using <a class="el" href="classServer.html#a29">Server::QuitUser</a>) otherwise when the command's handler function executes after your method returns, it will be passed an invalid pointer to the user object and crash!) <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00391">391</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00335 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00391 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a34" doxytag="Module::OnRawMode"></a><p> +<a name="a35" doxytag="Module::OnRawMode"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1331,13 +1376,13 @@ Called whenever a mode character is processed. <p> Return 1 from this function to block the mode character from being processed entirely, so that you may perform your own code instead. Note that this method allows you to override modes defined by other modes, but this is NOT RECOMMENDED! <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00396">396</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00340 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00396 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a9" doxytag="Module::OnRehash"></a><p> +<a name="a10" doxytag="Module::OnRehash"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1366,13 +1411,51 @@ Called on rehash. <p> This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application. <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>. +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>. +<p> +<div class="fragment"><pre>00370 { } +</pre></div> </td> + </tr> +</table> +<a name="a46" doxytag="Module::OnRequest"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> char * Module::OnRequest </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classRequest.html">Request</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>request</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Called whenever a <a class="el" href="classRequest.html">Request</a> class is sent to your module by another module. <p> -<div class="fragment"><pre>00314 { } +Please see the documentation of <a class="el" href="classRequest.html#a4">Request::Send()</a> for further information. The <a class="el" href="classRequest.html">Request</a> sent can always be assumed to be non-NULL, you should not change the request object or its data. Your method may return arbitary data in the char* result which the requesting module may be able to use for pre-determined purposes (e.g. the results of an SQL query, etc). +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00407">407</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#l00325">Request::Send()</a>. +<p> +<div class="fragment"><pre>00407 { <span class="keywordflow">return</span> NULL; }; </pre></div> </td> </tr> </table> -<a name="a30" doxytag="Module::OnSendList"></a><p> +<a name="a31" doxytag="Module::OnSendList"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1417,13 +1500,13 @@ Called whenever a list is needed for a listmode. <p> For example, when a /MODE #channel +b (without any other parameters) is called, if a module was handling +b this function would be called. The function can then output any lists it wishes to. Please note that all modules will see all mode characters to provide the ability to extend each other, so please only output a list if the mode character given matches the one(s) you want to handle. <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>. +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>. <p> -<div class="fragment"><pre>00334 { }; +<div class="fragment"><pre>00390 { }; </pre></div> </td> </tr> </table> -<a name="a10" doxytag="Module::OnServerRaw"></a><p> +<a name="a11" doxytag="Module::OnServerRaw"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1468,13 +1551,13 @@ Called when a raw command is transmitted or received. <p> This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter "raw". If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets. <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>. +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>. <p> -<div class="fragment"><pre>00315 { } +<div class="fragment"><pre>00371 { } </pre></div> </td> </tr> </table> -<a name="a39" doxytag="Module::OnStats"></a><p> +<a name="a40" doxytag="Module::OnStats"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1504,9 +1587,9 @@ Called on all /STATS commands This method is triggered for all /STATS use, inclu <p> <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00401">401</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00345 { }; +<div class="fragment"><pre>00401 { }; </pre></div> </td> </tr> </table> @@ -1540,13 +1623,49 @@ Called when a user connects. <p> The details of the connecting user are available to you in the parameter userrec *user <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>. +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>. +<p> +<div class="fragment"><pre>00363 { } +</pre></div> </td> + </tr> +</table> +<a name="a5" doxytag="Module::OnUserDisconnect"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void Module::OnUserDisconnect </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>user</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Called whenever a user's socket is closed. +<p> +The details of the exiting user are available to you in the parameter userrec *user This event is called for all users, registered or not, as a cleanup method for modules which might assign resources to user, such as dns lookups, objects and sockets. +<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>. <p> -<div class="fragment"><pre>00308 { } +<div class="fragment"><pre>00365 { } </pre></div> </td> </tr> </table> -<a name="a5" doxytag="Module::OnUserJoin"></a><p> +<a name="a6" doxytag="Module::OnUserJoin"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1585,13 +1704,13 @@ Called when a user joins a channel. <p> The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channel <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>. +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>. <p> -<div class="fragment"><pre>00310 { } +<div class="fragment"><pre>00366 { } </pre></div> </td> </tr> </table> -<a name="a14" doxytag="Module::OnUserKick"></a><p> +<a name="a15" doxytag="Module::OnUserKick"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1640,15 +1759,15 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00310">310</a> <p> Called whenever a user is kicked. <p> -If this method is called, the kick is already underway and cannot be prevented, so to prevent a kick, please use <a class="el" href="classModule.html#a13">Module::OnUserPreKick</a> instead of this method. +If this method is called, the kick is already underway and cannot be prevented, so to prevent a kick, please use <a class="el" href="classModule.html#a14">Module::OnUserPreKick</a> instead of this method. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00395">395</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00339 { }; +<div class="fragment"><pre>00395 { }; </pre></div> </td> </tr> </table> -<a name="a6" doxytag="Module::OnUserPart"></a><p> +<a name="a7" doxytag="Module::OnUserPart"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1687,13 +1806,13 @@ Called when a user parts a channel. <p> The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channel <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>. +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>. <p> -<div class="fragment"><pre>00311 { } +<div class="fragment"><pre>00367 { } </pre></div> </td> </tr> </table> -<a name="a22" doxytag="Module::OnUserPostNick"></a><p> +<a name="a23" doxytag="Module::OnUserPostNick"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1732,13 +1851,13 @@ Called after any nickchange, local or remote. <p> This can be used to track users after nickchanges have been applied. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). Because this method is called after the nickchange is taken place, no return values are possible to indicate forbidding of the nick change. Use OnUserPreNick for this. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00382">382</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00326 { }; +<div class="fragment"><pre>00382 { }; </pre></div> </td> </tr> </table> -<a name="a18" doxytag="Module::OnUserPreInvite"></a><p> +<a name="a19" doxytag="Module::OnUserPreInvite"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1783,13 +1902,13 @@ Called whenever a user is about to invite another user into a channel, before an <p> Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels. <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#l00378">378</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00322 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00378 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a12" doxytag="Module::OnUserPreJoin"></a><p> +<a name="a13" doxytag="Module::OnUserPreJoin"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1836,13 +1955,13 @@ Returning a value of 1 from this function stops the process immediately, causing IMPORTANT NOTE!<p> If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc. <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>. +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> -<div class="fragment"><pre>00316 { <span class="keywordflow">return</span> 0; } +<div class="fragment"><pre>00372 { <span class="keywordflow">return</span> 0; } </pre></div> </td> </tr> </table> -<a name="a13" doxytag="Module::OnUserPreKick"></a><p> +<a name="a14" doxytag="Module::OnUserPreKick"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1893,13 +2012,13 @@ Called whenever a user is about to be kicked. <p> Returning a value of 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. <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>. +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> -<div class="fragment"><pre>00338 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00394 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a19" doxytag="Module::OnUserPreMessage"></a><p> +<a name="a20" doxytag="Module::OnUserPreMessage"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1950,13 +2069,13 @@ Called whenever a user is about to PRIVMSG A user or a channel, before any proce <p> Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. <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>. +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>. <p> -<div class="fragment"><pre>00323 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00379 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a21" doxytag="Module::OnUserPreNick"></a><p> +<a name="a22" doxytag="Module::OnUserPreNick"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1995,13 +2114,13 @@ Called before any nickchange, local or remote. <p> This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00381">381</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00325 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00381 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> -<a name="a20" doxytag="Module::OnUserPreNotice"></a><p> +<a name="a21" doxytag="Module::OnUserPreNotice"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -2052,9 +2171,9 @@ Called whenever a user is about to NOTICE A user or a channel, before any proces <p> Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers. <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>. +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>. <p> -<div class="fragment"><pre>00324 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00380 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> @@ -2086,15 +2205,15 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00324">324</a> <p> Called when a user quits. <p> -The details of the exiting user are available to you in the parameter userrec *user +The details of the exiting user are available to you in the parameter userrec *user This event is only called when the user is fully registered when they quit. To catch raw disconnections, use the OnUserDisconnect method. <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>. +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>. <p> -<div class="fragment"><pre>00309 { } +<div class="fragment"><pre>00364 { } </pre></div> </td> </tr> </table> -<a name="a33" doxytag="Module::OnUserRegister"></a><p> +<a name="a34" doxytag="Module::OnUserRegister"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -2124,13 +2243,13 @@ Called whenever a user is about to register their connection (e.g. <p> before the user is sent the MOTD etc). Modules can use this method if they are performing a function which must be done before the actual connection is completed (e.g. ident lookups, dnsbl lookups, etc). Note that you should NOT delete the user record here by causing a disconnection! Use OnUserConnect for that instead. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00393">393</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00337 { }; +<div class="fragment"><pre>00393 { }; </pre></div> </td> </tr> </table> -<a name="a24" doxytag="Module::OnUserSync"></a><p> +<a name="a25" doxytag="Module::OnUserSync"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -2160,15 +2279,15 @@ Called during a netburst to sync user data. <p> This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list. <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>. +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>. <p> References <a class="el" href="modules_8h-source.html#l00068">string_list</a>. <p> -<div class="fragment"><pre>00328 { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<div class="fragment"><pre>00384 { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } </pre></div> </td> </tr> </table> -<a name="a17" doxytag="Module::OnWhois"></a><p> +<a name="a18" doxytag="Module::OnWhois"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -2207,15 +2326,15 @@ Called whenever a /WHOIS is performed on a local user. <p> The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising. <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>. +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>. <p> -<div class="fragment"><pre>00321 { }; +<div class="fragment"><pre>00377 { }; </pre></div> </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 Sat Apr 16 18:57:20 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 62dd3c51b..9349845ba 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#a0">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#a1">~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#a1">~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 Sat Apr 16 18:57:20 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index a2333877d..46ebd6f6c 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -30,7 +30,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#l01088">1088</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#l01216">1216</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="ModuleFactory::ModuleFactory"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -58,9 +58,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l01088">1088</a> o <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01091">1091</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#l01219">1219</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -<div class="fragment"><pre>01091 { } +<div class="fragment"><pre>01219 { } </pre></div> </td> </tr> </table> @@ -91,9 +91,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l01091">1091</a> o <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01092">1092</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#l01220">1220</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -<div class="fragment"><pre>01092 { } +<div class="fragment"><pre>01220 { } </pre></div> </td> </tr> </table> @@ -130,7 +130,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 Sat Apr 16 18:57:20 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModuleMessage-members.html b/docs/module-doc/classModuleMessage-members.html new file mode 100644 index 000000000..d58038317 --- /dev/null +++ b/docs/module-doc/classModuleMessage-members.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: Member List</title> +<link href="inspircd.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.3 --> +<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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<h1>ModuleMessage Member List</h1>This is the complete list of members for <a class="el" href="classModuleMessage.html">ModuleMessage</a>, including all inherited members.<table> + <tr class="memlist"><td><a class="el" href="classclassbase.html#o0">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#a0">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#a0">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#a1">~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 Apr 20 15:47:06 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.3 </small></address> +</body> +</html> diff --git a/docs/module-doc/classModuleMessage.html b/docs/module-doc/classModuleMessage.html new file mode 100644 index 000000000..98ed3879d --- /dev/null +++ b/docs/module-doc/classModuleMessage.html @@ -0,0 +1,69 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: ModuleMessage class Reference</title> +<link href="inspircd.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.3 --> +<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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<h1>ModuleMessage Class Reference</h1>The ModuleMessage class is the base class of <a class="el" href="classRequest.html">Request</a> and <a class="el" href="classEvent.html">Event</a> This class is used to represent a basic data structure which is passed between modules for safe inter-module communications. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="modules_8h-source.html">modules.h</a>></code> +<p> +Inherits <a class="el" href="classclassbase.html">classbase</a>. +<p> +Inherited by <a class="el" href="classEvent.html">Event</a>, and <a class="el" href="classRequest.html">Request</a>. +<p> +<a href="classModuleMessage-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>virtual char * </td><td class="memItemRight" valign=bottom><a class="el" href="classModuleMessage.html#a0">Send</a> ()=0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">This class is pure virtual and must be inherited. </em> <a href="#a0"></a><em><br><br></td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +The ModuleMessage class is the base class of <a class="el" href="classRequest.html">Request</a> and <a class="el" href="classEvent.html">Event</a> This class is used to represent a basic data structure which is passed between modules for safe inter-module communications. +<p> + +<p> +Definition at line <a class="el" href="modules_8h-source.html#l00138">138</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Member Function Documentation</h2> +<a name="a0" doxytag="ModuleMessage::Send"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual char* ModuleMessage::Send </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This class is pure virtual and must be inherited. +<p> + +<p> +Implemented in <a class="el" href="classRequest.html#a4">Request</a>, and <a class="el" href="classEvent.html#a4">Event</a>. </td> + </tr> +</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 Wed Apr 20 15:47:06 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.3 </small></address> +</body> +</html> diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 5bcfb78c9..fb7c04944 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#o0">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#o2">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#a1">~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 Sat Apr 16 18:57:20 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index e2869917b..a4fac087a 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -82,7 +82,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00114">114</a> of f </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 Sat Apr 16 18:57:20 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classRequest-members.html b/docs/module-doc/classRequest-members.html new file mode 100644 index 000000000..508792dd7 --- /dev/null +++ b/docs/module-doc/classRequest-members.html @@ -0,0 +1,25 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: Member List</title> +<link href="inspircd.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.3 --> +<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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<h1>Request Member List</h1>This is the complete list of members for <a class="el" href="classRequest.html">Request</a>, including all inherited members.<table> + <tr class="memlist"><td><a class="el" href="classclassbase.html#o0">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#a0">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="classRequest.html#p0">data</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="classRequest.html#p2">dest</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="classRequest.html#a1">GetData</a>()</td><td><a class="el" href="classRequest.html">Request</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classRequest.html#a3">GetDest</a>()</td><td><a class="el" href="classRequest.html">Request</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classRequest.html#a2">GetSource</a>()</td><td><a class="el" href="classRequest.html">Request</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classRequest.html#a0">Request</a>(char *anydata, Module *src, Module *dst)</td><td><a class="el" href="classRequest.html">Request</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classRequest.html#a4">Send</a>()</td><td><a class="el" href="classRequest.html">Request</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classRequest.html#p1">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#a1">~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 Apr 20 15:47:07 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.3 </small></address> +</body> +</html> diff --git a/docs/module-doc/classRequest.html b/docs/module-doc/classRequest.html new file mode 100644 index 000000000..8af50c2b9 --- /dev/null +++ b/docs/module-doc/classRequest.html @@ -0,0 +1,361 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>InspIRCd: Request class Reference</title> +<link href="inspircd.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.3 --> +<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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<h1>Request Class Reference</h1>The Request class is a unicast message directed at a given module. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="modules_8h-source.html">modules.h</a>></code> +<p> +Inherits <a class="el" href="classModuleMessage.html">ModuleMessage</a>. +<p> +<a href="classRequest-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="classRequest.html#a0">Request</a> (char *anydata, <a class="el" href="classModule.html">Module</a> *src, <a class="el" href="classModule.html">Module</a> *dst)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new Request. </em> <a href="#a0"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char * </td><td class="memItemRight" valign=bottom><a class="el" href="classRequest.html#a1">GetData</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch the Request data. </em> <a href="#a1"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classModule.html">Module</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classRequest.html#a2">GetSource</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch the request source. </em> <a href="#a2"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classModule.html">Module</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classRequest.html#a3">GetDest</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch the request destination (should be 'this' in the receiving module). </em> <a href="#a3"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char * </td><td class="memItemRight" valign=bottom><a class="el" href="classRequest.html#a4">Send</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Send the Request. </em> <a href="#a4"></a><em><br><br></td></tr> +<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>char * </td><td class="memItemRight" valign=bottom><a class="el" href="classRequest.html#p0">data</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">This member holds a pointer to arbitary data set by the emitter of the message. </em> <a href="#p0"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classModule.html">Module</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classRequest.html#p1">source</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply. </em> <a href="#p1"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classModule.html">Module</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classRequest.html#p2">dest</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The single destination of the Request. </em> <a href="#p2"></a><em><br><br></td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +The Request class is a unicast message directed at a given module. +<p> +When this class is properly instantiated it may be sent to a module using the <a class="el" href="classRequest.html#a4">Send()</a> method, which will call the given module's OnRequest method with this class as its parameter. +<p> + +<p> +Definition at line <a class="el" href="modules_8h-source.html#l00151">151</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +<a name="a0" doxytag="Request::Request"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> Request::Request </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> <em>anydata</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classModule.html">Module</a> * </td> + <td class="mdname" nowrap> <em>src</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classModule.html">Module</a> * </td> + <td class="mdname" nowrap> <em>dst</em></td> + </tr> + <tr> + <td></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> +Create a new Request. +<p> + +<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>. +<p> +<div class="fragment"><pre>00308 : <a class="code" href="classRequest.html#p0">data</a>(anydata), <a class="code" href="classRequest.html#p1">source</a>(src), <a class="code" href="classRequest.html#p2">dest</a>(dst) { }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a name="a1" doxytag="Request::GetData"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> char * Request::GetData </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> +Fetch the Request data. +<p> + +<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>. +<p> +References <a class="el" href="modules_8h-source.html#l00156">data</a>. +<p> +<div class="fragment"><pre>00311 { +00312 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#p0">data</a>; +00313 } +</pre></div> </td> + </tr> +</table> +<a name="a3" doxytag="Request::GetDest"></a><p> +<table class="mdTable" width="100%" 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="classModule.html">Module</a> * Request::GetDest </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> +Fetch the request destination (should be 'this' in the receiving module). +<p> + +<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>. +<p> +References <a class="el" href="modules_8h-source.html#l00163">dest</a>. +<p> +<div class="fragment"><pre>00321 { +00322 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#p2">dest</a>; +00323 } +</pre></div> </td> + </tr> +</table> +<a name="a2" doxytag="Request::GetSource"></a><p> +<table class="mdTable" width="100%" 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="classModule.html">Module</a> * Request::GetSource </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> +Fetch the request source. +<p> + +<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>. +<p> +References <a class="el" href="modules_8h-source.html#l00160">source</a>. +<p> +<div class="fragment"><pre>00316 { +00317 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#p1">source</a>; +00318 } +</pre></div> </td> + </tr> +</table> +<a name="a4" doxytag="Request::Send"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> char * Request::Send </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Send the Request. +<p> +Upon returning the result will be arbitary data returned by the module you sent the request to. It is up to your module to know what this data is and how to deal with it. +<p> +Implements <a class="el" href="classModuleMessage.html#a0">ModuleMessage</a>. +<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>. +<p> +References <a class="el" href="modules_8h-source.html#l00163">dest</a>, and <a class="el" href="modules_8cpp-source.html#l00407">Module::OnRequest()</a>. +<p> +<div class="fragment"><pre>00326 { +00327 <span class="keywordflow">if</span> (this-><a class="code" href="classRequest.html#p2">dest</a>) +00328 { +00329 <span class="keywordflow">return</span> <a class="code" href="classRequest.html#p2">dest</a>-><a class="code" href="classModule.html#a46">OnRequest</a>(<span class="keyword">this</span>); +00330 } +00331 <span class="keywordflow">else</span> +00332 { +00333 <span class="keywordflow">return</span> NULL; +00334 } +00335 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="p0" doxytag="Request::data"></a><p> +<table class="mdTable" width="100%" 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="classRequest.html#p0">Request::data</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This member holds a pointer to arbitary data set by the emitter of the message. +<p> + +<p> +Definition at line <a class="el" href="modules_8h-source.html#l00156">156</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#l00310">GetData()</a>. </td> + </tr> +</table> +<a name="p2" doxytag="Request::dest"></a><p> +<table class="mdTable" width="100%" 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="classModule.html">Module</a>* <a class="el" href="classRequest.html#p2">Request::dest</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +The single destination of the Request. +<p> + +<p> +Definition at line <a class="el" href="modules_8h-source.html#l00163">163</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#l00320">GetDest()</a>, and <a class="el" href="modules_8cpp-source.html#l00325">Send()</a>. </td> + </tr> +</table> +<a name="p1" doxytag="Request::source"></a><p> +<table class="mdTable" width="100%" 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="classModule.html">Module</a>* <a class="el" href="classRequest.html#p1">Request::source</a><code> [protected]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply. +<p> + +<p> +Definition at line <a class="el" href="modules_8h-source.html#l00160">160</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#l00315">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 Wed Apr 20 15:47:07 2005 for InspIRCd by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.3 </small></address> +</body> +</html> diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 5516dc396..4f69dbfbb 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -30,6 +30,7 @@ <tr class="memlist"><td><a class="el" href="classServer.html#a44">DelQLine</a>(std::string nickname)</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="classServer.html#a45">DelZLine</a>(std::string ipaddr)</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="classServer.html#a15">FindChannel</a>(std::string channel)</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="classServer.html#a57">FindModule</a>(std::string name)</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="classServer.html#a14">FindNick</a>(std::string nick)</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="classServer.html#a20">GetAdmin</a>()</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="classServer.html#a19">GetNetworkName</a>()</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> @@ -66,7 +67,7 @@ <tr class="memlist"><td><a class="el" href="classServer.html#a36">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#a1">~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#a1">~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 Sat Apr 16 18:57:22 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 2d9666e44..f5a542c97 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -186,6 +186,9 @@ Inherits <a class="el" href="classclassbase.html">classbase</a>. <tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a56">MeshCheckCommon</a> (<a class="el" href="classuserrec.html">userrec</a> *u, std::string servername)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">This function is used to check if user u has any channels in common with users on servername. </em> <a href="#a56"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="classModule.html">Module</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a57">FindModule</a> (std::string name)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">This function finds a module by name. </em> <a href="#a57"></a><em><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> 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. @@ -194,7 +197,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#l00505">505</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#l00627">627</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Server::Server"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -224,10 +227,10 @@ Default constructor. <p> Creates a Server object. <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>. +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> -<div class="fragment"><pre>00356 { -00357 } +<div class="fragment"><pre>00415 { +00416 } </pre></div> </td> </tr> </table> @@ -260,10 +263,10 @@ Default destructor. <p> Destroys a Server object. <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00418">418</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00360 { -00361 } +<div class="fragment"><pre>00419 { +00420 } </pre></div> </td> </tr> </table> @@ -327,13 +330,13 @@ 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#a5">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#l00436">436</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#l00495">495</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="modules_8h.html#a35">createcommand()</a>. <p> -<div class="fragment"><pre>00437 { -00438 <a class="code" href="modules_8h.html#a35">createcommand</a>(cmd,f,flags,minparams,source); -00439 } +<div class="fragment"><pre>00496 { +00497 <a class="code" href="modules_8h.html#a35">createcommand</a>(cmd,f,flags,minparams,source); +00498 } </pre></div> </td> </tr> </table> @@ -388,13 +391,13 @@ 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#a48">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#l00654">654</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#l00713">713</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="xline_8h.html#a5">add_eline()</a>, and <a class="el" href="commands_8h.html#a75">duration()</a>. <p> -<div class="fragment"><pre>00655 { -00656 <a class="code" href="xline_8h.html#a5">add_eline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00657 } +<div class="fragment"><pre>00714 { +00715 <a class="code" href="xline_8h.html#a5">add_eline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00716 } </pre></div> </td> </tr> </table> @@ -433,16 +436,16 @@ 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#l00581">581</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#l00640">640</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00275">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00285">ModeMakeList()</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>. +References <a class="el" href="modules_8cpp-source.html#l00277">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00287">ModeMakeList()</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>. <p> -<div class="fragment"><pre>00582 { -00583 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#a57">DoAddExtendedMode</a>(modechar,MT_CHANNEL,<span class="keyword">false</span>,1,1); -00584 <span class="keywordflow">if</span> (res) -00585 <a class="code" href="modules_8cpp.html#a58">ModeMakeList</a>(modechar); -00586 <span class="keywordflow">return</span> res; -00587 } +<div class="fragment"><pre>00641 { +00642 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#a57">DoAddExtendedMode</a>(modechar,MT_CHANNEL,<span class="keyword">false</span>,1,1); +00643 <span class="keywordflow">if</span> (res) +00644 <a class="code" href="modules_8cpp.html#a58">ModeMakeList</a>(modechar); +00645 <span class="keywordflow">return</span> res; +00646 } </pre></div> </td> </tr> </table> @@ -503,28 +506,28 @@ 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#l00561">561</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#l00275">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>. -<p> -<div class="fragment"><pre>00562 { -00563 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#a7">MT_SERVER</a>) -00564 { -00565 log(DEBUG,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); -00566 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00567 } -00568 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#a6">MT_CLIENT</a>)) -00569 { -00570 log(DEBUG,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); -00571 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00572 } -00573 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) -00574 { -00575 log(DEBUG,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); -00576 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00577 } -00578 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#a57">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); -00579 } +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>. +<p> +References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00277">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>. +<p> +<div class="fragment"><pre>00621 { +00622 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#a7">MT_SERVER</a>) +00623 { +00624 log(DEBUG,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); +00625 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00626 } +00627 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#a6">MT_CLIENT</a>)) +00628 { +00629 log(DEBUG,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); +00630 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00631 } +00632 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) +00633 { +00634 log(DEBUG,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); +00635 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00636 } +00637 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#a57">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); +00638 } </pre></div> </td> </tr> </table> @@ -579,13 +582,13 @@ 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#a48">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#l00634">634</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#l00693">693</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="xline_8h.html#a1">add_gline()</a>, and <a class="el" href="commands_8h.html#a75">duration()</a>. <p> -<div class="fragment"><pre>00635 { -00636 <a class="code" href="xline_8h.html#a1">add_gline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00637 } +<div class="fragment"><pre>00694 { +00695 <a class="code" href="xline_8h.html#a1">add_gline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00696 } </pre></div> </td> </tr> </table> @@ -640,13 +643,13 @@ 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#a48">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#l00649">649</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#l00708">708</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="xline_8h.html#a4">add_kline()</a>, and <a class="el" href="commands_8h.html#a75">duration()</a>. <p> -<div class="fragment"><pre>00650 { -00651 <a class="code" href="xline_8h.html#a4">add_kline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00652 } +<div class="fragment"><pre>00709 { +00710 <a class="code" href="xline_8h.html#a4">add_kline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00711 } </pre></div> </td> </tr> </table> @@ -701,13 +704,13 @@ 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#a48">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#l00639">639</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#l00698">698</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="xline_8h.html#a2">add_qline()</a>, and <a class="el" href="commands_8h.html#a75">duration()</a>. <p> -<div class="fragment"><pre>00640 { -00641 <a class="code" href="xline_8h.html#a2">add_qline</a>(duration, source.c_str(), reason.c_str(), nickname.c_str()); -00642 } +<div class="fragment"><pre>00699 { +00700 <a class="code" href="xline_8h.html#a2">add_qline</a>(duration, source.c_str(), reason.c_str(), nickname.c_str()); +00701 } </pre></div> </td> </tr> </table> @@ -762,13 +765,13 @@ 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#a48">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#l00644">644</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#l00703">703</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="xline_8h.html#a3">add_zline()</a>, and <a class="el" href="commands_8h.html#a75">duration()</a>. <p> -<div class="fragment"><pre>00645 { -00646 <a class="code" href="xline_8h.html#a3">add_zline</a>(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -00647 } +<div class="fragment"><pre>00704 { +00705 <a class="code" href="xline_8h.html#a3">add_zline</a>(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +00706 } </pre></div> </td> </tr> </table> @@ -802,13 +805,13 @@ 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#l00684">684</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#l00743">743</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="commands_8h.html#a75">duration()</a>. <p> -<div class="fragment"><pre>00685 { -00686 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a75">duration</a>(delta.c_str()); -00687 } +<div class="fragment"><pre>00744 { +00745 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a75">duration</a>(delta.c_str()); +00746 } </pre></div> </td> </tr> </table> @@ -864,11 +867,11 @@ 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#a23">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#l00426">426</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#l00485">485</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00427 { -00428 call_handler(commandname.c_str(),parameters,pcnt,user); -00429 } +<div class="fragment"><pre>00486 { +00487 call_handler(commandname.c_str(),parameters,pcnt,user); +00488 } </pre></div> </td> </tr> </table> @@ -911,13 +914,13 @@ 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#l00514">514</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#l00573">573</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a10">ChangeName()</a>. <p> -<div class="fragment"><pre>00515 { -00516 <a class="code" href="message_8h.html#a10">ChangeName</a>(user,gecos.c_str()); -00517 } +<div class="fragment"><pre>00574 { +00575 <a class="code" href="message_8h.html#a10">ChangeName</a>(user,gecos.c_str()); +00576 } </pre></div> </td> </tr> </table> @@ -960,13 +963,13 @@ 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#l00509">509</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#l00568">568</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a11">ChangeDisplayedHost()</a>. <p> -<div class="fragment"><pre>00510 { -00511 <a class="code" href="message_8h.html#a11">ChangeDisplayedHost</a>(user,host.c_str()); -00512 } +<div class="fragment"><pre>00569 { +00570 <a class="code" href="message_8h.html#a11">ChangeDisplayedHost</a>(user,host.c_str()); +00571 } </pre></div> </td> </tr> </table> @@ -1009,11 +1012,11 @@ 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#l00410">410</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#l00469">469</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00411 { -00412 force_nickchange(user,nickname.c_str()); -00413 } +<div class="fragment"><pre>00470 { +00471 force_nickchange(user,nickname.c_str()); +00472 } </pre></div> </td> </tr> </table> @@ -1056,13 +1059,13 @@ 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#l00534">534</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#l00593">593</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a14">cmode()</a>. <p> -<div class="fragment"><pre>00535 { -00536 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a14">cmode</a>(User,Chan); -00537 } +<div class="fragment"><pre>00594 { +00595 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a14">cmode</a>(User,Chan); +00596 } </pre></div> </td> </tr> </table> @@ -1105,13 +1108,13 @@ 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#a10">Server::SendCommon</a> method. <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#l00546">546</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a0">common_channels()</a>. <p> -<div class="fragment"><pre>00488 { -00489 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a0">common_channels</a>(u1,u2) != 0); -00490 } +<div class="fragment"><pre>00547 { +00548 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a0">common_channels</a>(u1,u2) != 0); +00549 } </pre></div> </td> </tr> </table> @@ -1145,11 +1148,11 @@ 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#l00589">589</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> -<div class="fragment"><pre>00590 { -00591 <span class="keywordflow">return</span> usercount(c); -00592 } +<div class="fragment"><pre>00649 { +00650 <span class="keywordflow">return</span> usercount(c); +00651 } </pre></div> </td> </tr> </table> @@ -1183,13 +1186,13 @@ Deletes a local E-Line. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00679">679</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#l00738">738</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="xline_8h.html#a10">del_eline()</a>. <p> -<div class="fragment"><pre>00680 { -00681 <a class="code" href="xline_8h.html#a10">del_eline</a>(hostmask.c_str()); -00682 } +<div class="fragment"><pre>00739 { +00740 <a class="code" href="xline_8h.html#a10">del_eline</a>(hostmask.c_str()); +00741 } </pre></div> </td> </tr> </table> @@ -1223,13 +1226,13 @@ Deletes a G-Line from all servers on the mesh. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00659">659</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#l00718">718</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="xline_8h.html#a6">del_gline()</a>. <p> -<div class="fragment"><pre>00660 { -00661 <a class="code" href="xline_8h.html#a6">del_gline</a>(hostmask.c_str()); -00662 } +<div class="fragment"><pre>00719 { +00720 <a class="code" href="xline_8h.html#a6">del_gline</a>(hostmask.c_str()); +00721 } </pre></div> </td> </tr> </table> @@ -1263,13 +1266,13 @@ Deletes a local K-Line. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00674">674</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#l00733">733</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="xline_8h.html#a9">del_kline()</a>. <p> -<div class="fragment"><pre>00675 { -00676 <a class="code" href="xline_8h.html#a9">del_kline</a>(hostmask.c_str()); -00677 } +<div class="fragment"><pre>00734 { +00735 <a class="code" href="xline_8h.html#a9">del_kline</a>(hostmask.c_str()); +00736 } </pre></div> </td> </tr> </table> @@ -1303,13 +1306,13 @@ Deletes a Q-Line from all servers on the mesh. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00664">664</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#l00723">723</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="xline_8h.html#a7">del_qline()</a>. <p> -<div class="fragment"><pre>00665 { -00666 <a class="code" href="xline_8h.html#a7">del_qline</a>(nickname.c_str()); -00667 } +<div class="fragment"><pre>00724 { +00725 <a class="code" href="xline_8h.html#a7">del_qline</a>(nickname.c_str()); +00726 } </pre></div> </td> </tr> </table> @@ -1343,13 +1346,13 @@ Deletes a Z-Line from all servers on the mesh. <p> <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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00728">728</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="xline_8h.html#a8">del_zline()</a>. <p> -<div class="fragment"><pre>00670 { -00671 <a class="code" href="xline_8h.html#a8">del_zline</a>(ipaddr.c_str()); -00672 } +<div class="fragment"><pre>00729 { +00730 <a class="code" href="xline_8h.html#a8">del_zline</a>(ipaddr.c_str()); +00731 } </pre></div> </td> </tr> </table> @@ -1383,11 +1386,58 @@ 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#l00529">529</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#l00588">588</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00530 { -00531 <span class="keywordflow">return</span> FindChan(channel.c_str()); -00532 } +<div class="fragment"><pre>00589 { +00590 <span class="keywordflow">return</span> FindChan(channel.c_str()); +00591 } +</pre></div> </td> + </tr> +</table> +<a name="a57" doxytag="Server::FindModule"></a><p> +<table class="mdTable" width="100%" 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="classModule.html">Module</a> * Server::FindModule </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +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#l00821">821</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8cpp-source.html#l01030">MODCOUNT</a>, <a class="el" href="channels_8cpp-source.html#l00092">module_names</a>, and <a class="el" href="channels_8cpp-source.html#l00064">modules</a>. +<p> +<div class="fragment"><pre>00822 { +00823 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i <= <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a>; i++) +00824 { +00825 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a27">module_names</a>[i] == name) +00826 { +00827 <span class="keywordflow">return</span> <a class="code" href="channels_8cpp.html#a2">modules</a>[i]; +00828 } +00829 } +00830 <span class="keywordflow">return</span> NULL; +00831 } </pre></div> </td> </tr> </table> @@ -1421,11 +1471,11 @@ 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#l00524">524</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#l00583">583</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00525 { -00526 <span class="keywordflow">return</span> Find(nick); -00527 } +<div class="fragment"><pre>00584 { +00585 <span class="keywordflow">return</span> Find(nick); +00586 } </pre></div> </td> </tr> </table> @@ -1458,11 +1508,11 @@ 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#o2">Admin::Nick</a>, <a class="el" href="classAdmin.html#o1">Admin::Email</a> and <a class="el" href="classAdmin.html#o0">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#l00554">554</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#l00613">613</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00555 { -00556 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); -00557 } +<div class="fragment"><pre>00614 { +00615 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); +00616 } </pre></div> </td> </tr> </table> @@ -1495,11 +1545,11 @@ Returns the network name, global to all linked servers. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00549">549</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#l00608">608</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00550 { -00551 <span class="keywordflow">return</span> getnetworkname(); -00552 } +<div class="fragment"><pre>00609 { +00610 <span class="keywordflow">return</span> getnetworkname(); +00611 } </pre></div> </td> </tr> </table> @@ -1532,11 +1582,11 @@ 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#l00544">544</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#l00603">603</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00545 { -00546 <span class="keywordflow">return</span> getservername(); -00547 } +<div class="fragment"><pre>00604 { +00605 <span class="keywordflow">return</span> getservername(); +00606 } </pre></div> </td> </tr> </table> @@ -1570,28 +1620,28 @@ 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#l00391">391</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00072">chanuserlist</a>, <a class="el" href="modules_8cpp-source.html#l00179">clientlist</a>, <a class="el" href="message_8h.html#a16">has_channel()</a>, and <a class="el" href="message_8h.html#a13">isnick()</a>. -<p> -<div class="fragment"><pre>00392 { -00393 <a class="code" href="modules_8h.html#a33">chanuserlist</a> userl; -00394 userl.clear(); -00395 <span class="keywordflow">for</span> (user_hash::const_iterator i = <a class="code" href="modules_8cpp.html#a42">clientlist</a>.begin(); i != <a class="code" href="modules_8cpp.html#a42">clientlist</a>.end(); i++) -00396 { -00397 <span class="keywordflow">if</span> (i->second) -00398 { -00399 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a16">has_channel</a>(i->second,chan)) -00400 { -00401 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a13">isnick</a>(i->second->nick)) -00402 { -00403 userl.push_back(i->second); -00404 } -00405 } -00406 } -00407 } -00408 <span class="keywordflow">return</span> userl; -00409 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00450">450</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00072">chanuserlist</a>, <a class="el" href="modules_8cpp-source.html#l00181">clientlist</a>, <a class="el" href="message_8h.html#a16">has_channel()</a>, and <a class="el" href="message_8h.html#a13">isnick()</a>. +<p> +<div class="fragment"><pre>00451 { +00452 <a class="code" href="modules_8h.html#a33">chanuserlist</a> userl; +00453 userl.clear(); +00454 <span class="keywordflow">for</span> (user_hash::const_iterator i = <a class="code" href="modules_8cpp.html#a42">clientlist</a>.begin(); i != <a class="code" href="modules_8cpp.html#a42">clientlist</a>.end(); i++) +00455 { +00456 <span class="keywordflow">if</span> (i->second) +00457 { +00458 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a16">has_channel</a>(i->second,chan)) +00459 { +00460 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a13">isnick</a>(i->second->nick)) +00461 { +00462 userl.push_back(i->second); +00463 } +00464 } +00465 } +00466 } +00467 <span class="keywordflow">return</span> userl; +00468 } </pre></div> </td> </tr> </table> @@ -1625,13 +1675,13 @@ 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#l00519">519</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#l00578">578</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a13">isnick()</a>. <p> -<div class="fragment"><pre>00520 { -00521 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a13">isnick</a>(nick.c_str()) != 0); -00522 } +<div class="fragment"><pre>00579 { +00580 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a13">isnick</a>(nick.c_str()) != 0); +00581 } </pre></div> </td> </tr> </table> @@ -1674,13 +1724,13 @@ 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#l00539">539</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#l00598">598</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a16">has_channel()</a>. <p> -<div class="fragment"><pre>00540 { -00541 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a16">has_channel</a>(User,Chan); -00542 } +<div class="fragment"><pre>00599 { +00600 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a16">has_channel</a>(User,Chan); +00601 } </pre></div> </td> </tr> </table> @@ -1714,13 +1764,13 @@ 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#l00421">421</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#l00480">480</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="commands_8h.html#a74">is_uline()</a>. <p> -<div class="fragment"><pre>00422 { -00423 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a74">is_uline</a>(server.c_str()); -00424 } +<div class="fragment"><pre>00481 { +00482 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a74">is_uline</a>(server.c_str()); +00483 } </pre></div> </td> </tr> </table> @@ -1754,35 +1804,35 @@ 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#l00689">689</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -<div class="fragment"><pre>00690 { -00691 <span class="keyword">const</span> <span class="keywordtype">char</span>* dest = mask.c_str(); -00692 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'!'</span>)==0) -00693 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00694 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'@'</span>)==0) -00695 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00696 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -00697 <span class="keywordflow">if</span> (dest[i] < 32) -00698 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00699 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -00700 <span class="keywordflow">if</span> (dest[i] > 126) -00701 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00702 <span class="keywordtype">int</span> c = 0; -00703 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -00704 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'!'</span>) -00705 c++; -00706 <span class="keywordflow">if</span> (c>1) -00707 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00708 c = 0; -00709 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -00710 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'@'</span>) -00711 c++; -00712 <span class="keywordflow">if</span> (c>1) -00713 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00714 -00715 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00716 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00748">748</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00749 { +00750 <span class="keyword">const</span> <span class="keywordtype">char</span>* dest = mask.c_str(); +00751 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'!'</span>)==0) +00752 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00753 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'@'</span>)==0) +00754 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00755 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +00756 <span class="keywordflow">if</span> (dest[i] < 32) +00757 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00758 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +00759 <span class="keywordflow">if</span> (dest[i] > 126) +00760 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00761 <span class="keywordtype">int</span> c = 0; +00762 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +00763 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'!'</span>) +00764 c++; +00765 <span class="keywordflow">if</span> (c>1) +00766 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00767 c = 0; +00768 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +00769 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'@'</span>) +00770 c++; +00771 <span class="keywordflow">if</span> (c>1) +00772 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00773 +00774 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00775 } </pre></div> </td> </tr> </table> @@ -1831,11 +1881,11 @@ 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#l00381">381</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#l00440">440</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00382 { -00383 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">true</span>); -00384 } +<div class="fragment"><pre>00441 { +00442 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">true</span>); +00443 } </pre></div> </td> </tr> </table> @@ -1878,11 +1928,11 @@ 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#l00431">431</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#l00490">490</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00432 { -00433 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); -00434 } +<div class="fragment"><pre>00491 { +00492 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); +00493 } </pre></div> </td> </tr> </table> @@ -1925,14 +1975,14 @@ 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#l00368">368</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#l00427">427</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00369 { -00370 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; -00371 strlcpy(literal,sliteral.c_str(),MAXBUF); -00372 strlcpy(pattern,spattern.c_str(),MAXBUF); -00373 <span class="keywordflow">return</span> match(literal,pattern); -00374 } +<div class="fragment"><pre>00428 { +00429 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; +00430 strlcpy(literal,sliteral.c_str(),MAXBUF); +00431 strlcpy(pattern,spattern.c_str(),MAXBUF); +00432 <span class="keywordflow">return</span> match(literal,pattern); +00433 } </pre></div> </td> </tr> </table> @@ -1975,15 +2025,15 @@ This function is used to check if any users on channel c are on server servernam <p> This is used internally by PRIVMSG etc. You should not need to use it. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00744">744</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#l00803">803</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00745 { -00746 <span class="keywordflow">if</span> (c) -00747 { -00748 <span class="keywordflow">return</span> ChanAnyOnThisServer(c,(<span class="keywordtype">char</span>*)servername.c_str()); -00749 } -00750 <span class="keywordflow">else</span> <span class="keywordflow">return</span> <span class="keyword">false</span>; -00751 } +<div class="fragment"><pre>00804 { +00805 <span class="keywordflow">if</span> (c) +00806 { +00807 <span class="keywordflow">return</span> ChanAnyOnThisServer(c,(<span class="keywordtype">char</span>*)servername.c_str()); +00808 } +00809 <span class="keywordflow">else</span> <span class="keywordflow">return</span> <span class="keyword">false</span>; +00810 } </pre></div> </td> </tr> </table> @@ -2026,15 +2076,15 @@ This function is used to check if user u has any channels in common with users o <p> This is used internally by <a class="el" href="classServer.html#a51">Server::MeshSendCommon</a>. You should very rarely need to use it. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00753">753</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#l00812">812</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00754 { -00755 <span class="keywordflow">if</span> (u) -00756 { -00757 <span class="keywordflow">return</span> CommonOnThisServer(u,(<span class="keywordtype">char</span>*)servername.c_str()); -00758 } -00759 <span class="keywordflow">else</span> <span class="keywordflow">return</span> <span class="keyword">false</span>; -00760 } +<div class="fragment"><pre>00813 { +00814 <span class="keywordflow">if</span> (u) +00815 { +00816 <span class="keywordflow">return</span> CommonOnThisServer(u,(<span class="keywordtype">char</span>*)servername.c_str()); +00817 } +00818 <span class="keywordflow">else</span> <span class="keywordflow">return</span> <span class="keyword">false</span>; +00819 } </pre></div> </td> </tr> </table> @@ -2068,11 +2118,11 @@ Sends a line of text to all connected servers. <p> If a server is not directly reachable, the core deals with routing the message, and will also deal with failures transparently. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00718">718</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#l00777">777</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00719 { -00720 NetSendToAll((<span class="keywordtype">char</span>*)text.c_str()); -00721 } +<div class="fragment"><pre>00778 { +00779 NetSendToAll((<span class="keywordtype">char</span>*)text.c_str()); +00780 } </pre></div> </td> </tr> </table> @@ -2106,11 +2156,11 @@ This function is equivalent to Server::MeshSendToAll except it will only route t <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00729">729</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#l00788">788</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00730 { -00731 NetSendToAllAlive((<span class="keywordtype">char</span>*)text.c_str()); -00732 } +<div class="fragment"><pre>00789 { +00790 NetSendToAllAlive((<span class="keywordtype">char</span>*)text.c_str()); +00791 } </pre></div> </td> </tr> </table> @@ -2153,11 +2203,11 @@ This function sends to all servers EXCEPT the one you specify. <p> You should usually use this function to send messages, specifying the SENDER of your message as 'target'. This will prevent message loops. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00739">739</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#l00798">798</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00740 { -00741 NetSendToAllExcept(target.c_str(),(<span class="keywordtype">char</span>*)text.c_str()); -00742 } +<div class="fragment"><pre>00799 { +00800 NetSendToAllExcept(target.c_str(),(<span class="keywordtype">char</span>*)text.c_str()); +00801 } </pre></div> </td> </tr> </table> @@ -2200,12 +2250,12 @@ This method sends a line of text to all servers who have users which share commo <p> For example, if user A is on server A, and they are on channels #one and #two, and user B is on server B, and also on channel #one, but user C is on server C and on neither #one or #two, this function will cause the text to only be sent to server B. However, if server B is only reachable via C, it will route it to C (you do not have to worry about this routing, it is done transparently, but its good to know how things work!) <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00723">723</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#l00782">782</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00724 { -00725 <span class="keywordflow">if</span> (user) -00726 NetSendToCommon(user,(<span class="keywordtype">char</span>*)text.c_str()); -00727 } +<div class="fragment"><pre>00783 { +00784 <span class="keywordflow">if</span> (user) +00785 NetSendToCommon(user,(<span class="keywordtype">char</span>*)text.c_str()); +00786 } </pre></div> </td> </tr> </table> @@ -2248,11 +2298,11 @@ This function sends a line of text directly to a server. <p> If the server is not directly routable at this time, the server attempts to route text through the mesh. <p> -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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00793">793</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00735 { -00736 NetSendToOne((<span class="keywordtype">char</span>*)destination.c_str(),(<span class="keywordtype">char</span>*)text.c_str()); -00737 } +<div class="fragment"><pre>00794 { +00795 NetSendToOne((<span class="keywordtype">char</span>*)destination.c_str(),(<span class="keywordtype">char</span>*)text.c_str()); +00796 } </pre></div> </td> </tr> </table> @@ -2301,11 +2351,11 @@ 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#l00386">386</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#l00445">445</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00387 { -00388 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); -00389 } +<div class="fragment"><pre>00446 { +00447 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); +00448 } </pre></div> </td> </tr> </table> @@ -2354,38 +2404,38 @@ 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#l00604">604</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="channels_8h-source.html#l00213">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00127">userrec::chans</a>, <a class="el" href="channels_8h-source.html#l00111">chanrec::created</a>, <a class="el" href="connection_8h-source.html#l00171">connection::fd</a>, <a class="el" href="modules_8h-source.html#l00099">FD_MAGIC_NUMBER</a>, <a class="el" href="connection_8h-source.html#l00175">connection::host</a>, <a class="el" href="users_8h-source.html#l00110">userrec::ident</a>, <a class="el" href="channels_8h-source.html#l00099">chanrec::name</a>, <a class="el" href="users_8h-source.html#l00106">userrec::nick</a>, <a class="el" href="channels_8h-source.html#l00119">chanrec::setby</a>, <a class="el" href="channels_8h-source.html#l00108">chanrec::topic</a>, and <a class="el" href="channels_8h-source.html#l00115">chanrec::topicset</a>. -<p> -<div class="fragment"><pre>00605 { -00606 zombie-><a class="code" href="classconnection.html#o0">fd</a> = alive-><a class="code" href="classconnection.html#o0">fd</a>; -00607 alive-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; -00608 Write(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s!%s@%s NICK %s"</span>,alive-><a class="code" href="classuserrec.html#o0">nick</a>,alive-><a class="code" href="classuserrec.html#o1">ident</a>,alive-><a class="code" href="classconnection.html#o1">host</a>,zombie-><a class="code" href="classuserrec.html#o0">nick</a>); -00609 kill_link(alive,message.c_str()); -00610 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i != MAXCHANS; i++) -00611 { -00612 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> != NULL) -00613 { -00614 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>-><a class="code" href="classchanrec.html#o0">name</a>) -00615 { -00616 <a class="code" href="classchanrec.html">chanrec</a>* Ptr = zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>; -00617 WriteFrom(zombie-><a class="code" href="classconnection.html#o0">fd</a>,zombie,<span class="stringliteral">"JOIN %s"</span>,Ptr-><a class="code" href="classchanrec.html#o0">name</a>); -00618 <span class="keywordflow">if</span> (Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>) -00619 { -00620 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"332 %s %s :%s"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o2">topic</a>); -00621 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"333 %s %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o5">setby</a>, Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>); -00622 } -00623 userlist(zombie,Ptr); -00624 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"366 %s %s :End of /NAMES list."</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>); -00625 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"324 %s %s +%s"</span>,zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>,chanmodes(Ptr)); -00626 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"329 %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o3">created</a>); -00627 -00628 } -00629 } -00630 } -00631 -00632 } +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="channels_8h-source.html#l00213">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00127">userrec::chans</a>, <a class="el" href="connection_8h-source.html#l00171">connection::fd</a>, <a class="el" href="modules_8h-source.html#l00099">FD_MAGIC_NUMBER</a>, <a class="el" href="connection_8h-source.html#l00175">connection::host</a>, <a class="el" href="users_8h-source.html#l00110">userrec::ident</a>, <a class="el" href="channels_8h-source.html#l00099">chanrec::name</a>, <a class="el" href="users_8h-source.html#l00106">userrec::nick</a>, <a class="el" href="channels_8h-source.html#l00119">chanrec::setby</a>, <a class="el" href="channels_8h-source.html#l00108">chanrec::topic</a>, and <a class="el" href="channels_8h-source.html#l00115">chanrec::topicset</a>. +<p> +<div class="fragment"><pre>00664 { +00665 zombie-><a class="code" href="classconnection.html#o0">fd</a> = alive-><a class="code" href="classconnection.html#o0">fd</a>; +00666 alive-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; +00667 Write(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s!%s@%s NICK %s"</span>,alive-><a class="code" href="classuserrec.html#o0">nick</a>,alive-><a class="code" href="classuserrec.html#o1">ident</a>,alive-><a class="code" href="classconnection.html#o1">host</a>,zombie-><a class="code" href="classuserrec.html#o0">nick</a>); +00668 kill_link(alive,message.c_str()); +00669 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i != MAXCHANS; i++) +00670 { +00671 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> != NULL) +00672 { +00673 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>-><a class="code" href="classchanrec.html#o0">name</a>) +00674 { +00675 <a class="code" href="classchanrec.html">chanrec</a>* Ptr = zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>; +00676 WriteFrom(zombie-><a class="code" href="classconnection.html#o0">fd</a>,zombie,<span class="stringliteral">"JOIN %s"</span>,Ptr-><a class="code" href="classchanrec.html#o0">name</a>); +00677 <span class="keywordflow">if</span> (Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>) +00678 { +00679 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"332 %s %s :%s"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o2">topic</a>); +00680 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"333 %s %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o5">setby</a>, Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>); +00681 } +00682 userlist(zombie,Ptr); +00683 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"366 %s %s :End of /NAMES list."</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>); +00684 <span class="comment">//WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr));</span> +00685 <span class="comment">//WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created);</span> +00686 +00687 } +00688 } +00689 } +00690 +00691 } </pre></div> </td> </tr> </table> @@ -2430,14 +2480,14 @@ 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#l00415">415</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#l00474">474</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="users_8h-source.html#l00106">userrec::nick</a>, and <a class="el" href="message_8h.html#a19">send_network_quit()</a>. <p> -<div class="fragment"><pre>00416 { -00417 <a class="code" href="message_8h.html#a19">send_network_quit</a>(user-><a class="code" href="classuserrec.html#o0">nick</a>,reason.c_str()); -00418 kill_link(user,reason.c_str()); -00419 } +<div class="fragment"><pre>00475 { +00476 <a class="code" href="message_8h.html#a19">send_network_quit</a>(user-><a class="code" href="classuserrec.html#o0">nick</a>,reason.c_str()); +00477 kill_link(user,reason.c_str()); +00478 } </pre></div> </td> </tr> </table> @@ -2480,11 +2530,11 @@ 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#l00446">446</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#l00505">505</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00447 { -00448 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); -00449 } +<div class="fragment"><pre>00506 { +00507 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00508 } </pre></div> </td> </tr> </table> @@ -2539,18 +2589,18 @@ 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#l00475">475</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -<div class="fragment"><pre>00476 { -00477 <span class="keywordflow">if</span> (IncludeSender) -00478 { -00479 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00480 } -00481 <span class="keywordflow">else</span> -00482 { -00483 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00484 } -00485 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00534">534</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00535 { +00536 <span class="keywordflow">if</span> (IncludeSender) +00537 { +00538 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00539 } +00540 <span class="keywordflow">else</span> +00541 { +00542 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00543 } +00544 } </pre></div> </td> </tr> </table> @@ -2599,18 +2649,18 @@ 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#l00492">492</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -<div class="fragment"><pre>00493 { -00494 <span class="keywordflow">if</span> (IncludeSender) -00495 { -00496 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00497 } -00498 <span class="keywordflow">else</span> -00499 { -00500 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00501 } -00502 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00551">551</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00552 { +00553 <span class="keywordflow">if</span> (IncludeSender) +00554 { +00555 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00556 } +00557 <span class="keywordflow">else</span> +00558 { +00559 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00560 } +00561 } </pre></div> </td> </tr> </table> @@ -2659,11 +2709,11 @@ 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#l00456">456</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#l00515">515</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00457 { -00458 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00459 } +<div class="fragment"><pre>00516 { +00517 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00518 } </pre></div> </td> </tr> </table> @@ -2719,13 +2769,13 @@ 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#l00441">441</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#l00500">500</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="modules_8h.html#a36">server_mode()</a>. <p> -<div class="fragment"><pre>00442 { -00443 <a class="code" href="modules_8h.html#a36">server_mode</a>(parameters,pcnt,user); -00444 } +<div class="fragment"><pre>00501 { +00502 <a class="code" href="modules_8h.html#a36">server_mode</a>(parameters,pcnt,user); +00503 } </pre></div> </td> </tr> </table> @@ -2759,11 +2809,11 @@ 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#l00363">363</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#l00422">422</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00364 { -00365 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); -00366 } +<div class="fragment"><pre>00423 { +00424 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); +00425 } </pre></div> </td> </tr> </table> @@ -2806,11 +2856,11 @@ 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#l00451">451</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#l00510">510</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00452 { -00453 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); -00454 } +<div class="fragment"><pre>00511 { +00512 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00513 } </pre></div> </td> </tr> </table> @@ -2863,22 +2913,22 @@ 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#l00461">461</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#l00520">520</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="connection_8h-source.html#l00171">connection::fd</a>. <p> -<div class="fragment"><pre>00462 { -00463 <span class="keywordflow">if</span> (!Source) -00464 { -00465 <span class="comment">// if source is NULL, then the message originates from the local server</span> -00466 Write(Dest-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); -00467 } -00468 <span class="keywordflow">else</span> -00469 { -00470 <span class="comment">// otherwise it comes from the user specified</span> -00471 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); -00472 } -00473 } +<div class="fragment"><pre>00521 { +00522 <span class="keywordflow">if</span> (!Source) +00523 { +00524 <span class="comment">// if source is NULL, then the message originates from the local server</span> +00525 Write(Dest-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); +00526 } +00527 <span class="keywordflow">else</span> +00528 { +00529 <span class="comment">// otherwise it comes from the user specified</span> +00530 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); +00531 } +00532 } </pre></div> </td> </tr> </table> @@ -2929,11 +2979,11 @@ 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#l00376">376</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#l00435">435</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00377 { -00378 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); -00379 } +<div class="fragment"><pre>00436 { +00437 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); +00438 } </pre></div> </td> </tr> </table> @@ -2976,11 +3026,11 @@ 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#l00504">504</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#l00563">563</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00505 { -00506 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); -00507 } +<div class="fragment"><pre>00564 { +00565 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); +00566 } </pre></div> </td> </tr> </table> @@ -3023,23 +3073,23 @@ 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#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#l00654">654</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="connection_8h-source.html#l00171">connection::fd</a>, <a class="el" href="modules_8h-source.html#l00099">FD_MAGIC_NUMBER</a>, <a class="el" href="connection_8h-source.html#l00175">connection::host</a>, and <a class="el" href="users_8h-source.html#l00110">userrec::ident</a>. <p> -<div class="fragment"><pre>00596 { -00597 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> old_fd = user-><a class="code" href="classconnection.html#o0">fd</a>; -00598 user-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; -00599 Write(old_fd,<span class="stringliteral">"ERROR :Closing link (%s@%s) [%s]"</span>,user-><a class="code" href="classuserrec.html#o1">ident</a>,user-><a class="code" href="classconnection.html#o1">host</a>,message.c_str()); -00600 close(old_fd); -00601 shutdown (old_fd,2); -00602 } +<div class="fragment"><pre>00655 { +00656 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> old_fd = user-><a class="code" href="classconnection.html#o0">fd</a>; +00657 user-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; +00658 Write(old_fd,<span class="stringliteral">"ERROR :Closing link (%s@%s) [%s]"</span>,user-><a class="code" href="classuserrec.html#o1">ident</a>,user-><a class="code" href="classconnection.html#o1">host</a>,message.c_str()); +00659 close(old_fd); +00660 shutdown (old_fd,2); +00661 } </pre></div> </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 Sat Apr 16 18:57:22 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index 3059bc8b3..dcd323e7c 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#o2">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#a0">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#a1">~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 Sat Apr 16 18:57:23 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 322f7dd77..3a20119ae 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -92,9 +92,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l00111">111</a> of <p> <p> -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>. +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>. <p> -<div class="fragment"><pre>00300 : <a class="code" href="classVersion.html#o0">Major</a>(major), <a class="code" href="classVersion.html#o1">Minor</a>(minor), <a class="code" href="classVersion.html#o2">Revision</a>(revision), <a class="code" href="classVersion.html#o3">Build</a>(build), <a class="code" href="classVersion.html#o4">Flags</a>(flags) { }; +<div class="fragment"><pre>00302 : <a class="code" href="classVersion.html#o0">Major</a>(major), <a class="code" href="classVersion.html#o1">Minor</a>(minor), <a class="code" href="classVersion.html#o2">Revision</a>(revision), <a class="code" href="classVersion.html#o3">Build</a>(build), <a class="code" href="classVersion.html#o4">Flags</a>(flags) { }; </pre></div> </td> </tr> </table> @@ -221,7 +221,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00114">114</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 Sat Apr 16 18:57:23 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index 68834e87a..8a209081a 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#o0">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#o2">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#a1">~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 Sat Apr 16 18:57:23 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 2f33e4b07..a5e56766b 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -171,7 +171,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00048">48</a> of fi </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 Sat Apr 16 18:57:23 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index ed386e80b..228e29749 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#o0">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#o2">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#a1">~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 Sat Apr 16 18:57:23 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index f5e498471..59cf6690f 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -82,7 +82,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00103">103</a> of f </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 Sat Apr 16 18:57:23 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index 303718a7d..0773498b1 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -33,7 +33,7 @@ <tr class="memlist"><td><a class="el" href="classchanrec.html#o4">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#a5">~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#a1">~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 Sat Apr 16 18:57:16 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index aadc1dc5b..a24f0aad2 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -488,7 +488,7 @@ Creation time. <p> Definition at line <a class="el" href="channels_8h-source.html#l00111">111</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#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00604">Server::PseudoToUser()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>. </td> </tr> </table> <a name="o1" doxytag="chanrec::custom_modes"></a><p> @@ -656,7 +656,7 @@ The channels name. <p> Definition at line <a class="el" href="channels_8h-source.html#l00099">99</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#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00604">Server::PseudoToUser()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00663">Server::PseudoToUser()</a>. </td> </tr> </table> <a name="o9" doxytag="chanrec::noexternal"></a><p> @@ -740,7 +740,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#l00119">119</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#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00604">Server::PseudoToUser()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00663">Server::PseudoToUser()</a>. </td> </tr> </table> <a name="o2" doxytag="chanrec::topic"></a><p> @@ -768,7 +768,7 @@ If this is an empty string, no channel topic is set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00108">108</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#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00604">Server::PseudoToUser()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00663">Server::PseudoToUser()</a>. </td> </tr> </table> <a name="o8" doxytag="chanrec::topiclock"></a><p> @@ -824,12 +824,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#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#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00604">Server::PseudoToUser()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00663">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 Sat Apr 16 18:57:16 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 7a77a9757..0a1be6072 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#o0">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#a0">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#a1">~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 Sat Apr 16 18:57:16 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index 94f5a5d01..1c91ec3f5 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -10,7 +10,7 @@ <p> <code>#include <<a class="el" href="base_8h-source.html">base.h</a>></code> <p> -Inherited by <a class="el" href="classAdmin.html">Admin</a>, <a class="el" href="classConfigReader.html">ConfigReader</a>, <a class="el" href="classConnectClass.html">ConnectClass</a>, <a class="el" href="classExtensible.html">Extensible</a>, <a class="el" href="classExtMode.html">ExtMode</a>, <a class="el" href="classFileReader.html">FileReader</a>, <a class="el" href="classHostItem.html">HostItem</a>, <a class="el" href="classInvited.html">Invited</a>, <a class="el" href="classModeParameter.html">ModeParameter</a>, <a class="el" href="classModule.html">Module</a>, <a class="el" href="classModuleFactory.html">ModuleFactory</a>, <a class="el" href="classServer.html">Server</a>, <a class="el" href="classucrec.html">ucrec</a>, <a class="el" href="classVersion.html">Version</a>, and <a class="el" href="classXLine.html">XLine</a>. +Inherited by <a class="el" href="classAdmin.html">Admin</a>, <a class="el" href="classConfigReader.html">ConfigReader</a>, <a class="el" href="classConnectClass.html">ConnectClass</a>, <a class="el" href="classExtensible.html">Extensible</a>, <a class="el" href="classExtMode.html">ExtMode</a>, <a class="el" href="classFileReader.html">FileReader</a>, <a class="el" href="classHostItem.html">HostItem</a>, <a class="el" href="classInvited.html">Invited</a>, <a class="el" href="classModeParameter.html">ModeParameter</a>, <a class="el" href="classModule.html">Module</a>, <a class="el" href="classModuleFactory.html">ModuleFactory</a>, <a class="el" href="classModuleMessage.html">ModuleMessage</a>, <a class="el" href="classServer.html">Server</a>, <a class="el" href="classucrec.html">ucrec</a>, <a class="el" href="classVersion.html">Version</a>, and <a class="el" href="classXLine.html">XLine</a>. <p> <a href="classclassbase-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> @@ -132,7 +132,7 @@ Referenced by <a class="el" href="base_8h-source.html#l00039">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 Sat Apr 16 18:57:16 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index 5a0072a7b..73a148109 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -19,7 +19,7 @@ <tr class="memlist"><td><a class="el" href="classcommand__t.html#o5">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#o4">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#a1">~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 Sat Apr 16 18:57:16 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 39633f8b5..bae7eab98 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -227,7 +227,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 Sat Apr 16 18:57:16 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index fa5455dae..66246c906 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -41,7 +41,7 @@ <tr class="memlist"><td><a class="el" href="classconnection.html#o11">state</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#a4">TerminateLink</a>(char *targethost)</td><td><a class="el" href="classconnection.html">connection</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index a99784723..0666d43be 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -675,7 +675,7 @@ File descriptor of the connection. <p> Definition at line <a class="el" href="connection_8h-source.html#l00171">171</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00859">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00604">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00461">Server::SendTo()</a>, <a class="el" href="servers_8cpp-source.html#l00026">serverrec::serverrec()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00595">Server::UserToPseudo()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00930">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00663">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00520">Server::SendTo()</a>, <a class="el" href="servers_8cpp-source.html#l00026">serverrec::serverrec()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00654">Server::UserToPseudo()</a>. </td> </tr> </table> <a name="o8" doxytag="connection::haspassed"></a><p> @@ -731,7 +731,7 @@ Not used if this is a serverrec <p> Definition at line <a class="el" href="connection_8h-source.html#l00175">175</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#l00065">userrec::GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00604">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00595">Server::UserToPseudo()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00065">userrec::GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00663">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00654">Server::UserToPseudo()</a>. </td> </tr> </table> <a name="o14" doxytag="connection::idle_lastmsg"></a><p> @@ -1038,7 +1038,7 @@ Definition at line <a class="el" href="connection_8h-source.html#l00217">217</a> </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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index f73155516..efd1586de 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -7,24 +7,25 @@ <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="qindexHL" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>InspIRCd Compound Index</h1><table align=center width="95%" border="0" cellspacing="0" cellpadding="0"> <tr><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> A </div></td></tr></table> -</td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> D </div></td></tr></table> -</td><td><a class="el" href="classGLine.html">GLine</a> </td><td><a class="el" href="classModeParameter.html">ModeParameter</a> </td><td><a class="el" href="structStrHashComp.html">StrHashComp</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><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> H </div></td></tr></table> -</td><td><a class="el" href="classModule.html">Module</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> U </div></td></tr></table> -</td></tr><tr><td><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="classHostItem.html">HostItem</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><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> E </div></td></tr></table> +</td><td><a class="el" href="classDNS.html">DNS</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> H </div></td></tr></table> +</td><td><a class="el" href="classModuleFactory.html">ModuleFactory</a> </td><td><a class="el" href="classserverrec.html">serverrec</a> </td></tr><tr><td><a class="el" href="classAdmin.html">Admin</a> </td><td><a class="el" href="structdns__ip4list.html">dns_ip4list</a> </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="structStrHashComp.html">StrHashComp</a> </td></tr><tr><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> B </div></td></tr></table> +</td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> E </div></td></tr></table> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> I </div></td></tr></table> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> N </div></td></tr></table> -</td><td><a class="el" href="classuserrec.html">userrec</a> </td></tr><tr><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> C </div></td></tr></table> -</td><td><a class="el" href="classELine.html">ELine</a> </td><td><a class="el" href="structInAddr__HashComp.html">InAddr_HashComp</a> </td><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a> (<a class="el" href="namespacenspace.html">nspace</a>) </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> V </div></td></tr></table> -</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="classInvited.html">Invited</a> </td><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a> (<a class="el" href="namespacenspace.html">nspace</a>) </td><td><a class="el" href="classVersion.html">Version</a> </td></tr><tr><td><a class="el" href="classclassbase.html">classbase</a> </td><td><a class="el" href="classExtensible.html">Extensible</a> </td><td><a class="el" href="classInviteItem.html">InviteItem</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> Q </div></td></tr></table> +</td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> U </div></td></tr></table> +</td></tr><tr><td><a class="el" href="classBanItem.html">BanItem</a> </td><td><a class="el" href="classELine.html">ELine</a> </td><td><a class="el" href="structInAddr__HashComp.html">InAddr_HashComp</a> </td><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a> (<a class="el" href="namespacenspace.html">nspace</a>) </td><td><a class="el" href="classucrec.html">ucrec</a> </td></tr><tr><td><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="classInvited.html">Invited</a> </td><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a> (<a class="el" href="namespacenspace.html">nspace</a>) </td><td><a class="el" href="classuserrec.html">userrec</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="classInviteItem.html">InviteItem</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> Q </div></td></tr></table> +</td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> V </div></td></tr></table> +</td></tr><tr><td><a class="el" href="classclassbase.html">classbase</a> </td><td><a class="el" href="classExtensible.html">Extensible</a> </td><td><a class="el" href="classircd__connector.html">ircd_connector</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="classcommand__t.html">command_t</a> </td><td><a class="el" href="classExtMode.html">ExtMode</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> K </div></td></tr></table> +</td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> R </div></td></tr></table> </td><td><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 class="el" href="classExtMode.html">ExtMode</a> </td><td><a class="el" href="classircd__connector.html">ircd_connector</a> </td><td><a class="el" href="classQLine.html">QLine</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><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> F </div></td></tr></table> -</td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> K </div></td></tr></table> +</td></tr><tr><td><a class="el" href="classConfigReader.html">ConfigReader</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> F </div></td></tr></table> +</td><td><a class="el" href="classKLine.html">KLine</a> </td><td><a class="el" href="classRequest.html">Request</a> </td><td><a class="el" href="classXLine.html">XLine</a> </td></tr><tr><td><a class="el" href="classConnectClass.html">ConnectClass</a> </td><td><a class="el" href="classFileReader.html">FileReader</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> M </div></td></tr></table> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> S </div></td></tr></table> </td><td><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 class="el" href="classFileReader.html">FileReader</a> </td><td><a class="el" href="classKLine.html">KLine</a> </td><td><a class="el" href="classServer.html">Server</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><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> G </div></td></tr></table> -</td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> M </div></td></tr></table> -</td><td><a class="el" href="classserverrec.html">serverrec</a> </td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:15 2005 for InspIRCd by +</td></tr><tr><td><a class="el" href="classconnection.html">connection</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> G </div></td></tr></table> +</td><td><a class="el" href="classModeParameter.html">ModeParameter</a> </td><td><a class="el" href="classServer.html">Server</a> </td><td><a class="el" href="classZLine.html">ZLine</a> </td></tr><tr><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> D </div></td></tr></table> +</td><td><a class="el" href="classGLine.html">GLine</a> </td><td><a class="el" href="classModule.html">Module</a> </td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classircd__connector-members.html b/docs/module-doc/classircd__connector-members.html index 7635c1f50..ae5ada4a2 100644 --- a/docs/module-doc/classircd__connector-members.html +++ b/docs/module-doc/classircd__connector-members.html @@ -35,7 +35,7 @@ <tr class="memlist"><td><a class="el" href="classExtensible.html#a1">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="classircd__connector.html#r4">state</a></td><td><a class="el" href="classircd__connector.html">ircd_connector</a></td><td><code> [private]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classircd__connector.html b/docs/module-doc/classircd__connector.html index ceb0c24e0..6a366234b 100644 --- a/docs/module-doc/classircd__connector.html +++ b/docs/module-doc/classircd__connector.html @@ -792,7 +792,7 @@ Definition at line <a class="el" href="connection_8h-source.html#l00075">75</a> </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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index da732c3c7..ad5c04032 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -55,7 +55,7 @@ <tr class="memlist"><td><a class="el" href="classserverrec.html#o6">version</a></td><td><a class="el" href="classserverrec.html">serverrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~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="classserverrec.html#a2">~serverrec</a>()</td><td><a class="el" href="classserverrec.html">serverrec</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:22 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index d2827abf2..219ae6302 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -519,7 +519,7 @@ Referenced by <a class="el" href="servers_8cpp-source.html#l00026">serverrec()</ </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="servers_8h-source.html">servers.h</a><li><a class="el" href="servers_8cpp-source.html">servers.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:22 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index eee03d2a5..2a781b64c 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#a0">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#a1">~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#a1">~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 Sat Apr 16 18:57:23 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 493503cd1..43cd75bff 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -127,7 +127,7 @@ If the record is not in use, this value will be NULL. <p> Definition at line <a class="el" href="channels_8h-source.html#l00213">213</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#l00604">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00663">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td> </tr> </table> <a name="o0" doxytag="ucrec::uc_modes"></a><p> @@ -160,7 +160,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userre </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 Sat Apr 16 18:57:23 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index 0dd5b8583..07e9dfa18 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -64,7 +64,7 @@ <tr class="memlist"><td><a class="el" href="classuserrec.html#a0">userrec</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#a1">~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#a1">~userrec</a>()</td><td><a class="el" href="classuserrec.html">userrec</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:23 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:12 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index d733c6e4e..d9c581f02 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -553,7 +553,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. <p> Definition at line <a class="el" href="users_8h-source.html#l00127">127</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#l00604">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00663">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td> </tr> </table> <a name="o2" doxytag="userrec::dhost"></a><p> @@ -693,7 +693,7 @@ The users ident reply. <p> Definition at line <a class="el" href="users_8h-source.html#l00110">110</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#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00604">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00595">Server::UserToPseudo()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00663">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00654">Server::UserToPseudo()</a>. </td> </tr> </table> <a name="r0" doxytag="userrec::invites"></a><p> @@ -777,7 +777,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#l00106">106</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#l00859">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00604">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00415">Server::QuitUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00930">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00663">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00474">Server::QuitUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td> </tr> </table> <a name="o11" doxytag="userrec::oper"></a><p> @@ -920,7 +920,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </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 Sat Apr 16 18:57:23 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:12 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index d5b5ecff3..5ea853b0d 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -118,7 +118,7 @@ 00121 <span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str); 00122 00123 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:13 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:54 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index 8b1ef1ddb..4e948d4f8 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -207,7 +207,7 @@ Other useful functions. <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00654">Server::AddELine()</a>, <a class="el" href="modules_8cpp-source.html#l00634">Server::AddGLine()</a>, <a class="el" href="modules_8cpp-source.html#l00649">Server::AddKLine()</a>, <a class="el" href="modules_8cpp-source.html#l00639">Server::AddQLine()</a>, <a class="el" href="modules_8cpp-source.html#l00644">Server::AddZLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00684">Server::CalcDuration()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00713">Server::AddELine()</a>, <a class="el" href="modules_8cpp-source.html#l00693">Server::AddGLine()</a>, <a class="el" href="modules_8cpp-source.html#l00708">Server::AddKLine()</a>, <a class="el" href="modules_8cpp-source.html#l00698">Server::AddQLine()</a>, <a class="el" href="modules_8cpp-source.html#l00703">Server::AddZLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00743">Server::CalcDuration()</a>. </td> </tr> </table> <a name="a58" doxytag="commands.h::handle_a"></a><p> @@ -3722,7 +3722,7 @@ Functions for u:lined servers. <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00421">Server::IsUlined()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00480">Server::IsUlined()</a>. </td> </tr> </table> <a name="a51" doxytag="commands.h::process_restricted_commands"></a><p> @@ -3793,7 +3793,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00421">Server::IsUli </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:57 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index ecf5b87c2..07a4f3867 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -164,7 +164,7 @@ 00293 00294 <span class="preprocessor">#endif</span> 00295 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:13 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:54 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index a88618793..325ee4b36 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -188,7 +188,7 @@ Definition at line <a class="el" href="connection_8h-source.html#l00039">39</a> Definition at line <a class="el" href="connection_8h-source.html#l00036">36</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:58 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index b6766405d..120212277 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -42,7 +42,7 @@ 00051 00052 <span class="preprocessor">#endif</span> 00053 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:13 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:54 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index 8aafcb5c6..2eb7d246b 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -17,7 +17,7 @@ <tr><td class="mdescLeft"> </td><td class="mdescRight">A structure that defines a command. </em> <a href="classcommand__t.html#_details">More...</a><em><br><br></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:58 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/dns_8h-source.html b/docs/module-doc/dns_8h-source.html index 05c92b218..189c8230d 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -70,7 +70,7 @@ 00093 }; 00094 00095 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:13 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:54 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/dns_8h.html b/docs/module-doc/dns_8h.html index 7d83d390d..115ac8c92 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -20,7 +20,7 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structdns__ip4list.html">dns_ip4list</a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:58 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index bc10cfacd..c3ffe9d2a 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -23,7 +23,7 @@ <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 Sat Apr 16 18:57:12 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:53 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 5db86cf84..5c74ffd02 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -68,13 +68,14 @@ Here is a list of all class members with links to the classes they belong to:<h3 <h3><a name="index_d">- d -</a> </h3><ul> <li>data -: <a class="el" href="classHostItem.html#o2">HostItem</a><li>DelELine() +: <a class="el" href="classEvent.html#p0">Event</a>, <a class="el" href="classRequest.html#p0">Request</a>, <a class="el" href="classHostItem.html#o2">HostItem</a><li>DelELine() : <a class="el" href="classServer.html#a47">Server</a><li>DelGLine() : <a class="el" href="classServer.html#a43">Server</a><li>DelKLine() : <a class="el" href="classServer.html#a46">Server</a><li>DelQLine() : <a class="el" href="classServer.html#a44">Server</a><li>DelZLine() : <a class="el" href="classServer.html#a45">Server</a><li>description -: <a class="el" href="classserverrec.html#o8">serverrec</a>, <a class="el" href="classircd__connector.html#r3">ircd_connector</a><li>dhost +: <a class="el" href="classserverrec.html#o8">serverrec</a>, <a class="el" href="classircd__connector.html#r3">ircd_connector</a><li>dest +: <a class="el" href="classRequest.html#p2">Request</a><li>dhost : <a class="el" href="classuserrec.html#o2">userrec</a><li>DNS() : <a class="el" href="classDNS.html#a1">DNS</a><li>dns_aton4() : <a class="el" href="classDNS.html#d2">DNS</a><li>dns_aton4_r() @@ -101,7 +102,8 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classConfigReader.html#a7">ConfigReader</a><li>EnumerateValues() : <a class="el" href="classConfigReader.html#a10">ConfigReader</a><li>error : <a class="el" href="classConfigReader.html#p3">ConfigReader</a><li>errorlog -: <a class="el" href="classConfigReader.html#p1">ConfigReader</a><li>Exists() +: <a class="el" href="classConfigReader.html#p1">ConfigReader</a><li>Event() +: <a class="el" href="classEvent.html#a0">Event</a><li>Exists() : <a class="el" href="classFileReader.html#a4">FileReader</a><li>Extend() : <a class="el" href="classExtensible.html#a0">Extensible</a><li>Extension_Items : <a class="el" href="classExtensible.html#r0">Extensible</a><li>ExtMode() @@ -114,7 +116,8 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classFileReader.html#a1">FileReader</a><li>FileSize() : <a class="el" href="classFileReader.html#a6">FileReader</a><li>FindChannel() : <a class="el" href="classServer.html#a15">Server</a><li>FindHost() -: <a class="el" href="classconnection.html#a7">connection</a><li>FindNick() +: <a class="el" href="classconnection.html#a7">connection</a><li>FindModule() +: <a class="el" href="classServer.html#a57">Server</a><li>FindNick() : <a class="el" href="classServer.html#a14">Server</a><li>Flags : <a class="el" href="classVersion.html#o4">Version</a><li>flags_needed : <a class="el" href="classcommand__t.html#o2">command_t</a><li>flood @@ -125,10 +128,13 @@ Here is a list of all class members with links to the classes they belong to:<h3 </h3><ul> <li>GenKey() : <a class="el" href="classconnection.html#a9">connection</a><li>GetAdmin() -: <a class="el" href="classServer.html#a20">Server</a><li>GetDescription() +: <a class="el" href="classServer.html#a20">Server</a><li>GetData() +: <a class="el" href="classEvent.html#a1">Event</a>, <a class="el" href="classRequest.html#a1">Request</a><li>GetDescription() : <a class="el" href="classircd__connector.html#a8">ircd_connector</a><li>GetDescriptor() -: <a class="el" href="classircd__connector.html#a3">ircd_connector</a><li>GetError() -: <a class="el" href="classConfigReader.html#a6">ConfigReader</a><li>GetExt() +: <a class="el" href="classircd__connector.html#a3">ircd_connector</a><li>GetDest() +: <a class="el" href="classRequest.html#a3">Request</a><li>GetError() +: <a class="el" href="classConfigReader.html#a6">ConfigReader</a><li>GetEventID() +: <a class="el" href="classEvent.html#a3">Event</a><li>GetExt() : <a class="el" href="classExtensible.html#a2">Extensible</a><li>GetFD() : <a class="el" href="classDNS.html#a7">DNS</a><li>GetFullHost() : <a class="el" href="classuserrec.html#a2">userrec</a><li>GetFullRealHost() @@ -139,7 +145,8 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classDNS.html#a6">DNS</a><li>GetServerIP() : <a class="el" href="classircd__connector.html#a7">ircd_connector</a><li>GetServerName() : <a class="el" href="classServer.html#a18">Server</a>, <a class="el" href="classircd__connector.html#a1">ircd_connector</a><li>GetServerPort() -: <a class="el" href="classircd__connector.html#a10">ircd_connector</a><li>GetState() +: <a class="el" href="classircd__connector.html#a10">ircd_connector</a><li>GetSource() +: <a class="el" href="classEvent.html#a2">Event</a>, <a class="el" href="classRequest.html#a2">Request</a><li>GetState() : <a class="el" href="classircd__connector.html#a5">ircd_connector</a><li>GetUsers() : <a class="el" href="classServer.html#a35">Server</a><li>GetVersion() : <a class="el" href="classModule.html#a2">Module</a></ul> @@ -157,7 +164,8 @@ Here is a list of all class members with links to the classes they belong to:<h3 <h3><a name="index_i">- i -</a> </h3><ul> <li>i -: <a class="el" href="classDNS.html#r3">DNS</a><li>ident +: <a class="el" href="classDNS.html#r3">DNS</a><li>id +: <a class="el" href="classEvent.html#p2">Event</a><li>ident : <a class="el" href="classuserrec.html#o1">userrec</a><li>idle_lastmsg : <a class="el" href="classconnection.html#o14">connection</a><li>inbuf : <a class="el" href="classconnection.html#o3">connection</a><li>internal_addr @@ -217,9 +225,9 @@ Here is a list of all class members with links to the classes they belong to:<h3 <h3><a name="index_n">- n -</a> </h3><ul> <li>n_matches -: <a class="el" href="classXLine.html#o4">XLine</a><li>name -: <a class="el" href="classserverrec.html#o0">serverrec</a>, <a class="el" href="classchanrec.html#o0">chanrec</a><li>Name -: <a class="el" href="classAdmin.html#o0">Admin</a><li>needsoper +: <a class="el" href="classXLine.html#o4">XLine</a><li>Name +: <a class="el" href="classAdmin.html#o0">Admin</a><li>name +: <a class="el" href="classserverrec.html#o0">serverrec</a>, <a class="el" href="classchanrec.html#o0">chanrec</a><li>needsoper : <a class="el" href="classExtMode.html#o4">ExtMode</a><li>next : <a class="el" href="structdns__ip4list.html#o1">dns_ip4list</a><li>Nick : <a class="el" href="classAdmin.html#o2">Admin</a><li>nick @@ -230,47 +238,50 @@ Here is a list of all class members with links to the classes they belong to:<h3 <h3><a name="index_o">- o -</a> </h3><ul> <li>On005Numeric() -: <a class="el" href="classModule.html#a26">Module</a><li>OnAccessCheck() -: <a class="el" href="classModule.html#a23">Module</a><li>OnBackgroundTimer() -: <a class="el" href="classModule.html#a29">Module</a><li>OnChangeLocalUserGECOS() -: <a class="el" href="classModule.html#a41">Module</a><li>OnChangeLocalUserHost() -: <a class="el" href="classModule.html#a40">Module</a><li>OnChannelSync() -: <a class="el" href="classModule.html#a25">Module</a><li>OnCheckBan() -: <a class="el" href="classModule.html#a38">Module</a><li>OnCheckInvite() -: <a class="el" href="classModule.html#a35">Module</a><li>OnCheckKey() -: <a class="el" href="classModule.html#a36">Module</a><li>OnCheckLimit() -: <a class="el" href="classModule.html#a37">Module</a><li>OnCheckReady() -: <a class="el" href="classModule.html#a32">Module</a><li>OnExtendedMode() -: <a class="el" href="classModule.html#a11">Module</a><li>OnInfo() -: <a class="el" href="classModule.html#a16">Module</a><li>OnKill() -: <a class="el" href="classModule.html#a27">Module</a><li>OnLoadModule() -: <a class="el" href="classModule.html#a28">Module</a><li>OnLocalTopicChange() -: <a class="el" href="classModule.html#a42">Module</a><li>OnMeshToken() -: <a class="el" href="classModule.html#a43">Module</a><li>OnOper() -: <a class="el" href="classModule.html#a15">Module</a><li>OnPacketReceive() -: <a class="el" href="classModule.html#a8">Module</a><li>OnPacketTransmit() -: <a class="el" href="classModule.html#a7">Module</a><li>OnPreCommand() -: <a class="el" href="classModule.html#a31">Module</a><li>OnRawMode() -: <a class="el" href="classModule.html#a34">Module</a><li>OnRehash() -: <a class="el" href="classModule.html#a9">Module</a><li>OnSendList() -: <a class="el" href="classModule.html#a30">Module</a><li>OnServerRaw() -: <a class="el" href="classModule.html#a10">Module</a><li>OnStats() -: <a class="el" href="classModule.html#a39">Module</a><li>OnUserConnect() -: <a class="el" href="classModule.html#a3">Module</a><li>OnUserJoin() -: <a class="el" href="classModule.html#a5">Module</a><li>OnUserKick() -: <a class="el" href="classModule.html#a14">Module</a><li>OnUserPart() -: <a class="el" href="classModule.html#a6">Module</a><li>OnUserPostNick() -: <a class="el" href="classModule.html#a22">Module</a><li>OnUserPreInvite() -: <a class="el" href="classModule.html#a18">Module</a><li>OnUserPreJoin() -: <a class="el" href="classModule.html#a12">Module</a><li>OnUserPreKick() -: <a class="el" href="classModule.html#a13">Module</a><li>OnUserPreMessage() -: <a class="el" href="classModule.html#a19">Module</a><li>OnUserPreNick() -: <a class="el" href="classModule.html#a21">Module</a><li>OnUserPreNotice() -: <a class="el" href="classModule.html#a20">Module</a><li>OnUserQuit() +: <a class="el" href="classModule.html#a27">Module</a><li>OnAccessCheck() +: <a class="el" href="classModule.html#a24">Module</a><li>OnBackgroundTimer() +: <a class="el" href="classModule.html#a30">Module</a><li>OnChangeLocalUserGECOS() +: <a class="el" href="classModule.html#a42">Module</a><li>OnChangeLocalUserHost() +: <a class="el" href="classModule.html#a41">Module</a><li>OnChannelSync() +: <a class="el" href="classModule.html#a26">Module</a><li>OnCheckBan() +: <a class="el" href="classModule.html#a39">Module</a><li>OnCheckInvite() +: <a class="el" href="classModule.html#a36">Module</a><li>OnCheckKey() +: <a class="el" href="classModule.html#a37">Module</a><li>OnCheckLimit() +: <a class="el" href="classModule.html#a38">Module</a><li>OnCheckReady() +: <a class="el" href="classModule.html#a33">Module</a><li>OnEvent() +: <a class="el" href="classModule.html#a45">Module</a><li>OnExtendedMode() +: <a class="el" href="classModule.html#a12">Module</a><li>OnInfo() +: <a class="el" href="classModule.html#a17">Module</a><li>OnKill() +: <a class="el" href="classModule.html#a28">Module</a><li>OnLoadModule() +: <a class="el" href="classModule.html#a29">Module</a><li>OnLocalTopicChange() +: <a class="el" href="classModule.html#a43">Module</a><li>OnMeshToken() +: <a class="el" href="classModule.html#a44">Module</a><li>OnOper() +: <a class="el" href="classModule.html#a16">Module</a><li>OnPacketReceive() +: <a class="el" href="classModule.html#a9">Module</a><li>OnPacketTransmit() +: <a class="el" href="classModule.html#a8">Module</a><li>OnPreCommand() +: <a class="el" href="classModule.html#a32">Module</a><li>OnRawMode() +: <a class="el" href="classModule.html#a35">Module</a><li>OnRehash() +: <a class="el" href="classModule.html#a10">Module</a><li>OnRequest() +: <a class="el" href="classModule.html#a46">Module</a><li>OnSendList() +: <a class="el" href="classModule.html#a31">Module</a><li>OnServerRaw() +: <a class="el" href="classModule.html#a11">Module</a><li>OnStats() +: <a class="el" href="classModule.html#a40">Module</a><li>OnUserConnect() +: <a class="el" href="classModule.html#a3">Module</a><li>OnUserDisconnect() +: <a class="el" href="classModule.html#a5">Module</a><li>OnUserJoin() +: <a class="el" href="classModule.html#a6">Module</a><li>OnUserKick() +: <a class="el" href="classModule.html#a15">Module</a><li>OnUserPart() +: <a class="el" href="classModule.html#a7">Module</a><li>OnUserPostNick() +: <a class="el" href="classModule.html#a23">Module</a><li>OnUserPreInvite() +: <a class="el" href="classModule.html#a19">Module</a><li>OnUserPreJoin() +: <a class="el" href="classModule.html#a13">Module</a><li>OnUserPreKick() +: <a class="el" href="classModule.html#a14">Module</a><li>OnUserPreMessage() +: <a class="el" href="classModule.html#a20">Module</a><li>OnUserPreNick() +: <a class="el" href="classModule.html#a22">Module</a><li>OnUserPreNotice() +: <a class="el" href="classModule.html#a21">Module</a><li>OnUserQuit() : <a class="el" href="classModule.html#a4">Module</a><li>OnUserRegister() -: <a class="el" href="classModule.html#a33">Module</a><li>OnUserSync() -: <a class="el" href="classModule.html#a24">Module</a><li>OnWhois() -: <a class="el" href="classModule.html#a17">Module</a><li>oper +: <a class="el" href="classModule.html#a34">Module</a><li>OnUserSync() +: <a class="el" href="classModule.html#a25">Module</a><li>OnWhois() +: <a class="el" href="classModule.html#a18">Module</a><li>oper : <a class="el" href="classuserrec.html#o11">userrec</a><li>operator()() : <a class="el" href="structInAddr__HashComp.html#a0">InAddr_HashComp</a>, <a class="el" href="structStrHashComp.html#a0">StrHashComp</a>, <a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html#a0">nspace::hash< string ></a>, <a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html#a0">nspace::hash< in_addr ></a><li>opercount : <a class="el" href="classserverrec.html#o4">serverrec</a></ul> @@ -301,7 +312,8 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classconnection.html#a6">connection</a><li>registered : <a class="el" href="classconnection.html#o10">connection</a><li>registration_timeout : <a class="el" href="classConnectClass.html#o1">ConnectClass</a><li>RemoveInvite() -: <a class="el" href="classuserrec.html#a6">userrec</a><li>result +: <a class="el" href="classuserrec.html#a6">userrec</a><li>Request() +: <a class="el" href="classRequest.html#a0">Request</a><li>result : <a class="el" href="classuserrec.html#o8">userrec</a>, <a class="el" href="classDNS.html#r0">DNS</a><li>ReverseLookup() : <a class="el" href="classDNS.html#a3">DNS</a><li>Revision : <a class="el" href="classVersion.html#o2">Version</a><li>routes @@ -310,7 +322,7 @@ Here is a list of all class members with links to the classes they belong to:<h3 </h3><ul> <li>secret : <a class="el" href="classchanrec.html#o12">chanrec</a><li>Send() -: <a class="el" href="classServer.html#a4">Server</a><li>SendChannel() +: <a class="el" href="classServer.html#a4">Server</a>, <a class="el" href="classEvent.html#a4">Event</a>, <a class="el" href="classRequest.html#a4">Request</a>, <a class="el" href="classModuleMessage.html#a0">ModuleMessage</a><li>SendChannel() : <a class="el" href="classServer.html#a8">Server</a><li>SendCommon() : <a class="el" href="classServer.html#a10">Server</a><li>SendFrom() : <a class="el" href="classServer.html#a6">Server</a><li>SendMode() @@ -320,9 +332,9 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classServer.html#a5">Server</a><li>SendTo() : <a class="el" href="classServer.html#a7">Server</a><li>SendToModeMask() : <a class="el" href="classServer.html#a25">Server</a><li>SendWallops() -: <a class="el" href="classServer.html#a11">Server</a><li>server -: <a class="el" href="classuserrec.html#o6">userrec</a><li>Server() -: <a class="el" href="classServer.html#a0">Server</a><li>servername +: <a class="el" href="classServer.html#a11">Server</a><li>Server() +: <a class="el" href="classServer.html#a0">Server</a><li>server +: <a class="el" href="classuserrec.html#o6">userrec</a><li>servername : <a class="el" href="classircd__connector.html#r2">ircd_connector</a><li>serverrec() : <a class="el" href="classserverrec.html#a1">serverrec</a><li>set_by : <a class="el" href="classHostItem.html#o1">HostItem</a><li>set_time @@ -340,7 +352,7 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classircd__connector.html#a6">ircd_connector</a><li>Shrink() : <a class="el" href="classExtensible.html#a1">Extensible</a><li>signon : <a class="el" href="classconnection.html#o13">connection</a><li>source -: <a class="el" href="classXLine.html#o2">XLine</a>, <a class="el" href="classcommand__t.html#o6">command_t</a><li>state +: <a class="el" href="classXLine.html#o2">XLine</a>, <a class="el" href="classEvent.html#p1">Event</a>, <a class="el" href="classRequest.html#p1">Request</a>, <a class="el" href="classcommand__t.html#o6">command_t</a><li>state : <a class="el" href="classconnection.html#o11">connection</a>, <a class="el" href="classircd__connector.html#r4">ircd_connector</a><li>sync_soon : <a class="el" href="classserverrec.html#o10">serverrec</a></ul> <h3><a name="index_t">- t -</a> @@ -385,7 +397,7 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classserverrec.html#a2">serverrec</a><li>~ucrec() : <a class="el" href="classucrec.html#a1">ucrec</a><li>~userrec() : <a class="el" href="classuserrec.html#a1">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index 21be9c6ea..daf2ea922 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -75,7 +75,8 @@ </h3><ul> <li>Enumerate() : <a class="el" href="classConfigReader.html#a7">ConfigReader</a><li>EnumerateValues() -: <a class="el" href="classConfigReader.html#a10">ConfigReader</a><li>Exists() +: <a class="el" href="classConfigReader.html#a10">ConfigReader</a><li>Event() +: <a class="el" href="classEvent.html#a0">Event</a><li>Exists() : <a class="el" href="classFileReader.html#a4">FileReader</a><li>Extend() : <a class="el" href="classExtensible.html#a0">Extensible</a><li>ExtMode() : <a class="el" href="classExtMode.html#a0">ExtMode</a></ul> @@ -85,17 +86,21 @@ : <a class="el" href="classFileReader.html#a1">FileReader</a><li>FileSize() : <a class="el" href="classFileReader.html#a6">FileReader</a><li>FindChannel() : <a class="el" href="classServer.html#a15">Server</a><li>FindHost() -: <a class="el" href="classconnection.html#a7">connection</a><li>FindNick() +: <a class="el" href="classconnection.html#a7">connection</a><li>FindModule() +: <a class="el" href="classServer.html#a57">Server</a><li>FindNick() : <a class="el" href="classServer.html#a14">Server</a><li>ForwardLookup() : <a class="el" href="classDNS.html#a4">DNS</a></ul> <h3><a name="index_g">- g -</a> </h3><ul> <li>GenKey() : <a class="el" href="classconnection.html#a9">connection</a><li>GetAdmin() -: <a class="el" href="classServer.html#a20">Server</a><li>GetDescription() +: <a class="el" href="classServer.html#a20">Server</a><li>GetData() +: <a class="el" href="classEvent.html#a1">Event</a>, <a class="el" href="classRequest.html#a1">Request</a><li>GetDescription() : <a class="el" href="classircd__connector.html#a8">ircd_connector</a><li>GetDescriptor() -: <a class="el" href="classircd__connector.html#a3">ircd_connector</a><li>GetError() -: <a class="el" href="classConfigReader.html#a6">ConfigReader</a><li>GetExt() +: <a class="el" href="classircd__connector.html#a3">ircd_connector</a><li>GetDest() +: <a class="el" href="classRequest.html#a3">Request</a><li>GetError() +: <a class="el" href="classConfigReader.html#a6">ConfigReader</a><li>GetEventID() +: <a class="el" href="classEvent.html#a3">Event</a><li>GetExt() : <a class="el" href="classExtensible.html#a2">Extensible</a><li>GetFD() : <a class="el" href="classDNS.html#a7">DNS</a><li>GetFullHost() : <a class="el" href="classuserrec.html#a2">userrec</a><li>GetFullRealHost() @@ -106,7 +111,8 @@ : <a class="el" href="classDNS.html#a6">DNS</a><li>GetServerIP() : <a class="el" href="classircd__connector.html#a7">ircd_connector</a><li>GetServerName() : <a class="el" href="classServer.html#a18">Server</a>, <a class="el" href="classircd__connector.html#a1">ircd_connector</a><li>GetServerPort() -: <a class="el" href="classircd__connector.html#a10">ircd_connector</a><li>GetState() +: <a class="el" href="classircd__connector.html#a10">ircd_connector</a><li>GetSource() +: <a class="el" href="classEvent.html#a2">Event</a>, <a class="el" href="classRequest.html#a2">Request</a><li>GetState() : <a class="el" href="classircd__connector.html#a5">ircd_connector</a><li>GetUsers() : <a class="el" href="classServer.html#a35">Server</a><li>GetVersion() : <a class="el" href="classModule.html#a2">Module</a></ul> @@ -153,47 +159,50 @@ <h3><a name="index_o">- o -</a> </h3><ul> <li>On005Numeric() -: <a class="el" href="classModule.html#a26">Module</a><li>OnAccessCheck() -: <a class="el" href="classModule.html#a23">Module</a><li>OnBackgroundTimer() -: <a class="el" href="classModule.html#a29">Module</a><li>OnChangeLocalUserGECOS() -: <a class="el" href="classModule.html#a41">Module</a><li>OnChangeLocalUserHost() -: <a class="el" href="classModule.html#a40">Module</a><li>OnChannelSync() -: <a class="el" href="classModule.html#a25">Module</a><li>OnCheckBan() -: <a class="el" href="classModule.html#a38">Module</a><li>OnCheckInvite() -: <a class="el" href="classModule.html#a35">Module</a><li>OnCheckKey() -: <a class="el" href="classModule.html#a36">Module</a><li>OnCheckLimit() -: <a class="el" href="classModule.html#a37">Module</a><li>OnCheckReady() -: <a class="el" href="classModule.html#a32">Module</a><li>OnExtendedMode() -: <a class="el" href="classModule.html#a11">Module</a><li>OnInfo() -: <a class="el" href="classModule.html#a16">Module</a><li>OnKill() -: <a class="el" href="classModule.html#a27">Module</a><li>OnLoadModule() -: <a class="el" href="classModule.html#a28">Module</a><li>OnLocalTopicChange() -: <a class="el" href="classModule.html#a42">Module</a><li>OnMeshToken() -: <a class="el" href="classModule.html#a43">Module</a><li>OnOper() -: <a class="el" href="classModule.html#a15">Module</a><li>OnPacketReceive() -: <a class="el" href="classModule.html#a8">Module</a><li>OnPacketTransmit() -: <a class="el" href="classModule.html#a7">Module</a><li>OnPreCommand() -: <a class="el" href="classModule.html#a31">Module</a><li>OnRawMode() -: <a class="el" href="classModule.html#a34">Module</a><li>OnRehash() -: <a class="el" href="classModule.html#a9">Module</a><li>OnSendList() -: <a class="el" href="classModule.html#a30">Module</a><li>OnServerRaw() -: <a class="el" href="classModule.html#a10">Module</a><li>OnStats() -: <a class="el" href="classModule.html#a39">Module</a><li>OnUserConnect() -: <a class="el" href="classModule.html#a3">Module</a><li>OnUserJoin() -: <a class="el" href="classModule.html#a5">Module</a><li>OnUserKick() -: <a class="el" href="classModule.html#a14">Module</a><li>OnUserPart() -: <a class="el" href="classModule.html#a6">Module</a><li>OnUserPostNick() -: <a class="el" href="classModule.html#a22">Module</a><li>OnUserPreInvite() -: <a class="el" href="classModule.html#a18">Module</a><li>OnUserPreJoin() -: <a class="el" href="classModule.html#a12">Module</a><li>OnUserPreKick() -: <a class="el" href="classModule.html#a13">Module</a><li>OnUserPreMessage() -: <a class="el" href="classModule.html#a19">Module</a><li>OnUserPreNick() -: <a class="el" href="classModule.html#a21">Module</a><li>OnUserPreNotice() -: <a class="el" href="classModule.html#a20">Module</a><li>OnUserQuit() +: <a class="el" href="classModule.html#a27">Module</a><li>OnAccessCheck() +: <a class="el" href="classModule.html#a24">Module</a><li>OnBackgroundTimer() +: <a class="el" href="classModule.html#a30">Module</a><li>OnChangeLocalUserGECOS() +: <a class="el" href="classModule.html#a42">Module</a><li>OnChangeLocalUserHost() +: <a class="el" href="classModule.html#a41">Module</a><li>OnChannelSync() +: <a class="el" href="classModule.html#a26">Module</a><li>OnCheckBan() +: <a class="el" href="classModule.html#a39">Module</a><li>OnCheckInvite() +: <a class="el" href="classModule.html#a36">Module</a><li>OnCheckKey() +: <a class="el" href="classModule.html#a37">Module</a><li>OnCheckLimit() +: <a class="el" href="classModule.html#a38">Module</a><li>OnCheckReady() +: <a class="el" href="classModule.html#a33">Module</a><li>OnEvent() +: <a class="el" href="classModule.html#a45">Module</a><li>OnExtendedMode() +: <a class="el" href="classModule.html#a12">Module</a><li>OnInfo() +: <a class="el" href="classModule.html#a17">Module</a><li>OnKill() +: <a class="el" href="classModule.html#a28">Module</a><li>OnLoadModule() +: <a class="el" href="classModule.html#a29">Module</a><li>OnLocalTopicChange() +: <a class="el" href="classModule.html#a43">Module</a><li>OnMeshToken() +: <a class="el" href="classModule.html#a44">Module</a><li>OnOper() +: <a class="el" href="classModule.html#a16">Module</a><li>OnPacketReceive() +: <a class="el" href="classModule.html#a9">Module</a><li>OnPacketTransmit() +: <a class="el" href="classModule.html#a8">Module</a><li>OnPreCommand() +: <a class="el" href="classModule.html#a32">Module</a><li>OnRawMode() +: <a class="el" href="classModule.html#a35">Module</a><li>OnRehash() +: <a class="el" href="classModule.html#a10">Module</a><li>OnRequest() +: <a class="el" href="classModule.html#a46">Module</a><li>OnSendList() +: <a class="el" href="classModule.html#a31">Module</a><li>OnServerRaw() +: <a class="el" href="classModule.html#a11">Module</a><li>OnStats() +: <a class="el" href="classModule.html#a40">Module</a><li>OnUserConnect() +: <a class="el" href="classModule.html#a3">Module</a><li>OnUserDisconnect() +: <a class="el" href="classModule.html#a5">Module</a><li>OnUserJoin() +: <a class="el" href="classModule.html#a6">Module</a><li>OnUserKick() +: <a class="el" href="classModule.html#a15">Module</a><li>OnUserPart() +: <a class="el" href="classModule.html#a7">Module</a><li>OnUserPostNick() +: <a class="el" href="classModule.html#a23">Module</a><li>OnUserPreInvite() +: <a class="el" href="classModule.html#a19">Module</a><li>OnUserPreJoin() +: <a class="el" href="classModule.html#a13">Module</a><li>OnUserPreKick() +: <a class="el" href="classModule.html#a14">Module</a><li>OnUserPreMessage() +: <a class="el" href="classModule.html#a20">Module</a><li>OnUserPreNick() +: <a class="el" href="classModule.html#a22">Module</a><li>OnUserPreNotice() +: <a class="el" href="classModule.html#a21">Module</a><li>OnUserQuit() : <a class="el" href="classModule.html#a4">Module</a><li>OnUserRegister() -: <a class="el" href="classModule.html#a33">Module</a><li>OnUserSync() -: <a class="el" href="classModule.html#a24">Module</a><li>OnWhois() -: <a class="el" href="classModule.html#a17">Module</a><li>operator()() +: <a class="el" href="classModule.html#a34">Module</a><li>OnUserSync() +: <a class="el" href="classModule.html#a25">Module</a><li>OnWhois() +: <a class="el" href="classModule.html#a18">Module</a><li>operator()() : <a class="el" href="structInAddr__HashComp.html#a0">InAddr_HashComp</a>, <a class="el" href="structStrHashComp.html#a0">StrHashComp</a>, <a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html#a0">nspace::hash< string ></a>, <a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html#a0">nspace::hash< in_addr ></a></ul> <h3><a name="index_p">- p -</a> </h3><ul> @@ -211,12 +220,13 @@ : <a class="el" href="classConfigReader.html#a5">ConfigReader</a><li>ReadValue() : <a class="el" href="classConfigReader.html#a3">ConfigReader</a><li>RecvPacket() : <a class="el" href="classconnection.html#a6">connection</a><li>RemoveInvite() -: <a class="el" href="classuserrec.html#a6">userrec</a><li>ReverseLookup() +: <a class="el" href="classuserrec.html#a6">userrec</a><li>Request() +: <a class="el" href="classRequest.html#a0">Request</a><li>ReverseLookup() : <a class="el" href="classDNS.html#a3">DNS</a></ul> <h3><a name="index_s">- s -</a> </h3><ul> <li>Send() -: <a class="el" href="classServer.html#a4">Server</a><li>SendChannel() +: <a class="el" href="classServer.html#a4">Server</a>, <a class="el" href="classEvent.html#a4">Event</a>, <a class="el" href="classRequest.html#a4">Request</a>, <a class="el" href="classModuleMessage.html#a0">ModuleMessage</a><li>SendChannel() : <a class="el" href="classServer.html#a8">Server</a><li>SendCommon() : <a class="el" href="classServer.html#a10">Server</a><li>SendFrom() : <a class="el" href="classServer.html#a6">Server</a><li>SendMode() @@ -270,7 +280,7 @@ : <a class="el" href="classserverrec.html#a2">serverrec</a><li>~ucrec() : <a class="el" href="classucrec.html#a1">ucrec</a><li>~userrec() : <a class="el" href="classuserrec.html#a1">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:16 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index 26549e3b1..dbee6869d 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -41,8 +41,9 @@ <h3><a name="index_d">- d -</a> </h3><ul> <li>data -: <a class="el" href="classHostItem.html#o2">HostItem</a><li>description -: <a class="el" href="classserverrec.html#o8">serverrec</a>, <a class="el" href="classircd__connector.html#r3">ircd_connector</a><li>dhost +: <a class="el" href="classEvent.html#p0">Event</a>, <a class="el" href="classRequest.html#p0">Request</a>, <a class="el" href="classHostItem.html#o2">HostItem</a><li>description +: <a class="el" href="classserverrec.html#o8">serverrec</a>, <a class="el" href="classircd__connector.html#r3">ircd_connector</a><li>dest +: <a class="el" href="classRequest.html#p2">Request</a><li>dhost : <a class="el" href="classuserrec.html#o2">userrec</a><li>dns_done : <a class="el" href="classuserrec.html#o12">userrec</a><li>duration : <a class="el" href="classXLine.html#o1">XLine</a></ul> @@ -73,7 +74,8 @@ <h3><a name="index_i">- i -</a> </h3><ul> <li>i -: <a class="el" href="classDNS.html#r3">DNS</a><li>ident +: <a class="el" href="classDNS.html#r3">DNS</a><li>id +: <a class="el" href="classEvent.html#p2">Event</a><li>ident : <a class="el" href="classuserrec.html#o1">userrec</a><li>idle_lastmsg : <a class="el" href="classconnection.html#o14">connection</a><li>inbuf : <a class="el" href="classconnection.html#o3">connection</a><li>internal_addr @@ -111,9 +113,9 @@ <h3><a name="index_n">- n -</a> </h3><ul> <li>n_matches -: <a class="el" href="classXLine.html#o4">XLine</a><li>name -: <a class="el" href="classserverrec.html#o0">serverrec</a>, <a class="el" href="classchanrec.html#o0">chanrec</a><li>Name -: <a class="el" href="classAdmin.html#o0">Admin</a><li>needsoper +: <a class="el" href="classXLine.html#o4">XLine</a><li>Name +: <a class="el" href="classAdmin.html#o0">Admin</a><li>name +: <a class="el" href="classserverrec.html#o0">serverrec</a>, <a class="el" href="classchanrec.html#o0">chanrec</a><li>needsoper : <a class="el" href="classExtMode.html#o4">ExtMode</a><li>next : <a class="el" href="structdns__ip4list.html#o1">dns_ip4list</a><li>Nick : <a class="el" href="classAdmin.html#o2">Admin</a><li>nick @@ -156,7 +158,7 @@ : <a class="el" href="classXLine.html#o0">XLine</a>, <a class="el" href="classHostItem.html#o0">HostItem</a><li>setby : <a class="el" href="classchanrec.html#o5">chanrec</a><li>signon : <a class="el" href="classconnection.html#o13">connection</a><li>source -: <a class="el" href="classXLine.html#o2">XLine</a>, <a class="el" href="classcommand__t.html#o6">command_t</a><li>state +: <a class="el" href="classXLine.html#o2">XLine</a>, <a class="el" href="classEvent.html#p1">Event</a>, <a class="el" href="classRequest.html#p1">Request</a>, <a class="el" href="classcommand__t.html#o6">command_t</a><li>state : <a class="el" href="classconnection.html#o11">connection</a>, <a class="el" href="classircd__connector.html#r4">ircd_connector</a><li>sync_soon : <a class="el" href="classserverrec.html#o10">serverrec</a></ul> <h3><a name="index_t">- t -</a> @@ -180,7 +182,7 @@ </h3><ul> <li>version : <a class="el" href="classserverrec.html#o6">serverrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:16 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 96031510c..44697a8c5 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -334,7 +334,7 @@ Here is a list of all file members with links to the files they belong to:<h3><a <li>zline_make_global() : <a class="el" href="xline_8h.html#a26">xline.h</a><li>zline_set_creation_time() : <a class="el" href="xline_8h.html#a25">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:24 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index ddb40056b..6039f1f85 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -92,7 +92,7 @@ : <a class="el" href="modules_8h.html#a22">modules.h</a><li>VF_STATIC : <a class="el" href="modules_8h.html#a20">modules.h</a><li>VF_VENDOR : <a class="el" href="modules_8h.html#a21">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:24 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:14 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/globals_func.html b/docs/module-doc/globals_func.html index 654fe807c..70e34b677 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -211,7 +211,7 @@ <li>zline_make_global() : <a class="el" href="xline_8h.html#a26">xline.h</a><li>zline_set_creation_time() : <a class="el" href="xline_8h.html#a25">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:24 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index 5901fd0b1..db1d263cf 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -26,7 +26,7 @@ : <a class="el" href="modules_8h.html#a32">modules.h</a><li>user_hash : <a class="el" href="modules_8cpp.html#a38">modules.cpp</a><li>VoidPointer : <a class="el" href="base_8h.html#a0">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:24 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:14 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index a279bb7b1..6648b8a35 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -105,7 +105,7 @@ : <a class="el" href="modules_8cpp.html#a44">modules.cpp</a><li>WHOWAS_MAX : <a class="el" href="modules_8cpp.html#a21">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a20">channels.cpp</a><li>WHOWAS_STALE : <a class="el" href="modules_8cpp.html#a20">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a19">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:24 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 45473fbb9..8abfbf430 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -34,6 +34,11 @@ <li><a class="el" href="classModeParameter.html">ModeParameter</a> <li><a class="el" href="classModule.html">Module</a> <li><a class="el" href="classModuleFactory.html">ModuleFactory</a> +<li><a class="el" href="classModuleMessage.html">ModuleMessage</a> +<ul> +<li><a class="el" href="classEvent.html">Event</a> +<li><a class="el" href="classRequest.html">Request</a> +</ul> <li><a class="el" href="classServer.html">Server</a> <li><a class="el" href="classucrec.html">ucrec</a> <li><a class="el" href="classVersion.html">Version</a> @@ -53,7 +58,7 @@ <li><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a> <li><a class="el" href="structStrHashComp.html">StrHashComp</a> </ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index 0b4e93ba3..60cca8815 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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>InspIRCd Documentation</h1> <p> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:12 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:53 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index 292887f35..48542281c 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -57,7 +57,7 @@ 00050 <span class="keywordtype">void</span> <a class="code" href="message_8h.html#a19">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); 00051 00052 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:13 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:54 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index 7b52b9ca5..e82d5b940 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -155,7 +155,7 @@ <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00509">Server::ChangeHost()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00568">Server::ChangeHost()</a>. </td> </tr> </table> <a name="a10" doxytag="message.h::ChangeName"></a><p> @@ -195,7 +195,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00509">Server::Chang <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00514">Server::ChangeGECOS()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00573">Server::ChangeGECOS()</a>. </td> </tr> </table> <a name="a18" doxytag="message.h::chlist"></a><p> @@ -331,7 +331,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00514">Server::Chang <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00534">Server::ChanMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00593">Server::ChanMode()</a>. </td> </tr> </table> <a name="a0" doxytag="message.h::common_channels"></a><p> @@ -371,7 +371,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00534">Server::ChanM <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00487">Server::CommonChannels()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00546">Server::CommonChannels()</a>. </td> </tr> </table> <a name="a15" doxytag="message.h::cstatus"></a><p> @@ -449,7 +449,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00487">Server::Commo <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00391">Server::GetUsers()</a>, and <a class="el" href="modules_8cpp-source.html#l00539">Server::IsOnChannel()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00450">Server::GetUsers()</a>, and <a class="el" href="modules_8cpp-source.html#l00598">Server::IsOnChannel()</a>. </td> </tr> </table> <a name="a9" doxytag="message.h::hasumode"></a><p> @@ -547,7 +547,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00391">Server::GetUs <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00391">Server::GetUsers()</a>, and <a class="el" href="modules_8cpp-source.html#l00519">Server::IsNick()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00450">Server::GetUsers()</a>, and <a class="el" href="modules_8cpp-source.html#l00578">Server::IsNick()</a>. </td> </tr> </table> <a name="a6" doxytag="message.h::NonBlocking"></a><p> @@ -674,7 +674,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00391">Server::GetUs <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00415">Server::QuitUser()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00474">Server::QuitUser()</a>. </td> </tr> </table> <a name="a17" doxytag="message.h::TidyBan"></a><p> @@ -735,7 +735,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00415">Server::QuitU </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:58 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 8a9eb8d8e..493a31b49 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -53,7 +53,7 @@ 00046 00047 00048 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:13 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:54 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index fa9e1fad1..80bf7906f 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:58 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 35bab1de2..48b1ce27a 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -155,818 +155,889 @@ 00148 <span class="keywordtype">char</span> a[MAXBUF],b[MAXBUF]; 00149 strlcpy(a,s1.c_str(),MAXBUF); 00150 strlcpy(b,s2.c_str(),MAXBUF); -00151 <span class="keywordflow">return</span> (strcasecmp(a,b) == 0); -00152 } -00153 -00154 }; +00151 strlower(a); +00152 strlower(b); +00153 <span class="keywordflow">return</span> (strcasecmp(a,b) == 0); +00154 } 00155 -<a name="l00156"></a><a class="code" href="structInAddr__HashComp.html">00156</a> <span class="keyword">struct </span><a class="code" href="structInAddr__HashComp.html">InAddr_HashComp</a> -00157 { -00158 -<a name="l00159"></a><a class="code" href="structInAddr__HashComp.html#a0">00159</a> <span class="keywordtype">bool</span> <a class="code" href="structInAddr__HashComp.html#a0">operator()</a>(<span class="keyword">const</span> in_addr &s1, <span class="keyword">const</span> in_addr &s2)<span class="keyword"> const</span> -00160 <span class="keyword"> </span>{ -00161 size_t q; -00162 size_t p; -00163 -00164 memcpy(&q,&s1,<span class="keyword">sizeof</span>(size_t)); -00165 memcpy(&p,&s2,<span class="keyword">sizeof</span>(size_t)); -00166 -00167 <span class="keywordflow">return</span> (q == p); -00168 } -00169 -00170 }; +00156 }; +00157 +<a name="l00158"></a><a class="code" href="structInAddr__HashComp.html">00158</a> <span class="keyword">struct </span><a class="code" href="structInAddr__HashComp.html">InAddr_HashComp</a> +00159 { +00160 +<a name="l00161"></a><a class="code" href="structInAddr__HashComp.html#a0">00161</a> <span class="keywordtype">bool</span> <a class="code" href="structInAddr__HashComp.html#a0">operator()</a>(<span class="keyword">const</span> in_addr &s1, <span class="keyword">const</span> in_addr &s2)<span class="keyword"> const</span> +00162 <span class="keyword"> </span>{ +00163 size_t q; +00164 size_t p; +00165 +00166 memcpy(&q,&s1,<span class="keyword">sizeof</span>(size_t)); +00167 memcpy(&p,&s2,<span class="keyword">sizeof</span>(size_t)); +00168 +00169 <span class="keywordflow">return</span> (q == p); +00170 } 00171 -00172 -<a name="l00173"></a><a class="code" href="modules_8cpp.html#a38">00173</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, userrec*, nspace::hash<string>, <a class="code" href="structStrHashComp.html">StrHashComp</a>> <a class="code" href="modules_8cpp.html#a38">user_hash</a>; -<a name="l00174"></a><a class="code" href="modules_8cpp.html#a39">00174</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, chanrec*, nspace::hash<string>, <a class="code" href="structStrHashComp.html">StrHashComp</a>> <a class="code" href="modules_8cpp.html#a39">chan_hash</a>; -<a name="l00175"></a><a class="code" href="modules_8cpp.html#a40">00175</a> <span class="keyword">typedef</span> nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, <a class="code" href="structInAddr__HashComp.html">InAddr_HashComp</a>> <a class="code" href="modules_8cpp.html#a40">address_cache</a>; -<a name="l00176"></a><a class="code" href="modules_8cpp.html#a41">00176</a> <span class="keyword">typedef</span> std::deque<command_t> <a class="code" href="modules_8cpp.html#a41">command_table</a>; -00177 -00178 -<a name="l00179"></a><a class="code" href="modules_8cpp.html#a42">00179</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a38">user_hash</a> <a class="code" href="modules_8cpp.html#a42">clientlist</a>; -<a name="l00180"></a><a class="code" href="modules_8cpp.html#a43">00180</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a39">chan_hash</a> <a class="code" href="modules_8cpp.html#a43">chanlist</a>; -<a name="l00181"></a><a class="code" href="modules_8cpp.html#a44">00181</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a38">user_hash</a> <a class="code" href="modules_8cpp.html#a44">whowas</a>; -<a name="l00182"></a><a class="code" href="modules_8cpp.html#a45">00182</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a41">command_table</a> <a class="code" href="modules_8cpp.html#a45">cmdlist</a>; -<a name="l00183"></a><a class="code" href="modules_8cpp.html#a46">00183</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a31">file_cache</a> <a class="code" href="modules_8cpp.html#a46">MOTD</a>; -<a name="l00184"></a><a class="code" href="modules_8cpp.html#a47">00184</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a31">file_cache</a> <a class="code" href="modules_8cpp.html#a47">RULES</a>; -<a name="l00185"></a><a class="code" href="modules_8cpp.html#a48">00185</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a40">address_cache</a> <a class="code" href="modules_8cpp.html#a48">IP</a>; -00186 -00187 -00188 <span class="comment">// class type for holding an extended mode character - internal to core</span> +00172 }; +00173 +00174 +<a name="l00175"></a><a class="code" href="modules_8cpp.html#a38">00175</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, userrec*, nspace::hash<string>, <a class="code" href="structStrHashComp.html">StrHashComp</a>> <a class="code" href="modules_8cpp.html#a38">user_hash</a>; +<a name="l00176"></a><a class="code" href="modules_8cpp.html#a39">00176</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, chanrec*, nspace::hash<string>, <a class="code" href="structStrHashComp.html">StrHashComp</a>> <a class="code" href="modules_8cpp.html#a39">chan_hash</a>; +<a name="l00177"></a><a class="code" href="modules_8cpp.html#a40">00177</a> <span class="keyword">typedef</span> nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, <a class="code" href="structInAddr__HashComp.html">InAddr_HashComp</a>> <a class="code" href="modules_8cpp.html#a40">address_cache</a>; +<a name="l00178"></a><a class="code" href="modules_8cpp.html#a41">00178</a> <span class="keyword">typedef</span> std::deque<command_t> <a class="code" href="modules_8cpp.html#a41">command_table</a>; +00179 +00180 +<a name="l00181"></a><a class="code" href="modules_8cpp.html#a42">00181</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a38">user_hash</a> <a class="code" href="modules_8cpp.html#a42">clientlist</a>; +<a name="l00182"></a><a class="code" href="modules_8cpp.html#a43">00182</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a39">chan_hash</a> <a class="code" href="modules_8cpp.html#a43">chanlist</a>; +<a name="l00183"></a><a class="code" href="modules_8cpp.html#a44">00183</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a38">user_hash</a> <a class="code" href="modules_8cpp.html#a44">whowas</a>; +<a name="l00184"></a><a class="code" href="modules_8cpp.html#a45">00184</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a41">command_table</a> <a class="code" href="modules_8cpp.html#a45">cmdlist</a>; +<a name="l00185"></a><a class="code" href="modules_8cpp.html#a46">00185</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a31">file_cache</a> <a class="code" href="modules_8cpp.html#a46">MOTD</a>; +<a name="l00186"></a><a class="code" href="modules_8cpp.html#a47">00186</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a31">file_cache</a> <a class="code" href="modules_8cpp.html#a47">RULES</a>; +<a name="l00187"></a><a class="code" href="modules_8cpp.html#a48">00187</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a40">address_cache</a> <a class="code" href="modules_8cpp.html#a48">IP</a>; +00188 00189 -<a name="l00190"></a><a class="code" href="classExtMode.html">00190</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> -00191 { -00192 <span class="keyword">public</span>: -<a name="l00193"></a><a class="code" href="classExtMode.html#o0">00193</a> <span class="keywordtype">char</span> <a class="code" href="classExtMode.html#o0">modechar</a>; -<a name="l00194"></a><a class="code" href="classExtMode.html#o1">00194</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#o1">type</a>; -<a name="l00195"></a><a class="code" href="classExtMode.html#o2">00195</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#o2">params_when_on</a>; -<a name="l00196"></a><a class="code" href="classExtMode.html#o3">00196</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#o3">params_when_off</a>; -<a name="l00197"></a><a class="code" href="classExtMode.html#o4">00197</a> <span class="keywordtype">bool</span> <a class="code" href="classExtMode.html#o4">needsoper</a>; -<a name="l00198"></a><a class="code" href="classExtMode.html#o5">00198</a> <span class="keywordtype">bool</span> <a class="code" href="channels_8cpp.html#a15">list</a>; -<a name="l00199"></a><a class="code" href="classExtMode.html#a0">00199</a> <a class="code" href="classExtMode.html#a0">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#o0">modechar</a>(mc), <a class="code" href="classExtMode.html#o1">type</a>(ty), <a class="code" href="classExtMode.html#o4">needsoper</a>(oper), <a class="code" href="classExtMode.html#o2">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#o3">params_when_off</a>(p_off) { }; -00200 }; -00201 -<a name="l00202"></a><a class="code" href="modules_8cpp.html#a49">00202</a> <span class="keyword">typedef</span> std::vector<ExtMode> <a class="code" href="modules_8cpp.html#a49">ExtModeList</a>; -<a name="l00203"></a><a class="code" href="modules_8cpp.html#a50">00203</a> <span class="keyword">typedef</span> ExtModeList::iterator <a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a>; -00204 -00205 -<a name="l00206"></a><a class="code" href="modules_8cpp.html#a51">00206</a> <a class="code" href="modules_8cpp.html#a49">ExtModeList</a> <a class="code" href="modules_8cpp.html#a51">EMode</a>; +00190 <span class="comment">// class type for holding an extended mode character - internal to core</span> +00191 +<a name="l00192"></a><a class="code" href="classExtMode.html">00192</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> +00193 { +00194 <span class="keyword">public</span>: +<a name="l00195"></a><a class="code" href="classExtMode.html#o0">00195</a> <span class="keywordtype">char</span> <a class="code" href="classExtMode.html#o0">modechar</a>; +<a name="l00196"></a><a class="code" href="classExtMode.html#o1">00196</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#o1">type</a>; +<a name="l00197"></a><a class="code" href="classExtMode.html#o2">00197</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#o2">params_when_on</a>; +<a name="l00198"></a><a class="code" href="classExtMode.html#o3">00198</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#o3">params_when_off</a>; +<a name="l00199"></a><a class="code" href="classExtMode.html#o4">00199</a> <span class="keywordtype">bool</span> <a class="code" href="classExtMode.html#o4">needsoper</a>; +<a name="l00200"></a><a class="code" href="classExtMode.html#o5">00200</a> <span class="keywordtype">bool</span> <a class="code" href="channels_8cpp.html#a15">list</a>; +<a name="l00201"></a><a class="code" href="classExtMode.html#a0">00201</a> <a class="code" href="classExtMode.html#a0">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#o0">modechar</a>(mc), <a class="code" href="classExtMode.html#o1">type</a>(ty), <a class="code" href="classExtMode.html#o4">needsoper</a>(oper), <a class="code" href="classExtMode.html#o2">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#o3">params_when_off</a>(p_off) { }; +00202 }; +00203 +<a name="l00204"></a><a class="code" href="modules_8cpp.html#a49">00204</a> <span class="keyword">typedef</span> std::vector<ExtMode> <a class="code" href="modules_8cpp.html#a49">ExtModeList</a>; +<a name="l00205"></a><a class="code" href="modules_8cpp.html#a50">00205</a> <span class="keyword">typedef</span> ExtModeList::iterator <a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a>; +00206 00207 -00208 <span class="comment">// returns true if an extended mode character is in use</span> -<a name="l00209"></a><a class="code" href="modules_8cpp.html#a52">00209</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a52">ModeDefined</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -00210 { -00211 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); -00212 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00213 { -00214 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00215 { -00216 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00217 } -00218 } -00219 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00220 } -00221 -<a name="l00222"></a><a class="code" href="modules_8cpp.html#a53">00222</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a53">ModeIsListMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -00223 { -00224 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); -00225 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00226 { -00227 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) -00228 { -00229 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00230 } -00231 } -00232 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00233 } -00234 -<a name="l00235"></a><a class="code" href="modules_8cpp.html#a54">00235</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a54">ModeDefinedOper</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -00236 { -00237 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); -00238 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00239 { -00240 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) -00241 { -00242 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00243 } -00244 } -00245 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00246 } -00247 -00248 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> -<a name="l00249"></a><a class="code" href="modules_8cpp.html#a55">00249</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a55">ModeDefinedOn</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -00250 { -00251 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00252 { -00253 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00254 { -00255 <span class="keywordflow">return</span> i->params_when_on; -00256 } -00257 } -00258 <span class="keywordflow">return</span> 0; -00259 } -00260 -00261 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> -<a name="l00262"></a><a class="code" href="modules_8cpp.html#a56">00262</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a56">ModeDefinedOff</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -00263 { -00264 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00265 { -00266 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00267 { -00268 <span class="keywordflow">return</span> i->params_when_off; -00269 } -00270 } -00271 <span class="keywordflow">return</span> 0; -00272 } -00273 -00274 <span class="comment">// returns true if an extended mode character is in use</span> -<a name="l00275"></a><a class="code" href="modules_8cpp.html#a57">00275</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a57">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) -00276 { -00277 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#a52">ModeDefined</a>(modechar,type)) { -00278 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00279 } -00280 <a class="code" href="modules_8cpp.html#a51">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); -00281 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00282 } -00283 -00284 <span class="comment">// turns a mode into a listmode</span> -<a name="l00285"></a><a class="code" href="modules_8cpp.html#a58">00285</a> <span class="keywordtype">void</span> <a class="code" href="modules_8cpp.html#a58">ModeMakeList</a>(<span class="keywordtype">char</span> modechar) -00286 { -00287 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00288 { -00289 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>)) -00290 { -00291 i->list = <span class="keyword">true</span>; -00292 <span class="keywordflow">return</span>; -00293 } -00294 } -00295 <span class="keywordflow">return</span>; -00296 } -00297 -00298 <span class="comment">// version is a simple class for holding a modules version number</span> +<a name="l00208"></a><a class="code" href="modules_8cpp.html#a51">00208</a> <a class="code" href="modules_8cpp.html#a49">ExtModeList</a> <a class="code" href="modules_8cpp.html#a51">EMode</a>; +00209 +00210 <span class="comment">// returns true if an extended mode character is in use</span> +<a name="l00211"></a><a class="code" href="modules_8cpp.html#a52">00211</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a52">ModeDefined</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +00212 { +00213 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); +00214 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00215 { +00216 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00217 { +00218 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00219 } +00220 } +00221 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00222 } +00223 +<a name="l00224"></a><a class="code" href="modules_8cpp.html#a53">00224</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a53">ModeIsListMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +00225 { +00226 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); +00227 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00228 { +00229 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) +00230 { +00231 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00232 } +00233 } +00234 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00235 } +00236 +<a name="l00237"></a><a class="code" href="modules_8cpp.html#a54">00237</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a54">ModeDefinedOper</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +00238 { +00239 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); +00240 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00241 { +00242 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) +00243 { +00244 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00245 } +00246 } +00247 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00248 } +00249 +00250 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> +<a name="l00251"></a><a class="code" href="modules_8cpp.html#a55">00251</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a55">ModeDefinedOn</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +00252 { +00253 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00254 { +00255 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00256 { +00257 <span class="keywordflow">return</span> i->params_when_on; +00258 } +00259 } +00260 <span class="keywordflow">return</span> 0; +00261 } +00262 +00263 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> +<a name="l00264"></a><a class="code" href="modules_8cpp.html#a56">00264</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a56">ModeDefinedOff</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +00265 { +00266 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00267 { +00268 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00269 { +00270 <span class="keywordflow">return</span> i->params_when_off; +00271 } +00272 } +00273 <span class="keywordflow">return</span> 0; +00274 } +00275 +00276 <span class="comment">// returns true if an extended mode character is in use</span> +<a name="l00277"></a><a class="code" href="modules_8cpp.html#a57">00277</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a57">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) +00278 { +00279 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#a52">ModeDefined</a>(modechar,type)) { +00280 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00281 } +00282 <a class="code" href="modules_8cpp.html#a51">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); +00283 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00284 } +00285 +00286 <span class="comment">// turns a mode into a listmode</span> +<a name="l00287"></a><a class="code" href="modules_8cpp.html#a58">00287</a> <span class="keywordtype">void</span> <a class="code" href="modules_8cpp.html#a58">ModeMakeList</a>(<span class="keywordtype">char</span> modechar) +00288 { +00289 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00290 { +00291 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>)) +00292 { +00293 i->list = <span class="keyword">true</span>; +00294 <span class="keywordflow">return</span>; +00295 } +00296 } +00297 <span class="keywordflow">return</span>; +00298 } 00299 -<a name="l00300"></a><a class="code" href="classVersion.html#a0">00300</a> <a class="code" href="classVersion.html#a0">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) { }; +00300 <span class="comment">// version is a simple class for holding a modules version number</span> 00301 -00302 <span class="comment">// admin is a simple class for holding a server's administrative info</span> +<a name="l00302"></a><a class="code" href="classVersion.html#a0">00302</a> <a class="code" href="classVersion.html#a0">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) { }; 00303 -<a name="l00304"></a><a class="code" href="classAdmin.html#a0">00304</a> <a class="code" href="classAdmin.html#a0">Admin::Admin</a>(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; +00304 <span class="comment">// admin is a simple class for holding a server's administrative info</span> 00305 -<a name="l00306"></a><a class="code" href="classModule.html#a0">00306</a> <a class="code" href="classModule.html#a0">Module::Module</a>() { } -<a name="l00307"></a><a class="code" href="classModule.html#a1">00307</a> <a class="code" href="classModule.html#a1">Module::~Module</a>() { } -<a name="l00308"></a><a class="code" href="classModule.html#a3">00308</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a3">Module::OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } -<a name="l00309"></a><a class="code" href="classModule.html#a4">00309</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a4">Module::OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } -<a name="l00310"></a><a class="code" href="classModule.html#a5">00310</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a5">Module::OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } -<a name="l00311"></a><a class="code" href="classModule.html#a6">00311</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a6">Module::OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } -<a name="l00312"></a><a class="code" href="classModule.html#a7">00312</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a7">Module::OnPacketTransmit</a>(std::string &data, std::string serv) { } -<a name="l00313"></a><a class="code" href="classModule.html#a8">00313</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a8">Module::OnPacketReceive</a>(std::string &data, std::string serv) { } -<a name="l00314"></a><a class="code" href="classModule.html#a9">00314</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a9">Module::OnRehash</a>() { } -<a name="l00315"></a><a class="code" href="classModule.html#a10">00315</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a10">Module::OnServerRaw</a>(std::string &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user) { } -<a name="l00316"></a><a class="code" href="classModule.html#a12">00316</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a12">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="l00317"></a><a class="code" href="classModule.html#a11">00317</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a11">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, string_list &params) { <span class="keywordflow">return</span> <span class="keyword">false</span>; } -<a name="l00318"></a><a class="code" href="classModule.html#a2">00318</a> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#a2">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#a21">VF_VENDOR</a>); } -<a name="l00319"></a><a class="code" href="classModule.html#a15">00319</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a15">Module::OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; -<a name="l00320"></a><a class="code" href="classModule.html#a16">00320</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a16">Module::OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; -<a name="l00321"></a><a class="code" href="classModule.html#a17">00321</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a17">Module::OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest) { }; -<a name="l00322"></a><a class="code" href="classModule.html#a18">00322</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a18">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="l00323"></a><a class="code" href="classModule.html#a19">00323</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a19">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, std::string &text) { <span class="keywordflow">return</span> 0; }; -<a name="l00324"></a><a class="code" href="classModule.html#a20">00324</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a20">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, std::string &text) { <span class="keywordflow">return</span> 0; }; -<a name="l00325"></a><a class="code" href="classModule.html#a21">00325</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a21">Module::OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newnick) { <span class="keywordflow">return</span> 0; }; -<a name="l00326"></a><a class="code" href="classModule.html#a22">00326</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a22">Module::OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string oldnick) { }; -<a name="l00327"></a><a class="code" href="classModule.html#a23">00327</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a23">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#a8">ACR_DEFAULT</a>; }; -<a name="l00328"></a><a class="code" href="classModule.html#a24">00328</a> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a24">Module::OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } -<a name="l00329"></a><a class="code" href="classModule.html#a25">00329</a> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a25">Module::OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } -<a name="l00330"></a><a class="code" href="classModule.html#a26">00330</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a26">Module::On005Numeric</a>(std::string &output) { }; -<a name="l00331"></a><a class="code" href="classModule.html#a27">00331</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a27">Module::OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, std::string reason) { <span class="keywordflow">return</span> 0; }; -<a name="l00332"></a><a class="code" href="classModule.html#a28">00332</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a28">Module::OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,std::string name) { }; -<a name="l00333"></a><a class="code" href="classModule.html#a29">00333</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a29">Module::OnBackgroundTimer</a>(time_t curtime) { }; -<a name="l00334"></a><a class="code" href="classModule.html#a30">00334</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a30">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="l00335"></a><a class="code" href="classModule.html#a31">00335</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a31">Module::OnPreCommand</a>(std::string 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="l00336"></a><a class="code" href="classModule.html#a32">00336</a> <span class="keywordtype">bool</span> <a class="code" href="classModule.html#a32">Module::OnCheckReady</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; -<a name="l00337"></a><a class="code" href="classModule.html#a33">00337</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a33">Module::OnUserRegister</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; -<a name="l00338"></a><a class="code" href="classModule.html#a13">00338</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a13">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, std::string reason) { <span class="keywordflow">return</span> 0; }; -<a name="l00339"></a><a class="code" href="classModule.html#a14">00339</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a14">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, std::string reason) { }; -<a name="l00340"></a><a class="code" href="classModule.html#a34">00340</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a34">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, std::string param, <span class="keywordtype">bool</span> adding, <span class="keywordtype">int</span> pcnt) { <span class="keywordflow">return</span> 0; }; -<a name="l00341"></a><a class="code" href="classModule.html#a35">00341</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a35">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="l00342"></a><a class="code" href="classModule.html#a36">00342</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a36">Module::OnCheckKey</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, std::string keygiven) { <span class="keywordflow">return</span> 0; }; -<a name="l00343"></a><a class="code" href="classModule.html#a37">00343</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a37">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="l00344"></a><a class="code" href="classModule.html#a38">00344</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a38">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="l00345"></a><a class="code" href="classModule.html#a39">00345</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a39">Module::OnStats</a>(<span class="keywordtype">char</span> symbol) { }; -<a name="l00346"></a><a class="code" href="classModule.html#a40">00346</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a40">Module::OnChangeLocalUserHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newhost) { <span class="keywordflow">return</span> 0; }; -<a name="l00347"></a><a class="code" href="classModule.html#a41">00347</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a41">Module::OnChangeLocalUserGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newhost) { <span class="keywordflow">return</span> 0; }; -<a name="l00348"></a><a class="code" href="classModule.html#a42">00348</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a42">Module::OnLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, std::string topic) { <span class="keywordflow">return</span> 0; }; -<a name="l00349"></a><a class="code" href="classModule.html#a43">00349</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a43">Module::OnMeshToken</a>(<span class="keywordtype">char</span> token,string_list params,<a class="code" href="classserverrec.html">serverrec</a>* source,<a class="code" href="classserverrec.html">serverrec</a>* reply, std::string tcp_host,std::string ipaddr,<span class="keywordtype">int</span> port) { <span class="keywordflow">return</span> 0; }; -00350 -00351 <span class="comment">// server is a wrapper class that provides methods to all of the C-style</span> -00352 <span class="comment">// exports in the core</span> -00353 <span class="comment">//</span> +<a name="l00306"></a><a class="code" href="classAdmin.html#a0">00306</a> <a class="code" href="classAdmin.html#a0">Admin::Admin</a>(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; +00307 +<a name="l00308"></a><a class="code" href="classRequest.html#a0">00308</a> <a class="code" href="classRequest.html#a0">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) { }; +00309 +<a name="l00310"></a><a class="code" href="classRequest.html#a1">00310</a> <span class="keywordtype">char</span>* <a class="code" href="classRequest.html#a1">Request::GetData</a>() +00311 { +00312 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#p0">data</a>; +00313 } +00314 +<a name="l00315"></a><a class="code" href="classRequest.html#a2">00315</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classRequest.html#a2">Request::GetSource</a>() +00316 { +00317 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#p1">source</a>; +00318 } +00319 +<a name="l00320"></a><a class="code" href="classRequest.html#a3">00320</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classRequest.html#a3">Request::GetDest</a>() +00321 { +00322 <span class="keywordflow">return</span> this-><a class="code" href="classRequest.html#p2">dest</a>; +00323 } +00324 +<a name="l00325"></a><a class="code" href="classRequest.html#a4">00325</a> <span class="keywordtype">char</span>* <a class="code" href="classRequest.html#a4">Request::Send</a>() +00326 { +00327 <span class="keywordflow">if</span> (this-><a class="code" href="classRequest.html#p2">dest</a>) +00328 { +00329 <span class="keywordflow">return</span> <a class="code" href="classRequest.html#p2">dest</a>-><a class="code" href="classModule.html#a46">OnRequest</a>(<span class="keyword">this</span>); +00330 } +00331 <span class="keywordflow">else</span> +00332 { +00333 <span class="keywordflow">return</span> NULL; +00334 } +00335 } +00336 +<a name="l00337"></a><a class="code" href="classEvent.html#a0">00337</a> <a class="code" href="classEvent.html#a0">Event::Event</a>(<span class="keywordtype">char</span>* anydata, <a class="code" href="classModule.html">Module</a>* src, std::string eventid) : data(anydata), source(src), id(eventid) { }; +00338 +<a name="l00339"></a><a class="code" href="classEvent.html#a1">00339</a> <span class="keywordtype">char</span>* <a class="code" href="classEvent.html#a1">Event::GetData</a>() +00340 { +00341 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#p0">data</a>; +00342 } +00343 +<a name="l00344"></a><a class="code" href="classEvent.html#a2">00344</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classEvent.html#a2">Event::GetSource</a>() +00345 { +00346 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#p1">source</a>; +00347 } +00348 +<a name="l00349"></a><a class="code" href="classEvent.html#a4">00349</a> <span class="keywordtype">char</span>* <a class="code" href="classEvent.html#a4">Event::Send</a>() +00350 { +00351 <a class="code" href="modules_8h.html#a24">FOREACH_MOD</a> OnEvent(<span class="keyword">this</span>); +00352 <span class="keywordflow">return</span> NULL; +00353 } 00354 -<a name="l00355"></a><a class="code" href="classServer.html#a0">00355</a> <a class="code" href="classServer.html#a0">Server::Server</a>() +<a name="l00355"></a><a class="code" href="classEvent.html#a3">00355</a> std::string <a class="code" href="classEvent.html#a3">Event::GetEventID</a>() 00356 { -00357 } -00358 -<a name="l00359"></a><a class="code" href="classServer.html#a1">00359</a> <a class="code" href="classServer.html#a1">Server::~Server</a>() -00360 { -00361 } -00362 -<a name="l00363"></a><a class="code" href="classServer.html#a2">00363</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">Server::SendOpers</a>(std::string s) -00364 { -00365 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); -00366 } -00367 -<a name="l00368"></a><a class="code" href="classServer.html#a30">00368</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a30">Server::MatchText</a>(std::string sliteral, std::string spattern) -00369 { -00370 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; -00371 strlcpy(literal,sliteral.c_str(),MAXBUF); -00372 strlcpy(pattern,spattern.c_str(),MAXBUF); -00373 <span class="keywordflow">return</span> match(literal,pattern); -00374 } -00375 -<a name="l00376"></a><a class="code" href="classServer.html#a25">00376</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a25">Server::SendToModeMask</a>(std::string modes, <span class="keywordtype">int</span> flags, std::string text) -00377 { -00378 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); -00379 } -00380 -<a name="l00381"></a><a class="code" href="classServer.html#a26">00381</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a26">Server::JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string key) -00382 { -00383 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">true</span>); -00384 } -00385 -<a name="l00386"></a><a class="code" href="classServer.html#a27">00386</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a27">Server::PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string reason) -00387 { -00388 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); -00389 } -00390 -<a name="l00391"></a><a class="code" href="classServer.html#a35">00391</a> <a class="code" href="modules_8h.html#a33">chanuserlist</a> <a class="code" href="classServer.html#a35">Server::GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) -00392 { -00393 <a class="code" href="modules_8h.html#a33">chanuserlist</a> userl; -00394 userl.clear(); -00395 <span class="keywordflow">for</span> (user_hash::const_iterator i = <a class="code" href="modules_8cpp.html#a42">clientlist</a>.begin(); i != <a class="code" href="modules_8cpp.html#a42">clientlist</a>.end(); i++) -00396 { -00397 <span class="keywordflow">if</span> (i->second) -00398 { -00399 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a16">has_channel</a>(i->second,chan)) -00400 { -00401 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a13">isnick</a>(i->second->nick)) -00402 { -00403 userl.push_back(i->second); -00404 } -00405 } -00406 } -00407 } -00408 <span class="keywordflow">return</span> userl; -00409 } -<a name="l00410"></a><a class="code" href="classServer.html#a28">00410</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a28">Server::ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string nickname) -00411 { -00412 force_nickchange(user,nickname.c_str()); -00413 } -00414 -<a name="l00415"></a><a class="code" href="classServer.html#a29">00415</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a29">Server::QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string reason) -00416 { -00417 <a class="code" href="message_8h.html#a19">send_network_quit</a>(user-><a class="code" href="classuserrec.html#o0">nick</a>,reason.c_str()); -00418 kill_link(user,reason.c_str()); -00419 } -00420 -<a name="l00421"></a><a class="code" href="classServer.html#a34">00421</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a34">Server::IsUlined</a>(std::string server) -00422 { -00423 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a74">is_uline</a>(server.c_str()); -00424 } -00425 -<a name="l00426"></a><a class="code" href="classServer.html#a31">00426</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a31">Server::CallCommandHandler</a>(std::string commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user) -00427 { -00428 call_handler(commandname.c_str(),parameters,pcnt,user); -00429 } -00430 -<a name="l00431"></a><a class="code" href="classServer.html#a3">00431</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Server::Log</a>(<span class="keywordtype">int</span> level, std::string s) -00432 { -00433 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); -00434 } -00435 -<a name="l00436"></a><a class="code" href="classServer.html#a23">00436</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">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) -00437 { -00438 <a class="code" href="modules_8h.html#a35">createcommand</a>(cmd,f,flags,minparams,source); -00439 } -00440 -<a name="l00441"></a><a class="code" href="classServer.html#a24">00441</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">Server::SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user) -00442 { -00443 <a class="code" href="modules_8h.html#a36">server_mode</a>(parameters,pcnt,user); -00444 } -00445 -<a name="l00446"></a><a class="code" href="classServer.html#a4">00446</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Server::Send</a>(<span class="keywordtype">int</span> Socket, std::string s) -00447 { -00448 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); -00449 } -00450 -<a name="l00451"></a><a class="code" href="classServer.html#a5">00451</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">Server::SendServ</a>(<span class="keywordtype">int</span> Socket, std::string s) -00452 { -00453 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); -00454 } -00455 -<a name="l00456"></a><a class="code" href="classServer.html#a6">00456</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">Server::SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, std::string s) -00457 { -00458 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00459 } -00460 -<a name="l00461"></a><a class="code" href="classServer.html#a7">00461</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">Server::SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, std::string s) -00462 { -00463 <span class="keywordflow">if</span> (!Source) -00464 { -00465 <span class="comment">// if source is NULL, then the message originates from the local server</span> -00466 Write(Dest-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); -00467 } -00468 <span class="keywordflow">else</span> -00469 { -00470 <span class="comment">// otherwise it comes from the user specified</span> -00471 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); -00472 } -00473 } -00474 -<a name="l00475"></a><a class="code" href="classServer.html#a8">00475</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">Server::SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, std::string s,<span class="keywordtype">bool</span> IncludeSender) -00476 { -00477 <span class="keywordflow">if</span> (IncludeSender) -00478 { -00479 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00480 } -00481 <span class="keywordflow">else</span> -00482 { -00483 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00484 } -00485 } -00486 -<a name="l00487"></a><a class="code" href="classServer.html#a9">00487</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">Server::CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2) -00488 { -00489 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a0">common_channels</a>(u1,u2) != 0); -00490 } -00491 -<a name="l00492"></a><a class="code" href="classServer.html#a10">00492</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">Server::SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text,<span class="keywordtype">bool</span> IncludeSender) -00493 { -00494 <span class="keywordflow">if</span> (IncludeSender) -00495 { -00496 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00497 } -00498 <span class="keywordflow">else</span> -00499 { -00500 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00501 } -00502 } -00503 -<a name="l00504"></a><a class="code" href="classServer.html#a11">00504</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">Server::SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text) -00505 { -00506 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); -00507 } -00508 -<a name="l00509"></a><a class="code" href="classServer.html#a32">00509</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a32">Server::ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string host) -00510 { -00511 <a class="code" href="message_8h.html#a11">ChangeDisplayedHost</a>(user,host.c_str()); -00512 } -00513 -<a name="l00514"></a><a class="code" href="classServer.html#a33">00514</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a33">Server::ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string gecos) -00515 { -00516 <a class="code" href="message_8h.html#a10">ChangeName</a>(user,gecos.c_str()); -00517 } -00518 -<a name="l00519"></a><a class="code" href="classServer.html#a12">00519</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">Server::IsNick</a>(std::string nick) -00520 { -00521 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a13">isnick</a>(nick.c_str()) != 0); -00522 } -00523 -<a name="l00524"></a><a class="code" href="classServer.html#a14">00524</a> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a14">Server::FindNick</a>(std::string nick) -00525 { -00526 <span class="keywordflow">return</span> Find(nick); -00527 } -00528 -<a name="l00529"></a><a class="code" href="classServer.html#a15">00529</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a15">Server::FindChannel</a>(std::string channel) -00530 { -00531 <span class="keywordflow">return</span> FindChan(channel.c_str()); +00357 <span class="keywordflow">return</span> this-><a class="code" href="classEvent.html#p2">id</a>; +00358 } +00359 +00360 +<a name="l00361"></a><a class="code" href="classModule.html#a0">00361</a> <a class="code" href="classModule.html#a0">Module::Module</a>() { } +<a name="l00362"></a><a class="code" href="classModule.html#a1">00362</a> <a class="code" href="classModule.html#a1">Module::~Module</a>() { } +<a name="l00363"></a><a class="code" href="classModule.html#a3">00363</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a3">Module::OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } +<a name="l00364"></a><a class="code" href="classModule.html#a4">00364</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a4">Module::OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } +<a name="l00365"></a><a class="code" href="classModule.html#a5">00365</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a5">Module::OnUserDisconnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } +<a name="l00366"></a><a class="code" href="classModule.html#a6">00366</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a6">Module::OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } +<a name="l00367"></a><a class="code" href="classModule.html#a7">00367</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a7">Module::OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } +<a name="l00368"></a><a class="code" href="classModule.html#a8">00368</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a8">Module::OnPacketTransmit</a>(std::string &data, std::string serv) { } +<a name="l00369"></a><a class="code" href="classModule.html#a9">00369</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a9">Module::OnPacketReceive</a>(std::string &data, std::string serv) { } +<a name="l00370"></a><a class="code" href="classModule.html#a10">00370</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a10">Module::OnRehash</a>() { } +<a name="l00371"></a><a class="code" href="classModule.html#a11">00371</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a11">Module::OnServerRaw</a>(std::string &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user) { } +<a name="l00372"></a><a class="code" href="classModule.html#a13">00372</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a13">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="l00373"></a><a class="code" href="classModule.html#a12">00373</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a12">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, string_list &params) { <span class="keywordflow">return</span> <span class="keyword">false</span>; } +<a name="l00374"></a><a class="code" href="classModule.html#a2">00374</a> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#a2">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#a21">VF_VENDOR</a>); } +<a name="l00375"></a><a class="code" href="classModule.html#a16">00375</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a16">Module::OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; +<a name="l00376"></a><a class="code" href="classModule.html#a17">00376</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a17">Module::OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; +<a name="l00377"></a><a class="code" href="classModule.html#a18">00377</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a18">Module::OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest) { }; +<a name="l00378"></a><a class="code" href="classModule.html#a19">00378</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a19">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="l00379"></a><a class="code" href="classModule.html#a20">00379</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a20">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, std::string &text) { <span class="keywordflow">return</span> 0; }; +<a name="l00380"></a><a class="code" href="classModule.html#a21">00380</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a21">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, std::string &text) { <span class="keywordflow">return</span> 0; }; +<a name="l00381"></a><a class="code" href="classModule.html#a22">00381</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a22">Module::OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newnick) { <span class="keywordflow">return</span> 0; }; +<a name="l00382"></a><a class="code" href="classModule.html#a23">00382</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a23">Module::OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string oldnick) { }; +<a name="l00383"></a><a class="code" href="classModule.html#a24">00383</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a24">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#a8">ACR_DEFAULT</a>; }; +<a name="l00384"></a><a class="code" href="classModule.html#a25">00384</a> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a25">Module::OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<a name="l00385"></a><a class="code" href="classModule.html#a26">00385</a> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a26">Module::OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<a name="l00386"></a><a class="code" href="classModule.html#a27">00386</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a27">Module::On005Numeric</a>(std::string &output) { }; +<a name="l00387"></a><a class="code" href="classModule.html#a28">00387</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a28">Module::OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, std::string reason) { <span class="keywordflow">return</span> 0; }; +<a name="l00388"></a><a class="code" href="classModule.html#a29">00388</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a29">Module::OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,std::string name) { }; +<a name="l00389"></a><a class="code" href="classModule.html#a30">00389</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a30">Module::OnBackgroundTimer</a>(time_t curtime) { }; +<a name="l00390"></a><a class="code" href="classModule.html#a31">00390</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a31">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="l00391"></a><a class="code" href="classModule.html#a32">00391</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a32">Module::OnPreCommand</a>(std::string 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="l00392"></a><a class="code" href="classModule.html#a33">00392</a> <span class="keywordtype">bool</span> <a class="code" href="classModule.html#a33">Module::OnCheckReady</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }; +<a name="l00393"></a><a class="code" href="classModule.html#a34">00393</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a34">Module::OnUserRegister</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; +<a name="l00394"></a><a class="code" href="classModule.html#a14">00394</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a14">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, std::string reason) { <span class="keywordflow">return</span> 0; }; +<a name="l00395"></a><a class="code" href="classModule.html#a15">00395</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a15">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, std::string reason) { }; +<a name="l00396"></a><a class="code" href="classModule.html#a35">00396</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a35">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, std::string param, <span class="keywordtype">bool</span> adding, <span class="keywordtype">int</span> pcnt) { <span class="keywordflow">return</span> 0; }; +<a name="l00397"></a><a class="code" href="classModule.html#a36">00397</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a36">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="l00398"></a><a class="code" href="classModule.html#a37">00398</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a37">Module::OnCheckKey</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, std::string keygiven) { <span class="keywordflow">return</span> 0; }; +<a name="l00399"></a><a class="code" href="classModule.html#a38">00399</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a38">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="l00400"></a><a class="code" href="classModule.html#a39">00400</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a39">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="l00401"></a><a class="code" href="classModule.html#a40">00401</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a40">Module::OnStats</a>(<span class="keywordtype">char</span> symbol) { }; +<a name="l00402"></a><a class="code" href="classModule.html#a41">00402</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a41">Module::OnChangeLocalUserHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newhost) { <span class="keywordflow">return</span> 0; }; +<a name="l00403"></a><a class="code" href="classModule.html#a42">00403</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a42">Module::OnChangeLocalUserGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newhost) { <span class="keywordflow">return</span> 0; }; +<a name="l00404"></a><a class="code" href="classModule.html#a43">00404</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a43">Module::OnLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, std::string topic) { <span class="keywordflow">return</span> 0; }; +<a name="l00405"></a><a class="code" href="classModule.html#a44">00405</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a44">Module::OnMeshToken</a>(<span class="keywordtype">char</span> token,string_list params,<a class="code" href="classserverrec.html">serverrec</a>* source,<a class="code" href="classserverrec.html">serverrec</a>* reply, std::string tcp_host,std::string ipaddr,<span class="keywordtype">int</span> port) { <span class="keywordflow">return</span> 0; }; +<a name="l00406"></a><a class="code" href="classModule.html#a45">00406</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a45">Module::OnEvent</a>(<a class="code" href="classEvent.html">Event</a>* event) { <span class="keywordflow">return</span>; }; +<a name="l00407"></a><a class="code" href="classModule.html#a46">00407</a> <span class="keywordtype">char</span>* <a class="code" href="classModule.html#a46">Module::OnRequest</a>(<a class="code" href="classRequest.html">Request</a>* request) { <span class="keywordflow">return</span> NULL; }; +00408 +00409 +00410 <span class="comment">// server is a wrapper class that provides methods to all of the C-style</span> +00411 <span class="comment">// exports in the core</span> +00412 <span class="comment">//</span> +00413 +<a name="l00414"></a><a class="code" href="classServer.html#a0">00414</a> <a class="code" href="classServer.html#a0">Server::Server</a>() +00415 { +00416 } +00417 +<a name="l00418"></a><a class="code" href="classServer.html#a1">00418</a> <a class="code" href="classServer.html#a1">Server::~Server</a>() +00419 { +00420 } +00421 +<a name="l00422"></a><a class="code" href="classServer.html#a2">00422</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">Server::SendOpers</a>(std::string s) +00423 { +00424 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); +00425 } +00426 +<a name="l00427"></a><a class="code" href="classServer.html#a30">00427</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a30">Server::MatchText</a>(std::string sliteral, std::string spattern) +00428 { +00429 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; +00430 strlcpy(literal,sliteral.c_str(),MAXBUF); +00431 strlcpy(pattern,spattern.c_str(),MAXBUF); +00432 <span class="keywordflow">return</span> match(literal,pattern); +00433 } +00434 +<a name="l00435"></a><a class="code" href="classServer.html#a25">00435</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a25">Server::SendToModeMask</a>(std::string modes, <span class="keywordtype">int</span> flags, std::string text) +00436 { +00437 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); +00438 } +00439 +<a name="l00440"></a><a class="code" href="classServer.html#a26">00440</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a26">Server::JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string key) +00441 { +00442 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">true</span>); +00443 } +00444 +<a name="l00445"></a><a class="code" href="classServer.html#a27">00445</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a27">Server::PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string reason) +00446 { +00447 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); +00448 } +00449 +<a name="l00450"></a><a class="code" href="classServer.html#a35">00450</a> <a class="code" href="modules_8h.html#a33">chanuserlist</a> <a class="code" href="classServer.html#a35">Server::GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) +00451 { +00452 <a class="code" href="modules_8h.html#a33">chanuserlist</a> userl; +00453 userl.clear(); +00454 <span class="keywordflow">for</span> (user_hash::const_iterator i = <a class="code" href="modules_8cpp.html#a42">clientlist</a>.begin(); i != <a class="code" href="modules_8cpp.html#a42">clientlist</a>.end(); i++) +00455 { +00456 <span class="keywordflow">if</span> (i->second) +00457 { +00458 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a16">has_channel</a>(i->second,chan)) +00459 { +00460 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a13">isnick</a>(i->second->nick)) +00461 { +00462 userl.push_back(i->second); +00463 } +00464 } +00465 } +00466 } +00467 <span class="keywordflow">return</span> userl; +00468 } +<a name="l00469"></a><a class="code" href="classServer.html#a28">00469</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a28">Server::ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string nickname) +00470 { +00471 force_nickchange(user,nickname.c_str()); +00472 } +00473 +<a name="l00474"></a><a class="code" href="classServer.html#a29">00474</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a29">Server::QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string reason) +00475 { +00476 <a class="code" href="message_8h.html#a19">send_network_quit</a>(user-><a class="code" href="classuserrec.html#o0">nick</a>,reason.c_str()); +00477 kill_link(user,reason.c_str()); +00478 } +00479 +<a name="l00480"></a><a class="code" href="classServer.html#a34">00480</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a34">Server::IsUlined</a>(std::string server) +00481 { +00482 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a74">is_uline</a>(server.c_str()); +00483 } +00484 +<a name="l00485"></a><a class="code" href="classServer.html#a31">00485</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a31">Server::CallCommandHandler</a>(std::string commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user) +00486 { +00487 call_handler(commandname.c_str(),parameters,pcnt,user); +00488 } +00489 +<a name="l00490"></a><a class="code" href="classServer.html#a3">00490</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Server::Log</a>(<span class="keywordtype">int</span> level, std::string s) +00491 { +00492 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); +00493 } +00494 +<a name="l00495"></a><a class="code" href="classServer.html#a23">00495</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">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) +00496 { +00497 <a class="code" href="modules_8h.html#a35">createcommand</a>(cmd,f,flags,minparams,source); +00498 } +00499 +<a name="l00500"></a><a class="code" href="classServer.html#a24">00500</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">Server::SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user) +00501 { +00502 <a class="code" href="modules_8h.html#a36">server_mode</a>(parameters,pcnt,user); +00503 } +00504 +<a name="l00505"></a><a class="code" href="classServer.html#a4">00505</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Server::Send</a>(<span class="keywordtype">int</span> Socket, std::string s) +00506 { +00507 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00508 } +00509 +<a name="l00510"></a><a class="code" href="classServer.html#a5">00510</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">Server::SendServ</a>(<span class="keywordtype">int</span> Socket, std::string s) +00511 { +00512 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00513 } +00514 +<a name="l00515"></a><a class="code" href="classServer.html#a6">00515</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">Server::SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, std::string s) +00516 { +00517 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00518 } +00519 +<a name="l00520"></a><a class="code" href="classServer.html#a7">00520</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">Server::SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, std::string s) +00521 { +00522 <span class="keywordflow">if</span> (!Source) +00523 { +00524 <span class="comment">// if source is NULL, then the message originates from the local server</span> +00525 Write(Dest-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); +00526 } +00527 <span class="keywordflow">else</span> +00528 { +00529 <span class="comment">// otherwise it comes from the user specified</span> +00530 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); +00531 } 00532 } 00533 -<a name="l00534"></a><a class="code" href="classServer.html#a16">00534</a> std::string <a class="code" href="classServer.html#a16">Server::ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) +<a name="l00534"></a><a class="code" href="classServer.html#a8">00534</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">Server::SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, std::string s,<span class="keywordtype">bool</span> IncludeSender) 00535 { -00536 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a14">cmode</a>(User,Chan); -00537 } -00538 -<a name="l00539"></a><a class="code" href="classServer.html#a17">00539</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a17">Server::IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) -00540 { -00541 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a16">has_channel</a>(User,Chan); -00542 } -00543 -<a name="l00544"></a><a class="code" href="classServer.html#a18">00544</a> std::string <a class="code" href="classServer.html#a18">Server::GetServerName</a>() -00545 { -00546 <span class="keywordflow">return</span> getservername(); -00547 } -00548 -<a name="l00549"></a><a class="code" href="classServer.html#a19">00549</a> std::string <a class="code" href="classServer.html#a19">Server::GetNetworkName</a>() -00550 { -00551 <span class="keywordflow">return</span> getnetworkname(); -00552 } -00553 -<a name="l00554"></a><a class="code" href="classServer.html#a20">00554</a> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a20">Server::GetAdmin</a>() -00555 { -00556 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); -00557 } -00558 -00559 -00560 -<a name="l00561"></a><a class="code" href="classServer.html#a21">00561</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a21">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) -00562 { -00563 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#a7">MT_SERVER</a>) -00564 { -00565 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); -00566 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00567 } -00568 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#a6">MT_CLIENT</a>)) -00569 { -00570 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); -00571 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00572 } -00573 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) -00574 { -00575 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); -00576 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00577 } -00578 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#a57">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); -00579 } -00580 -<a name="l00581"></a><a class="code" href="classServer.html#a22">00581</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a22">Server::AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar) -00582 { -00583 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#a57">DoAddExtendedMode</a>(modechar,<a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>,<span class="keyword">false</span>,1,1); -00584 <span class="keywordflow">if</span> (res) -00585 <a class="code" href="modules_8cpp.html#a58">ModeMakeList</a>(modechar); -00586 <span class="keywordflow">return</span> res; -00587 } -00588 -<a name="l00589"></a><a class="code" href="classServer.html#a13">00589</a> <span class="keywordtype">int</span> <a class="code" href="classServer.html#a13">Server::CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c) -00590 { -00591 <span class="keywordflow">return</span> usercount(c); -00592 } -00593 -00594 -<a name="l00595"></a><a class="code" href="classServer.html#a36">00595</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a36">Server::UserToPseudo</a>(<a class="code" href="classuserrec.html">userrec</a>* user,std::string message) -00596 { -00597 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> old_fd = user-><a class="code" href="classconnection.html#o0">fd</a>; -00598 user-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; -00599 Write(old_fd,<span class="stringliteral">"ERROR :Closing link (%s@%s) [%s]"</span>,user-><a class="code" href="classuserrec.html#o1">ident</a>,user-><a class="code" href="classconnection.html#o1">host</a>,message.c_str()); -00600 close(old_fd); -00601 shutdown (old_fd,2); -00602 } -00603 -<a name="l00604"></a><a class="code" href="classServer.html#a37">00604</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a37">Server::PseudoToUser</a>(<a class="code" href="classuserrec.html">userrec</a>* alive,<a class="code" href="classuserrec.html">userrec</a>* zombie,std::string message) -00605 { -00606 zombie-><a class="code" href="classconnection.html#o0">fd</a> = alive-><a class="code" href="classconnection.html#o0">fd</a>; -00607 alive-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; -00608 Write(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s!%s@%s NICK %s"</span>,alive-><a class="code" href="classuserrec.html#o0">nick</a>,alive-><a class="code" href="classuserrec.html#o1">ident</a>,alive-><a class="code" href="classconnection.html#o1">host</a>,zombie-><a class="code" href="classuserrec.html#o0">nick</a>); -00609 kill_link(alive,message.c_str()); -00610 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i != MAXCHANS; i++) -00611 { -00612 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> != NULL) -00613 { -00614 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>-><a class="code" href="classchanrec.html#o0">name</a>) -00615 { -00616 <a class="code" href="classchanrec.html">chanrec</a>* Ptr = zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>; -00617 WriteFrom(zombie-><a class="code" href="classconnection.html#o0">fd</a>,zombie,<span class="stringliteral">"JOIN %s"</span>,Ptr-><a class="code" href="classchanrec.html#o0">name</a>); -00618 <span class="keywordflow">if</span> (Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>) -00619 { -00620 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"332 %s %s :%s"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o2">topic</a>); -00621 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"333 %s %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o5">setby</a>, Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>); -00622 } -00623 userlist(zombie,Ptr); -00624 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"366 %s %s :End of /NAMES list."</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>); -00625 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"324 %s %s +%s"</span>,zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>,chanmodes(Ptr)); -00626 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"329 %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o3">created</a>); -00627 -00628 } -00629 } -00630 } -00631 -00632 } -00633 -<a name="l00634"></a><a class="code" href="classServer.html#a38">00634</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a38">Server::AddGLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string hostmask) -00635 { -00636 <a class="code" href="xline_8h.html#a1">add_gline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); -00637 } -00638 -<a name="l00639"></a><a class="code" href="classServer.html#a39">00639</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a39">Server::AddQLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string nickname) -00640 { -00641 <a class="code" href="xline_8h.html#a2">add_qline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), nickname.c_str()); -00642 } -00643 -<a name="l00644"></a><a class="code" href="classServer.html#a40">00644</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a40">Server::AddZLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string ipaddr) -00645 { -00646 <a class="code" href="xline_8h.html#a3">add_zline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), ipaddr.c_str()); -00647 } -00648 -<a name="l00649"></a><a class="code" href="classServer.html#a41">00649</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a41">Server::AddKLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string hostmask) -00650 { -00651 <a class="code" href="xline_8h.html#a4">add_kline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); -00652 } +00536 <span class="keywordflow">if</span> (IncludeSender) +00537 { +00538 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00539 } +00540 <span class="keywordflow">else</span> +00541 { +00542 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00543 } +00544 } +00545 +<a name="l00546"></a><a class="code" href="classServer.html#a9">00546</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">Server::CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2) +00547 { +00548 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a0">common_channels</a>(u1,u2) != 0); +00549 } +00550 +<a name="l00551"></a><a class="code" href="classServer.html#a10">00551</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">Server::SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text,<span class="keywordtype">bool</span> IncludeSender) +00552 { +00553 <span class="keywordflow">if</span> (IncludeSender) +00554 { +00555 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00556 } +00557 <span class="keywordflow">else</span> +00558 { +00559 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00560 } +00561 } +00562 +<a name="l00563"></a><a class="code" href="classServer.html#a11">00563</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">Server::SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text) +00564 { +00565 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); +00566 } +00567 +<a name="l00568"></a><a class="code" href="classServer.html#a32">00568</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a32">Server::ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string host) +00569 { +00570 <a class="code" href="message_8h.html#a11">ChangeDisplayedHost</a>(user,host.c_str()); +00571 } +00572 +<a name="l00573"></a><a class="code" href="classServer.html#a33">00573</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a33">Server::ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string gecos) +00574 { +00575 <a class="code" href="message_8h.html#a10">ChangeName</a>(user,gecos.c_str()); +00576 } +00577 +<a name="l00578"></a><a class="code" href="classServer.html#a12">00578</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">Server::IsNick</a>(std::string nick) +00579 { +00580 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a13">isnick</a>(nick.c_str()) != 0); +00581 } +00582 +<a name="l00583"></a><a class="code" href="classServer.html#a14">00583</a> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a14">Server::FindNick</a>(std::string nick) +00584 { +00585 <span class="keywordflow">return</span> Find(nick); +00586 } +00587 +<a name="l00588"></a><a class="code" href="classServer.html#a15">00588</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a15">Server::FindChannel</a>(std::string channel) +00589 { +00590 <span class="keywordflow">return</span> FindChan(channel.c_str()); +00591 } +00592 +<a name="l00593"></a><a class="code" href="classServer.html#a16">00593</a> std::string <a class="code" href="classServer.html#a16">Server::ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) +00594 { +00595 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a14">cmode</a>(User,Chan); +00596 } +00597 +<a name="l00598"></a><a class="code" href="classServer.html#a17">00598</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a17">Server::IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) +00599 { +00600 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a16">has_channel</a>(User,Chan); +00601 } +00602 +<a name="l00603"></a><a class="code" href="classServer.html#a18">00603</a> std::string <a class="code" href="classServer.html#a18">Server::GetServerName</a>() +00604 { +00605 <span class="keywordflow">return</span> getservername(); +00606 } +00607 +<a name="l00608"></a><a class="code" href="classServer.html#a19">00608</a> std::string <a class="code" href="classServer.html#a19">Server::GetNetworkName</a>() +00609 { +00610 <span class="keywordflow">return</span> getnetworkname(); +00611 } +00612 +<a name="l00613"></a><a class="code" href="classServer.html#a20">00613</a> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a20">Server::GetAdmin</a>() +00614 { +00615 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); +00616 } +00617 +00618 +00619 +<a name="l00620"></a><a class="code" href="classServer.html#a21">00620</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a21">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) +00621 { +00622 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#a7">MT_SERVER</a>) +00623 { +00624 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); +00625 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00626 } +00627 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#a6">MT_CLIENT</a>)) +00628 { +00629 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); +00630 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00631 } +00632 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) +00633 { +00634 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); +00635 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00636 } +00637 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#a57">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); +00638 } +00639 +<a name="l00640"></a><a class="code" href="classServer.html#a22">00640</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a22">Server::AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar) +00641 { +00642 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#a57">DoAddExtendedMode</a>(modechar,<a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>,<span class="keyword">false</span>,1,1); +00643 <span class="keywordflow">if</span> (res) +00644 <a class="code" href="modules_8cpp.html#a58">ModeMakeList</a>(modechar); +00645 <span class="keywordflow">return</span> res; +00646 } +00647 +<a name="l00648"></a><a class="code" href="classServer.html#a13">00648</a> <span class="keywordtype">int</span> <a class="code" href="classServer.html#a13">Server::CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c) +00649 { +00650 <span class="keywordflow">return</span> usercount(c); +00651 } +00652 00653 -<a name="l00654"></a><a class="code" href="classServer.html#a42">00654</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a42">Server::AddELine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string hostmask) +<a name="l00654"></a><a class="code" href="classServer.html#a36">00654</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a36">Server::UserToPseudo</a>(<a class="code" href="classuserrec.html">userrec</a>* user,std::string message) 00655 { -00656 <a class="code" href="xline_8h.html#a5">add_eline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); -00657 } -00658 -<a name="l00659"></a><a class="code" href="classServer.html#a43">00659</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a43">Server::DelGLine</a>(std::string hostmask) -00660 { -00661 <a class="code" href="xline_8h.html#a6">del_gline</a>(hostmask.c_str()); -00662 } -00663 -<a name="l00664"></a><a class="code" href="classServer.html#a44">00664</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a44">Server::DelQLine</a>(std::string nickname) -00665 { -00666 <a class="code" href="xline_8h.html#a7">del_qline</a>(nickname.c_str()); -00667 } -00668 -<a name="l00669"></a><a class="code" href="classServer.html#a45">00669</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a45">Server::DelZLine</a>(std::string ipaddr) -00670 { -00671 <a class="code" href="xline_8h.html#a8">del_zline</a>(ipaddr.c_str()); -00672 } -00673 -<a name="l00674"></a><a class="code" href="classServer.html#a46">00674</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a46">Server::DelKLine</a>(std::string hostmask) -00675 { -00676 <a class="code" href="xline_8h.html#a9">del_kline</a>(hostmask.c_str()); -00677 } -00678 -<a name="l00679"></a><a class="code" href="classServer.html#a47">00679</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a47">Server::DelELine</a>(std::string hostmask) -00680 { -00681 <a class="code" href="xline_8h.html#a10">del_eline</a>(hostmask.c_str()); -00682 } -00683 -<a name="l00684"></a><a class="code" href="classServer.html#a48">00684</a> <span class="keywordtype">long</span> <a class="code" href="classServer.html#a48">Server::CalcDuration</a>(std::string delta) -00685 { -00686 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a75">duration</a>(delta.c_str()); -00687 } -00688 -<a name="l00689"></a><a class="code" href="classServer.html#a49">00689</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a49">Server::IsValidMask</a>(std::string mask) -00690 { -00691 <span class="keyword">const</span> <span class="keywordtype">char</span>* dest = mask.c_str(); -00692 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'!'</span>)==0) -00693 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00694 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'@'</span>)==0) -00695 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00696 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -00697 <span class="keywordflow">if</span> (dest[i] < 32) -00698 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00699 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -00700 <span class="keywordflow">if</span> (dest[i] > 126) -00701 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00702 <span class="keywordtype">int</span> c = 0; -00703 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -00704 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'!'</span>) -00705 c++; -00706 <span class="keywordflow">if</span> (c>1) -00707 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00708 c = 0; -00709 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) -00710 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'@'</span>) -00711 c++; -00712 <span class="keywordflow">if</span> (c>1) -00713 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00714 -00715 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00656 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> old_fd = user-><a class="code" href="classconnection.html#o0">fd</a>; +00657 user-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; +00658 Write(old_fd,<span class="stringliteral">"ERROR :Closing link (%s@%s) [%s]"</span>,user-><a class="code" href="classuserrec.html#o1">ident</a>,user-><a class="code" href="classconnection.html#o1">host</a>,message.c_str()); +00659 close(old_fd); +00660 shutdown (old_fd,2); +00661 } +00662 +<a name="l00663"></a><a class="code" href="classServer.html#a37">00663</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a37">Server::PseudoToUser</a>(<a class="code" href="classuserrec.html">userrec</a>* alive,<a class="code" href="classuserrec.html">userrec</a>* zombie,std::string message) +00664 { +00665 zombie-><a class="code" href="classconnection.html#o0">fd</a> = alive-><a class="code" href="classconnection.html#o0">fd</a>; +00666 alive-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; +00667 Write(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s!%s@%s NICK %s"</span>,alive-><a class="code" href="classuserrec.html#o0">nick</a>,alive-><a class="code" href="classuserrec.html#o1">ident</a>,alive-><a class="code" href="classconnection.html#o1">host</a>,zombie-><a class="code" href="classuserrec.html#o0">nick</a>); +00668 kill_link(alive,message.c_str()); +00669 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i != MAXCHANS; i++) +00670 { +00671 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> != NULL) +00672 { +00673 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>-><a class="code" href="classchanrec.html#o0">name</a>) +00674 { +00675 <a class="code" href="classchanrec.html">chanrec</a>* Ptr = zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>; +00676 WriteFrom(zombie-><a class="code" href="classconnection.html#o0">fd</a>,zombie,<span class="stringliteral">"JOIN %s"</span>,Ptr-><a class="code" href="classchanrec.html#o0">name</a>); +00677 <span class="keywordflow">if</span> (Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>) +00678 { +00679 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"332 %s %s :%s"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o2">topic</a>); +00680 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"333 %s %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o5">setby</a>, Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>); +00681 } +00682 userlist(zombie,Ptr); +00683 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"366 %s %s :End of /NAMES list."</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>); +00684 <span class="comment">//WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr));</span> +00685 <span class="comment">//WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created);</span> +00686 +00687 } +00688 } +00689 } +00690 +00691 } +00692 +<a name="l00693"></a><a class="code" href="classServer.html#a38">00693</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a38">Server::AddGLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string hostmask) +00694 { +00695 <a class="code" href="xline_8h.html#a1">add_gline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); +00696 } +00697 +<a name="l00698"></a><a class="code" href="classServer.html#a39">00698</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a39">Server::AddQLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string nickname) +00699 { +00700 <a class="code" href="xline_8h.html#a2">add_qline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), nickname.c_str()); +00701 } +00702 +<a name="l00703"></a><a class="code" href="classServer.html#a40">00703</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a40">Server::AddZLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string ipaddr) +00704 { +00705 <a class="code" href="xline_8h.html#a3">add_zline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), ipaddr.c_str()); +00706 } +00707 +<a name="l00708"></a><a class="code" href="classServer.html#a41">00708</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a41">Server::AddKLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string hostmask) +00709 { +00710 <a class="code" href="xline_8h.html#a4">add_kline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); +00711 } +00712 +<a name="l00713"></a><a class="code" href="classServer.html#a42">00713</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a42">Server::AddELine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string hostmask) +00714 { +00715 <a class="code" href="xline_8h.html#a5">add_eline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); 00716 } 00717 -<a name="l00718"></a><a class="code" href="classServer.html#a50">00718</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a50">Server::MeshSendAll</a>(std::string text) +<a name="l00718"></a><a class="code" href="classServer.html#a43">00718</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a43">Server::DelGLine</a>(std::string hostmask) 00719 { -00720 NetSendToAll((<span class="keywordtype">char</span>*)text.c_str()); +00720 <a class="code" href="xline_8h.html#a6">del_gline</a>(hostmask.c_str()); 00721 } 00722 -<a name="l00723"></a><a class="code" href="classServer.html#a51">00723</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a51">Server::MeshSendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string text) +<a name="l00723"></a><a class="code" href="classServer.html#a44">00723</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a44">Server::DelQLine</a>(std::string nickname) 00724 { -00725 <span class="keywordflow">if</span> (user) -00726 NetSendToCommon(user,(<span class="keywordtype">char</span>*)text.c_str()); -00727 } -00728 -<a name="l00729"></a><a class="code" href="classServer.html#a52">00729</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a52">Server::MeshSendAllAlive</a>(std::string text) -00730 { -00731 NetSendToAllAlive((<span class="keywordtype">char</span>*)text.c_str()); -00732 } -00733 -<a name="l00734"></a><a class="code" href="classServer.html#a53">00734</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a53">Server::MeshSendUnicast</a>(std::string destination, std::string text) -00735 { -00736 NetSendToOne((<span class="keywordtype">char</span>*)destination.c_str(),(<span class="keywordtype">char</span>*)text.c_str()); -00737 } -00738 -<a name="l00739"></a><a class="code" href="classServer.html#a54">00739</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a54">Server::MeshSendAllExcept</a>(std::string target, std::string text) -00740 { -00741 NetSendToAllExcept(target.c_str(),(<span class="keywordtype">char</span>*)text.c_str()); -00742 } -00743 -<a name="l00744"></a><a class="code" href="classServer.html#a55">00744</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a55">Server::MeshCheckChan</a>(<a class="code" href="classchanrec.html">chanrec</a> *c,std::string servername) -00745 { -00746 <span class="keywordflow">if</span> (c) -00747 { -00748 <span class="keywordflow">return</span> ChanAnyOnThisServer(c,(<span class="keywordtype">char</span>*)servername.c_str()); -00749 } -00750 <span class="keywordflow">else</span> <span class="keywordflow">return</span> <span class="keyword">false</span>; -00751 } -00752 -<a name="l00753"></a><a class="code" href="classServer.html#a56">00753</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a56">Server::MeshCheckCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* u,std::string servername) -00754 { -00755 <span class="keywordflow">if</span> (u) -00756 { -00757 <span class="keywordflow">return</span> CommonOnThisServer(u,(<span class="keywordtype">char</span>*)servername.c_str()); -00758 } -00759 <span class="keywordflow">else</span> <span class="keywordflow">return</span> <span class="keyword">false</span>; -00760 } -00761 -<a name="l00762"></a><a class="code" href="classConfigReader.html#a0">00762</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>() -00763 { -00764 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00765 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00766 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00767 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00768 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; -00769 } -00770 -00771 -<a name="l00772"></a><a class="code" href="classConfigReader.html#a2">00772</a> <a class="code" href="classConfigReader.html#a2">ConfigReader::~ConfigReader</a>() -00773 { -00774 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) -00775 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; -00776 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) -00777 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; -00778 } -00779 -00780 -<a name="l00781"></a><a class="code" href="classConfigReader.html#a1">00781</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>(std::string filename) -00782 { -00783 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00784 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00785 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); -00786 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00787 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; -00788 }; -00789 -<a name="l00790"></a><a class="code" href="classConfigReader.html#a3">00790</a> std::string <a class="code" href="classConfigReader.html#a3">ConfigReader::ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) -00791 { -00792 <span class="keywordtype">char</span> val[MAXBUF]; -00793 <span class="keywordtype">char</span> t[MAXBUF]; -00794 <span class="keywordtype">char</span> n[MAXBUF]; -00795 strlcpy(t,tag.c_str(),MAXBUF); -00796 strlcpy(n,name.c_str(),MAXBUF); -00797 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); -00798 <span class="keywordflow">if</span> (!res) -00799 { -00800 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; -00801 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00802 } -00803 <span class="keywordflow">return</span> std::string(val); -00804 } -00805 -<a name="l00806"></a><a class="code" href="classConfigReader.html#a4">00806</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ConfigReader::ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) -00807 { -00808 <span class="keywordtype">char</span> val[MAXBUF]; -00809 <span class="keywordtype">char</span> t[MAXBUF]; -00810 <span class="keywordtype">char</span> n[MAXBUF]; -00811 strlcpy(t,tag.c_str(),MAXBUF); -00812 strlcpy(n,name.c_str(),MAXBUF); -00813 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); -00814 <span class="keywordflow">if</span> (!res) +00725 <a class="code" href="xline_8h.html#a7">del_qline</a>(nickname.c_str()); +00726 } +00727 +<a name="l00728"></a><a class="code" href="classServer.html#a45">00728</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a45">Server::DelZLine</a>(std::string ipaddr) +00729 { +00730 <a class="code" href="xline_8h.html#a8">del_zline</a>(ipaddr.c_str()); +00731 } +00732 +<a name="l00733"></a><a class="code" href="classServer.html#a46">00733</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a46">Server::DelKLine</a>(std::string hostmask) +00734 { +00735 <a class="code" href="xline_8h.html#a9">del_kline</a>(hostmask.c_str()); +00736 } +00737 +<a name="l00738"></a><a class="code" href="classServer.html#a47">00738</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a47">Server::DelELine</a>(std::string hostmask) +00739 { +00740 <a class="code" href="xline_8h.html#a10">del_eline</a>(hostmask.c_str()); +00741 } +00742 +<a name="l00743"></a><a class="code" href="classServer.html#a48">00743</a> <span class="keywordtype">long</span> <a class="code" href="classServer.html#a48">Server::CalcDuration</a>(std::string delta) +00744 { +00745 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a75">duration</a>(delta.c_str()); +00746 } +00747 +<a name="l00748"></a><a class="code" href="classServer.html#a49">00748</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a49">Server::IsValidMask</a>(std::string mask) +00749 { +00750 <span class="keyword">const</span> <span class="keywordtype">char</span>* dest = mask.c_str(); +00751 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'!'</span>)==0) +00752 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00753 <span class="keywordflow">if</span> (strchr(dest,<span class="charliteral">'@'</span>)==0) +00754 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00755 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +00756 <span class="keywordflow">if</span> (dest[i] < 32) +00757 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00758 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +00759 <span class="keywordflow">if</span> (dest[i] > 126) +00760 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00761 <span class="keywordtype">int</span> c = 0; +00762 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +00763 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'!'</span>) +00764 c++; +00765 <span class="keywordflow">if</span> (c>1) +00766 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00767 c = 0; +00768 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(dest); i++) +00769 <span class="keywordflow">if</span> (dest[i] == <span class="charliteral">'@'</span>) +00770 c++; +00771 <span class="keywordflow">if</span> (c>1) +00772 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00773 +00774 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00775 } +00776 +<a name="l00777"></a><a class="code" href="classServer.html#a50">00777</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a50">Server::MeshSendAll</a>(std::string text) +00778 { +00779 NetSendToAll((<span class="keywordtype">char</span>*)text.c_str()); +00780 } +00781 +<a name="l00782"></a><a class="code" href="classServer.html#a51">00782</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a51">Server::MeshSendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string text) +00783 { +00784 <span class="keywordflow">if</span> (user) +00785 NetSendToCommon(user,(<span class="keywordtype">char</span>*)text.c_str()); +00786 } +00787 +<a name="l00788"></a><a class="code" href="classServer.html#a52">00788</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a52">Server::MeshSendAllAlive</a>(std::string text) +00789 { +00790 NetSendToAllAlive((<span class="keywordtype">char</span>*)text.c_str()); +00791 } +00792 +<a name="l00793"></a><a class="code" href="classServer.html#a53">00793</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a53">Server::MeshSendUnicast</a>(std::string destination, std::string text) +00794 { +00795 NetSendToOne((<span class="keywordtype">char</span>*)destination.c_str(),(<span class="keywordtype">char</span>*)text.c_str()); +00796 } +00797 +<a name="l00798"></a><a class="code" href="classServer.html#a54">00798</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a54">Server::MeshSendAllExcept</a>(std::string target, std::string text) +00799 { +00800 NetSendToAllExcept(target.c_str(),(<span class="keywordtype">char</span>*)text.c_str()); +00801 } +00802 +<a name="l00803"></a><a class="code" href="classServer.html#a55">00803</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a55">Server::MeshCheckChan</a>(<a class="code" href="classchanrec.html">chanrec</a> *c,std::string servername) +00804 { +00805 <span class="keywordflow">if</span> (c) +00806 { +00807 <span class="keywordflow">return</span> ChanAnyOnThisServer(c,(<span class="keywordtype">char</span>*)servername.c_str()); +00808 } +00809 <span class="keywordflow">else</span> <span class="keywordflow">return</span> <span class="keyword">false</span>; +00810 } +00811 +<a name="l00812"></a><a class="code" href="classServer.html#a56">00812</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a56">Server::MeshCheckCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* u,std::string servername) +00813 { +00814 <span class="keywordflow">if</span> (u) 00815 { -00816 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; -00817 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00818 } -00819 std::string s = val; -00820 <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>)); -00821 } -00822 -<a name="l00823"></a><a class="code" href="classConfigReader.html#a5">00823</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ConfigReader::ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned) -00824 { -00825 <span class="keywordtype">char</span> val[MAXBUF]; -00826 <span class="keywordtype">char</span> t[MAXBUF]; -00827 <span class="keywordtype">char</span> n[MAXBUF]; -00828 strlcpy(t,tag.c_str(),MAXBUF); -00829 strlcpy(n,name.c_str(),MAXBUF); -00830 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); -00831 <span class="keywordflow">if</span> (!res) -00832 { -00833 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; -00834 <span class="keywordflow">return</span> 0; -00835 } -00836 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) -00837 { -00838 <span class="keywordflow">if</span> (!isdigit(val[i])) -00839 { -00840 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_A_NUMBER</a>; -00841 <span class="keywordflow">return</span> 0; -00842 } -00843 } -00844 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) -00845 { -00846 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_NOT_UNSIGNED</a>; -00847 <span class="keywordflow">return</span> 0; -00848 } -00849 <span class="keywordflow">return</span> atoi(val); -00850 } +00816 <span class="keywordflow">return</span> CommonOnThisServer(u,(<span class="keywordtype">char</span>*)servername.c_str()); +00817 } +00818 <span class="keywordflow">else</span> <span class="keywordflow">return</span> <span class="keyword">false</span>; +00819 } +00820 +<a name="l00821"></a><a class="code" href="classServer.html#a57">00821</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classServer.html#a57">Server::FindModule</a>(std::string name) +00822 { +00823 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i <= <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a>; i++) +00824 { +00825 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a27">module_names</a>[i] == name) +00826 { +00827 <span class="keywordflow">return</span> <a class="code" href="channels_8cpp.html#a2">modules</a>[i]; +00828 } +00829 } +00830 <span class="keywordflow">return</span> NULL; +00831 } +00832 +<a name="l00833"></a><a class="code" href="classConfigReader.html#a0">00833</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>() +00834 { +00835 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00836 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00837 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00838 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00839 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; +00840 } +00841 +00842 +<a name="l00843"></a><a class="code" href="classConfigReader.html#a2">00843</a> <a class="code" href="classConfigReader.html#a2">ConfigReader::~ConfigReader</a>() +00844 { +00845 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) +00846 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; +00847 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) +00848 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; +00849 } +00850 00851 -<a name="l00852"></a><a class="code" href="classConfigReader.html#a6">00852</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">ConfigReader::GetError</a>() +<a name="l00852"></a><a class="code" href="classConfigReader.html#a1">00852</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>(std::string filename) 00853 { -00854 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; -00855 this->error = 0; -00856 <span class="keywordflow">return</span> olderr; -00857 } -00858 -<a name="l00859"></a><a class="code" href="classConfigReader.html#a9">00859</a> <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">ConfigReader::DumpErrors</a>(<span class="keywordtype">bool</span> bail, <a class="code" href="classuserrec.html">userrec</a>* user) -00860 { -00861 <span class="keywordflow">if</span> (bail) -00862 { -00863 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); -00864 exit(0); -00865 } -00866 <span class="keywordflow">else</span> -00867 { -00868 <span class="keywordtype">char</span> dataline[1024]; -00869 <span class="keywordflow">if</span> (user) -00870 { -00871 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00872 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00873 { -00874 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00875 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); -00876 } -00877 } -00878 <span class="keywordflow">else</span> -00879 { -00880 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00881 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00882 { -00883 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00884 WriteOpers(dataline); -00885 } -00886 } -00887 <span class="keywordflow">return</span>; -00888 } -00889 } -00890 -00891 -<a name="l00892"></a><a class="code" href="classConfigReader.html#a7">00892</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">ConfigReader::Enumerate</a>(std::string tag) -00893 { -00894 <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#p0">cache</a>,tag.c_str()); -00895 } -00896 -<a name="l00897"></a><a class="code" href="classConfigReader.html#a10">00897</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">ConfigReader::EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index) -00898 { -00899 <span class="keywordflow">return</span> EnumValues(<a class="code" href="classConfigReader.html#p0">cache</a>, tag.c_str(), index); -00900 } -00901 -<a name="l00902"></a><a class="code" href="classConfigReader.html#a8">00902</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">ConfigReader::Verify</a>() -00903 { -00904 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; -00905 } -00906 -00907 -<a name="l00908"></a><a class="code" href="classFileReader.html#a1">00908</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>(std::string filename) -00909 { -00910 <a class="code" href="modules_8h.html#a31">file_cache</a> c; -00911 readfile(c,filename.c_str()); -00912 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00913 } -00914 -<a name="l00915"></a><a class="code" href="classFileReader.html#a0">00915</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>() -00916 { -00917 } -00918 -<a name="l00919"></a><a class="code" href="classFileReader.html#a3">00919</a> <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">FileReader::LoadFile</a>(std::string filename) -00920 { -00921 <a class="code" href="modules_8h.html#a31">file_cache</a> c; -00922 readfile(c,filename.c_str()); -00923 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00924 } -00925 -00926 -<a name="l00927"></a><a class="code" href="classFileReader.html#a2">00927</a> <a class="code" href="classFileReader.html#a2">FileReader::~FileReader</a>() -00928 { -00929 } -00930 -<a name="l00931"></a><a class="code" href="classFileReader.html#a4">00931</a> <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">FileReader::Exists</a>() -00932 { -00933 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) -00934 { -00935 <span class="keywordflow">return</span>(<span class="keyword">false</span>); +00854 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00855 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00856 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); +00857 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00858 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; +00859 }; +00860 +<a name="l00861"></a><a class="code" href="classConfigReader.html#a3">00861</a> std::string <a class="code" href="classConfigReader.html#a3">ConfigReader::ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) +00862 { +00863 <span class="keywordtype">char</span> val[MAXBUF]; +00864 <span class="keywordtype">char</span> t[MAXBUF]; +00865 <span class="keywordtype">char</span> n[MAXBUF]; +00866 strlcpy(t,tag.c_str(),MAXBUF); +00867 strlcpy(n,name.c_str(),MAXBUF); +00868 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); +00869 <span class="keywordflow">if</span> (!res) +00870 { +00871 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00872 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00873 } +00874 <span class="keywordflow">return</span> std::string(val); +00875 } +00876 +<a name="l00877"></a><a class="code" href="classConfigReader.html#a4">00877</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ConfigReader::ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) +00878 { +00879 <span class="keywordtype">char</span> val[MAXBUF]; +00880 <span class="keywordtype">char</span> t[MAXBUF]; +00881 <span class="keywordtype">char</span> n[MAXBUF]; +00882 strlcpy(t,tag.c_str(),MAXBUF); +00883 strlcpy(n,name.c_str(),MAXBUF); +00884 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); +00885 <span class="keywordflow">if</span> (!res) +00886 { +00887 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00888 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00889 } +00890 std::string s = val; +00891 <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>)); +00892 } +00893 +<a name="l00894"></a><a class="code" href="classConfigReader.html#a5">00894</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ConfigReader::ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned) +00895 { +00896 <span class="keywordtype">char</span> val[MAXBUF]; +00897 <span class="keywordtype">char</span> t[MAXBUF]; +00898 <span class="keywordtype">char</span> n[MAXBUF]; +00899 strlcpy(t,tag.c_str(),MAXBUF); +00900 strlcpy(n,name.c_str(),MAXBUF); +00901 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); +00902 <span class="keywordflow">if</span> (!res) +00903 { +00904 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00905 <span class="keywordflow">return</span> 0; +00906 } +00907 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) +00908 { +00909 <span class="keywordflow">if</span> (!isdigit(val[i])) +00910 { +00911 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_A_NUMBER</a>; +00912 <span class="keywordflow">return</span> 0; +00913 } +00914 } +00915 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) +00916 { +00917 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_NOT_UNSIGNED</a>; +00918 <span class="keywordflow">return</span> 0; +00919 } +00920 <span class="keywordflow">return</span> atoi(val); +00921 } +00922 +<a name="l00923"></a><a class="code" href="classConfigReader.html#a6">00923</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">ConfigReader::GetError</a>() +00924 { +00925 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; +00926 this->error = 0; +00927 <span class="keywordflow">return</span> olderr; +00928 } +00929 +<a name="l00930"></a><a class="code" href="classConfigReader.html#a9">00930</a> <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">ConfigReader::DumpErrors</a>(<span class="keywordtype">bool</span> bail, <a class="code" href="classuserrec.html">userrec</a>* user) +00931 { +00932 <span class="keywordflow">if</span> (bail) +00933 { +00934 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); +00935 exit(0); 00936 } 00937 <span class="keywordflow">else</span> 00938 { -00939 <span class="keywordflow">return</span>(<span class="keyword">true</span>); -00940 } -00941 } -00942 -<a name="l00943"></a><a class="code" href="classFileReader.html#a5">00943</a> std::string <a class="code" href="classFileReader.html#a5">FileReader::GetLine</a>(<span class="keywordtype">int</span> x) -00944 { -00945 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) -00946 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00947 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; -00948 } -00949 -<a name="l00950"></a><a class="code" href="classFileReader.html#a6">00950</a> <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileReader::FileSize</a>() -00951 { -00952 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); -00953 } -00954 -00955 -00956 std::vector<Module*> <a class="code" href="modules_8cpp.html#a59">modules</a>(255); -00957 std::vector<ircd_module*> <a class="code" href="modules_8cpp.html#a60">factory</a>(255); -00958 -<a name="l00959"></a><a class="code" href="modules_8cpp.html#a1">00959</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a> = -1; -00960 +00939 <span class="keywordtype">char</span> dataline[1024]; +00940 <span class="keywordflow">if</span> (user) +00941 { +00942 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00943 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00944 { +00945 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00946 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); +00947 } +00948 } +00949 <span class="keywordflow">else</span> +00950 { +00951 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00952 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00953 { +00954 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00955 WriteOpers(dataline); +00956 } +00957 } +00958 <span class="keywordflow">return</span>; +00959 } +00960 } 00961 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:13 2005 for InspIRCd by +00962 +<a name="l00963"></a><a class="code" href="classConfigReader.html#a7">00963</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">ConfigReader::Enumerate</a>(std::string tag) +00964 { +00965 <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#p0">cache</a>,tag.c_str()); +00966 } +00967 +<a name="l00968"></a><a class="code" href="classConfigReader.html#a10">00968</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">ConfigReader::EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index) +00969 { +00970 <span class="keywordflow">return</span> EnumValues(<a class="code" href="classConfigReader.html#p0">cache</a>, tag.c_str(), index); +00971 } +00972 +<a name="l00973"></a><a class="code" href="classConfigReader.html#a8">00973</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">ConfigReader::Verify</a>() +00974 { +00975 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; +00976 } +00977 +00978 +<a name="l00979"></a><a class="code" href="classFileReader.html#a1">00979</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>(std::string filename) +00980 { +00981 <a class="code" href="modules_8h.html#a31">file_cache</a> c; +00982 readfile(c,filename.c_str()); +00983 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00984 } +00985 +<a name="l00986"></a><a class="code" href="classFileReader.html#a0">00986</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>() +00987 { +00988 } +00989 +<a name="l00990"></a><a class="code" href="classFileReader.html#a3">00990</a> <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">FileReader::LoadFile</a>(std::string filename) +00991 { +00992 <a class="code" href="modules_8h.html#a31">file_cache</a> c; +00993 readfile(c,filename.c_str()); +00994 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00995 } +00996 +00997 +<a name="l00998"></a><a class="code" href="classFileReader.html#a2">00998</a> <a class="code" href="classFileReader.html#a2">FileReader::~FileReader</a>() +00999 { +01000 } +01001 +<a name="l01002"></a><a class="code" href="classFileReader.html#a4">01002</a> <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">FileReader::Exists</a>() +01003 { +01004 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) +01005 { +01006 <span class="keywordflow">return</span>(<span class="keyword">false</span>); +01007 } +01008 <span class="keywordflow">else</span> +01009 { +01010 <span class="keywordflow">return</span>(<span class="keyword">true</span>); +01011 } +01012 } +01013 +<a name="l01014"></a><a class="code" href="classFileReader.html#a5">01014</a> std::string <a class="code" href="classFileReader.html#a5">FileReader::GetLine</a>(<span class="keywordtype">int</span> x) +01015 { +01016 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) +01017 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +01018 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; +01019 } +01020 +<a name="l01021"></a><a class="code" href="classFileReader.html#a6">01021</a> <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileReader::FileSize</a>() +01022 { +01023 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); +01024 } +01025 +01026 +01027 std::vector<Module*> <a class="code" href="modules_8cpp.html#a59">modules</a>(255); +01028 std::vector<ircd_module*> <a class="code" href="modules_8cpp.html#a60">factory</a>(255); +01029 +<a name="l01030"></a><a class="code" href="modules_8cpp.html#a1">01030</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a> = -1; +01031 +01032 +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:55 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index 134732757..701a6f0cd 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -231,7 +231,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00059">59</a> o <p> <p> -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>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00177">177</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a39" doxytag="modules.cpp::chan_hash"></a><p> @@ -255,7 +255,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00175">175</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00174">174</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +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>. </td> </tr> </table> <a name="a41" doxytag="modules.cpp::command_table"></a><p> @@ -279,7 +279,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00174">174</a> <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>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00178">178</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a49" doxytag="modules.cpp::ExtModeList"></a><p> @@ -303,7 +303,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00176">176</a> <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>. </td> +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>. </td> </tr> </table> <a name="a50" doxytag="modules.cpp::ExtModeListIter"></a><p> @@ -327,9 +327,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00202">202</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00203">203</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#l00205">205</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#l00209">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00262">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00249">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00235">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00222">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00285">ModeMakeList()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00211">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00264">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00251">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00237">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00224">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00287">ModeMakeList()</a>. </td> </tr> </table> <a name="a38" doxytag="modules.cpp::user_hash"></a><p> @@ -353,7 +353,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00209">ModeDefined() <p> <p> -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>. </td> +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>. </td> </tr> </table> <hr><h2>Function Documentation</h2> @@ -412,19 +412,19 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00173">173</a> <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>. +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>. <p> -References <a class="el" href="modules_8cpp-source.html#l00206">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00209">ModeDefined()</a>. +References <a class="el" href="modules_8cpp-source.html#l00208">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00211">ModeDefined()</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00581">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00561">Server::AddExtendedMode()</a>. +Referenced by <a class="el" href="modules_8cpp-source.html#l00640">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00620">Server::AddExtendedMode()</a>. <p> -<div class="fragment"><pre>00276 { -00277 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#a52">ModeDefined</a>(modechar,type)) { -00278 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00279 } -00280 <a class="code" href="modules_8cpp.html#a51">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); -00281 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00282 } +<div class="fragment"><pre>00278 { +00279 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#a52">ModeDefined</a>(modechar,type)) { +00280 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00281 } +00282 <a class="code" href="modules_8cpp.html#a51">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); +00283 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00284 } </pre></div> </td> </tr> </table> @@ -494,23 +494,23 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00581">Server::AddEx <p> <p> -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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00211">211</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#l00206">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00203">ExtModeListIter</a>. +References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00208">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00205">ExtModeListIter</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00275">DoAddExtendedMode()</a>. +Referenced by <a class="el" href="modules_8cpp-source.html#l00277">DoAddExtendedMode()</a>. <p> -<div class="fragment"><pre>00210 { -00211 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); -00212 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00213 { -00214 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00215 { -00216 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00217 } -00218 } -00219 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00220 } +<div class="fragment"><pre>00212 { +00213 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); +00214 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00215 { +00216 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00217 { +00218 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00219 } +00220 } +00221 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00222 } </pre></div> </td> </tr> </table> @@ -551,20 +551,20 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00275">DoAddExtended <p> <p> -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>. +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>. <p> -References <a class="el" href="modules_8cpp-source.html#l00206">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00203">ExtModeListIter</a>. +References <a class="el" href="modules_8cpp-source.html#l00208">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00205">ExtModeListIter</a>. <p> -<div class="fragment"><pre>00263 { -00264 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00265 { -00266 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00267 { -00268 <span class="keywordflow">return</span> i->params_when_off; -00269 } -00270 } -00271 <span class="keywordflow">return</span> 0; -00272 } +<div class="fragment"><pre>00265 { +00266 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00267 { +00268 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00269 { +00270 <span class="keywordflow">return</span> i->params_when_off; +00271 } +00272 } +00273 <span class="keywordflow">return</span> 0; +00274 } </pre></div> </td> </tr> </table> @@ -605,20 +605,20 @@ References <a class="el" href="modules_8cpp-source.html#l00206">EMode</a>, and < <p> <p> -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>. +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>. <p> -References <a class="el" href="modules_8cpp-source.html#l00206">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00203">ExtModeListIter</a>. +References <a class="el" href="modules_8cpp-source.html#l00208">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00205">ExtModeListIter</a>. <p> -<div class="fragment"><pre>00250 { -00251 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00252 { -00253 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00254 { -00255 <span class="keywordflow">return</span> i->params_when_on; -00256 } -00257 } -00258 <span class="keywordflow">return</span> 0; -00259 } +<div class="fragment"><pre>00252 { +00253 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00254 { +00255 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00256 { +00257 <span class="keywordflow">return</span> i->params_when_on; +00258 } +00259 } +00260 <span class="keywordflow">return</span> 0; +00261 } </pre></div> </td> </tr> </table> @@ -659,21 +659,21 @@ References <a class="el" href="modules_8cpp-source.html#l00206">EMode</a>, and < <p> <p> -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>. +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>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00206">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00203">ExtModeListIter</a>. +References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00208">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00205">ExtModeListIter</a>. <p> -<div class="fragment"><pre>00236 { -00237 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); -00238 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00239 { -00240 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) -00241 { -00242 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00243 } -00244 } -00245 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00246 } +<div class="fragment"><pre>00238 { +00239 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); +00240 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00241 { +00242 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) +00243 { +00244 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00245 } +00246 } +00247 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00248 } </pre></div> </td> </tr> </table> @@ -714,21 +714,21 @@ References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a clas <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00222">222</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#l00224">224</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#l00206">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00203">ExtModeListIter</a>. +References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00208">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00205">ExtModeListIter</a>. <p> -<div class="fragment"><pre>00223 { -00224 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); -00225 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00226 { -00227 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) -00228 { -00229 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00230 } -00231 } -00232 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00233 } +<div class="fragment"><pre>00225 { +00226 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a51">EMode</a>.size()); +00227 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00228 { +00229 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) +00230 { +00231 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00232 } +00233 } +00234 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00235 } </pre></div> </td> </tr> </table> @@ -760,23 +760,23 @@ References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a clas <p> <p> -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>. +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>. <p> -References <a class="el" href="modules_8cpp-source.html#l00206">EMode</a>, <a class="el" href="modules_8cpp-source.html#l00203">ExtModeListIter</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>. +References <a class="el" href="modules_8cpp-source.html#l00208">EMode</a>, <a class="el" href="modules_8cpp-source.html#l00205">ExtModeListIter</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#l00581">Server::AddExtendedListMode()</a>. +Referenced by <a class="el" href="modules_8cpp-source.html#l00640">Server::AddExtendedListMode()</a>. <p> -<div class="fragment"><pre>00286 { -00287 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) -00288 { -00289 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>)) -00290 { -00291 i->list = <span class="keyword">true</span>; -00292 <span class="keywordflow">return</span>; -00293 } -00294 } -00295 <span class="keywordflow">return</span>; -00296 } +<div class="fragment"><pre>00288 { +00289 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a50">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a51">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a51">EMode</a>.end(); i++) +00290 { +00291 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>)) +00292 { +00293 i->list = <span class="keyword">true</span>; +00294 <span class="keywordflow">return</span>; +00295 } +00296 } +00297 <span class="keywordflow">return</span>; +00298 } </pre></div> </td> </tr> </table> @@ -951,7 +951,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00097">97</a> o <p> <p> -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>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00182">182</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a42" doxytag="modules.cpp::clientlist"></a><p> @@ -975,9 +975,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00180">180</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00179">179</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#l00181">181</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#l00391">Server::GetUsers()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00450">Server::GetUsers()</a>. </td> </tr> </table> <a name="a45" doxytag="modules.cpp::cmdlist"></a><p> @@ -1001,7 +1001,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00391">Server::GetUs <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00182">182</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00184">184</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a35" doxytag="modules.cpp::config_f"></a><p> @@ -1169,9 +1169,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00083">83</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00206">206</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#l00208">208</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#l00275">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00209">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00262">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00249">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00235">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00222">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00285">ModeMakeList()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00277">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00211">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00264">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00251">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00237">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00224">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00287">ModeMakeList()</a>. </td> </tr> </table> <a name="a3" doxytag="modules.cpp::factory"></a><p> @@ -1243,7 +1243,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00094">94</a> o <p> <p> -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>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00187">187</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a16" doxytag="modules.cpp::list"></a><p> @@ -1387,7 +1387,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00106">106</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00959">959</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l01030">1030</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a28" doxytag="modules.cpp::module_names"></a><p> @@ -1459,7 +1459,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00065">65</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00183">183</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +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>. </td> </tr> </table> <a name="a14" doxytag="modules.cpp::motd"></a><p> @@ -1675,7 +1675,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00078">78</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00184">184</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00186">186</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a15" doxytag="modules.cpp::rules"></a><p> @@ -1843,7 +1843,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00099">99</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00181">181</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00183">183</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a21" doxytag="modules.cpp::WHOWAS_MAX"></a><p> @@ -1894,7 +1894,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00087">87</a> o Definition at line <a class="el" href="modules_8cpp-source.html#l00086">86</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index 2eeba8d6d..e76cb5143 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -121,264 +121,312 @@ 00127 <a class="code" href="classAdmin.html#a0">Admin</a>(std::string name, std::string email, std::string nick); 00128 }; 00129 -<a name="l00135"></a><a class="code" href="classModule.html">00135</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> -00136 { -00137 <span class="keyword">public</span>: -00138 -00142 <a class="code" href="classModule.html#a0">Module</a>(); -00143 -00147 <span class="keyword">virtual</span> <a class="code" href="classModule.html#a1">~Module</a>(); -00148 -00153 <span class="keyword">virtual</span> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#a2">GetVersion</a>(); -00154 -00158 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a3">OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00159 -00163 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a4">OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00164 -00169 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a5">OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); -00170 -00175 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a6">OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); -00176 -00182 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a7">OnPacketTransmit</a>(std::string &data, std::string serv); -00183 -00190 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a8">OnPacketReceive</a>(std::string &data, std::string serv); -00191 -00197 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a9">OnRehash</a>(); -00198 -00207 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a10">OnServerRaw</a>(std::string &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user); -00208 -00218 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a11">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#a32">string_list</a> &params); -00219 -00233 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a12">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); -00234 -00240 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a13">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, std::string reason); +00130 +00131 <span class="comment">// Forward-delacare module for ModuleMessage etc</span> +00132 <span class="keyword">class </span><a class="code" href="classModule.html">Module</a>; +00133 +<a name="l00138"></a><a class="code" href="classModuleMessage.html">00138</a> <span class="keyword">class </span><a class="code" href="classModuleMessage.html">ModuleMessage</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00139 { +00140 <span class="keyword">public</span>: +00143 <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="classModuleMessage.html#a0">Send</a>() = 0; +00144 }; +00145 +<a name="l00151"></a><a class="code" href="classRequest.html">00151</a> <span class="keyword">class </span><a class="code" href="classRequest.html">Request</a> : <span class="keyword">public</span> <a class="code" href="classModuleMessage.html">ModuleMessage</a> +00152 { +00153 <span class="keyword">protected</span>: +<a name="l00156"></a><a class="code" href="classRequest.html#p0">00156</a> <span class="keywordtype">char</span>* <a class="code" href="classRequest.html#p0">data</a>; +<a name="l00160"></a><a class="code" href="classRequest.html#p1">00160</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classRequest.html#p1">source</a>; +<a name="l00163"></a><a class="code" href="classRequest.html#p2">00163</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classRequest.html#p2">dest</a>; +00164 <span class="keyword">public</span>: +00167 <a class="code" href="classRequest.html#a0">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); +00170 <span class="keywordtype">char</span>* <a class="code" href="classRequest.html#a1">GetData</a>(); +00173 <a class="code" href="classModule.html">Module</a>* <a class="code" href="classRequest.html#a2">GetSource</a>(); +00176 <a class="code" href="classModule.html">Module</a>* <a class="code" href="classRequest.html#a3">GetDest</a>(); +00182 <span class="keywordtype">char</span>* <a class="code" href="classRequest.html#a4">Send</a>(); +00183 }; +00184 +00185 +<a name="l00191"></a><a class="code" href="classEvent.html">00191</a> <span class="keyword">class </span><a class="code" href="classEvent.html">Event</a> : <span class="keyword">public</span> <a class="code" href="classModuleMessage.html">ModuleMessage</a> +00192 { +00193 <span class="keyword">protected</span>: +<a name="l00196"></a><a class="code" href="classEvent.html#p0">00196</a> <span class="keywordtype">char</span>* <a class="code" href="classEvent.html#p0">data</a>; +<a name="l00200"></a><a class="code" href="classEvent.html#p1">00200</a> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classEvent.html#p1">source</a>; +<a name="l00205"></a><a class="code" href="classEvent.html#p2">00205</a> std::string <a class="code" href="classEvent.html#p2">id</a>; +00206 <span class="keyword">public</span>: +00209 <a class="code" href="classEvent.html#a0">Event</a>(<span class="keywordtype">char</span>* anydata, <a class="code" href="classModule.html">Module</a>* src, std::string eventid); +00212 <span class="keywordtype">char</span>* <a class="code" href="classEvent.html#a1">GetData</a>(); +00215 <a class="code" href="classModule.html">Module</a>* <a class="code" href="classEvent.html#a2">GetSource</a>(); +00219 std::string <a class="code" href="classEvent.html#a3">GetEventID</a>(); +00224 <span class="keywordtype">char</span>* <a class="code" href="classEvent.html#a4">Send</a>(); +00225 }; +00226 +00227 +<a name="l00233"></a><a class="code" href="classModule.html">00233</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> +00234 { +00235 <span class="keyword">public</span>: +00236 +00240 <a class="code" href="classModule.html#a0">Module</a>(); 00241 -00246 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a14">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, std::string reason); -00247 -00252 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a15">OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00253 -00262 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a16">OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00263 -00268 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a17">OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest); -00269 -00275 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a18">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); -00276 -00285 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a19">OnUserPreMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text); -00286 -00298 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a20">OnUserPreNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text); -00299 -00307 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a21">OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newnick); -00308 -00316 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a22">OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string oldnick); -00317 -00339 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a23">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); -00340 -00346 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a24">OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00347 -00353 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a25">OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); +00245 <span class="keyword">virtual</span> <a class="code" href="classModule.html#a1">~Module</a>(); +00246 +00251 <span class="keyword">virtual</span> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#a2">GetVersion</a>(); +00252 +00256 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a3">OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00257 +00263 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a4">OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00264 +00270 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a5">OnUserDisconnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00271 +00276 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a6">OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); +00277 +00282 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a7">OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); +00283 +00289 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a8">OnPacketTransmit</a>(std::string &data, std::string serv); +00290 +00297 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a9">OnPacketReceive</a>(std::string &data, std::string serv); +00298 +00304 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a10">OnRehash</a>(); +00305 +00314 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a11">OnServerRaw</a>(std::string &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user); +00315 +00325 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a12">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#a32">string_list</a> &params); +00326 +00340 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a13">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); +00341 +00347 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a14">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, std::string reason); +00348 +00353 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a15">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, std::string reason); 00354 -00358 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a26">On005Numeric</a>(std::string &output); -00359 -00369 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a27">OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, std::string reason); -00370 -00381 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a28">OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,std::string name); -00382 -00388 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a29">OnBackgroundTimer</a>(time_t curtime); -00389 -00397 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a30">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); -00398 -00409 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a31">OnPreCommand</a>(std::string command, <span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); -00410 -00419 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classModule.html#a32">OnCheckReady</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00420 -00428 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a33">OnUserRegister</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00429 -00435 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a34">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, std::string param, <span class="keywordtype">bool</span> adding, <span class="keywordtype">int</span> pcnt); -00436 -00442 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a35">OnCheckInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); -00443 -00450 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a36">OnCheckKey</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, std::string keygiven); -00451 -00457 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a37">OnCheckLimit</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); -00458 -00464 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a38">OnCheckBan</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); -00465 -00469 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a39">OnStats</a>(<span class="keywordtype">char</span> symbol); -00470 -00474 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a40">OnChangeLocalUserHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newhost); -00475 -00479 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a41">OnChangeLocalUserGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newhost); -00480 -00484 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a42">OnLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, std::string topic); -00485 -00496 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a43">OnMeshToken</a>(<span class="keywordtype">char</span> token,<a class="code" href="modules_8h.html#a32">string_list</a> params,<a class="code" href="classserverrec.html">serverrec</a>* source,<a class="code" href="classserverrec.html">serverrec</a>* reply, std::string tcp_host,std::string ipaddr,<span class="keywordtype">int</span> port); -00497 }; -00498 -00499 -<a name="l00505"></a><a class="code" href="classServer.html">00505</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> -00506 { -00507 <span class="keyword">public</span>: -00511 <a class="code" href="classServer.html#a0">Server</a>(); -00515 <span class="keyword">virtual</span> <a class="code" href="classServer.html#a1">~Server</a>(); -00516 -00520 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">SendOpers</a>(std::string s); -00525 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Log</a>(<span class="keywordtype">int</span> level, std::string s); -00530 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Send</a>(<span class="keywordtype">int</span> Socket, std::string s); -00535 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">SendServ</a>(<span class="keywordtype">int</span> Socket, std::string s); -00540 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, std::string s); -00555 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, std::string s); -00562 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, std::string s,<span class="keywordtype">bool</span> IncludeSender); -00567 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2); -00575 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text,<span class="keywordtype">bool</span> IncludeSender); -00580 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text); -00581 -00585 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">IsNick</a>(std::string nick); -00589 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classServer.html#a13">CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c); -00593 <span class="keyword">virtual</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a14">FindNick</a>(std::string nick); -00597 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a15">FindChannel</a>(std::string channel); -00602 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a16">ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); -00606 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a17">IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); -00609 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a18">GetServerName</a>(); -00612 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a19">GetNetworkName</a>(); -00618 <span class="keyword">virtual</span> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a20">GetAdmin</a>(); -00637 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a21">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); +00359 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a16">OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00360 +00369 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a17">OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00370 +00375 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a18">OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest); +00376 +00382 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a19">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); +00383 +00392 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a20">OnUserPreMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text); +00393 +00405 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a21">OnUserPreNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text); +00406 +00414 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a22">OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newnick); +00415 +00423 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a23">OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string oldnick); +00424 +00446 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a24">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); +00447 +00453 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a25">OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00454 +00460 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a26">OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); +00461 +00465 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a27">On005Numeric</a>(std::string &output); +00466 +00476 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a28">OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, std::string reason); +00477 +00488 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a29">OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,std::string name); +00489 +00495 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a30">OnBackgroundTimer</a>(time_t curtime); +00496 +00504 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a31">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); +00505 +00516 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a32">OnPreCommand</a>(std::string command, <span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); +00517 +00526 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classModule.html#a33">OnCheckReady</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00527 +00535 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a34">OnUserRegister</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00536 +00542 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a35">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, std::string param, <span class="keywordtype">bool</span> adding, <span class="keywordtype">int</span> pcnt); +00543 +00549 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a36">OnCheckInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); +00550 +00557 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a37">OnCheckKey</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, std::string keygiven); +00558 +00564 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a38">OnCheckLimit</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); +00565 +00571 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a39">OnCheckBan</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan); +00572 +00576 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a40">OnStats</a>(<span class="keywordtype">char</span> symbol); +00577 +00581 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a41">OnChangeLocalUserHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newhost); +00582 +00586 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a42">OnChangeLocalUserGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newhost); +00587 +00591 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a43">OnLocalTopicChange</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, std::string topic); +00592 +00603 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a44">OnMeshToken</a>(<span class="keywordtype">char</span> token,<a class="code" href="modules_8h.html#a32">string_list</a> params,<a class="code" href="classserverrec.html">serverrec</a>* source,<a class="code" href="classserverrec.html">serverrec</a>* reply, std::string tcp_host,std::string ipaddr,<span class="keywordtype">int</span> port); +00604 +00610 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a45">OnEvent</a>(<a class="code" href="classEvent.html">Event</a>* event); +00611 +00618 <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="classModule.html#a46">OnRequest</a>(<a class="code" href="classRequest.html">Request</a>* request); +00619 }; +00620 +00621 +<a name="l00627"></a><a class="code" href="classServer.html">00627</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> +00628 { +00629 <span class="keyword">public</span>: +00633 <a class="code" href="classServer.html#a0">Server</a>(); +00637 <span class="keyword">virtual</span> <a class="code" href="classServer.html#a1">~Server</a>(); 00638 -00660 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a22">AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar); -00661 -00679 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">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); -00680 -00702 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); -00703 -00716 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a25">SendToModeMask</a>(std::string modes, <span class="keywordtype">int</span> flags, std::string text); -00717 -00723 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a26">JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string key); -00724 -00730 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a27">PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string reason); -00731 -00737 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a28">ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string nickname); -00738 -00749 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a29">QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string reason); -00750 -00755 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a30">MatchText</a>(std::string sliteral, std::string spattern); -00756 -00768 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a31">CallCommandHandler</a>(std::string commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); -00769 -00775 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a32">ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string host); -00776 -00782 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a33">ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string gecos); -00783 -00792 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a34">IsUlined</a>(std::string server); -00793 -00797 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a33">chanuserlist</a> <a class="code" href="classServer.html#a35">GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); -00798 -00805 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a36">UserToPseudo</a>(<a class="code" href="classuserrec.html">userrec</a>* user,std::string message); -00806 -00813 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a37">PseudoToUser</a>(<a class="code" href="classuserrec.html">userrec</a>* alive,<a class="code" href="classuserrec.html">userrec</a>* zombie,std::string message); -00814 -00822 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a38">AddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string hostmask); -00823 -00831 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a39">AddQLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string nickname); -00832 -00840 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a40">AddZLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string ipaddr); -00841 -00849 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a41">AddKLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string hostmask); -00850 -00858 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a42">AddELine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string hostmask); -00859 -00862 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a43">DelGLine</a>(std::string hostmask); -00863 -00866 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a44">DelQLine</a>(std::string nickname); -00867 -00870 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a45">DelZLine</a>(std::string ipaddr); -00871 -00874 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a46">DelKLine</a>(std::string hostmask); -00875 -00878 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a47">DelELine</a>(std::string hostmask); -00879 -00885 <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classServer.html#a48">CalcDuration</a>(std::string <a class="code" href="commands_8h.html#a75">duration</a>); -00886 -00889 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a49">IsValidMask</a>(std::string mask); -00890 -00895 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a50">MeshSendAll</a>(std::string text); -00896 -00903 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a51">MeshSendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string text); -00904 -00907 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a52">MeshSendAllAlive</a>(std::string text); -00908 -00912 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a53">MeshSendUnicast</a>(std::string destination, std::string text); -00913 -00918 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a54">MeshSendAllExcept</a>(std::string target, std::string text); -00919 -00923 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a55">MeshCheckChan</a>(<a class="code" href="classchanrec.html">chanrec</a> *c,std::string servername); -00924 -00928 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a56">MeshCheckCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* u,std::string servername); -00929 }; -00930 -00931 -<a name="l00932"></a><a class="code" href="modules_8h.html#a27">00932</a> <span class="preprocessor">#define CONF_NOT_A_NUMBER 0x000010</span> -<a name="l00933"></a><a class="code" href="modules_8h.html#a28">00933</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_NOT_UNSIGNED 0x000080</span> -<a name="l00934"></a><a class="code" href="modules_8h.html#a29">00934</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_VALUE_NOT_FOUND 0x000100</span> -<a name="l00935"></a><a class="code" href="modules_8h.html#a30">00935</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_FILE_NOT_FOUND 0x000200</span> -00936 <span class="preprocessor"></span> -00937 -<a name="l00944"></a><a class="code" href="classConfigReader.html">00944</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> -00945 { -00946 <span class="keyword">protected</span>: -<a name="l00952"></a><a class="code" href="classConfigReader.html#p0">00952</a> std::stringstream *<a class="code" href="classConfigReader.html#p0">cache</a>; -<a name="l00953"></a><a class="code" href="classConfigReader.html#p1">00953</a> std::stringstream *<a class="code" href="classConfigReader.html#p1">errorlog</a>; -<a name="l00956"></a><a class="code" href="classConfigReader.html#p2">00956</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#p2">readerror</a>; -<a name="l00957"></a><a class="code" href="classConfigReader.html#p3">00957</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#p3">error</a>; -00958 -00959 <span class="keyword">public</span>: -00964 <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(); <span class="comment">// default constructor reads ircd.conf</span> -00968 <span class="comment"></span> <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(std::string filename); <span class="comment">// read a module-specific config</span> -00972 <span class="comment"></span> <a class="code" href="classConfigReader.html#a2">~ConfigReader</a>(); -00977 std::string <a class="code" href="classConfigReader.html#a3">ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); -00983 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); -00992 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned); -00997 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">GetError</a>(); -01004 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">Enumerate</a>(std::string tag); -01009 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">Verify</a>(); -01016 <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">DumpErrors</a>(<span class="keywordtype">bool</span> bail,<a class="code" href="classuserrec.html">userrec</a>* user); -01017 -01023 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index); -01024 }; -01025 +00642 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">SendOpers</a>(std::string s); +00647 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Log</a>(<span class="keywordtype">int</span> level, std::string s); +00652 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Send</a>(<span class="keywordtype">int</span> Socket, std::string s); +00657 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">SendServ</a>(<span class="keywordtype">int</span> Socket, std::string s); +00662 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, std::string s); +00677 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, std::string s); +00684 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, std::string s,<span class="keywordtype">bool</span> IncludeSender); +00689 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2); +00697 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text,<span class="keywordtype">bool</span> IncludeSender); +00702 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text); +00703 +00707 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">IsNick</a>(std::string nick); +00711 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classServer.html#a13">CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c); +00715 <span class="keyword">virtual</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a14">FindNick</a>(std::string nick); +00719 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a15">FindChannel</a>(std::string channel); +00724 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a16">ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); +00728 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a17">IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); +00731 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a18">GetServerName</a>(); +00734 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a19">GetNetworkName</a>(); +00740 <span class="keyword">virtual</span> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a20">GetAdmin</a>(); +00759 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a21">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); +00760 +00782 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a22">AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar); +00783 +00801 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">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); +00802 +00824 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); +00825 +00838 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a25">SendToModeMask</a>(std::string modes, <span class="keywordtype">int</span> flags, std::string text); +00839 +00845 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a26">JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string key); +00846 +00852 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a27">PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string reason); +00853 +00859 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a28">ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string nickname); +00860 +00871 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a29">QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string reason); +00872 +00877 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a30">MatchText</a>(std::string sliteral, std::string spattern); +00878 +00890 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a31">CallCommandHandler</a>(std::string commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); +00891 +00897 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a32">ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string host); +00898 +00904 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a33">ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string gecos); +00905 +00914 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a34">IsUlined</a>(std::string server); +00915 +00919 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a33">chanuserlist</a> <a class="code" href="classServer.html#a35">GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); +00920 +00927 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a36">UserToPseudo</a>(<a class="code" href="classuserrec.html">userrec</a>* user,std::string message); +00928 +00935 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a37">PseudoToUser</a>(<a class="code" href="classuserrec.html">userrec</a>* alive,<a class="code" href="classuserrec.html">userrec</a>* zombie,std::string message); +00936 +00944 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a38">AddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string hostmask); +00945 +00953 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a39">AddQLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string nickname); +00954 +00962 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a40">AddZLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string ipaddr); +00963 +00971 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a41">AddKLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string hostmask); +00972 +00980 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a42">AddELine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string hostmask); +00981 +00984 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a43">DelGLine</a>(std::string hostmask); +00985 +00988 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a44">DelQLine</a>(std::string nickname); +00989 +00992 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a45">DelZLine</a>(std::string ipaddr); +00993 +00996 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a46">DelKLine</a>(std::string hostmask); +00997 +01000 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a47">DelELine</a>(std::string hostmask); +01001 +01007 <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classServer.html#a48">CalcDuration</a>(std::string <a class="code" href="commands_8h.html#a75">duration</a>); +01008 +01011 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a49">IsValidMask</a>(std::string mask); +01012 +01017 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a50">MeshSendAll</a>(std::string text); +01018 +01025 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a51">MeshSendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string text); 01026 -01027 -<a name="l01033"></a><a class="code" href="classFileReader.html">01033</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> -01034 { -<a name="l01035"></a><a class="code" href="classFileReader.html#r0">01035</a> <a class="code" href="modules_8h.html#a31">file_cache</a> <a class="code" href="classFileReader.html#r0">fc</a>; -01036 <span class="keyword">public</span>: -01041 <a class="code" href="classFileReader.html#a0">FileReader</a>(); -01042 -01048 <a class="code" href="classFileReader.html#a0">FileReader</a>(std::string filename); -01049 -01053 <a class="code" href="classFileReader.html#a2">~FileReader</a>(); -01054 -01060 <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">LoadFile</a>(std::string filename); -01061 -01065 <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">Exists</a>(); -01066 -01071 std::string <a class="code" href="classFileReader.html#a5">GetLine</a>(<span class="keywordtype">int</span> x); -01072 -01078 <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileSize</a>(); -01079 }; -01080 -01081 -<a name="l01088"></a><a class="code" href="classModuleFactory.html">01088</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> -01089 { -01090 <span class="keyword">public</span>: -<a name="l01091"></a><a class="code" href="classModuleFactory.html#a0">01091</a> <a class="code" href="classModuleFactory.html#a0">ModuleFactory</a>() { } -<a name="l01092"></a><a class="code" href="classModuleFactory.html#a1">01092</a> <span class="keyword">virtual</span> <a class="code" href="classModuleFactory.html#a1">~ModuleFactory</a>() { } -01097 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a> * <a class="code" href="classModuleFactory.html#a2">CreateModule</a>() = 0; -01098 }; -01099 -01100 -<a name="l01101"></a><a class="code" href="modules_8h.html#a34">01101</a> <span class="keyword">typedef</span> DLLFactory<ModuleFactory> <a class="code" href="modules_8h.html#a34">ircd_module</a>; -01102 -01103 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:13 2005 for InspIRCd by +01029 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a52">MeshSendAllAlive</a>(std::string text); +01030 +01034 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a53">MeshSendUnicast</a>(std::string destination, std::string text); +01035 +01040 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a54">MeshSendAllExcept</a>(std::string target, std::string text); +01041 +01045 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a55">MeshCheckChan</a>(<a class="code" href="classchanrec.html">chanrec</a> *c,std::string servername); +01046 +01050 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a56">MeshCheckCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* u,std::string servername); +01051 +01056 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a>* <a class="code" href="classServer.html#a57">FindModule</a>(std::string name); +01057 }; +01058 +01059 +<a name="l01060"></a><a class="code" href="modules_8h.html#a27">01060</a> <span class="preprocessor">#define CONF_NOT_A_NUMBER 0x000010</span> +<a name="l01061"></a><a class="code" href="modules_8h.html#a28">01061</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_NOT_UNSIGNED 0x000080</span> +<a name="l01062"></a><a class="code" href="modules_8h.html#a29">01062</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_VALUE_NOT_FOUND 0x000100</span> +<a name="l01063"></a><a class="code" href="modules_8h.html#a30">01063</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_FILE_NOT_FOUND 0x000200</span> +01064 <span class="preprocessor"></span> +01065 +<a name="l01072"></a><a class="code" href="classConfigReader.html">01072</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> +01073 { +01074 <span class="keyword">protected</span>: +<a name="l01080"></a><a class="code" href="classConfigReader.html#p0">01080</a> std::stringstream *<a class="code" href="classConfigReader.html#p0">cache</a>; +<a name="l01081"></a><a class="code" href="classConfigReader.html#p1">01081</a> std::stringstream *<a class="code" href="classConfigReader.html#p1">errorlog</a>; +<a name="l01084"></a><a class="code" href="classConfigReader.html#p2">01084</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#p2">readerror</a>; +<a name="l01085"></a><a class="code" href="classConfigReader.html#p3">01085</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#p3">error</a>; +01086 +01087 <span class="keyword">public</span>: +01092 <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(); <span class="comment">// default constructor reads ircd.conf</span> +01096 <span class="comment"></span> <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(std::string filename); <span class="comment">// read a module-specific config</span> +01100 <span class="comment"></span> <a class="code" href="classConfigReader.html#a2">~ConfigReader</a>(); +01105 std::string <a class="code" href="classConfigReader.html#a3">ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); +01111 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); +01120 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned); +01125 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">GetError</a>(); +01132 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">Enumerate</a>(std::string tag); +01137 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">Verify</a>(); +01144 <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">DumpErrors</a>(<span class="keywordtype">bool</span> bail,<a class="code" href="classuserrec.html">userrec</a>* user); +01145 +01151 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index); +01152 }; +01153 +01154 +01155 +<a name="l01161"></a><a class="code" href="classFileReader.html">01161</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> +01162 { +<a name="l01163"></a><a class="code" href="classFileReader.html#r0">01163</a> <a class="code" href="modules_8h.html#a31">file_cache</a> <a class="code" href="classFileReader.html#r0">fc</a>; +01164 <span class="keyword">public</span>: +01169 <a class="code" href="classFileReader.html#a0">FileReader</a>(); +01170 +01176 <a class="code" href="classFileReader.html#a0">FileReader</a>(std::string filename); +01177 +01181 <a class="code" href="classFileReader.html#a2">~FileReader</a>(); +01182 +01188 <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">LoadFile</a>(std::string filename); +01189 +01193 <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">Exists</a>(); +01194 +01199 std::string <a class="code" href="classFileReader.html#a5">GetLine</a>(<span class="keywordtype">int</span> x); +01200 +01206 <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileSize</a>(); +01207 }; +01208 +01209 +<a name="l01216"></a><a class="code" href="classModuleFactory.html">01216</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> +01217 { +01218 <span class="keyword">public</span>: +<a name="l01219"></a><a class="code" href="classModuleFactory.html#a0">01219</a> <a class="code" href="classModuleFactory.html#a0">ModuleFactory</a>() { } +<a name="l01220"></a><a class="code" href="classModuleFactory.html#a1">01220</a> <span class="keyword">virtual</span> <a class="code" href="classModuleFactory.html#a1">~ModuleFactory</a>() { } +01225 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a> * <a class="code" href="classModuleFactory.html#a2">CreateModule</a>() = 0; +01226 }; +01227 +01228 +<a name="l01229"></a><a class="code" href="modules_8h.html#a34">01229</a> <span class="keyword">typedef</span> DLLFactory<ModuleFactory> <a class="code" href="modules_8h.html#a34">ircd_module</a>; +01230 +01231 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 7e9f36f86..5c8d5320e 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -22,6 +22,9 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="classConfigReader.html">ConfigReader</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file. </em> <a href="classConfigReader.html#_details">More...</a><em><br><br></td></tr> +<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. </em> <a href="classEvent.html#_details">More...</a><em><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="classFileReader.html">FileReader</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Caches a text file into memory and can be used to retrieve lines from it. </em> <a href="classFileReader.html#_details">More...</a><em><br><br></td></tr> @@ -31,6 +34,12 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="classModuleFactory.html">ModuleFactory</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Instantiates classes inherited from <a class="el" href="classModule.html">Module</a> This class creates a class inherited from type <a class="el" href="classModule.html">Module</a>, using new. </em> <a href="classModuleFactory.html#_details">More...</a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="classModuleMessage.html">ModuleMessage</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The ModuleMessage class is the base class of <a class="el" href="classRequest.html">Request</a> and <a class="el" href="classEvent.html">Event</a> This class is used to represent a basic data structure which is passed between modules for safe inter-module communications. </em> <a href="classModuleMessage.html#_details">More...</a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="classRequest.html">Request</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">The Request class is a unicast message directed at a given module. </em> <a href="classRequest.html#_details">More...</a><em><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html">Server</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">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. </em> <a href="classServer.html#_details">More...</a><em><br><br></td></tr> @@ -381,7 +390,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00039">39</a> of <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#l00327">Module::OnAccessCheck()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00383">Module::OnAccessCheck()</a>. </td> </tr> </table> <a name="a9" doxytag="modules.h::ACR_DENY"></a><p> @@ -429,9 +438,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#l00935">935</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#l01063">1063</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#l00762">ConfigReader::ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00833">ConfigReader::ConfigReader()</a>. </td> </tr> </table> <a name="a27" doxytag="modules.h::CONF_NOT_A_NUMBER"></a><p> @@ -455,9 +464,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00762">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00932">932</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#l01060">1060</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#l00823">ConfigReader::ReadInteger()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00894">ConfigReader::ReadInteger()</a>. </td> </tr> </table> <a name="a28" doxytag="modules.h::CONF_NOT_UNSIGNED"></a><p> @@ -481,9 +490,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00823">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00933">933</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#l01061">1061</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#l00823">ConfigReader::ReadInteger()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00894">ConfigReader::ReadInteger()</a>. </td> </tr> </table> <a name="a29" doxytag="modules.h::CONF_VALUE_NOT_FOUND"></a><p> @@ -507,9 +516,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00823">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00934">934</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#l01062">1062</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#l00806">ConfigReader::ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00823">ConfigReader::ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00790">ConfigReader::ReadValue()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00877">ConfigReader::ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00894">ConfigReader::ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00861">ConfigReader::ReadValue()</a>. </td> </tr> </table> <a name="a0" doxytag="modules.h::DEBUG"></a><p> @@ -535,7 +544,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00806">ConfigReader: <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#l00561">Server::AddExtendedMode()</a>, <a class="el" href="users_8cpp-source.html#l00114">userrec::HasPermission()</a>, <a class="el" href="channels_8cpp-source.html#l00180">chanrec::IsCustomModeSet()</a>, <a class="el" href="modules_8cpp-source.html#l00209">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00235">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00222">ModeIsListMode()</a>, <a class="el" href="users_8cpp-source.html#l00092">userrec::RemoveInvite()</a>, <a class="el" href="channels_8cpp-source.html#l00124">chanrec::SetCustomMode()</a>, and <a class="el" href="channels_8cpp-source.html#l00149">chanrec::SetCustomModeParam()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00620">Server::AddExtendedMode()</a>, <a class="el" href="users_8cpp-source.html#l00114">userrec::HasPermission()</a>, <a class="el" href="channels_8cpp-source.html#l00180">chanrec::IsCustomModeSet()</a>, <a class="el" href="modules_8cpp-source.html#l00211">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00237">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00224">ModeIsListMode()</a>, <a class="el" href="users_8cpp-source.html#l00092">userrec::RemoveInvite()</a>, <a class="el" href="channels_8cpp-source.html#l00124">chanrec::SetCustomMode()</a>, and <a class="el" href="channels_8cpp-source.html#l00149">chanrec::SetCustomModeParam()</a>. </td> </tr> </table> <a name="a2" doxytag="modules.h::DEFAULT"></a><p> @@ -585,7 +594,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#l00099">99</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#l00604">Server::PseudoToUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00595">Server::UserToPseudo()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00663">Server::PseudoToUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00654">Server::UserToPseudo()</a>. </td> </tr> </table> <a name="a24" doxytag="modules.h::FOREACH_MOD"></a><p> @@ -609,7 +618,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00604">Server::Pseud <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00079">79</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#l00079">79</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#l00349">Event::Send()</a>. </td> </tr> </table> <a name="a25" doxytag="modules.h::FOREACH_RESULT"></a><p> @@ -673,7 +684,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00087">87</a> of <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#l00581">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00285">ModeMakeList()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00640">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00287">ModeMakeList()</a>. </td> </tr> </table> <a name="a6" doxytag="modules.h::MT_CLIENT"></a><p> @@ -699,7 +710,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00581">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#l00561">Server::AddExtendedMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00620">Server::AddExtendedMode()</a>. </td> </tr> </table> <a name="a7" doxytag="modules.h::MT_SERVER"></a><p> @@ -725,7 +736,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00561">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#l00561">Server::AddExtendedMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00620">Server::AddExtendedMode()</a>. </td> </tr> </table> <a name="a4" doxytag="modules.h::NONE"></a><p> @@ -895,7 +906,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00053">53</a> of <p> Definition at line <a class="el" href="modules_8h-source.html#l00054">54</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#l00318">Module::GetVersion()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00374">Module::GetVersion()</a>. </td> </tr> </table> <hr><h2>Typedef Documentation</h2> @@ -924,7 +935,7 @@ Holds a list of users in a channel. <p> Definition at line <a class="el" href="modules_8h-source.html#l00072">72</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#l00391">Server::GetUsers()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00450">Server::GetUsers()</a>. </td> </tr> </table> <a name="a31" doxytag="modules.h::file_cache"></a><p> @@ -952,7 +963,7 @@ Low level definition of a <a class="el" href="classFileReader.html">FileReader</ <p> Definition at line <a class="el" href="modules_8h-source.html#l00067">67</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#l00908">FileReader::FileReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00919">FileReader::LoadFile()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00979">FileReader::FileReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00990">FileReader::LoadFile()</a>. </td> </tr> </table> <a name="a34" doxytag="modules.h::ircd_module"></a><p> @@ -976,7 +987,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00908">FileReader::F <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l01101">1101</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#l01229">1229</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a name="a32" doxytag="modules.h::string_list"></a><p> @@ -1002,7 +1013,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l01101">1101</a> o <p> Definition at line <a class="el" href="modules_8h-source.html#l00068">68</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#l00329">Module::OnChannelSync()</a>, and <a class="el" href="modules_8cpp-source.html#l00328">Module::OnUserSync()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00385">Module::OnChannelSync()</a>, and <a class="el" href="modules_8cpp-source.html#l00384">Module::OnUserSync()</a>. </td> </tr> </table> <hr><h2>Function Documentation</h2> @@ -1061,7 +1072,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00329">Module::OnCha <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00436">Server::AddCommand()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00495">Server::AddCommand()</a>. </td> </tr> </table> <a name="a36" doxytag="modules.h::server_mode"></a><p> @@ -1107,10 +1118,10 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00436">Server::AddCo <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00441">Server::SendMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00500">Server::SendMode()</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index e8863f355..8fdcf1610 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_1nspace_1_1hash_3_01string_01_4.html">nspace.hash< string ></a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:23 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index 85c2adf01..cc0f1f44a 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -9,7 +9,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 Sat Apr 16 18:57:23 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index 698ca2e87..bd2cb6d21 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 Sat Apr 16 18:57:24 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index 8bdeadc4f..77ca68d38 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -63,7 +63,7 @@ 00056 strlcpy(<a class="code" href="classserverrec.html#o9">nickserv</a>,<span class="stringliteral">""</span>,NICKMAX); 00057 } 00058 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index 374fc499a..6d0638576 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -44,7 +44,7 @@ Definition at line <a class="el" href="servers_8cpp-source.html#l00024">24</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index 8e892c687..06f6fe503 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -61,7 +61,7 @@ 00082 00083 <span class="preprocessor">#endif</span> 00084 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index e310b8721..9ef99c3e3 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -72,7 +72,7 @@ Definition at line <a class="el" href="servers_8h-source.html#l00025">25</a> of Definition at line <a class="el" href="servers_8h-source.html#l00026">26</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structInAddr__HashComp-members.html b/docs/module-doc/structInAddr__HashComp-members.html index 016370330..ffde1c222 100644 --- a/docs/module-doc/structInAddr__HashComp-members.html +++ b/docs/module-doc/structInAddr__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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>InAddr_HashComp Member List</h1>This is the complete list of members for <a class="el" href="structInAddr__HashComp.html">InAddr_HashComp</a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structInAddr__HashComp.html#a0">operator()</a>(const in_addr &s1, const in_addr &s2) const</td><td><a class="el" href="structInAddr__HashComp.html">InAddr_HashComp</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structInAddr__HashComp.html b/docs/module-doc/structInAddr__HashComp.html index 6f6972a52..74f550c28 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -49,23 +49,23 @@ <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00159">159</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#l00161">161</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00160 { -00161 size_t q; -00162 size_t p; -00163 -00164 memcpy(&q,&s1,<span class="keyword">sizeof</span>(size_t)); -00165 memcpy(&p,&s2,<span class="keyword">sizeof</span>(size_t)); -00166 -00167 <span class="keywordflow">return</span> (q == p); -00168 } +<div class="fragment"><pre>00162 { +00163 size_t q; +00164 size_t p; +00165 +00166 memcpy(&q,&s1,<span class="keyword">sizeof</span>(size_t)); +00167 memcpy(&p,&s2,<span class="keyword">sizeof</span>(size_t)); +00168 +00169 <span class="keywordflow">return</span> (q == p); +00170 } </pre></div> </td> </tr> </table> <hr>The documentation for this struct 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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structStrHashComp-members.html b/docs/module-doc/structStrHashComp-members.html index 825af5e31..f3666a1c3 100644 --- a/docs/module-doc/structStrHashComp-members.html +++ b/docs/module-doc/structStrHashComp-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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>StrHashComp Member List</h1>This is the complete list of members for <a class="el" href="structStrHashComp.html">StrHashComp</a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structStrHashComp.html#a0">operator()</a>(const string &s1, const string &s2) const</td><td><a class="el" href="structStrHashComp.html">StrHashComp</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:22 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structStrHashComp.html b/docs/module-doc/structStrHashComp.html index cc045dca5..96baff715 100644 --- a/docs/module-doc/structStrHashComp.html +++ b/docs/module-doc/structStrHashComp.html @@ -55,14 +55,16 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00146">146</a> 00148 <span class="keywordtype">char</span> a[MAXBUF],b[MAXBUF]; 00149 strlcpy(a,s1.c_str(),MAXBUF); 00150 strlcpy(b,s2.c_str(),MAXBUF); -00151 <span class="keywordflow">return</span> (strcasecmp(a,b) == 0); -00152 } +00151 strlower(a); +00152 strlower(b); +00153 <span class="keywordflow">return</span> (strcasecmp(a,b) == 0); +00154 } </pre></div> </td> </tr> </table> <hr>The documentation for this struct 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 Sat Apr 16 18:57:22 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index dfcb58734..a82af08e8 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.<table> <tr class="memlist"><td><a class="el" href="structdns__ip4list.html#o0">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#o1">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 Sat Apr 16 18:57:17 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structdns__ip4list.html b/docs/module-doc/structdns__ip4list.html index 6184b5df9..b0db97214 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -66,7 +66,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 Sat Apr 16 18:57:17 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html index 61ef62f88..c5879fc5f 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound 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_1nspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html#a0">operator()</a>(const struct in_addr &a) const</td><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:24 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html index d4fc6f57b..2da3718dd 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html @@ -55,7 +55,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00119">119</a> </table> <hr>The documentation for this struct 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 Sat Apr 16 18:57:24 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html index 84cf7f7c3..feba7abc6 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_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">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound 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_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html#a0">operator()</a>(const string &s) const</td><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:24 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html index 3f485ac23..fce23c8f2 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html @@ -57,7 +57,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00132">132</a> </table> <hr>The documentation for this struct 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 Sat Apr 16 18:57:24 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/tree.html b/docs/module-doc/tree.html index b0f1fcc80..e5b64e514 100644 --- a/docs/module-doc/tree.html +++ b/docs/module-doc/tree.html @@ -143,6 +143,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="classDNS.html" target="basefrm">DNS</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="structdns__ip4list.html" target="basefrm">dns_ip4list</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="classELine.html" target="basefrm">ELine</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="classEvent.html" target="basefrm">Event</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="classExemptItem.html" target="basefrm">ExemptItem</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="classExtensible.html" target="basefrm">Extensible</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="classExtMode.html" target="basefrm">ExtMode</a></p> @@ -157,9 +158,11 @@ <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="classModeParameter.html" target="basefrm">ModeParameter</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="classModule.html" target="basefrm">Module</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="classModuleFactory.html" target="basefrm">ModuleFactory</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="classModuleMessage.html" target="basefrm">ModuleMessage</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="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html" target="basefrm">nspace::hash< in_addr ></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="structnspace_1_1nspace_1_1hash_3_01string_01_4.html" target="basefrm">nspace::hash< string ></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="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="classserverrec.html" target="basefrm">serverrec</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="structStrHashComp.html" target="basefrm">StrHashComp</a></p> @@ -199,11 +202,16 @@ <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="classModeParameter.html" target="basefrm">ModeParameter</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="classModule.html" target="basefrm">Module</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="classModuleFactory.html" target="basefrm">ModuleFactory</a></p> + <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2pnode.png" alt="o" width=16 height=22 onclick="toggleFolder('folder8', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder8', this)"/><a class="el" href="classModuleMessage.html" target="basefrm">ModuleMessage</a></p> + <div id="folder8"> + <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="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classEvent.html" target="basefrm">Event</a></p> + <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="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('folder8', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder8', this)"/><a class="el" href="classXLine.html" target="basefrm">XLine</a></p> - <div id="folder8"> + <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('folder9', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder9', this)"/><a class="el" href="classXLine.html" target="basefrm">XLine</a></p> + <div id="folder9"> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2blank.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="classELine.html" target="basefrm">ELine</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2blank.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="classGLine.html" target="basefrm">GLine</a></p> <p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2blank.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="classKLine.html" target="basefrm">KLine</a></p> @@ -219,8 +227,8 @@ <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="structStrHashComp.html" target="basefrm">StrHashComp</a></p> </div> <p><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="functions.html" target="basefrm">Compound Members</a></p> - <p><img src="ftv2pnode.png" alt="o" width=16 height=22 onclick="toggleFolder('folder9', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder9', this)"/><a class="el" href="namespaces.html" target="basefrm">Namespace List</a></p> - <div id="folder9"> + <p><img src="ftv2pnode.png" alt="o" 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="namespaces.html" target="basefrm">Namespace List</a></p> + <div id="folder10"> <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="namespacenspace.html" target="basefrm">nspace</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="namespacestd.html" target="basefrm">std</a></p> </div> diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 7e1dfb83a..dcba28e4f 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -171,7 +171,7 @@ 00164 } 00165 00166 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index 1024d3c3e..83dbec46c 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -70,7 +70,7 @@ Definition at line <a class="el" href="users_8cpp-source.html#l00024">24</a> of Definition at line <a class="el" href="users_8cpp-source.html#l00026">26</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 807fc9410..f09962a8b 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -126,7 +126,7 @@ 00208 00209 00210 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 7ce45b897..72821c061 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -243,7 +243,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#l00079">79</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 Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index 7fa86c79b..374fbd631 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -123,7 +123,7 @@ 00157 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a28">sync_xlines</a>(<a class="code" href="classserverrec.html">serverrec</a>* serv, <span class="keywordtype">char</span>* tcp_host); 00158 00159 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:14 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index 797024445..515e50d29 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -145,7 +145,7 @@ <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00654">Server::AddELine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00713">Server::AddELine()</a>. </td> </tr> </table> <a name="a1" doxytag="xline.h::add_gline"></a><p> @@ -197,7 +197,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00654">Server::AddEL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00634">Server::AddGLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00693">Server::AddGLine()</a>. </td> </tr> </table> <a name="a4" doxytag="xline.h::add_kline"></a><p> @@ -249,7 +249,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00634">Server::AddGL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00649">Server::AddKLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00708">Server::AddKLine()</a>. </td> </tr> </table> <a name="a2" doxytag="xline.h::add_qline"></a><p> @@ -301,7 +301,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00649">Server::AddKL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00639">Server::AddQLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00698">Server::AddQLine()</a>. </td> </tr> </table> <a name="a3" doxytag="xline.h::add_zline"></a><p> @@ -353,7 +353,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00639">Server::AddQL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00644">Server::AddZLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00703">Server::AddZLine()</a>. </td> </tr> </table> <a name="a17" doxytag="xline.h::apply_lines"></a><p> @@ -412,7 +412,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00644">Server::AddZL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00679">Server::DelELine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00738">Server::DelELine()</a>. </td> </tr> </table> <a name="a6" doxytag="xline.h::del_gline"></a><p> @@ -443,7 +443,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00679">Server::DelEL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00659">Server::DelGLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00718">Server::DelGLine()</a>. </td> </tr> </table> <a name="a9" doxytag="xline.h::del_kline"></a><p> @@ -474,7 +474,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00659">Server::DelGL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00674">Server::DelKLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00733">Server::DelKLine()</a>. </td> </tr> </table> <a name="a7" doxytag="xline.h::del_qline"></a><p> @@ -505,7 +505,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00674">Server::DelKL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00664">Server::DelQLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00723">Server::DelQLine()</a>. </td> </tr> </table> <a name="a8" doxytag="xline.h::del_zline"></a><p> @@ -536,7 +536,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00664">Server::DelQL <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00669">Server::DelZLine()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00728">Server::DelZLine()</a>. </td> </tr> </table> <a name="a16" doxytag="xline.h::expire_lines"></a><p> @@ -1095,7 +1095,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00669">Server::DelZL </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 16 18:57:15 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> |