From 88dd74fc84b574f17673338c6d42123570f464da Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 12 May 2005 23:06:51 +0000 Subject: Added docs for new smaller memory footprint classes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1371 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/man/man3/Admin.3 | 4 +- docs/man/man3/BanItem.3 | 2 +- docs/man/man3/ConfigReader.3 | 262 +-- docs/man/man3/ConnectClass.3 | 8 +- docs/man/man3/ELine.3 | 4 +- docs/man/man3/Event.3 | 38 +- docs/man/man3/ExemptItem.3 | 2 +- docs/man/man3/ExtMode.3 | 16 +- docs/man/man3/FileReader.3 | 78 +- docs/man/man3/GLine.3 | 4 +- docs/man/man3/HostItem.3 | 16 +- docs/man/man3/InviteItem.3 | 2 +- docs/man/man3/KLine.3 | 4 +- docs/man/man3/ModeParameter.3 | 8 +- docs/man/man3/Module.3 | 224 +-- docs/man/man3/QLine.3 | 4 +- docs/man/man3/Request.3 | 50 +- docs/man/man3/Server.3 | 754 ++++----- docs/man/man3/Version.3 | 4 +- docs/man/man3/WhoWasUser.3 | 67 + docs/man/man3/XLine.3 | 4 +- docs/man/man3/ZLine.3 | 4 +- docs/man/man3/channels.cpp.3 | 2 +- docs/man/man3/channels.h.3 | 52 +- docs/man/man3/chanrec.3 | 174 +- docs/man/man3/connection.3 | 68 +- docs/man/man3/ircd_connector.3 | 4 +- docs/man/man3/modules.cpp.3 | 184 ++- docs/man/man3/ucrec.3 | 18 +- docs/man/man3/userrec.3 | 455 +++-- docs/man/man3/users.h.3 | 4 + docs/module-doc/annotated.html | 3 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/channels_8cpp-source.html | 80 +- docs/module-doc/channels_8cpp.html | 14 +- docs/module-doc/channels_8h-source.html | 239 ++- docs/module-doc/channels_8h.html | 218 ++- docs/module-doc/classAdmin-members.html | 2 +- docs/module-doc/classAdmin.html | 6 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 4 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 272 +-- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 10 +- docs/module-doc/classDNS-members.html | 2 +- docs/module-doc/classDNS.html | 2 +- docs/module-doc/classELine-members.html | 2 +- docs/module-doc/classELine.html | 6 +- docs/module-doc/classEvent-members.html | 2 +- docs/module-doc/classEvent.html | 46 +- docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 4 +- docs/module-doc/classExtMode-members.html | 2 +- docs/module-doc/classExtMode.html | 30 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 2 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 82 +- docs/module-doc/classGLine-members.html | 2 +- docs/module-doc/classGLine.html | 6 +- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 18 +- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 4 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 4 +- docs/module-doc/classKLine-members.html | 2 +- docs/module-doc/classKLine.html | 6 +- docs/module-doc/classModeParameter-members.html | 2 +- docs/module-doc/classModeParameter.html | 10 +- docs/module-doc/classModule-members.html | 2 +- docs/module-doc/classModule.html | 228 +-- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 2 +- docs/module-doc/classModuleMessage-members.html | 2 +- docs/module-doc/classModuleMessage.html | 2 +- docs/module-doc/classQLine-members.html | 2 +- docs/module-doc/classQLine.html | 6 +- docs/module-doc/classRequest-members.html | 2 +- docs/module-doc/classRequest.html | 60 +- docs/module-doc/classServer-members.html | 2 +- docs/module-doc/classServer.html | 790 ++++----- docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 6 +- docs/module-doc/classWhoWasUser-members.html | 21 + docs/module-doc/classWhoWasUser.html | 212 +++ docs/module-doc/classXLine-members.html | 2 +- docs/module-doc/classXLine.html | 6 +- docs/module-doc/classZLine-members.html | 2 +- docs/module-doc/classZLine.html | 6 +- docs/module-doc/classchanrec-members.html | 40 +- docs/module-doc/classchanrec.html | 490 ++---- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 2 +- docs/module-doc/classcommand__t-members.html | 2 +- docs/module-doc/classcommand__t.html | 2 +- docs/module-doc/classconnection-members.html | 30 +- docs/module-doc/classconnection.html | 262 +-- docs/module-doc/classes.html | 27 +- docs/module-doc/classircd__connector-members.html | 2 +- docs/module-doc/classircd__connector.html | 6 +- docs/module-doc/classserverrec-members.html | 30 +- docs/module-doc/classserverrec.html | 14 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 22 +- docs/module-doc/classuserrec-members.html | 30 +- docs/module-doc/classuserrec.html | 503 +++--- docs/module-doc/commands_8h-source.html | 2 +- docs/module-doc/commands_8h.html | 6 +- docs/module-doc/connection_8h-source.html | 86 +- docs/module-doc/connection_8h.html | 2 +- docs/module-doc/ctables_8h-source.html | 2 +- docs/module-doc/ctables_8h.html | 2 +- docs/module-doc/dns_8h-source.html | 2 +- docs/module-doc/dns_8h.html | 2 +- docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 105 +- docs/module-doc/functions_func.html | 20 +- docs/module-doc/functions_vars.html | 77 +- docs/module-doc/globals.html | 65 +- docs/module-doc/globals_defs.html | 20 +- docs/module-doc/globals_func.html | 20 +- docs/module-doc/globals_type.html | 17 +- docs/module-doc/globals_vars.html | 22 +- docs/module-doc/hierarchy.html | 3 +- docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 2 +- docs/module-doc/message_8h.html | 14 +- docs/module-doc/mode_8h-source.html | 2 +- docs/module-doc/mode_8h.html | 2 +- docs/module-doc/modules_8cpp-source.html | 1737 ++++++++++---------- docs/module-doc/modules_8cpp.html | 332 ++-- docs/module-doc/modules_8h-source.html | 2 +- docs/module-doc/modules_8h.html | 36 +- docs/module-doc/namespacenspace.html | 2 +- docs/module-doc/namespaces.html | 2 +- docs/module-doc/namespacestd.html | 2 +- docs/module-doc/servers_8cpp-source.html | 10 +- docs/module-doc/servers_8cpp.html | 2 +- docs/module-doc/servers_8h-source.html | 2 +- docs/module-doc/servers_8h.html | 2 +- .../module-doc/structInAddr__HashComp-members.html | 2 +- docs/module-doc/structInAddr__HashComp.html | 2 +- docs/module-doc/structStrHashComp-members.html | 2 +- docs/module-doc/structStrHashComp.html | 2 +- docs/module-doc/structdns__ip4list-members.html | 2 +- docs/module-doc/structdns__ip4list.html | 2 +- ..._1nspace_1_1hash_3_01in__addr_01_4-members.html | 2 +- ...nspace_1_1nspace_1_1hash_3_01in__addr_01_4.html | 2 +- ..._1_1nspace_1_1hash_3_01string_01_4-members.html | 2 +- ...ctnspace_1_1nspace_1_1hash_3_01string_01_4.html | 2 +- docs/module-doc/tree.html | 4 +- docs/module-doc/users_8cpp-source.html | 467 +++--- docs/module-doc/users_8cpp.html | 2 +- docs/module-doc/users_8h-source.html | 31 +- docs/module-doc/users_8h.html | 5 +- docs/module-doc/xline_8h-source.html | 14 +- docs/module-doc/xline_8h.html | 22 +- 160 files changed, 4811 insertions(+), 4807 deletions(-) create mode 100644 docs/man/man3/WhoWasUser.3 create mode 100644 docs/module-doc/classWhoWasUser-members.html create mode 100644 docs/module-doc/classWhoWasUser.html diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3 index b9b9f25c6..1cf858686 100644 --- a/docs/man/man3/Admin.3 +++ b/docs/man/man3/Admin.3 @@ -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 313 of file modules.cpp. +Definition at line 314 of file modules.cpp. .PP .nf -313 : Name(name), Email(email), Nick(nick) { }; +314 : 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 79b82b66d..b65c53595 100644 --- a/docs/man/man3/BanItem.3 +++ b/docs/man/man3/BanItem.3 @@ -14,7 +14,7 @@ Inherits \fBHostItem\fP. .PP .SH "Detailed Description" .PP -A subclass of \fBHostItem\fP designed to hold channel bans (+b). Definition at line 45 of file channels.h. +A subclass of \fBHostItem\fP designed to hold channel bans (+b). Definition at line 52 of file channels.h. .SH "Author" .PP diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3 index 6d130dd79..b9050548f 100644 --- a/docs/man/man3/ConfigReader.3 +++ b/docs/man/man3/ConfigReader.3 @@ -89,213 +89,213 @@ Definition at line 1147 of file modules.h. .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 869 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 870 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -870 { -871 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -872 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -873 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -874 if (!this->readerror) -875 this->error = CONF_FILE_NOT_FOUND; -876 } +871 { +872 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +873 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +874 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +875 if (!this->readerror) +876 this->error = CONF_FILE_NOT_FOUND; +877 } .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 888 of file modules.cpp. +Overloaded constructor. This constructor initialises the ConfigReader class to read a user-specified config fileDefinition at line 889 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -889 { -890 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -891 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -892 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -893 if (!this->readerror) -894 this->error = CONF_FILE_NOT_FOUND; -895 }; +890 { +891 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +892 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +893 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +894 if (!this->readerror) +895 this->error = CONF_FILE_NOT_FOUND; +896 }; .fi .SS "ConfigReader::~\fBConfigReader\fP ()" .PP -Default destructor. This method destroys the ConfigReader class.Definition at line 879 of file modules.cpp. +Default destructor. This method destroys the ConfigReader class.Definition at line 880 of file modules.cpp. .PP References cache, and errorlog. .PP .nf -880 { -881 if (this->cache) -882 delete this->cache; -883 if (this->errorlog) -884 delete this->errorlog; -885 } +881 { +882 if (this->cache) +883 delete this->cache; +884 if (this->errorlog) +885 delete this->errorlog; +886 } .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 966 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 967 of file modules.cpp. .PP References errorlog, connection::fd, and userrec::nick. .PP .nf -967 { -968 if (bail) -969 { -970 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); -971 exit(0); -972 } -973 else -974 { -975 char dataline[1024]; -976 if (user) -977 { -978 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); -979 while (!errorlog->eof()) -980 { -981 errorlog->getline(dataline,1024); -982 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); -983 } -984 } -985 else -986 { -987 WriteOpers('There were errors in the configuration file:',user->nick); -988 while (!errorlog->eof()) -989 { -990 errorlog->getline(dataline,1024); -991 WriteOpers(dataline); -992 } -993 } -994 return; -995 } -996 } +968 { +969 if (bail) +970 { +971 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); +972 exit(0); +973 } +974 else +975 { +976 char dataline[1024]; +977 if (user) +978 { +979 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); +980 while (!errorlog->eof()) +981 { +982 errorlog->getline(dataline,1024); +983 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); +984 } +985 } +986 else +987 { +988 WriteOpers('There were errors in the configuration file:',user->nick); +989 while (!errorlog->eof()) +990 { +991 errorlog->getline(dataline,1024); +992 WriteOpers(dataline); +993 } +994 } +995 return; +996 } +997 } .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 999 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 1000 of file modules.cpp. .PP References cache. .PP .nf -1000 { -1001 return EnumConf(cache,tag.c_str()); -1002 } +1001 { +1002 return EnumConf(cache,tag.c_str()); +1003 } .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 then this function would return 2. Spaces and newlines both qualify as valid seperators between values.Definition at line 1004 of file modules.cpp. +Returns the number of items within a tag. For example if the tag was then this function would return 2. Spaces and newlines both qualify as valid seperators between values.Definition at line 1005 of file modules.cpp. .PP References cache. .PP .nf -1005 { -1006 return EnumValues(cache, tag.c_str(), index); -1007 } +1006 { +1007 return EnumValues(cache, tag.c_str(), index); +1008 } .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 959 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 960 of file modules.cpp. .PP References error. .PP .nf -960 { -961 long olderr = this->error; -962 this->error = 0; -963 return olderr; -964 } +961 { +962 long olderr = this->error; +963 this->error = 0; +964 return olderr; +965 } .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 913 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 914 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -914 { -915 char val[MAXBUF]; -916 char t[MAXBUF]; -917 char n[MAXBUF]; -918 strlcpy(t,tag.c_str(),MAXBUF); -919 strlcpy(n,name.c_str(),MAXBUF); -920 int res = ReadConf(cache,t,n,index,val); -921 if (!res) -922 { -923 this->error = CONF_VALUE_NOT_FOUND; -924 return false; -925 } -926 std::string s = val; -927 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); -928 } +915 { +916 char val[MAXBUF]; +917 char t[MAXBUF]; +918 char n[MAXBUF]; +919 strlcpy(t,tag.c_str(),MAXBUF); +920 strlcpy(n,name.c_str(),MAXBUF); +921 int res = ReadConf(cache,t,n,index,val); +922 if (!res) +923 { +924 this->error = CONF_VALUE_NOT_FOUND; +925 return false; +926 } +927 std::string s = val; +928 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); +929 } .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 930 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 931 of file modules.cpp. .PP References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error. .PP .nf -931 { -932 char val[MAXBUF]; -933 char t[MAXBUF]; -934 char n[MAXBUF]; -935 strlcpy(t,tag.c_str(),MAXBUF); -936 strlcpy(n,name.c_str(),MAXBUF); -937 int res = ReadConf(cache,t,n,index,val); -938 if (!res) -939 { -940 this->error = CONF_VALUE_NOT_FOUND; -941 return 0; -942 } -943 for (int i = 0; i < strlen(val); i++) -944 { -945 if (!isdigit(val[i])) -946 { -947 this->error = CONF_NOT_A_NUMBER; -948 return 0; -949 } -950 } -951 if ((needs_unsigned) && (atoi(val)<0)) -952 { -953 this->error = CONF_NOT_UNSIGNED; -954 return 0; -955 } -956 return atoi(val); -957 } +932 { +933 char val[MAXBUF]; +934 char t[MAXBUF]; +935 char n[MAXBUF]; +936 strlcpy(t,tag.c_str(),MAXBUF); +937 strlcpy(n,name.c_str(),MAXBUF); +938 int res = ReadConf(cache,t,n,index,val); +939 if (!res) +940 { +941 this->error = CONF_VALUE_NOT_FOUND; +942 return 0; +943 } +944 for (int i = 0; i < strlen(val); i++) +945 { +946 if (!isdigit(val[i])) +947 { +948 this->error = CONF_NOT_A_NUMBER; +949 return 0; +950 } +951 } +952 if ((needs_unsigned) && (atoi(val)<0)) +953 { +954 this->error = CONF_NOT_UNSIGNED; +955 return 0; +956 } +957 return atoi(val); +958 } .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 897 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 898 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -898 { -899 char val[MAXBUF]; -900 char t[MAXBUF]; -901 char n[MAXBUF]; -902 strlcpy(t,tag.c_str(),MAXBUF); -903 strlcpy(n,name.c_str(),MAXBUF); -904 int res = ReadConf(cache,t,n,index,val); -905 if (!res) -906 { -907 this->error = CONF_VALUE_NOT_FOUND; -908 return ''; -909 } -910 return val; -911 } +899 { +900 char val[MAXBUF]; +901 char t[MAXBUF]; +902 char n[MAXBUF]; +903 strlcpy(t,tag.c_str(),MAXBUF); +904 strlcpy(n,name.c_str(),MAXBUF); +905 int res = ReadConf(cache,t,n,index,val); +906 if (!res) +907 { +908 this->error = CONF_VALUE_NOT_FOUND; +909 return ''; +910 } +911 return val; +912 } .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 1009 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 1010 of file modules.cpp. .PP References readerror. .PP .nf -1010 { -1011 return this->readerror; -1012 } +1011 { +1012 return this->readerror; +1013 } .fi .SH "Member Data Documentation" .PP diff --git a/docs/man/man3/ConnectClass.3 b/docs/man/man3/ConnectClass.3 index fd38a4afe..404e83a15 100644 --- a/docs/man/man3/ConnectClass.3 +++ b/docs/man/man3/ConnectClass.3 @@ -23,7 +23,7 @@ Inherits \fBclassbase\fP. .in +1c .ti -1c -.RI "int \fBtype\fP" +.RI "char \fBtype\fP" .br .RI "\fIType of line, either CC_ALLOW or CC_DENY. \fP" .ti -1c @@ -47,7 +47,7 @@ Inherits \fBclassbase\fP. .br .RI "\fI(Optional) Password for this line \fP" .ti -1c -.RI "long \fBthreshold\fP" +.RI "int \fBthreshold\fP" .br .RI "\fIThreshold value for flood disconnect. \fP" .ti -1c @@ -119,12 +119,12 @@ Referenced by ConnectClass(). Maximum size of sendq for users in this class (bytes). Definition at line 73 of file users.h. .PP Referenced by ConnectClass(). -.SS "long \fBConnectClass::threshold\fP" +.SS "int \fBConnectClass::threshold\fP" .PP Threshold value for flood disconnect. Definition at line 69 of file users.h. .PP Referenced by ConnectClass(). -.SS "int \fBConnectClass::type\fP" +.SS "char \fBConnectClass::type\fP" .PP Type of line, either CC_ALLOW or CC_DENY. Definition at line 50 of file users.h. diff --git a/docs/man/man3/ELine.3 b/docs/man/man3/ELine.3 index b0cec0b21..52831f67f 100644 --- a/docs/man/man3/ELine.3 +++ b/docs/man/man3/ELine.3 @@ -14,13 +14,13 @@ Inherits \fBXLine\fP. .in +1c .ti -1c -.RI "char \fBhostmask\fP [MAXBUF]" +.RI "char \fBhostmask\fP [200]" .br .RI "\fIHostmask (ident) to match against May contain wildcards. \fP" .in -1c .SH "Member Data Documentation" .PP -.SS "char \fBELine::hostmask\fP[MAXBUF]" +.SS "char \fBELine::hostmask\fP[200]" .PP Hostmask (ident) to match against May contain wildcards. Definition at line 88 of file xline.h. diff --git a/docs/man/man3/Event.3 b/docs/man/man3/Event.3 index 1f24c87ef..94d80a8ba 100644 --- a/docs/man/man3/Event.3 +++ b/docs/man/man3/Event.3 @@ -63,59 +63,59 @@ Definition at line 194 of file modules.h. .PP .SS "Event::Event (char * anydata, \fBModule\fP * src, std::string eventid)" .PP -Create a new Event. Definition at line 344 of file modules.cpp. +Create a new Event. Definition at line 345 of file modules.cpp. .PP .nf -344 : data(anydata), source(src), id(eventid) { }; +345 : data(anydata), source(src), id(eventid) { }; .fi .SH "Member Function Documentation" .PP .SS "char * Event::GetData ()" .PP -Get the Event data. Definition at line 346 of file modules.cpp. +Get the Event data. Definition at line 347 of file modules.cpp. .PP References data. .PP .nf -347 { -348 return this->data; -349 } +348 { +349 return this->data; +350 } .fi .SS "std::string Event::GetEventID ()" .PP -Get the event ID. Use this to determine the event type for safe casting of the data Definition at line 362 of file modules.cpp. +Get the event ID. Use this to determine the event type for safe casting of the data Definition at line 363 of file modules.cpp. .PP References id. .PP .nf -363 { -364 return this->id; -365 } +364 { +365 return this->id; +366 } .fi .SS "\fBModule\fP * Event::GetSource ()" .PP -Get the event Source. Definition at line 351 of file modules.cpp. +Get the event Source. Definition at line 352 of file modules.cpp. .PP References source. .PP .nf -352 { -353 return this->source; -354 } +353 { +354 return this->source; +355 } .fi .SS "char * Event::Send ()\fC [virtual]\fP" .PP Send the Event. The return result of an \fBEvent::Send()\fP will always be NULL as no replies are expected. Implements \fBModuleMessage\fP. .PP -Definition at line 356 of file modules.cpp. +Definition at line 357 of file modules.cpp. .PP References FOREACH_MOD. .PP .nf -357 { -358 FOREACH_MOD OnEvent(this); -359 return NULL; -360 } +358 { +359 FOREACH_MOD OnEvent(this); +360 return NULL; +361 } .fi .SH "Member Data Documentation" .PP diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3 index a0cbb2205..5681bc866 100644 --- a/docs/man/man3/ExemptItem.3 +++ b/docs/man/man3/ExemptItem.3 @@ -14,7 +14,7 @@ Inherits \fBHostItem\fP. .PP .SH "Detailed Description" .PP -A subclass of \fBHostItem\fP designed to hold channel exempts (+e). Definition at line 53 of file channels.h. +A subclass of \fBHostItem\fP designed to hold channel exempts (+e). Definition at line 60 of file channels.h. .SH "Author" .PP diff --git a/docs/man/man3/ExtMode.3 b/docs/man/man3/ExtMode.3 index 7e19955b6..3ab0d8a73 100644 --- a/docs/man/man3/ExtMode.3 +++ b/docs/man/man3/ExtMode.3 @@ -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 211 of file modules.cpp. +Definition at line 212 of file modules.cpp. .PP References modechar, needsoper, params_when_off, params_when_on, and type. .PP .nf -211 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; +212 : 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 210 of file modules.cpp. +Definition at line 211 of file modules.cpp. .SS "char \fBExtMode::modechar\fP" .PP -Definition at line 205 of file modules.cpp. +Definition at line 206 of file modules.cpp. .PP Referenced by ExtMode(). .SS "bool \fBExtMode::needsoper\fP" .PP -Definition at line 209 of file modules.cpp. +Definition at line 210 of file modules.cpp. .PP Referenced by ExtMode(). .SS "int \fBExtMode::params_when_off\fP" .PP -Definition at line 208 of file modules.cpp. +Definition at line 209 of file modules.cpp. .PP Referenced by ExtMode(). .SS "int \fBExtMode::params_when_on\fP" .PP -Definition at line 207 of file modules.cpp. +Definition at line 208 of file modules.cpp. .PP Referenced by ExtMode(). .SS "int \fBExtMode::type\fP" .PP -Definition at line 206 of file modules.cpp. +Definition at line 207 of file modules.cpp. .PP Referenced by ExtMode(). diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3 index cf62c2546..afba66f52 100644 --- a/docs/man/man3/FileReader.3 +++ b/docs/man/man3/FileReader.3 @@ -62,89 +62,89 @@ Definition at line 1236 of file modules.h. .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 1022 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 1023 of file modules.cpp. .PP .nf -1023 { -1024 } +1024 { +1025 } .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 1015 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 1016 of file modules.cpp. .PP References fc, and file_cache. .PP .nf -1016 { -1017 file_cache c; -1018 readfile(c,filename.c_str()); -1019 this->fc = c; -1020 } +1017 { +1018 file_cache c; +1019 readfile(c,filename.c_str()); +1020 this->fc = c; +1021 } .fi .SS "FileReader::~\fBFileReader\fP ()" .PP -Default destructor. This deletes the memory allocated to the file.Definition at line 1034 of file modules.cpp. +Default destructor. This deletes the memory allocated to the file.Definition at line 1035 of file modules.cpp. .PP .nf -1035 { -1036 } +1036 { +1037 } .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 1038 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 1039 of file modules.cpp. .PP References fc. .PP .nf -1039 { -1040 if (fc.size() == 0) -1041 { -1042 return(false); -1043 } -1044 else -1045 { -1046 return(true); -1047 } -1048 } +1040 { +1041 if (fc.size() == 0) +1042 { +1043 return(false); +1044 } +1045 else +1046 { +1047 return(true); +1048 } +1049 } .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 1057 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 1058 of file modules.cpp. .PP References fc. .PP .nf -1058 { -1059 return fc.size(); -1060 } +1059 { +1060 return fc.size(); +1061 } .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 1050 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 1051 of file modules.cpp. .PP References fc. .PP .nf -1051 { -1052 if ((x<0) || (x>fc.size())) -1053 return ''; -1054 return fc[x]; -1055 } +1052 { +1053 if ((x<0) || (x>fc.size())) +1054 return ''; +1055 return fc[x]; +1056 } .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 1026 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 1027 of file modules.cpp. .PP References fc, and file_cache. .PP .nf -1027 { -1028 file_cache c; -1029 readfile(c,filename.c_str()); -1030 this->fc = c; -1031 } +1028 { +1029 file_cache c; +1030 readfile(c,filename.c_str()); +1031 this->fc = c; +1032 } .fi .SH "Member Data Documentation" .PP diff --git a/docs/man/man3/GLine.3 b/docs/man/man3/GLine.3 index 6d305802e..c2930a1cf 100644 --- a/docs/man/man3/GLine.3 +++ b/docs/man/man3/GLine.3 @@ -16,7 +16,7 @@ Inherits \fBXLine\fP. .in +1c .ti -1c -.RI "char \fBhostmask\fP [MAXBUF]" +.RI "char \fBhostmask\fP [200]" .br .RI "\fIHostmask (ident) to match against May contain wildcards. \fP" .in -1c @@ -25,7 +25,7 @@ Inherits \fBXLine\fP. GLine class. Definition at line 73 of file xline.h. .SH "Member Data Documentation" .PP -.SS "char \fBGLine::hostmask\fP[MAXBUF]" +.SS "char \fBGLine::hostmask\fP[200]" .PP Hostmask (ident) to match against May contain wildcards. Definition at line 79 of file xline.h. diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3 index 8add954a4..dbe1958fd 100644 --- a/docs/man/man3/HostItem.3 +++ b/docs/man/man3/HostItem.3 @@ -43,34 +43,34 @@ Holds an entry for a ban list, exemption list, or invite list. This class contains a single element in a channel list, such as a banlist. .PP -Definition at line 29 of file channels.h. +Definition at line 36 of file channels.h. .SH "Constructor & Destructor Documentation" .PP .SS "HostItem::HostItem ()\fC [inline]\fP" .PP -Definition at line 36 of file channels.h. +Definition at line 43 of file channels.h. .PP .nf -36 { /* stub */ } +43 { /* stub */ } .fi .SS "virtual HostItem::~\fBHostItem\fP ()\fC [inline, virtual]\fP" .PP -Definition at line 37 of file channels.h. +Definition at line 44 of file channels.h. .PP .nf -37 { /* stub */ } +44 { /* stub */ } .fi .SH "Member Data Documentation" .PP .SS "char \fBHostItem::data\fP[MAXBUF]" .PP -Definition at line 34 of file channels.h. +Definition at line 41 of file channels.h. .SS "char \fBHostItem::set_by\fP[NICKMAX]" .PP -Definition at line 33 of file channels.h. +Definition at line 40 of file channels.h. .SS "time_t \fBHostItem::set_time\fP" .PP -Definition at line 32 of file channels.h. +Definition at line 39 of file channels.h. .SH "Author" .PP diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3 index 105d7a1b6..0f944e6e4 100644 --- a/docs/man/man3/InviteItem.3 +++ b/docs/man/man3/InviteItem.3 @@ -14,7 +14,7 @@ Inherits \fBHostItem\fP. .PP .SH "Detailed Description" .PP -A subclass of \fBHostItem\fP designed to hold channel invites (+I). Definition at line 61 of file channels.h. +A subclass of \fBHostItem\fP designed to hold channel invites (+I). Definition at line 68 of file channels.h. .SH "Author" .PP diff --git a/docs/man/man3/KLine.3 b/docs/man/man3/KLine.3 index 9c7ef5e29..df1c3c25a 100644 --- a/docs/man/man3/KLine.3 +++ b/docs/man/man3/KLine.3 @@ -16,7 +16,7 @@ Inherits \fBXLine\fP. .in +1c .ti -1c -.RI "char \fBhostmask\fP [MAXBUF]" +.RI "char \fBhostmask\fP [200]" .br .RI "\fIHostmask (ident) to match against May contain wildcards. \fP" .in -1c @@ -25,7 +25,7 @@ Inherits \fBXLine\fP. KLine class. Definition at line 62 of file xline.h. .SH "Member Data Documentation" .PP -.SS "char \fBKLine::hostmask\fP[MAXBUF]" +.SS "char \fBKLine::hostmask\fP[200]" .PP Hostmask (ident) to match against May contain wildcards. Definition at line 68 of file xline.h. diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3 index 89a3a3247..45a29f1eb 100644 --- a/docs/man/man3/ModeParameter.3 +++ b/docs/man/man3/ModeParameter.3 @@ -31,22 +31,22 @@ Holds a custom parameter to a module-defined channel mode e.g. for +L this would hold the channel name. .PP -Definition at line 70 of file channels.h. +Definition at line 77 of file channels.h. .SH "Member Data Documentation" .PP .SS "char \fBModeParameter::channel\fP[CHANMAX]" .PP -Definition at line 75 of file channels.h. +Definition at line 82 of file channels.h. .PP Referenced by chanrec::SetCustomModeParam(). .SS "char \fBModeParameter::mode\fP" .PP -Definition at line 73 of file channels.h. +Definition at line 80 of file channels.h. .PP Referenced by chanrec::SetCustomModeParam(). .SS "char \fBModeParameter::parameter\fP[MAXBUF]" .PP -Definition at line 74 of file channels.h. +Definition at line 81 of file channels.h. .PP Referenced by chanrec::SetCustomModeParam(). diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3 index d83fa9e0f..969711dcb 100644 --- a/docs/man/man3/Module.3 +++ b/docs/man/man3/Module.3 @@ -251,35 +251,35 @@ Definition at line 236 of file modules.h. .PP .SS "Module::Module ()" .PP -Default constructor creates a module class. Definition at line 369 of file modules.cpp. +Default constructor creates a module class. Definition at line 370 of file modules.cpp. .PP .nf -369 { } +370 { } .fi .SS "Module::~\fBModule\fP ()\fC [virtual]\fP" .PP -Default destructor destroys a module class. Definition at line 370 of file modules.cpp. +Default destructor destroys a module class. Definition at line 371 of file modules.cpp. .PP .nf -370 { } +371 { } .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 382 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 383 of file modules.cpp. .PP References VF_VENDOR. .PP .nf -382 { return Version(1,0,0,0,VF_VENDOR); } +383 { 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 394 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 395 of file modules.cpp. .PP .nf -394 { }; +395 { }; .fi .SS "int Module::OnAccessCheck (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel, int access_type)\fC [virtual]\fP" .PP @@ -307,312 +307,312 @@ 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 391 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 392 of file modules.cpp. .PP References ACR_DEFAULT. .PP .nf -391 { return ACR_DEFAULT; }; +392 { return ACR_DEFAULT; }; .fi .SS "int Module::OnAddBan (\fBuserrec\fP * source, \fBchanrec\fP * channel, std::string banmask)\fC [virtual]\fP" .PP -Called whenever a ban is added to a channel's list. Return a non-zero value to 'eat' the mode change and prevent the ban from being added.Definition at line 419 of file modules.cpp. +Called whenever a ban is added to a channel's list. Return a non-zero value to 'eat' the mode change and prevent the ban from being added.Definition at line 420 of file modules.cpp. .PP .nf -419 { return 0; }; +420 { return 0; }; .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 397 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 398 of file modules.cpp. .PP .nf -397 { }; +398 { }; .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 411 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 412 of file modules.cpp. .PP .nf -411 { return 0; }; +412 { 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 410 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 411 of file modules.cpp. .PP .nf -410 { return 0; }; +411 { 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 393 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 394 of file modules.cpp. .PP References string_list. .PP .nf -393 { string_list empty; return empty; } +394 { 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 408 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 409 of file modules.cpp. .PP .nf -408 { return 0; }; +409 { 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 405 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 406 of file modules.cpp. .PP .nf -405 { return 0; }; +406 { 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 406 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 407 of file modules.cpp. .PP .nf -406 { return 0; }; +407 { 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 407 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 408 of file modules.cpp. .PP .nf -407 { return 0; }; +408 { 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 400 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 401 of file modules.cpp. .PP .nf -400 { return true; }; +401 { return true; }; .fi .SS "int Module::OnDelBan (\fBuserrec\fP * source, \fBchanrec\fP * channel, std::string banmask)\fC [virtual]\fP" .PP -Called whenever a ban is removed from a channel's list. Return a non-zero value to 'eat' the mode change and prevent the ban from being removed.Definition at line 420 of file modules.cpp. +Called whenever a ban is removed from a channel's list. Return a non-zero value to 'eat' the mode change and prevent the ban from being removed.Definition at line 421 of file modules.cpp. .PP .nf -420 { return 0; }; +421 { return 0; }; .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 414 of file modules.cpp. +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 415 of file modules.cpp. .PP .nf -414 { return; }; +415 { 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 381 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 382 of file modules.cpp. .PP .nf -381 { return false; } +382 { return false; } .fi .SS "void Module::OnGlobalConnect (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called whenever a user connects, anywhere on the network. This event is informational only. You should not change any user information in this event. To do so, use the OnUserConnect method to change the state of local users.Definition at line 418 of file modules.cpp. +Called whenever a user connects, anywhere on the network. This event is informational only. You should not change any user information in this event. To do so, use the OnUserConnect method to change the state of local users.Definition at line 419 of file modules.cpp. .PP .nf -418 { }; +419 { }; .fi .SS "void Module::OnGlobalOper (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called whenever a user is given usermode +o, anywhere on the network. You cannot override this and prevent it from happening as it is already happened and such a task must be performed by another server. You can however bounce modes by sending servermodes out to reverse mode changes.Definition at line 417 of file modules.cpp. +Called whenever a user is given usermode +o, anywhere on the network. You cannot override this and prevent it from happening as it is already happened and such a task must be performed by another server. You can however bounce modes by sending servermodes out to reverse mode changes.Definition at line 418 of file modules.cpp. .PP .nf -417 { }; +418 { }; .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 - :information hereDefinition at line 384 of file modules.cpp. + :information hereDefinition at line 385 of file modules.cpp. .PP .nf -384 { }; +385 { }; .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 395 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 396 of file modules.cpp. .PP .nf -395 { return 0; }; +396 { 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 396 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 397 of file modules.cpp. .PP .nf -396 { }; +397 { }; .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 412 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 413 of file modules.cpp. .PP .nf -412 { return 0; }; +413 { 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 413 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 414 of file modules.cpp. .PP .nf -413 { return 0; }; +414 { 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 383 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 384 of file modules.cpp. .PP .nf -383 { }; +384 { }; .fi .SS "int Module::OnOperCompare (std::string password, std::string input)\fC [virtual]\fP" .PP -Called whenever an oper password is to be compared to what a user has input. The password field (from the config file) is in 'password' and is to be compared against 'input'. This method allows for encryption of oper passwords and much more besides. You should return a nonzero value if you want to allow the comparison or zero if you wish to do nothing.Definition at line 416 of file modules.cpp. +Called whenever an oper password is to be compared to what a user has input. The password field (from the config file) is in 'password' and is to be compared against 'input'. This method allows for encryption of oper passwords and much more besides. You should return a nonzero value if you want to allow the comparison or zero if you wish to do nothing.Definition at line 417 of file modules.cpp. .PP .nf -416 { return 0; }; +417 { return 0; }; .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 377 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 378 of file modules.cpp. .PP .nf -377 { } +378 { } .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 376 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 377 of file modules.cpp. .PP .nf -376 { } +377 { } .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 399 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 400 of file modules.cpp. .PP .nf -399 { return 0; }; +400 { 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 404 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 405 of file modules.cpp. .PP .nf -404 { return 0; }; +405 { return 0; }; .fi .SS "void Module::OnRawSocketAccept (int fd, std::string ip, int localport)\fC [virtual]\fP" .PP -Called immediately after any connection is accepted. This is intended for raw socket processing (e.g. modules which wrap the tcp connection within another library) and provides no information relating to a user record as the connection has not been assigned yet. There are no return values from this call as all modules get an opportunity if required to process the connection.Definition at line 421 of file modules.cpp. +Called immediately after any connection is accepted. This is intended for raw socket processing (e.g. modules which wrap the tcp connection within another library) and provides no information relating to a user record as the connection has not been assigned yet. There are no return values from this call as all modules get an opportunity if required to process the connection.Definition at line 422 of file modules.cpp. .PP .nf -421 { }; +422 { }; .fi .SS "void Module::OnRawSocketClose (int fd)\fC [virtual]\fP" .PP -Called immediately before any socket is closed. When this event is called, shutdown() has not yet been called on the socket.Definition at line 423 of file modules.cpp. +Called immediately before any socket is closed. When this event is called, shutdown() has not yet been called on the socket.Definition at line 424 of file modules.cpp. .PP .nf -423 { }; +424 { }; .fi .SS "int Module::OnRawSocketRead (int fd, char * buffer, unsigned int count, int & readresult)\fC [virtual]\fP" .PP -Called immediately before any read() operation on a client socket in the core. This occurs AFTER the select() or poll() so there is always data waiting to be read when this event occurs. Your event should return 1 if it has handled the reading itself, which prevents the core just using read(). You should place any data read into buffer, up to but NOT GREATER THAN the value of count. The value of readresult must be identical to an actual result that might be returned from the read() system call, for example, number of bytes read upon success, 0 upon EOF or closed socket, and -1 for error. If your function returns a nonzero value, you MUST set readresult.Definition at line 424 of file modules.cpp. +Called immediately before any read() operation on a client socket in the core. This occurs AFTER the select() or poll() so there is always data waiting to be read when this event occurs. Your event should return 1 if it has handled the reading itself, which prevents the core just using read(). You should place any data read into buffer, up to but NOT GREATER THAN the value of count. The value of readresult must be identical to an actual result that might be returned from the read() system call, for example, number of bytes read upon success, 0 upon EOF or closed socket, and -1 for error. If your function returns a nonzero value, you MUST set readresult.Definition at line 425 of file modules.cpp. .PP .nf -424 { return 0; }; +425 { return 0; }; .fi .SS "int Module::OnRawSocketWrite (int fd, char * buffer, int count)\fC [virtual]\fP" .PP -Called immediately before any write() operation on a user's socket in the core. Because this event is a low level event no user information is associated with it. It is intended for use by modules which may wrap connections within another API such as SSL for example. return a non-zero result if you have handled the write operation, in which case the core will not call write().Definition at line 422 of file modules.cpp. +Called immediately before any write() operation on a user's socket in the core. Because this event is a low level event no user information is associated with it. It is intended for use by modules which may wrap connections within another API such as SSL for example. return a non-zero result if you have handled the write operation, in which case the core will not call write().Definition at line 423 of file modules.cpp. .PP .nf -422 { return 0; }; +423 { 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 378 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 379 of file modules.cpp. .PP .nf -378 { } +379 { } .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 415 of file modules.cpp. +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 416 of file modules.cpp. .PP Referenced by Request::Send(). .PP .nf -415 { return NULL; }; +416 { 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 398 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 399 of file modules.cpp. .PP .nf -398 { }; +399 { }; .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 379 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 380 of file modules.cpp. .PP .nf -379 { } +380 { } .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 409 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 410 of file modules.cpp. .PP .nf -409 { }; +410 { }; .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 371 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 372 of file modules.cpp. .PP .nf -371 { } +372 { } .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 373 of file modules.cpp. +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 374 of file modules.cpp. .PP .nf -373 { } +374 { } .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 374 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 375 of file modules.cpp. .PP .nf -374 { } +375 { } .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 403 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 404 of file modules.cpp. .PP .nf -403 { }; +404 { }; .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 375 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 376 of file modules.cpp. .PP .nf -375 { } +376 { } .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 390 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 391 of file modules.cpp. .PP .nf -390 { }; +391 { }; .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 386 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 387 of file modules.cpp. .PP .nf -386 { return 0; }; +387 { return 0; }; .fi .SS "int Module::OnUserPreJoin (\fBuserrec\fP * user, \fBchanrec\fP * chan, const char * cname)\fC [virtual]\fP" .PP @@ -620,68 +620,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 380 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 381 of file modules.cpp. .PP .nf -380 { return 0; } +381 { 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 402 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 403 of file modules.cpp. .PP .nf -402 { return 0; }; +403 { 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 387 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 388 of file modules.cpp. .PP .nf -387 { return 0; }; +388 { 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 389 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 390 of file modules.cpp. .PP .nf -389 { return 0; }; +390 { 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 388 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 389 of file modules.cpp. .PP .nf -388 { return 0; }; +389 { 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 *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 372 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 373 of file modules.cpp. .PP .nf -372 { } +373 { } .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 401 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 402 of file modules.cpp. .PP .nf -401 { }; +402 { }; .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 392 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 393 of file modules.cpp. .PP References string_list. .PP .nf -392 { string_list empty; return empty; } +393 { 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 385 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 386 of file modules.cpp. .PP .nf -385 { }; +386 { }; .fi diff --git a/docs/man/man3/QLine.3 b/docs/man/man3/QLine.3 index 6a299acae..a6963809c 100644 --- a/docs/man/man3/QLine.3 +++ b/docs/man/man3/QLine.3 @@ -16,7 +16,7 @@ Inherits \fBXLine\fP. .in +1c .ti -1c -.RI "char \fBnick\fP [MAXBUF]" +.RI "char \fBnick\fP [64]" .br .RI "\fINickname to match against. \fP" .ti -1c @@ -32,7 +32,7 @@ QLine class. Definition at line 108 of file xline.h. .SS "bool \fBQLine::is_global\fP" .PP Set if this is a global Z:line (e.g. it came from another server)Definition at line 118 of file xline.h. -.SS "char \fBQLine::nick\fP[MAXBUF]" +.SS "char \fBQLine::nick\fP[64]" .PP Nickname to match against. May contain wildcards.Definition at line 114 of file xline.h. diff --git a/docs/man/man3/Request.3 b/docs/man/man3/Request.3 index dbee6d6fc..a3a0db8b1 100644 --- a/docs/man/man3/Request.3 +++ b/docs/man/man3/Request.3 @@ -63,65 +63,65 @@ Definition at line 154 of file modules.h. .PP .SS "Request::Request (char * anydata, \fBModule\fP * src, \fBModule\fP * dst)" .PP -Create a new Request. Definition at line 315 of file modules.cpp. +Create a new Request. Definition at line 316 of file modules.cpp. .PP .nf -315 : data(anydata), source(src), dest(dst) { }; +316 : data(anydata), source(src), dest(dst) { }; .fi .SH "Member Function Documentation" .PP .SS "char * Request::GetData ()" .PP -Fetch the Request data. Definition at line 317 of file modules.cpp. +Fetch the Request data. Definition at line 318 of file modules.cpp. .PP References data. .PP .nf -318 { -319 return this->data; -320 } +319 { +320 return this->data; +321 } .fi .SS "\fBModule\fP * Request::GetDest ()" .PP -Fetch the request destination (should be 'this' in the receiving module). Definition at line 327 of file modules.cpp. +Fetch the request destination (should be 'this' in the receiving module). Definition at line 328 of file modules.cpp. .PP References dest. .PP .nf -328 { -329 return this->dest; -330 } +329 { +330 return this->dest; +331 } .fi .SS "\fBModule\fP * Request::GetSource ()" .PP -Fetch the request source. Definition at line 322 of file modules.cpp. +Fetch the request source. Definition at line 323 of file modules.cpp. .PP References source. .PP .nf -323 { -324 return this->source; -325 } +324 { +325 return this->source; +326 } .fi .SS "char * Request::Send ()\fC [virtual]\fP" .PP Send the Request. 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. Implements \fBModuleMessage\fP. .PP -Definition at line 332 of file modules.cpp. +Definition at line 333 of file modules.cpp. .PP References dest, and Module::OnRequest(). .PP .nf -333 { -334 if (this->dest) -335 { -336 return dest->OnRequest(this); -337 } -338 else -339 { -340 return NULL; -341 } -342 } +334 { +335 if (this->dest) +336 { +337 return dest->OnRequest(this); +338 } +339 else +340 { +341 return NULL; +342 } +343 } .fi .SH "Member Data Documentation" .PP diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3 index 67345f2cc..05f999fde 100644 --- a/docs/man/man3/Server.3 +++ b/docs/man/man3/Server.3 @@ -267,19 +267,19 @@ Definition at line 694 of file modules.h. .PP .SS "Server::Server ()" .PP -Default constructor. Creates a Server object.Definition at line 430 of file modules.cpp. +Default constructor. Creates a Server object.Definition at line 431 of file modules.cpp. .PP .nf -431 { -432 } +432 { +433 } .fi .SS "Server::~\fBServer\fP ()\fC [virtual]\fP" .PP -Default destructor. Destroys a Server object.Definition at line 434 of file modules.cpp. +Default destructor. Destroys a Server object.Definition at line 435 of file modules.cpp. .PP .nf -435 { -436 } +436 { +437 } .fi .SH "Member Function Documentation" .PP @@ -289,25 +289,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 503 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 504 of file modules.cpp. .PP References createcommand(). .PP .nf -504 { -505 createcommand(cmd,f,flags,minparams,source); -506 } +505 { +506 createcommand(cmd,f,flags,minparams,source); +507 } .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 749 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 750 of file modules.cpp. .PP References add_eline(), and duration(). .PP .nf -750 { -751 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -752 } +751 { +752 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +753 } .fi .SS "bool Server::AddExtendedListMode (char modechar)\fC [virtual]\fP" .PP @@ -321,540 +321,540 @@ 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 666 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 667 of file modules.cpp. .PP References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL. .PP .nf -667 { -668 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -669 if (res) -670 ModeMakeList(modechar); -671 return res; -672 } +668 { +669 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +670 if (res) +671 ModeMakeList(modechar); +672 return res; +673 } .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 638 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 639 of file modules.cpp. .PP References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. .PP .nf -639 { -640 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) -641 { -642 if (type == MT_SERVER) -643 { -644 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); -645 return false; -646 } -647 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -648 { -649 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); -650 return false; -651 } -652 if ((params_when_on>1) || (params_when_off>1)) -653 { -654 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); -655 return false; -656 } -657 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -658 } -659 else -660 { -661 log(DEBUG,'*** API ERROR *** Muppet modechar detected.'); -662 } -663 return false; -664 } +640 { +641 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) +642 { +643 if (type == MT_SERVER) +644 { +645 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); +646 return false; +647 } +648 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +649 { +650 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); +651 return false; +652 } +653 if ((params_when_on>1) || (params_when_off>1)) +654 { +655 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); +656 return false; +657 } +658 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +659 } +660 else +661 { +662 log(DEBUG,'*** API ERROR *** Muppet modechar detected.'); +663 } +664 return false; +665 } .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 729 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 730 of file modules.cpp. .PP References add_gline(), and duration(). .PP .nf -730 { -731 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -732 } +731 { +732 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +733 } .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 744 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 745 of file modules.cpp. .PP References add_kline(), and duration(). .PP .nf -745 { -746 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -747 } +746 { +747 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +748 } .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 734 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 735 of file modules.cpp. .PP References add_qline(), and duration(). .PP .nf -735 { -736 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -737 } +736 { +737 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +738 } .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 739 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 740 of file modules.cpp. .PP References add_zline(), and duration(). .PP .nf -740 { -741 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -742 } +741 { +742 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +743 } .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 779 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 780 of file modules.cpp. .PP References duration(). .PP .nf -780 { -781 return duration(delta.c_str()); -782 } +781 { +782 return duration(delta.c_str()); +783 } .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 493 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 494 of file modules.cpp. .PP .nf -494 { -495 call_handler(commandname.c_str(),parameters,pcnt,user); -496 } +495 { +496 call_handler(commandname.c_str(),parameters,pcnt,user); +497 } .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 586 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 587 of file modules.cpp. .PP References ChangeName(). .PP .nf -587 { -588 ChangeName(user,gecos.c_str()); -589 } +588 { +589 ChangeName(user,gecos.c_str()); +590 } .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 581 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 582 of file modules.cpp. .PP References ChangeDisplayedHost(). .PP .nf -582 { -583 ChangeDisplayedHost(user,host.c_str()); -584 } +583 { +584 ChangeDisplayedHost(user,host.c_str()); +585 } .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 478 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 479 of file modules.cpp. .PP .nf -479 { -480 force_nickchange(user,nickname.c_str()); -481 } +480 { +481 force_nickchange(user,nickname.c_str()); +482 } .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 611 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 612 of file modules.cpp. .PP References cmode(). .PP .nf -612 { -613 return cmode(User,Chan); -614 } +613 { +614 return cmode(User,Chan); +615 } .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 559 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 560 of file modules.cpp. .PP References common_channels(). .PP .nf -560 { -561 return (common_channels(u1,u2) != 0); -562 } +561 { +562 return (common_channels(u1,u2) != 0); +563 } .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 674 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 675 of file modules.cpp. .PP .nf -675 { -676 return usercount(c); -677 } +676 { +677 return usercount(c); +678 } .fi .SS "bool Server::DelELine (std::string hostmask)\fC [virtual]\fP" .PP -Deletes a local E-Line. Definition at line 774 of file modules.cpp. +Deletes a local E-Line. Definition at line 775 of file modules.cpp. .PP References del_eline(). .PP .nf -775 { -776 del_eline(hostmask.c_str()); -777 } +776 { +777 del_eline(hostmask.c_str()); +778 } .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 754 of file modules.cpp. +Deletes a G-Line from all servers on the mesh. Definition at line 755 of file modules.cpp. .PP References del_gline(). .PP .nf -755 { -756 del_gline(hostmask.c_str()); -757 } +756 { +757 del_gline(hostmask.c_str()); +758 } .fi .SS "bool Server::DelKLine (std::string hostmask)\fC [virtual]\fP" .PP -Deletes a local K-Line. Definition at line 769 of file modules.cpp. +Deletes a local K-Line. Definition at line 770 of file modules.cpp. .PP References del_kline(). .PP .nf -770 { -771 del_kline(hostmask.c_str()); -772 } +771 { +772 del_kline(hostmask.c_str()); +773 } .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 759 of file modules.cpp. +Deletes a Q-Line from all servers on the mesh. Definition at line 760 of file modules.cpp. .PP References del_qline(). .PP .nf -760 { -761 del_qline(nickname.c_str()); -762 } +761 { +762 del_qline(nickname.c_str()); +763 } .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 764 of file modules.cpp. +Deletes a Z-Line from all servers on the mesh. Definition at line 765 of file modules.cpp. .PP References del_zline(). .PP .nf -765 { -766 del_zline(ipaddr.c_str()); -767 } +766 { +767 del_zline(ipaddr.c_str()); +768 } .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 606 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 607 of file modules.cpp. .PP .nf -607 { -608 return FindChan(channel.c_str()); -609 } +608 { +609 return FindChan(channel.c_str()); +610 } .fi .SS "\fBuserrec\fP * Server::FindDescriptor (int socket)\fC [virtual]\fP" .PP -Attempts to look up a nick using the file descriptor associated with that nick. This function will return NULL if the file descriptor is not associated with a valid user.Definition at line 601 of file modules.cpp. +Attempts to look up a nick using the file descriptor associated with that nick. This function will return NULL if the file descriptor is not associated with a valid user.Definition at line 602 of file modules.cpp. .PP References fd_ref_table. .PP .nf -602 { -603 return (socket < 65536 ? fd_ref_table[socket] : NULL); -604 } +603 { +604 return (socket < 65536 ? fd_ref_table[socket] : NULL); +605 } .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 857 of file modules.cpp. +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 858 of file modules.cpp. .PP References MODCOUNT, module_names, and modules. .PP .nf -858 { -859 for (int i = 0; i <= MODCOUNT; i++) -860 { -861 if (module_names[i] == name) -862 { -863 return modules[i]; -864 } -865 } -866 return NULL; -867 } +859 { +860 for (int i = 0; i <= MODCOUNT; i++) +861 { +862 if (module_names[i] == name) +863 { +864 return modules[i]; +865 } +866 } +867 return NULL; +868 } .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 596 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 597 of file modules.cpp. .PP .nf -597 { -598 return Find(nick); -599 } +598 { +599 return Find(nick); +600 } .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 631 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 632 of file modules.cpp. .PP .nf -632 { -633 return Admin(getadminname(),getadminemail(),getadminnick()); -634 } +633 { +634 return Admin(getadminname(),getadminemail(),getadminnick()); +635 } .fi .SS "std::string Server::GetNetworkName ()\fC [virtual]\fP" .PP -Returns the network name, global to all linked servers. Definition at line 626 of file modules.cpp. +Returns the network name, global to all linked servers. Definition at line 627 of file modules.cpp. .PP .nf -627 { -628 return getnetworkname(); -629 } +628 { +629 return getnetworkname(); +630 } .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 621 of file modules.cpp. +Returns the server name of the server where the module is loaded. Definition at line 622 of file modules.cpp. .PP .nf -622 { -623 return getservername(); -624 } +623 { +624 return getservername(); +625 } .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 466 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 467 of file modules.cpp. .PP References chanuserlist, chanrec::GetUsers(), and list. .PP .nf -467 { -468 chanuserlist userl; -469 userl.clear(); -470 std::vector *list = chan->GetUsers(); -471 for (std::vector::iterator i = list->begin(); i != list->end(); i++) -472 { -473 char* o = *i; -474 userl.push_back((userrec*)o); -475 } -476 return userl; -477 } +468 { +469 chanuserlist userl; +470 userl.clear(); +471 std::vector *list = chan->GetUsers(); +472 for (std::vector::iterator i = list->begin(); i != list->end(); i++) +473 { +474 char* o = *i; +475 userl.push_back((userrec*)o); +476 } +477 return userl; +478 } .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 591 of file modules.cpp. +Returns true if a nick is valid. Nicks for unregistered connections will return false.Definition at line 592 of file modules.cpp. .PP References isnick(). .PP .nf -592 { -593 return (isnick(nick.c_str()) != 0); -594 } +593 { +594 return (isnick(nick.c_str()) != 0); +595 } .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 616 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 617 of file modules.cpp. .PP References has_channel(). .PP .nf -617 { -618 return has_channel(User,Chan); -619 } +618 { +619 return has_channel(User,Chan); +620 } .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 488 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 489 of file modules.cpp. .PP References is_uline(). .PP .nf -489 { -490 return is_uline(server.c_str()); -491 } +490 { +491 return is_uline(server.c_str()); +492 } .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 784 of file modules.cpp. +Returns true if a nick!ident string is correctly formatted, false if otherwise. Definition at line 785 of file modules.cpp. .PP .nf -785 { -786 const char* dest = mask.c_str(); -787 if (strchr(dest,'!')==0) -788 return false; -789 if (strchr(dest,'@')==0) -790 return false; -791 for (int i = 0; i < strlen(dest); i++) -792 if (dest[i] < 32) -793 return false; -794 for (int i = 0; i < strlen(dest); i++) -795 if (dest[i] > 126) -796 return false; -797 int c = 0; -798 for (int i = 0; i < strlen(dest); i++) -799 if (dest[i] == '!') -800 c++; -801 if (c>1) -802 return false; -803 c = 0; -804 for (int i = 0; i < strlen(dest); i++) -805 if (dest[i] == '@') -806 c++; -807 if (c>1) -808 return false; -809 -810 return true; -811 } +786 { +787 const char* dest = mask.c_str(); +788 if (strchr(dest,'!')==0) +789 return false; +790 if (strchr(dest,'@')==0) +791 return false; +792 for (int i = 0; i < strlen(dest); i++) +793 if (dest[i] < 32) +794 return false; +795 for (int i = 0; i < strlen(dest); i++) +796 if (dest[i] > 126) +797 return false; +798 int c = 0; +799 for (int i = 0; i < strlen(dest); i++) +800 if (dest[i] == '!') +801 c++; +802 if (c>1) +803 return false; +804 c = 0; +805 for (int i = 0; i < strlen(dest); i++) +806 if (dest[i] == '@') +807 c++; +808 if (c>1) +809 return false; +810 +811 return true; +812 } .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 456 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 457 of file modules.cpp. .PP .nf -457 { -458 return add_channel(user,cname.c_str(),key.c_str(),false); -459 } +458 { +459 return add_channel(user,cname.c_str(),key.c_str(),false); +460 } .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 498 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 499 of file modules.cpp. .PP .nf -499 { -500 log(level,'%s',s.c_str()); -501 } +500 { +501 log(level,'%s',s.c_str()); +502 } .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 443 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 444 of file modules.cpp. .PP .nf -444 { -445 char literal[MAXBUF],pattern[MAXBUF]; -446 strlcpy(literal,sliteral.c_str(),MAXBUF); -447 strlcpy(pattern,spattern.c_str(),MAXBUF); -448 return match(literal,pattern); -449 } +445 { +446 char literal[MAXBUF],pattern[MAXBUF]; +447 strlcpy(literal,sliteral.c_str(),MAXBUF); +448 strlcpy(pattern,spattern.c_str(),MAXBUF); +449 return match(literal,pattern); +450 } .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 839 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 840 of file modules.cpp. .PP .nf -840 { -841 if (c) -842 { -843 return ChanAnyOnThisServer(c,(char*)servername.c_str()); -844 } -845 else return false; -846 } +841 { +842 if (c) +843 { +844 return ChanAnyOnThisServer(c,(char*)servername.c_str()); +845 } +846 else return false; +847 } .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 848 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 849 of file modules.cpp. .PP .nf -849 { -850 if (u) -851 { -852 return CommonOnThisServer(u,(char*)servername.c_str()); -853 } -854 else return false; -855 } +850 { +851 if (u) +852 { +853 return CommonOnThisServer(u,(char*)servername.c_str()); +854 } +855 else return false; +856 } .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 813 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 814 of file modules.cpp. .PP .nf -814 { -815 NetSendToAll((char*)text.c_str()); -816 } +815 { +816 NetSendToAll((char*)text.c_str()); +817 } .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 824 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 825 of file modules.cpp. .PP .nf -825 { -826 NetSendToAllAlive((char*)text.c_str()); -827 } +826 { +827 NetSendToAllAlive((char*)text.c_str()); +828 } .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 834 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 835 of file modules.cpp. .PP .nf -835 { -836 NetSendToAllExcept(target.c_str(),(char*)text.c_str()); -837 } +836 { +837 NetSendToAllExcept(target.c_str(),(char*)text.c_str()); +838 } .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 818 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 819 of file modules.cpp. .PP .nf -819 { -820 if (user) -821 NetSendToCommon(user,(char*)text.c_str()); -822 } +820 { +821 if (user) +822 NetSendToCommon(user,(char*)text.c_str()); +823 } .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 829 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 830 of file modules.cpp. .PP .nf -830 { -831 NetSendToOne((char*)destination.c_str(),(char*)text.c_str()); -832 } +831 { +832 NetSendToOne((char*)destination.c_str(),(char*)text.c_str()); +833 } .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 461 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 462 of file modules.cpp. .PP .nf -462 { -463 return del_channel(user,cname.c_str(),reason.c_str(),false); -464 } +463 { +464 return del_channel(user,cname.c_str(),reason.c_str(),false); +465 } .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 699 of file modules.cpp. +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 700 of file modules.cpp. .PP References ucrec::channel, userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, fd_ref_table, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. .PP .nf -700 { -701 zombie->fd = alive->fd; -702 alive->fd = FD_MAGIC_NUMBER; -703 alive->ClearBuffer(); -704 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); -705 kill_link(alive,message.c_str()); -706 fd_ref_table[zombie->fd] = zombie; -707 for (int i = 0; i != MAXCHANS; i++) -708 { -709 if (zombie->chans[i].channel != NULL) -710 { -711 if (zombie->chans[i].channel->name) -712 { -713 chanrec* Ptr = zombie->chans[i].channel; -714 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); -715 if (Ptr->topicset) -716 { -717 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); -718 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -719 } -720 userlist(zombie,Ptr); -721 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); -722 -723 } -724 } -725 } -726 -727 } +701 { +702 zombie->fd = alive->fd; +703 alive->fd = FD_MAGIC_NUMBER; +704 alive->ClearBuffer(); +705 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); +706 kill_link(alive,message.c_str()); +707 fd_ref_table[zombie->fd] = zombie; +708 for (int i = 0; i != MAXCHANS; i++) +709 { +710 if (zombie->chans[i].channel != NULL) +711 { +712 if (zombie->chans[i].channel->name) +713 { +714 chanrec* Ptr = zombie->chans[i].channel; +715 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); +716 if (Ptr->topicset) +717 { +718 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); +719 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +720 } +721 userlist(zombie,Ptr); +722 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); +723 +724 } +725 } +726 } +727 +728 } .fi .SS "void Server::QuitUser (\fBuserrec\fP * user, std::string reason)\fC [virtual]\fP" .PP @@ -862,71 +862,71 @@ 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 483 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 484 of file modules.cpp. .PP .nf -484 { -485 kill_link(user,reason.c_str()); -486 } +485 { +486 kill_link(user,reason.c_str()); +487 } .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 513 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 514 of file modules.cpp. .PP .nf -514 { -515 Write(Socket,'%s',s.c_str()); -516 } +515 { +516 Write(Socket,'%s',s.c_str()); +517 } .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 547 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 548 of file modules.cpp. .PP .nf -548 { -549 if (IncludeSender) -550 { -551 WriteChannel(Channel,User,'%s',s.c_str()); -552 } -553 else -554 { -555 ChanExceptSender(Channel,User,'%s',s.c_str()); -556 } -557 } +549 { +550 if (IncludeSender) +551 { +552 WriteChannel(Channel,User,'%s',s.c_str()); +553 } +554 else +555 { +556 ChanExceptSender(Channel,User,'%s',s.c_str()); +557 } +558 } .fi .SS "void Server::SendChannelServerNotice (std::string ServName, \fBchanrec\fP * Channel, std::string text)\fC [virtual]\fP" .PP -Writes text to a channel, but from a server, including all. This can be used to send server notices to a group of users.Definition at line 542 of file modules.cpp. +Writes text to a channel, but from a server, including all. This can be used to send server notices to a group of users.Definition at line 543 of file modules.cpp. .PP .nf -543 { -544 WriteChannelWithServ((char*)ServName.c_str(), Channel, '%s', text.c_str()); -545 } +544 { +545 WriteChannelWithServ((char*)ServName.c_str(), Channel, '%s', text.c_str()); +546 } .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 564 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 565 of file modules.cpp. .PP .nf -565 { -566 if (IncludeSender) -567 { -568 WriteCommon(User,'%s',text.c_str()); -569 } -570 else -571 { -572 WriteCommonExcept(User,'%s',text.c_str()); -573 } -574 } +566 { +567 if (IncludeSender) +568 { +569 WriteCommon(User,'%s',text.c_str()); +570 } +571 else +572 { +573 WriteCommonExcept(User,'%s',text.c_str()); +574 } +575 } .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 523 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 524 of file modules.cpp. .PP .nf -524 { -525 WriteFrom(Socket,User,'%s',s.c_str()); -526 } +525 { +526 WriteFrom(Socket,User,'%s',s.c_str()); +527 } .fi .SS "void Server::SendMode (char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" .PP @@ -944,32 +944,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 508 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 509 of file modules.cpp. .PP References server_mode(). .PP .nf -509 { -510 server_mode(parameters,pcnt,user); -511 } +510 { +511 server_mode(parameters,pcnt,user); +512 } .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 438 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 439 of file modules.cpp. .PP .nf -439 { -440 WriteOpers('%s',s.c_str()); -441 } +440 { +441 WriteOpers('%s',s.c_str()); +442 } .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 518 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 519 of file modules.cpp. .PP .nf -519 { -520 WriteServ(Socket,'%s',s.c_str()); -521 } +520 { +521 WriteServ(Socket,'%s',s.c_str()); +522 } .fi .SS "void Server::SendTo (\fBuserrec\fP * Source, \fBuserrec\fP * Dest, std::string s)\fC [virtual]\fP" .PP @@ -981,23 +981,23 @@ The format will become: .PP :localserver TEXT .PP -Which is useful for numerics and server notices to single users, etc.Definition at line 528 of file modules.cpp. +Which is useful for numerics and server notices to single users, etc.Definition at line 529 of file modules.cpp. .PP References connection::fd. .PP .nf -529 { -530 if (!Source) -531 { -532 // if source is NULL, then the message originates from the local server -533 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); -534 } -535 else -536 { -537 // otherwise it comes from the user specified -538 WriteTo(Source,Dest,'%s',s.c_str()); -539 } -540 } +530 { +531 if (!Source) +532 { +533 // if source is NULL, then the message originates from the local server +534 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); +535 } +536 else +537 { +538 // otherwise it comes from the user specified +539 WriteTo(Source,Dest,'%s',s.c_str()); +540 } +541 } .fi .SS "void Server::SendToModeMask (std::string modes, int flags, std::string text)\fC [virtual]\fP" .PP @@ -1005,46 +1005,46 @@ 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 451 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 452 of file modules.cpp. .PP .nf -452 { -453 WriteMode(modes.c_str(),flags,'%s',text.c_str()); -454 } +453 { +454 WriteMode(modes.c_str(),flags,'%s',text.c_str()); +455 } .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 576 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 577 of file modules.cpp. .PP .nf -577 { -578 WriteWallOps(User,false,'%s',text.c_str()); -579 } +578 { +579 WriteWallOps(User,false,'%s',text.c_str()); +580 } .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 680 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 681 of file modules.cpp. .PP References userrec::ClearBuffer(), DEBUG, connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. .PP .nf -681 { -682 unsigned int old_fd = user->fd; -683 user->fd = FD_MAGIC_NUMBER; -684 user->ClearBuffer(); -685 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); -686 #ifdef USE_KQUEUE -687 struct kevent ke; -688 EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL); -689 int i = kevent(kq, &ke, 1, 0, 0, NULL); -690 if (i == -1) -691 { -692 log(DEBUG,'kqueue: Failed to remove user from queue!'); -693 } -694 #endif -695 shutdown(old_fd,2); -696 close(old_fd); -697 } +682 { +683 unsigned int old_fd = user->fd; +684 user->fd = FD_MAGIC_NUMBER; +685 user->ClearBuffer(); +686 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); +687 #ifdef USE_KQUEUE +688 struct kevent ke; +689 EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL); +690 int i = kevent(kq, &ke, 1, 0, 0, NULL); +691 if (i == -1) +692 { +693 log(DEBUG,'kqueue: Failed to remove user from queue!'); +694 } +695 #endif +696 shutdown(old_fd,2); +697 close(old_fd); +698 } .fi diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3 index 3b845ffd7..ae3af2f56 100644 --- a/docs/man/man3/Version.3 +++ b/docs/man/man3/Version.3 @@ -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 309 of file modules.cpp. +Definition at line 310 of file modules.cpp. .PP .nf -309 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +310 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; .fi .SH "Member Data Documentation" .PP diff --git a/docs/man/man3/WhoWasUser.3 b/docs/man/man3/WhoWasUser.3 new file mode 100644 index 000000000..2092f5e4d --- /dev/null +++ b/docs/man/man3/WhoWasUser.3 @@ -0,0 +1,67 @@ +.TH "WhoWasUser" 3 "12 May 2005" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +WhoWasUser \- A lightweight userrec used by WHOWAS. + +.PP +.SH SYNOPSIS +.br +.PP +\fC#include \fP +.PP +.SS "Public Attributes" + +.in +1c +.ti -1c +.RI "char \fBnick\fP [NICKMAX]" +.br +.ti -1c +.RI "char \fBident\fP [16]" +.br +.ti -1c +.RI "char \fBdhost\fP [160]" +.br +.ti -1c +.RI "char \fBhost\fP [160]" +.br +.ti -1c +.RI "char \fBfullname\fP [128]" +.br +.ti -1c +.RI "char \fBserver\fP [256]" +.br +.ti -1c +.RI "time_t \fBsignon\fP" +.br +.in -1c +.SH "Detailed Description" +.PP +A lightweight userrec used by WHOWAS. Definition at line 315 of file users.h. +.SH "Member Data Documentation" +.PP +.SS "char \fBWhoWasUser::dhost\fP[160]" +.PP +Definition at line 320 of file users.h. +.SS "char \fBWhoWasUser::fullname\fP[128]" +.PP +Definition at line 322 of file users.h. +.SS "char \fBWhoWasUser::host\fP[160]" +.PP +Definition at line 321 of file users.h. +.SS "char \fBWhoWasUser::ident\fP[16]" +.PP +Definition at line 319 of file users.h. +.SS "char \fBWhoWasUser::nick\fP[NICKMAX]" +.PP +Definition at line 318 of file users.h. +.SS "char \fBWhoWasUser::server\fP[256]" +.PP +Definition at line 323 of file users.h. +.SS "time_t \fBWhoWasUser::signon\fP" +.PP +Definition at line 324 of file users.h. + +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/XLine.3 b/docs/man/man3/XLine.3 index 17f34ffc1..75215edc6 100644 --- a/docs/man/man3/XLine.3 +++ b/docs/man/man3/XLine.3 @@ -26,7 +26,7 @@ Inherited by \fBELine\fP, \fBGLine\fP, \fBKLine\fP, \fBQLine\fP, and \fBZLine\fP .br .RI "\fIThe duration of the ban, or 0 if permenant. \fP" .ti -1c -.RI "char \fBsource\fP [MAXBUF]" +.RI "char \fBsource\fP [256]" .br .RI "\fISource of the ban. \fP" .ti -1c @@ -55,7 +55,7 @@ Reason for the ban. Definition at line 52 of file xline.h. .SS "time_t \fBXLine::set_time\fP" .PP The time the line was added. Definition at line 40 of file xline.h. -.SS "char \fBXLine::source\fP[MAXBUF]" +.SS "char \fBXLine::source\fP[256]" .PP Source of the ban. This can be a servername or an oper nicknameDefinition at line 48 of file xline.h. diff --git a/docs/man/man3/ZLine.3 b/docs/man/man3/ZLine.3 index 0aac4c787..48dcfc8ac 100644 --- a/docs/man/man3/ZLine.3 +++ b/docs/man/man3/ZLine.3 @@ -16,7 +16,7 @@ Inherits \fBXLine\fP. .in +1c .ti -1c -.RI "char \fBipaddr\fP [MAXBUF]" +.RI "char \fBipaddr\fP [40]" .br .RI "\fIIP Address (xx.yy.zz.aa) to match against May contain wildcards. \fP" .ti -1c @@ -29,7 +29,7 @@ Inherits \fBXLine\fP. ZLine class. Definition at line 93 of file xline.h. .SH "Member Data Documentation" .PP -.SS "char \fBZLine::ipaddr\fP[MAXBUF]" +.SS "char \fBZLine::ipaddr\fP[40]" .PP IP Address (xx.yy.zz.aa) to match against May contain wildcards. Definition at line 99 of file xline.h. .SS "bool \fBZLine::is_global\fP" diff --git a/docs/man/man3/channels.cpp.3 b/docs/man/man3/channels.cpp.3 index a0eaaabdc..9a0708fb9 100644 --- a/docs/man/man3/channels.cpp.3 +++ b/docs/man/man3/channels.cpp.3 @@ -273,7 +273,7 @@ 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 1066 of file modules.cpp. +Definition at line 1067 of file modules.cpp. .PP Referenced by Server::FindModule(). .SS "std::vector \fBmodule_names\fP" diff --git a/docs/man/man3/channels.h.3 b/docs/man/man3/channels.h.3 index 675c0dcb8..fec80d819 100644 --- a/docs/man/man3/channels.h.3 +++ b/docs/man/man3/channels.h.3 @@ -53,6 +53,24 @@ channels.h \- .in +1c .ti -1c +.RI "#define \fBCM_TOPICLOCK\fP 1" +.br +.ti -1c +.RI "#define \fBCM_NOEXTERNAL\fP 2" +.br +.ti -1c +.RI "#define \fBCM_INVITEONLY\fP 4" +.br +.ti -1c +.RI "#define \fBCM_MODERATED\fP 8" +.br +.ti -1c +.RI "#define \fBCM_SECRET\fP 16" +.br +.ti -1c +.RI "#define \fBCM_PRIVATE\fP 32" +.br +.ti -1c .RI "#define \fBUCMODE_OP\fP 1" .br .ti -1c @@ -86,32 +104,50 @@ channels.h \- .in -1c .SH "Define Documentation" .PP +.SS "#define CM_INVITEONLY 4" +.PP +Definition at line 28 of file channels.h. +.SS "#define CM_MODERATED 8" +.PP +Definition at line 29 of file channels.h. +.SS "#define CM_NOEXTERNAL 2" +.PP +Definition at line 27 of file channels.h. +.SS "#define CM_PRIVATE 32" +.PP +Definition at line 31 of file channels.h. +.SS "#define CM_SECRET 16" +.PP +Definition at line 30 of file channels.h. +.SS "#define CM_TOPICLOCK 1" +.PP +Definition at line 26 of file channels.h. .SS "#define UCMODE_FOUNDER 16" .PP -Definition at line 250 of file channels.h. +Definition at line 215 of file channels.h. .SS "#define UCMODE_HOP 4" .PP -Definition at line 248 of file channels.h. +Definition at line 213 of file channels.h. .SS "#define UCMODE_OP 1" .PP -Definition at line 246 of file channels.h. +Definition at line 211 of file channels.h. .SS "#define UCMODE_PROTECT 8" .PP -Definition at line 249 of file channels.h. +Definition at line 214 of file channels.h. .SS "#define UCMODE_VOICE 2" .PP -Definition at line 247 of file channels.h. +Definition at line 212 of file channels.h. .SH "Typedef Documentation" .PP .SS "typedef std::vector<\fBBanItem\fP> \fBBanList\fP" .PP -Holds a complete ban list. Definition at line 80 of file channels.h. +Holds a complete ban list. Definition at line 87 of file channels.h. .SS "typedef std::vector<\fBExemptItem\fP> \fBExemptList\fP" .PP -Holds a complete exempt list. Definition at line 84 of file channels.h. +Holds a complete exempt list. Definition at line 91 of file channels.h. .SS "typedef std::vector<\fBInviteItem\fP> \fBInviteList\fP" .PP -Holds a complete invite list. Definition at line 88 of file channels.h. +Holds a complete invite list. Definition at line 95 of file channels.h. .SH "Author" .PP Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3 index 532b54825..66a8cd14a 100644 --- a/docs/man/man3/chanrec.3 +++ b/docs/man/man3/chanrec.3 @@ -32,14 +32,6 @@ Inherits \fBExtensible\fP. .br .RI "\fIReturns the parameter for a custom mode on a channel. \fP" .ti -1c -.RI "void \fBIncUserCounter\fP ()" -.br -.RI "\fIIncrement the channel 'user counter' The channel user counter is a reference counter which holds the number of users on the channel. \fP" -.ti -1c -.RI "void \fBDecUserCounter\fP ()" -.br -.RI "\fIDecrement the channel 'user counter' The channel user counter is a reference counter which holds the number of users on the channel. \fP" -.ti -1c .RI "long \fBGetUserCounter\fP ()" .br .RI "\fIObtain the channel 'user counter' This returns the channel reference counter, which is initialized to 0 when the channel is created and incremented/decremented upon joins, parts quits and kicks. \fP" @@ -75,10 +67,6 @@ Inherits \fBExtensible\fP. .br .RI "\fICustom modes for the channel. \fP" .ti -1c -.RI "long \fBusers\fP" -.br -.RI "\fICount of users on the channel used for fast user counting. \fP" -.ti -1c .RI "std::vector< char * > \fBinternal_userlist\fP" .br .RI "\fIUser list (casted to char*'s to stop forward declaration stuff) (chicken and egg scenario!). \fP" @@ -99,7 +87,7 @@ Inherits \fBExtensible\fP. .br .RI "\fIThe last user to set the topic. \fP" .ti -1c -.RI "long \fBlimit\fP" +.RI "short int \fBlimit\fP" .br .RI "\fIContains the channel user limit. \fP" .ti -1c @@ -107,29 +95,9 @@ Inherits \fBExtensible\fP. .br .RI "\fIContains the channel key. \fP" .ti -1c -.RI "short int \fBtopiclock\fP" -.br -.RI "\fINonzero if the mode +t is set. \fP" -.ti -1c -.RI "short int \fBnoexternal\fP" -.br -.RI "\fINonzero if the mode +n is set. \fP" -.ti -1c -.RI "short int \fBinviteonly\fP" -.br -.RI "\fINonzero if the mode +i is set. \fP" -.ti -1c -.RI "short int \fBmoderated\fP" -.br -.RI "\fINonzero if the mode +m is set. \fP" -.ti -1c -.RI "short int \fBsecret\fP" +.RI "char \fBbinarymodes\fP" .br -.RI "\fINonzero if the mode +s is set. \fP" -.ti -1c -.RI "short int \fBc_private\fP" -.br -.RI "\fINonzero if the mode +p is set. \fP" +.RI "\fIContains a bitmask of the CM_* builtin (RFC) binary mode symbols. \fP" .ti -1c .RI "\fBBanList\fP \fBbans\fP" .br @@ -141,14 +109,14 @@ Holds all relevent information for a channel. This class represents a channel, and contains its name, modes, time created, topic, topic set time, etc, and an instance of the BanList type. .PP -Definition at line 94 of file channels.h. +Definition at line 101 of file channels.h. .SH "Constructor & Destructor Documentation" .PP .SS "chanrec::chanrec ()" .PP Creates a channel record and initialises it with default values. Definition at line 113 of file channels.cpp. .PP -References c_private, created, custom_modes, internal_userlist, inviteonly, key, limit, moderated, name, noexternal, secret, setby, topic, topiclock, topicset, and users. +References binarymodes, created, custom_modes, internal_userlist, key, limit, name, setby, topic, and topicset. .PP .nf 114 { @@ -157,59 +125,51 @@ References c_private, created, custom_modes, internal_userlist, inviteonly, key, 117 strcpy(topic,''); 118 strcpy(setby,''); 119 strcpy(key,''); -120 created = topicset = limit = users = 0; -121 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; +120 created = topicset = limit = 0; +121 binarymodes = 0; 122 internal_userlist.clear(); 123 } .fi .SS "virtual chanrec::~\fBchanrec\fP ()\fC [inline, virtual]\fP" .PP -Definition at line 240 of file channels.h. +Definition at line 205 of file channels.h. .PP .nf -240 { /* stub */ } +205 { /* stub */ } .fi .SH "Member Function Documentation" .PP .SS "void chanrec::AddUser (char * castuser)" .PP -Add a user pointer to the internal reference list The data inserted into the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison. Definition at line 215 of file channels.cpp. +Add a user pointer to the internal reference list The data inserted into the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison. Definition at line 207 of file channels.cpp. .PP References DEBUG, and internal_userlist. .PP .nf -216 { -217 internal_userlist.push_back(castuser); -218 log(DEBUG,'Added casted user to channel's internal list'); -219 } -.fi -.SS "void chanrec::DecUserCounter ()" -.PP -Decrement the channel 'user counter' The channel user counter is a reference counter which holds the number of users on the channel. If it decremented to 0 then the channel is removed from the system. Modules may alter the reference count to hold channels open which have no users and would normally be deleted once empty.Definition at line 206 of file channels.cpp. -.PP -.nf -207 { -208 } +208 { +209 internal_userlist.push_back(castuser); +210 log(DEBUG,'Added casted user to channel's internal list'); +211 } .fi .SS "void chanrec::DelUser (char * castuser)" .PP -Delete a user pointer to the internal reference list The data removed from the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison. Definition at line 221 of file channels.cpp. +Delete a user pointer to the internal reference list The data removed from the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison. Definition at line 213 of file channels.cpp. .PP References DEBUG, internal_userlist, and name. .PP .nf -222 { -223 for (std::vector::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) -224 { -225 if (*a == castuser) -226 { -227 log(DEBUG,'Removed casted user from channel's internal list'); -228 internal_userlist.erase(a); -229 return; -230 } -231 } -232 log(DEBUG,'BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!',name); -233 } +214 { +215 for (std::vector::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) +216 { +217 if (*a == castuser) +218 { +219 log(DEBUG,'Removed casted user from channel's internal list'); +220 internal_userlist.erase(a); +221 return; +222 } +223 } +224 log(DEBUG,'BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!',name); +225 } .fi .SS "std::string chanrec::GetModeParameter (char mode)" .PP @@ -234,35 +194,27 @@ References custom_mode_params. .fi .SS "long chanrec::GetUserCounter ()" .PP -Obtain the channel 'user counter' This returns the channel reference counter, which is initialized to 0 when the channel is created and incremented/decremented upon joins, parts quits and kicks. Definition at line 210 of file channels.cpp. +Obtain the channel 'user counter' This returns the channel reference counter, which is initialized to 0 when the channel is created and incremented/decremented upon joins, parts quits and kicks. Definition at line 202 of file channels.cpp. .PP References internal_userlist. .PP .nf -211 { -212 return (this->internal_userlist.size()); -213 } +203 { +204 return (this->internal_userlist.size()); +205 } .fi .SS "std::vector< char * > * chanrec::GetUsers ()" .PP -Obrain the internal reference list The internal reference list contains a list of userrec* cast to char*. These are used for rapid comparison to determine channel membership for PRIVMSG, NOTICE, QUIT, PART etc. The resulting pointer to the vector should be considered readonly and only modified via AddUser and DelUser.Definition at line 235 of file channels.cpp. +Obrain the internal reference list The internal reference list contains a list of userrec* cast to char*. These are used for rapid comparison to determine channel membership for PRIVMSG, NOTICE, QUIT, PART etc. The resulting pointer to the vector should be considered readonly and only modified via AddUser and DelUser.Definition at line 227 of file channels.cpp. .PP References internal_userlist. .PP Referenced by Server::GetUsers(). .PP .nf -236 { -237 return &internal_userlist; -238 } -.fi -.SS "void chanrec::IncUserCounter ()" -.PP -Increment the channel 'user counter' The channel user counter is a reference counter which holds the number of users on the channel. If it decremented to 0 then the channel is removed from the system.Definition at line 202 of file channels.cpp. -.PP -.nf -203 { -204 } +228 { +229 return &internal_userlist; +230 } .fi .SS "bool chanrec::IsCustomModeSet (char mode)" .PP @@ -349,87 +301,57 @@ Referenced by SetCustomMode(). .PP .SS "\fBBanList\fP \fBchanrec::bans\fP" .PP -The list of all bans set on the channel. Definition at line 168 of file channels.h. -.SS "short int \fBchanrec::c_private\fP" +The list of all bans set on the channel. Definition at line 149 of file channels.h. +.SS "char \fBchanrec::binarymodes\fP" .PP -Nonzero if the mode +p is set. This value cannot be set at the same time as \fBchanrec::secret\fPDefinition at line 164 of file channels.h. +Contains a bitmask of the CM_* builtin (RFC) binary mode symbols. Definition at line 145 of file channels.h. .PP Referenced by chanrec(). .SS "time_t \fBchanrec::created\fP" .PP -Creation time. Definition at line 120 of file channels.h. +Creation time. Definition at line 123 of file channels.h. .PP 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. +Custom modes for the channel. Plugins may use this field in any way they see fit.Definition at line 110 of file channels.h. .PP Referenced by chanrec(), and SetCustomMode(). .SS "std::vector \fBchanrec::internal_userlist\fP" .PP -User list (casted to char*'s to stop forward declaration stuff) (chicken and egg scenario!). Definition at line 112 of file channels.h. +User list (casted to char*'s to stop forward declaration stuff) (chicken and egg scenario!). Definition at line 115 of file channels.h. .PP Referenced by AddUser(), chanrec(), DelUser(), GetUserCounter(), and GetUsers(). -.SS "short int \fBchanrec::inviteonly\fP" -.PP -Nonzero if the mode +i is set. Definition at line 150 of file channels.h. -.PP -Referenced by chanrec(). .SS "char \fBchanrec::key\fP[32]" .PP -Contains the channel key. If this value is an empty string, there is no channel key in place.Definition at line 138 of file channels.h. +Contains the channel key. If this value is an empty string, there is no channel key in place.Definition at line 141 of file channels.h. .PP Referenced by chanrec(). -.SS "long \fBchanrec::limit\fP" +.SS "short int \fBchanrec::limit\fP" .PP -Contains the channel user limit. If this value is zero, there is no limit in place.Definition at line 133 of file channels.h. -.PP -Referenced by chanrec(). -.SS "short int \fBchanrec::moderated\fP" -.PP -Nonzero if the mode +m is set. Definition at line 154 of file channels.h. +Contains the channel user limit. If this value is zero, there is no limit in place.Definition at line 136 of file channels.h. .PP Referenced by chanrec(). .SS "char \fBchanrec::name\fP[CHANMAX]" .PP -The channels name. Definition at line 99 of file channels.h. +The channels name. Definition at line 106 of file channels.h. .PP Referenced by chanrec(), DelUser(), and Server::PseudoToUser(). -.SS "short int \fBchanrec::noexternal\fP" -.PP -Nonzero if the mode +n is set. Definition at line 146 of file channels.h. -.PP -Referenced by chanrec(). -.SS "short int \fBchanrec::secret\fP" -.PP -Nonzero if the mode +s is set. This value cannot be set at the same time as \fBchanrec::c_private\fPDefinition at line 159 of file channels.h. -.PP -Referenced by chanrec(). .SS "char \fBchanrec::setby\fP[NICKMAX]" .PP -The last user to set the topic. If this member is an empty string, no topic was ever set.Definition at line 128 of file channels.h. +The last user to set the topic. If this member is an empty string, no topic was ever set.Definition at line 131 of file channels.h. .PP Referenced by chanrec(), and Server::PseudoToUser(). .SS "char \fBchanrec::topic\fP[MAXBUF]" .PP -Channel topic. If this is an empty string, no channel topic is set.Definition at line 117 of file channels.h. +Channel topic. If this is an empty string, no channel topic is set.Definition at line 120 of file channels.h. .PP Referenced by chanrec(), and Server::PseudoToUser(). -.SS "short int \fBchanrec::topiclock\fP" -.PP -Nonzero if the mode +t is set. Definition at line 142 of file channels.h. -.PP -Referenced by chanrec(). .SS "time_t \fBchanrec::topicset\fP" .PP -Time topic was set. If no topic was ever set, this will be equal to \fBchanrec::created\fPDefinition at line 124 of file channels.h. +Time topic was set. If no topic was ever set, this will be equal to \fBchanrec::created\fPDefinition at line 127 of file channels.h. .PP Referenced by chanrec(), and Server::PseudoToUser(). -.SS "long \fBchanrec::users\fP" -.PP -Count of users on the channel used for fast user counting. Definition at line 107 of file channels.h. -.PP -Referenced by chanrec(). .SH "Author" .PP diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3 index ce72610f8..3ada34c2d 100644 --- a/docs/man/man3/connection.3 +++ b/docs/man/man3/connection.3 @@ -62,18 +62,14 @@ Inherited by \fBserverrec\fP, and \fBuserrec\fP. .br .RI "\fIFile descriptor of the connection. \fP" .ti -1c -.RI "char \fBhost\fP [256]" +.RI "char \fBhost\fP [160]" .br .RI "\fIHostname of connection. \fP" .ti -1c -.RI "char \fBip\fP [32]" +.RI "char \fBip\fP [16]" .br .RI "\fIIP of connection. \fP" .ti -1c -.RI "char \fBinbuf\fP [MAXBUF]" -.br -.RI "\fIInbuf of connection. \fP" -.ti -1c .RI "long \fBbytes_in\fP" .br .RI "\fIStats counter for bytes inbound. \fP" @@ -98,14 +94,10 @@ Inherited by \fBserverrec\fP, and \fBuserrec\fP. .br .RI "\fIPort number For a userrec, this is the port they connected to the network on. \fP" .ti -1c -.RI "int \fBregistered\fP" +.RI "char \fBregistered\fP" .br .RI "\fIUsed by userrec to indicate the registration status of the connection. \fP" .ti -1c -.RI "short int \fBstate\fP" -.br -.RI "\fIReserved for future use. \fP" -.ti -1c .RI "time_t \fBlastping\fP" .br .RI "\fITime the connection was last pinged. \fP" @@ -122,14 +114,6 @@ Inherited by \fBserverrec\fP, and \fBuserrec\fP. .br .RI "\fIUsed by PING checks with clients. \fP" .ti -1c -.RI "char \fBinternal_addr\fP [MAXBUF]" -.br -.RI "\fIUnused, will be removed in a future alpha/beta. \fP" -.ti -1c -.RI "int \fBinternal_port\fP" -.br -.RI "\fIUnused, will be removed in a future alpha/beta. \fP" -.ti -1c .RI "std::vector< \fBircd_connector\fP > \fBconnectors\fP" .br .RI "\fIWith a serverrec, this is a list of all established server connections. \fP" @@ -172,27 +156,27 @@ Terminate a link to 'targethost' by calling the \fBircd_connector::CloseConnecti .PP .SS "long \fBconnection::bytes_in\fP" .PP -Stats counter for bytes inbound. Definition at line 231 of file connection.h. +Stats counter for bytes inbound. Definition at line 227 of file connection.h. .PP Referenced by userrec::userrec(). .SS "long \fBconnection::bytes_out\fP" .PP -Stats counter for bytes outbound. Definition at line 235 of file connection.h. +Stats counter for bytes outbound. Definition at line 231 of file connection.h. .PP Referenced by userrec::FlushWriteBuf(), and userrec::userrec(). .SS "long \fBconnection::cmds_in\fP" .PP -Stats counter for commands inbound. Definition at line 239 of file connection.h. +Stats counter for commands inbound. Definition at line 235 of file connection.h. .PP Referenced by userrec::userrec(). .SS "long \fBconnection::cmds_out\fP" .PP -Stats counter for commands outbound. Definition at line 243 of file connection.h. +Stats counter for commands outbound. Definition at line 239 of file connection.h. .PP Referenced by userrec::FlushWriteBuf(), and userrec::userrec(). .SS "std::vector<\fBircd_connector\fP> \fBconnection::connectors\fP" .PP -With a serverrec, this is a list of all established server connections. With a userrec this is unused.Definition at line 290 of file connection.h. +With a serverrec, this is a list of all established server connections. With a userrec this is unused.Definition at line 274 of file connection.h. .SS "int \fBconnection::fd\fP" .PP File descriptor of the connection. Definition at line 215 of file connection.h. @@ -200,63 +184,49 @@ File descriptor of the connection. Definition at line 215 of file connection.h. Referenced by ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo(). .SS "bool \fBconnection::haspassed\fP" .PP -True if server/user has authenticated, false if otherwise. Definition at line 247 of file connection.h. +True if server/user has authenticated, false if otherwise. Definition at line 243 of file connection.h. .PP Referenced by userrec::userrec(). -.SS "char \fBconnection::host\fP[256]" +.SS "char \fBconnection::host\fP[160]" .PP Hostname of connection. Not used if this is a serverrecDefinition at line 219 of file connection.h. .PP Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo(). .SS "time_t \fBconnection::idle_lastmsg\fP" .PP -Time that the connection last sent data, used to calculate idle time. Definition at line 273 of file connection.h. +Time that the connection last sent data, used to calculate idle time. Definition at line 265 of file connection.h. .PP Referenced by userrec::userrec(). -.SS "char \fBconnection::inbuf\fP[MAXBUF]" +.SS "char \fBconnection::ip\fP[16]" .PP -Inbuf of connection. Only used for userrecDefinition at line 227 of file connection.h. -.PP -Referenced by userrec::userrec(). -.SS "char \fBconnection::internal_addr\fP[MAXBUF]" -.PP -Unused, will be removed in a future alpha/beta. Definition at line 281 of file connection.h. -.SS "int \fBconnection::internal_port\fP" -.PP -Unused, will be removed in a future alpha/beta. Definition at line 285 of file connection.h. -.SS "char \fBconnection::ip\fP[32]" -.PP -IP of connection. Reserved for future use.Definition at line 223 of file connection.h. +IP of connection. Definition at line 223 of file connection.h. .PP Referenced by userrec::userrec(). .SS "time_t \fBconnection::lastping\fP" .PP -Time the connection was last pinged. Definition at line 265 of file connection.h. +Time the connection was last pinged. Definition at line 257 of file connection.h. .PP Referenced by serverrec::serverrec(), and userrec::userrec(). .SS "time_t \fBconnection::nping\fP" .PP -Used by PING checks with clients. Definition at line 277 of file connection.h. +Used by PING checks with clients. Definition at line 269 of file connection.h. .PP Referenced by userrec::userrec(). .SS "int \fBconnection::port\fP" .PP -Port number For a userrec, this is the port they connected to the network on. For a serverrec this is the current listening port of the serverrec object.Definition at line 253 of file connection.h. +Port number For a userrec, this is the port they connected to the network on. For a serverrec this is the current listening port of the serverrec object.Definition at line 249 of file connection.h. .PP Referenced by userrec::userrec(). -.SS "int \fBconnection::registered\fP" +.SS "char \fBconnection::registered\fP" .PP -Used by userrec to indicate the registration status of the connection. Definition at line 257 of file connection.h. +Used by userrec to indicate the registration status of the connection. Definition at line 253 of file connection.h. .PP Referenced by userrec::userrec(). .SS "time_t \fBconnection::signon\fP" .PP -Time the connection was created, set in the constructor. Definition at line 269 of file connection.h. +Time the connection was created, set in the constructor. Definition at line 261 of file connection.h. .PP Referenced by serverrec::serverrec(), and userrec::userrec(). -.SS "short int \fBconnection::state\fP" -.PP -Reserved for future use. Definition at line 261 of file connection.h. .SH "Author" .PP diff --git a/docs/man/man3/ircd_connector.3 b/docs/man/man3/ircd_connector.3 index ba180d210..67e295c96 100644 --- a/docs/man/man3/ircd_connector.3 +++ b/docs/man/man3/ircd_connector.3 @@ -146,7 +146,7 @@ Inherits \fBExtensible\fP. .br .RI "\fI\fBServer\fP 'GECOS'. \fP" .ti -1c -.RI "int \fBstate\fP" +.RI "char \fBstate\fP" .br .RI "\fIState. \fP" .ti -1c @@ -254,7 +254,7 @@ When MakeOutboundConnection is called, these public members are filled with the .SS "std::string \fBircd_connector::servername\fP\fC [private]\fP" .PP \fBServer\fP name. Definition at line 67 of file connection.h. -.SS "int \fBircd_connector::state\fP\fC [private]\fP" +.SS "char \fBircd_connector::state\fP\fC [private]\fP" .PP State. STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTEDDefinition at line 76 of file connection.h. .SS "std::string \fBircd_connector::version\fP\fC [private]\fP" diff --git a/docs/man/man3/modules.cpp.3 b/docs/man/man3/modules.cpp.3 index 680c95da6..b8a1f6769 100644 --- a/docs/man/man3/modules.cpp.3 +++ b/docs/man/man3/modules.cpp.3 @@ -111,6 +111,9 @@ modules.cpp \- .RI "typedef nspace::hash_map< in_addr, string *, nspace::hash< in_addr >, \fBInAddr_HashComp\fP > \fBaddress_cache\fP" .br .ti -1c +.RI "typedef nspace::hash_map< std::string, \fBWhoWasUser\fP *, nspace::hash< string >, \fBStrHashComp\fP > \fBwhowas_hash\fP" +.br +.ti -1c .RI "typedef std::deque< \fBcommand_t\fP > \fBcommand_table\fP" .br .ti -1c @@ -275,7 +278,7 @@ modules.cpp \- .RI "\fBchan_hash\fP \fBchanlist\fP" .br .ti -1c -.RI "\fBuser_hash\fP \fBwhowas\fP" +.RI "\fBwhowas_hash\fP \fBwhowas\fP" .br .ti -1c .RI "\fBcommand_table\fP \fBcmdlist\fP" @@ -308,151 +311,154 @@ Definition at line 187 of file modules.cpp. Definition at line 186 of file modules.cpp. .SS "typedef std::deque<\fBcommand_t\fP> \fBcommand_table\fP" .PP -Definition at line 188 of file modules.cpp. +Definition at line 189 of file modules.cpp. .SS "typedef std::vector<\fBExtMode\fP> \fBExtModeList\fP" .PP -Definition at line 214 of file modules.cpp. +Definition at line 215 of file modules.cpp. .SS "typedef ExtModeList::iterator \fBExtModeListIter\fP" .PP -Definition at line 215 of file modules.cpp. +Definition at line 216 of file modules.cpp. .PP Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). .SS "typedef nspace::hash_map, \fBStrHashComp\fP> \fBuser_hash\fP" .PP Definition at line 185 of file modules.cpp. +.SS "typedef nspace::hash_map, \fBStrHashComp\fP> \fBwhowas_hash\fP" +.PP +Definition at line 188 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 284 of file modules.cpp. +Definition at line 285 of file modules.cpp. .PP References EMode, and ModeDefined(). .PP Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode(). .PP .nf -285 { -286 if (ModeDefined(modechar,type)) { -287 return false; -288 } -289 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -290 return true; -291 } +286 { +287 if (ModeDefined(modechar,type)) { +288 return false; +289 } +290 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +291 return true; +292 } .fi .SS "std::vector<\fBircd_module\fP*> factory (255)" .PP .SS "bool ModeDefined (char modechar, int type)" .PP -Definition at line 221 of file modules.cpp. +Definition at line 222 of file modules.cpp. .PP References EMode, and ExtModeListIter. .PP Referenced by DoAddExtendedMode(). .PP .nf -222 { -223 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -224 { -225 if ((i->modechar == modechar) && (i->type == type)) -226 { -227 return true; -228 } -229 } -230 return false; -231 } +223 { +224 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +225 { +226 if ((i->modechar == modechar) && (i->type == type)) +227 { +228 return true; +229 } +230 } +231 return false; +232 } .fi .SS "int ModeDefinedOff (char modechar, int type)" .PP -Definition at line 271 of file modules.cpp. +Definition at line 272 of file modules.cpp. .PP References EMode, and ExtModeListIter. .PP .nf -272 { -273 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -274 { -275 if ((i->modechar == modechar) && (i->type == type)) -276 { -277 return i->params_when_off; -278 } -279 } -280 return 0; -281 } +273 { +274 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +275 { +276 if ((i->modechar == modechar) && (i->type == type)) +277 { +278 return i->params_when_off; +279 } +280 } +281 return 0; +282 } .fi .SS "int ModeDefinedOn (char modechar, int type)" .PP -Definition at line 258 of file modules.cpp. +Definition at line 259 of file modules.cpp. .PP References EMode, and ExtModeListIter. .PP .nf -259 { -260 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -261 { -262 if ((i->modechar == modechar) && (i->type == type)) -263 { -264 return i->params_when_on; -265 } -266 } -267 return 0; -268 } +260 { +261 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +262 { +263 if ((i->modechar == modechar) && (i->type == type)) +264 { +265 return i->params_when_on; +266 } +267 } +268 return 0; +269 } .fi .SS "bool ModeDefinedOper (char modechar, int type)" .PP -Definition at line 245 of file modules.cpp. +Definition at line 246 of file modules.cpp. .PP References EMode, and ExtModeListIter. .PP .nf -246 { -247 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -248 { -249 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -250 { -251 return true; -252 } -253 } -254 return false; -255 } +247 { +248 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +249 { +250 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +251 { +252 return true; +253 } +254 } +255 return false; +256 } .fi .SS "bool ModeIsListMode (char modechar, int type)" .PP -Definition at line 233 of file modules.cpp. +Definition at line 234 of file modules.cpp. .PP References EMode, and ExtModeListIter. .PP .nf -234 { -235 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -236 { -237 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -238 { -239 return true; -240 } -241 } -242 return false; -243 } +235 { +236 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +237 { +238 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +239 { +240 return true; +241 } +242 } +243 return false; +244 } .fi .SS "void ModeMakeList (char modechar)" .PP -Definition at line 294 of file modules.cpp. +Definition at line 295 of file modules.cpp. .PP References EMode, ExtModeListIter, and MT_CHANNEL. .PP Referenced by Server::AddExtendedListMode(). .PP .nf -295 { -296 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -297 { -298 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -299 { -300 i->list = true; -301 return; -302 } -303 } -304 return; -305 } +296 { +297 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +298 { +299 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +300 { +301 i->list = true; +302 return; +303 } +304 } +305 return; +306 } .fi .SS "std::vector<\fBModule\fP*> modules (255)" .PP @@ -475,13 +481,13 @@ Definition at line 112 of file modules.cpp. Definition at line 106 of file modules.cpp. .SS "\fBchan_hash\fP \fBchanlist\fP" .PP -Definition at line 192 of file modules.cpp. +Definition at line 193 of file modules.cpp. .SS "\fBuser_hash\fP \fBclientlist\fP" .PP -Definition at line 191 of file modules.cpp. +Definition at line 192 of file modules.cpp. .SS "\fBcommand_table\fP \fBcmdlist\fP" .PP -Definition at line 194 of file modules.cpp. +Definition at line 195 of file modules.cpp. .SS "std::stringstream \fBconfig_f\fP" .PP Definition at line 113 of file modules.cpp. @@ -502,7 +508,7 @@ Definition at line 86 of file modules.cpp. Definition at line 92 of file modules.cpp. .SS "\fBExtModeList\fP \fBEMode\fP" .PP -Definition at line 218 of file modules.cpp. +Definition at line 219 of file modules.cpp. .PP Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). .SS "std::vector<\fBircd_module\fP*> factory" @@ -518,7 +524,7 @@ Definition at line 119 of file modules.cpp. Referenced by Server::FindDescriptor(), and Server::PseudoToUser(). .SS "\fBaddress_cache\fP \fBIP\fP" .PP -Definition at line 197 of file modules.cpp. +Definition at line 198 of file modules.cpp. .SS "char \fBlist\fP[MAXBUF]" .PP Definition at line 90 of file modules.cpp. @@ -536,7 +542,7 @@ Definition at line 100 of file modules.cpp. Definition at line 115 of file modules.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 1066 of file modules.cpp. +Definition at line 1067 of file modules.cpp. .SS "std::vector \fBmodule_names\fP" .PP Definition at line 104 of file modules.cpp. @@ -545,7 +551,7 @@ Definition at line 104 of file modules.cpp. Definition at line 74 of file modules.cpp. .SS "\fBfile_cache\fP \fBMOTD\fP" .PP -Definition at line 195 of file modules.cpp. +Definition at line 196 of file modules.cpp. .SS "char \fBmotd\fP[MAXBUF]" .PP Definition at line 88 of file modules.cpp. @@ -572,7 +578,7 @@ Definition at line 91 of file modules.cpp. Definition at line 87 of file modules.cpp. .SS "\fBfile_cache\fP \fBRULES\fP" .PP -Definition at line 196 of file modules.cpp. +Definition at line 197 of file modules.cpp. .SS "char \fBrules\fP[MAXBUF]" .PP Definition at line 89 of file modules.cpp. @@ -591,9 +597,9 @@ Definition at line 98 of file modules.cpp. .SS "time_t \fBTIME\fP" .PP Definition at line 77 of file modules.cpp. -.SS "\fBuser_hash\fP \fBwhowas\fP" +.SS "\fBwhowas_hash\fP \fBwhowas\fP" .PP -Definition at line 193 of file modules.cpp. +Definition at line 194 of file modules.cpp. .SS "int \fBWHOWAS_MAX\fP" .PP Definition at line 96 of file modules.cpp. diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3 index 941107fdd..a048470b7 100644 --- a/docs/man/man3/ucrec.3 +++ b/docs/man/man3/ucrec.3 @@ -26,7 +26,7 @@ Inherits \fBclassbase\fP. .in +1c .ti -1c -.RI "long \fBuc_modes\fP" +.RI "char \fBuc_modes\fP" .br .RI "\fIContains a bitmask of the UCMODE_OP ... \fP" .ti -1c @@ -40,33 +40,33 @@ Holds a user's modes on a channel This class associates a users privilages with The uc_modes member holds a bitmask of which privilages the user has on the channel, such as op, voice, etc. .PP -Definition at line 257 of file channels.h. +Definition at line 222 of file channels.h. .SH "Constructor & Destructor Documentation" .PP .SS "ucrec::ucrec ()\fC [inline]\fP" .PP -Definition at line 270 of file channels.h. +Definition at line 235 of file channels.h. .PP .nf -270 { /* stub */ } +235 { /* stub */ } .fi .SS "virtual ucrec::~\fBucrec\fP ()\fC [inline, virtual]\fP" .PP -Definition at line 271 of file channels.h. +Definition at line 236 of file channels.h. .PP .nf -271 { /* stub */ } +236 { /* stub */ } .fi .SH "Member Data Documentation" .PP .SS "\fBchanrec\fP* \fBucrec::channel\fP" .PP -Points to the channel record where the given modes apply. If the record is not in use, this value will be NULL.Definition at line 268 of file channels.h. +Points to the channel record where the given modes apply. If the record is not in use, this value will be NULL.Definition at line 233 of file channels.h. .PP Referenced by Server::PseudoToUser(), and userrec::userrec(). -.SS "long \fBucrec::uc_modes\fP" +.SS "char \fBucrec::uc_modes\fP" .PP -Contains a bitmask of the UCMODE_OP ... UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel.Definition at line 263 of file channels.h. +Contains a bitmask of the UCMODE_OP ... UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel.Definition at line 228 of file channels.h. .PP Referenced by userrec::userrec(). diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3 index e1951f22a..c5564873a 100644 --- a/docs/man/man3/userrec.3 +++ b/docs/man/man3/userrec.3 @@ -86,11 +86,11 @@ Inherits \fBconnection\fP. .br .RI "\fIThe users nickname. \fP" .ti -1c -.RI "char \fBident\fP [64]" +.RI "char \fBident\fP [16]" .br .RI "\fIThe users ident reply. \fP" .ti -1c -.RI "char \fBdhost\fP [256]" +.RI "char \fBdhost\fP [160]" .br .RI "\fIThe host displayed to non-opers (used for cloaking etc). \fP" .ti -1c @@ -121,7 +121,7 @@ Inherits \fBconnection\fP. .br .RI "\fINumber of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood. \fP" .ti -1c -.RI "unsigned long \fBtimeout\fP" +.RI "unsigned int \fBtimeout\fP" .br .RI "\fINumber of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected. \fP" .ti -1c @@ -133,7 +133,7 @@ Inherits \fBconnection\fP. .br .RI "\fITrue when \fBDNS\fP lookups are completed. \fP" .ti -1c -.RI "unsigned long \fBpingmax\fP" +.RI "unsigned int \fBpingmax\fP" .br .RI "\fINumber of seconds between PINGs for this user (set from tag. \fP" .ti -1c @@ -149,7 +149,7 @@ Inherits \fBconnection\fP. .br .RI "\fIUser's send queue. \fP" .ti -1c -.RI "long \fBlines_in\fP" +.RI "int \fBlines_in\fP" .br .RI "\fIFlood counters. \fP" .ti -1c @@ -191,7 +191,7 @@ Definition at line 108 of file users.h. .PP Definition at line 28 of file users.cpp. .PP -References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, connection::inbuf, invites, connection::ip, connection::lastping, lines_in, modes, nick, connection::nping, oper, connection::port, recvq, connection::registered, reset_due, result, sendq, server, connection::signon, TIME, timeout, and ucrec::uc_modes. +References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, invites, connection::ip, connection::lastping, lines_in, modes, nick, connection::nping, oper, connection::port, recvq, connection::registered, reset_due, result, sendq, server, connection::signon, TIME, timeout, and ucrec::uc_modes. .PP .nf 29 { @@ -204,26 +204,25 @@ References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, 36 strcpy(dhost,''); 37 strcpy(fullname,''); 38 strcpy(modes,''); -39 strcpy(inbuf,''); -40 strcpy(server,''); -41 strcpy(awaymsg,''); -42 strcpy(oper,''); -43 reset_due = TIME; -44 lines_in = 0; -45 fd = lastping = signon = idle_lastmsg = nping = registered = 0; -46 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; -47 haspassed = false; -48 dns_done = false; -49 recvq = ''; -50 sendq = ''; -51 strcpy(result,''); -52 for (int i = 0; i < MAXCHANS; i++) -53 { -54 this->chans[i].channel = NULL; -55 this->chans[i].uc_modes = 0; -56 } -57 invites.clear(); -58 } +39 strcpy(server,''); +40 strcpy(awaymsg,''); +41 strcpy(oper,''); +42 reset_due = TIME; +43 lines_in = 0; +44 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +45 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +46 haspassed = false; +47 dns_done = false; +48 recvq = ''; +49 sendq = ''; +50 strcpy(result,''); +51 for (int i = 0; i < MAXCHANS; i++) +52 { +53 this->chans[i].channel = NULL; +54 this->chans[i].uc_modes = 0; +55 } +56 invites.clear(); +57 } .fi .SS "virtual userrec::~\fBuserrec\fP ()\fC [inline, virtual]\fP" .PP @@ -236,305 +235,305 @@ Definition at line 222 of file users.h. .PP .SS "bool userrec::AddBuffer (std::string a)" .PP -This method adds data to the buffer of the user. The buffer can grow to any size within limits of the available memory, managed by the size of a std::string, however if any individual line in the buffer grows over 600 bytes in length (which is 88 chars over the RFC-specified limit per line) then the method will return false and the text will not be inserted.Definition at line 170 of file users.cpp. +This method adds data to the buffer of the user. The buffer can grow to any size within limits of the available memory, managed by the size of a std::string, however if any individual line in the buffer grows over 600 bytes in length (which is 88 chars over the RFC-specified limit per line) then the method will return false and the text will not be inserted.Definition at line 169 of file users.cpp. .PP References recvq, recvqmax, and SetWriteError(). .PP .nf -171 { -172 std::string b = ''; -173 for (int i = 0; i < a.length(); i++) -174 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7)) -175 b = b + a[i]; -176 std::stringstream stream(recvq); -177 stream << b; -178 recvq = stream.str(); -179 int i = 0; -180 // count the size of the first line in the buffer. -181 while (i < recvq.length()) -182 { -183 if (recvq[i++] == '\n') -184 break; -185 } -186 if (recvq.length() > this->recvqmax) -187 { -188 this->SetWriteError('RecvQ exceeded'); -189 WriteOpers('*** User %s RecvQ of %d exceeds connect class maximum of %d',this->nick,recvq.length(),this->recvqmax); -190 } -191 // return false if we've had more than 600 characters WITHOUT -192 // a carriage return (this is BAD, drop the socket) -193 return (i < 600); -194 } +170 { +171 std::string b = ''; +172 for (int i = 0; i < a.length(); i++) +173 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7)) +174 b = b + a[i]; +175 std::stringstream stream(recvq); +176 stream << b; +177 recvq = stream.str(); +178 int i = 0; +179 // count the size of the first line in the buffer. +180 while (i < recvq.length()) +181 { +182 if (recvq[i++] == '\n') +183 break; +184 } +185 if (recvq.length() > this->recvqmax) +186 { +187 this->SetWriteError('RecvQ exceeded'); +188 WriteOpers('*** User %s RecvQ of %d exceeds connect class maximum of %d',this->nick,recvq.length(),this->recvqmax); +189 } +190 // return false if we've had more than 600 characters WITHOUT +191 // a carriage return (this is BAD, drop the socket) +192 return (i < 600); +193 } .fi .SS "void userrec::AddWriteBuf (std::string data)" .PP -Adds to the user's write buffer. You may add any amount of text up to this users sendq value, if you exceed the sendq value, \fBSetWriteError()\fP will be called to set the users error string to 'SendQ exceeded', and further buffer adds will be dropped.Definition at line 226 of file users.cpp. +Adds to the user's write buffer. You may add any amount of text up to this users sendq value, if you exceed the sendq value, \fBSetWriteError()\fP will be called to set the users error string to 'SendQ exceeded', and further buffer adds will be dropped.Definition at line 225 of file users.cpp. .PP References GetWriteError(), sendq, sendqmax, and SetWriteError(). .PP .nf -227 { -228 if (this->GetWriteError() != '') -229 return; -230 if (sendq.length() + data.length() > this->sendqmax) -231 { -232 WriteOpers('*** User %s SendQ of %d exceeds connect class maximum of %d',this->nick,sendq.length() + data.length(),this->sendqmax); -233 this->SetWriteError('SendQ exceeded'); -234 return; -235 } -236 std::stringstream stream; -237 stream << sendq << data; -238 sendq = stream.str(); -239 } +226 { +227 if (this->GetWriteError() != '') +228 return; +229 if (sendq.length() + data.length() > this->sendqmax) +230 { +231 WriteOpers('*** User %s SendQ of %d exceeds connect class maximum of %d',this->nick,sendq.length() + data.length(),this->sendqmax); +232 this->SetWriteError('SendQ exceeded'); +233 return; +234 } +235 std::stringstream stream; +236 stream << sendq << data; +237 sendq = stream.str(); +238 } .fi .SS "bool userrec::BufferIsReady ()" .PP -This method returns true if the buffer contains at least one carriage return character (e.g. one complete line may be read)Definition at line 196 of file users.cpp. +This method returns true if the buffer contains at least one carriage return character (e.g. one complete line may be read)Definition at line 195 of file users.cpp. .PP References recvq. .PP .nf -197 { -198 for (int i = 0; i < recvq.length(); i++) -199 if (recvq[i] == '\n') -200 return true; -201 return false; -202 } +196 { +197 for (int i = 0; i < recvq.length(); i++) +198 if (recvq[i] == '\n') +199 return true; +200 return false; +201 } .fi .SS "void userrec::ClearBuffer ()" .PP -This function clears the entire buffer by setting it to an empty string. Definition at line 204 of file users.cpp. +This function clears the entire buffer by setting it to an empty string. Definition at line 203 of file users.cpp. .PP References recvq. .PP Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). .PP .nf -205 { -206 recvq = ''; -207 } +204 { +205 recvq = ''; +206 } .fi .SS "void userrec::FlushWriteBuf ()" .PP -Flushes as much of the user's buffer to the file descriptor as possible. This function may not always flush the entire buffer, rather instead as much of it as it possibly can. If the send() call fails to send the entire buffer, the buffer position is advanced forwards and the rest of the data sent at the next call to this method.Definition at line 242 of file users.cpp. +Flushes as much of the user's buffer to the file descriptor as possible. This function may not always flush the entire buffer, rather instead as much of it as it possibly can. If the send() call fails to send the entire buffer, the buffer position is advanced forwards and the rest of the data sent at the next call to this method.Definition at line 241 of file users.cpp. .PP References connection::bytes_out, connection::cmds_out, sendq, and SetWriteError(). .PP .nf -243 { -244 if (sendq.length()) -245 { -246 char* tb = (char*)this->sendq.c_str(); -247 int n_sent = write(this->fd,tb,this->sendq.length()); -248 if (n_sent == -1) -249 { -250 this->SetWriteError(strerror(errno)); -251 } -252 else -253 { -254 // advance the queue -255 tb += n_sent; -256 this->sendq = tb; -257 // update the user's stats counters -258 this->bytes_out += n_sent; -259 this->cmds_out++; -260 } -261 } -262 } +242 { +243 if (sendq.length()) +244 { +245 char* tb = (char*)this->sendq.c_str(); +246 int n_sent = write(this->fd,tb,this->sendq.length()); +247 if (n_sent == -1) +248 { +249 this->SetWriteError(strerror(errno)); +250 } +251 else +252 { +253 // advance the queue +254 tb += n_sent; +255 this->sendq = tb; +256 // update the user's stats counters +257 this->bytes_out += n_sent; +258 this->cmds_out++; +259 } +260 } +261 } .fi .SS "std::string userrec::GetBuffer ()" .PP -This method returns the first available string at the tail end of the buffer and advances the tail end of the buffer past the string. This means it is a one way operation in a similar way to strtok(), and multiple calls return multiple lines if they are available. The results of this function if there are no lines to be read are unknown, always use \fBBufferIsReady()\fP to check if it is ok to read the buffer before calling \fBGetBuffer()\fP.Definition at line 209 of file users.cpp. +This method returns the first available string at the tail end of the buffer and advances the tail end of the buffer past the string. This means it is a one way operation in a similar way to strtok(), and multiple calls return multiple lines if they are available. The results of this function if there are no lines to be read are unknown, always use \fBBufferIsReady()\fP to check if it is ok to read the buffer before calling \fBGetBuffer()\fP.Definition at line 208 of file users.cpp. .PP References recvq. .PP .nf -210 { -211 if (recvq == '') -212 return ''; -213 char* line = (char*)recvq.c_str(); -214 std::string ret = ''; -215 while ((*line != '\n') && (strlen(line))) -216 { -217 ret = ret + *line; -218 line++; -219 } -220 if ((*line == '\n') || (*line == '\r')) -221 line++; -222 recvq = line; -223 return ret; -224 } +209 { +210 if (recvq == '') +211 return ''; +212 char* line = (char*)recvq.c_str(); +213 std::string ret = ''; +214 while ((*line != '\n') && (strlen(line))) +215 { +216 ret = ret + *line; +217 line++; +218 } +219 if ((*line == '\n') || (*line == '\r')) +220 line++; +221 recvq = line; +222 return ret; +223 } .fi .SS "char * userrec::GetFullHost ()\fC [virtual]\fP" .PP -Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. Definition at line 62 of file users.cpp. +Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. Definition at line 61 of file users.cpp. .PP References dhost, ident, nick, and result. .PP .nf -63 { -64 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,dhost); -65 return result; -66 } +62 { +63 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,dhost); +64 return result; +65 } .fi .SS "char * userrec::GetFullRealHost ()\fC [virtual]\fP" .PP -Returns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.Definition at line 69 of file users.cpp. +Returns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.Definition at line 68 of file users.cpp. .PP References connection::host, ident, nick, and result. .PP .nf -70 { -71 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,host); -72 return result; -73 } +69 { +70 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,host); +71 return result; +72 } .fi .SS "std::string userrec::GetWriteError ()" .PP -Returns the write error which last occured on this connection or an empty string if none occured. Definition at line 272 of file users.cpp. +Returns the write error which last occured on this connection or an empty string if none occured. Definition at line 271 of file users.cpp. .PP References WriteError. .PP Referenced by AddWriteBuf(). .PP .nf -273 { -274 return this->WriteError; -275 } +272 { +273 return this->WriteError; +274 } .fi .SS "bool userrec::HasPermission (char * command)" .PP -Returns true or false for if a user can execute a privilaged oper command. This is done by looking up their oper type from \fBuserrec::oper\fP, then referencing this to their oper classes and checking the commands they can execute.Definition at line 118 of file users.cpp. +Returns true or false for if a user can execute a privilaged oper command. This is done by looking up their oper type from \fBuserrec::oper\fP, then referencing this to their oper classes and checking the commands they can execute.Definition at line 117 of file users.cpp. .PP References config_f, and DEBUG. .PP .nf -119 { -120 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -121 char* mycmd; -122 char* savept; -123 char* savept2; -124 -125 // are they even an oper at all? -126 if (strchr(this->modes,'o')) -127 { -128 log(DEBUG,'*** HasPermission: %s is an oper',this->nick); -129 for (int j =0; j < ConfValueEnum('type',&config_f); j++) -130 { -131 ConfValue('type','name',j,TypeName,&config_f); -132 if (!strcmp(TypeName,this->oper)) -133 { -134 log(DEBUG,'*** HasPermission: %s is an oper of type '%s'',this->nick,this->oper); -135 ConfValue('type','classes',j,Classes,&config_f); -136 char* myclass = strtok_r(Classes,' ',&savept); -137 while (myclass) -138 { -139 log(DEBUG,'*** HasPermission: checking classtype '%s'',myclass); -140 for (int k =0; k < ConfValueEnum('class',&config_f); k++) -141 { -142 ConfValue('class','name',k,ClassName,&config_f); -143 if (!strcmp(ClassName,myclass)) -144 { -145 ConfValue('class','commands',k,CommandList,&config_f); -146 log(DEBUG,'*** HasPermission: found class named %s with commands: '%s'',ClassName,CommandList); +118 { +119 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +120 char* mycmd; +121 char* savept; +122 char* savept2; +123 +124 // are they even an oper at all? +125 if (strchr(this->modes,'o')) +126 { +127 log(DEBUG,'*** HasPermission: %s is an oper',this->nick); +128 for (int j =0; j < ConfValueEnum('type',&config_f); j++) +129 { +130 ConfValue('type','name',j,TypeName,&config_f); +131 if (!strcmp(TypeName,this->oper)) +132 { +133 log(DEBUG,'*** HasPermission: %s is an oper of type '%s'',this->nick,this->oper); +134 ConfValue('type','classes',j,Classes,&config_f); +135 char* myclass = strtok_r(Classes,' ',&savept); +136 while (myclass) +137 { +138 log(DEBUG,'*** HasPermission: checking classtype '%s'',myclass); +139 for (int k =0; k < ConfValueEnum('class',&config_f); k++) +140 { +141 ConfValue('class','name',k,ClassName,&config_f); +142 if (!strcmp(ClassName,myclass)) +143 { +144 ConfValue('class','commands',k,CommandList,&config_f); +145 log(DEBUG,'*** HasPermission: found class named %s with commands: '%s'',ClassName,CommandList); +146 147 -148 -149 mycmd = strtok_r(CommandList,' ',&savept2); -150 while (mycmd) -151 { -152 if (!strcasecmp(mycmd,command)) -153 { -154 log(DEBUG,'*** Command %s found, returning true',command); -155 return true; -156 } -157 mycmd = strtok_r(NULL,' ',&savept2); -158 } -159 } -160 } -161 myclass = strtok_r(NULL,' ',&savept); -162 } -163 } -164 } -165 } -166 return false; -167 } +148 mycmd = strtok_r(CommandList,' ',&savept2); +149 while (mycmd) +150 { +151 if (!strcasecmp(mycmd,command)) +152 { +153 log(DEBUG,'*** Command %s found, returning true',command); +154 return true; +155 } +156 mycmd = strtok_r(NULL,' ',&savept2); +157 } +158 } +159 } +160 myclass = strtok_r(NULL,' ',&savept); +161 } +162 } +163 } +164 } +165 return false; +166 } .fi .SS "void userrec::InviteTo (char * channel)\fC [virtual]\fP" .PP -Adds a channel to a users invite list (invites them to a channel). Definition at line 89 of file users.cpp. +Adds a channel to a users invite list (invites them to a channel). Definition at line 88 of file users.cpp. .PP References Invited::channel, and invites. .PP .nf -90 { -91 Invited i; -92 strlcpy(i.channel,channel,CHANMAX); -93 invites.push_back(i); -94 } +89 { +90 Invited i; +91 strlcpy(i.channel,channel,CHANMAX); +92 invites.push_back(i); +93 } .fi .SS "bool userrec::IsInvited (char * channel)\fC [virtual]\fP" .PP -Returns true if a user is invited to a channel. Definition at line 75 of file users.cpp. +Returns true if a user is invited to a channel. Definition at line 74 of file users.cpp. .PP References invites. .PP .nf -76 { -77 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -78 { -79 if (i->channel) { -80 if (!strcasecmp(i->channel,channel)) -81 { -82 return true; -83 } -84 } -85 } -86 return false; -87 } +75 { +76 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +77 { +78 if (i->channel) { +79 if (!strcasecmp(i->channel,channel)) +80 { +81 return true; +82 } +83 } +84 } +85 return false; +86 } .fi .SS "void userrec::RemoveInvite (char * channel)\fC [virtual]\fP" .PP -Removes a channel from a users invite list. This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.Definition at line 96 of file users.cpp. +Removes a channel from a users invite list. This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.Definition at line 95 of file users.cpp. .PP References DEBUG, and invites. .PP .nf -97 { -98 log(DEBUG,'Removing invites'); -99 if (channel) -100 { -101 if (invites.size()) -102 { -103 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -104 { -105 if (i->channel) -106 { -107 if (!strcasecmp(i->channel,channel)) -108 { -109 invites.erase(i); -110 return; -111 } -112 } -113 } -114 } -115 } -116 } +96 { +97 log(DEBUG,'Removing invites'); +98 if (channel) +99 { +100 if (invites.size()) +101 { +102 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +103 { +104 if (i->channel) +105 { +106 if (!strcasecmp(i->channel,channel)) +107 { +108 invites.erase(i); +109 return; +110 } +111 } +112 } +113 } +114 } +115 } .fi .SS "void userrec::SetWriteError (std::string error)" .PP -Sets the write error for a connection. This is done because the actual disconnect of a client may occur at an inopportune time such as half way through /LIST output. The WriteErrors of clients are checked at a more ideal time (in the mainloop) and errored clients purged.Definition at line 264 of file users.cpp. +Sets the write error for a connection. This is done because the actual disconnect of a client may occur at an inopportune time such as half way through /LIST output. The WriteErrors of clients are checked at a more ideal time (in the mainloop) and errored clients purged.Definition at line 263 of file users.cpp. .PP References DEBUG, and WriteError. .PP Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf(). .PP .nf -265 { -266 log(DEBUG,'Setting error string for %s to '%s'',this->nick,error.c_str()); -267 // don't try to set the error twice, its already set take the first string. -268 if (this->WriteError == '') -269 this->WriteError = error; -270 } +264 { +265 log(DEBUG,'Setting error string for %s to '%s'',this->nick,error.c_str()); +266 // don't try to set the error twice, its already set take the first string. +267 if (this->WriteError == '') +268 this->WriteError = error; +269 } .fi .SH "Member Data Documentation" .PP @@ -548,7 +547,7 @@ Referenced by userrec(). Definition at line 142 of file users.h. .PP Referenced by Server::PseudoToUser(), and userrec(). -.SS "char \fBuserrec::dhost\fP[256]" +.SS "char \fBuserrec::dhost\fP[160]" .PP The host displayed to non-opers (used for cloaking etc). This usually matches the value of \fBuserrec::host\fP.Definition at line 130 of file users.h. .PP @@ -568,7 +567,7 @@ Referenced by userrec(). The users full name. Definition at line 134 of file users.h. .PP Referenced by userrec(). -.SS "char \fBuserrec::ident\fP[64]" +.SS "char \fBuserrec::ident\fP[16]" .PP The users ident reply. Definition at line 125 of file users.h. .PP @@ -578,7 +577,7 @@ Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec( A list of channels the user has a pending invite to. Definition at line 114 of file users.h. .PP Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec(). -.SS "long \fBuserrec::lines_in\fP" +.SS "int \fBuserrec::lines_in\fP" .PP Flood counters. Definition at line 204 of file users.h. .PP @@ -601,7 +600,7 @@ Referenced by userrec(). .SS "char \fBuserrec::password\fP[MAXBUF]" .PP Password specified by the user when they registered. This is stored even if the block doesnt need a password, so that modules may check it.Definition at line 189 of file users.h. -.SS "unsigned long \fBuserrec::pingmax\fP" +.SS "unsigned int \fBuserrec::pingmax\fP" .PP Number of seconds between PINGs for this user (set from tag. Definition at line 183 of file users.h. .SS "std::string \fBuserrec::recvq\fP" @@ -642,7 +641,7 @@ Referenced by userrec(). .SS "long \fBuserrec::threshold\fP" .PP Definition at line 206 of file users.h. -.SS "unsigned long \fBuserrec::timeout\fP" +.SS "unsigned int \fBuserrec::timeout\fP" .PP Number of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected. Definition at line 168 of file users.h. .PP diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3 index ae5250157..20425922d 100644 --- a/docs/man/man3/users.h.3 +++ b/docs/man/man3/users.h.3 @@ -32,6 +32,10 @@ users.h \- .RI "class \fBuserrec\fP" .br .RI "\fIHolds all information about a user This class stores all information about a user connected to the irc server. \fP" +.ti -1c +.RI "class \fBWhoWasUser\fP" +.br +.RI "\fIA lightweight userrec used by WHOWAS. \fP" .in -1c .SS "Defines" diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index f88151f06..c2b2eb18e 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -43,10 +43,11 @@ ucrecHolds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class userrecHolds all information about a user This class stores all information about a user connected to the irc server VersionHolds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module + WhoWasUserA lightweight userrec used by WHOWAS XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Thu May 12 02:25:17 2005 for InspIRCd by +
Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 647d678c1..e01c7d6fd 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -55,7 +55,7 @@ 00079 00080 #endif 00081 -
Generated on Thu May 12 02:25:10 2005 for InspIRCd by +
Generated on Thu May 12 22:58:57 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index 5d1b5c598..50793b3d0 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -49,7 +49,7 @@ Definition at line 25 of file base.h. -
Generated on Thu May 12 02:25:14 2005 for InspIRCd by +
Generated on Thu May 12 22:58:59 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index f91ebef7e..fb91a28fe 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -117,16 +117,16 @@ 00110 00111 std::vector<ModeParameter> custom_mode_params; 00112 -00113 chanrec::chanrec() +00113 chanrec::chanrec() 00114 { 00115 strcpy(name,""); 00116 strcpy(custom_modes,""); -00117 strcpy(topic,""); -00118 strcpy(setby,""); -00119 strcpy(key,""); -00120 created = topicset = limit = users = 0; -00121 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; -00122 internal_userlist.clear(); +00117 strcpy(topic,""); +00118 strcpy(setby,""); +00119 strcpy(key,""); +00120 created = topicset = limit = 0; +00121 binarymodes = 0; +00122 internal_userlist.clear(); 00123 } 00124 00125 void chanrec::SetCustomMode(char mode,bool mode_on) @@ -206,44 +206,36 @@ 00199 return ""; 00200 } 00201 -00202 void chanrec::IncUserCounter() +00202 long chanrec::GetUserCounter() 00203 { -00204 } -00205 -00206 void chanrec::DecUserCounter() -00207 { -00208 } -00209 -00210 long chanrec::GetUserCounter() -00211 { -00212 return (this->internal_userlist.size()); -00213 } -00214 -00215 void chanrec::AddUser(char* castuser) -00216 { -00217 internal_userlist.push_back(castuser); -00218 log(DEBUG,"Added casted user to channel's internal list"); -00219 } -00220 -00221 void chanrec::DelUser(char* castuser) -00222 { -00223 for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) -00224 { -00225 if (*a == castuser) -00226 { -00227 log(DEBUG,"Removed casted user from channel's internal list"); -00228 internal_userlist.erase(a); -00229 return; -00230 } -00231 } -00232 log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name); -00233 } -00234 -00235 std::vector<char*> *chanrec::GetUsers() -00236 { -00237 return &internal_userlist; -00238 } -
Generated on Thu May 12 02:25:11 2005 for InspIRCd by +00204 return (this->internal_userlist.size()); +00205 } +00206 +00207 void chanrec::AddUser(char* castuser) +00208 { +00209 internal_userlist.push_back(castuser); +00210 log(DEBUG,"Added casted user to channel's internal list"); +00211 } +00212 +00213 void chanrec::DelUser(char* castuser) +00214 { +00215 for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) +00216 { +00217 if (*a == castuser) +00218 { +00219 log(DEBUG,"Removed casted user from channel's internal list"); +00220 internal_userlist.erase(a); +00221 return; +00222 } +00223 } +00224 log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name); +00225 } +00226 +00227 std::vector<char*> *chanrec::GetUsers() +00228 { +00229 return &internal_userlist; +00230 } +
Generated on Thu May 12 22:58:57 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 39fc4be67..448d78126 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -293,7 +293,7 @@ Definition at line 94

Definition at line 101 of file channels.cpp.

-Referenced by userrec::HasPermission(). +Referenced by userrec::HasPermission().

@@ -513,7 +513,7 @@ Definition at line 91

Definition at line 78 of file channels.cpp.

-Referenced by Server::GetUsers(). +Referenced by Server::GetUsers().

@@ -633,9 +633,9 @@ Definition at line 103

-Definition at line 1066 of file modules.cpp. +Definition at line 1067 of file modules.cpp.

-Referenced by Server::FindModule(). +Referenced by Server::FindModule().

@@ -661,7 +661,7 @@ Referenced by Server::FindM

Definition at line 92 of file channels.cpp.

-Referenced by Server::FindModule(). +Referenced by Server::FindModule().

@@ -687,7 +687,7 @@ Referenced by Server::FindM

Definition at line 64 of file channels.cpp.

-Referenced by Server::FindModule(). +Referenced by Server::FindModule().

@@ -1076,7 +1076,7 @@ Definition at line 84 Definition at line 83 of file channels.cpp. -


Generated on Thu May 12 02:25:14 2005 for InspIRCd by +
Generated on Thu May 12 22:58:59 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index 62dfa2ef8..579a8d4ba 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -30,132 +30,123 @@ 00023 #ifndef __CHANNELS_H__ 00024 #define __CHANNELS_H__ 00025 -00029 class HostItem : public classbase -00030 { -00031 public: -00032 time_t set_time; -00033 char set_by[NICKMAX]; -00034 char data[MAXBUF]; -00035 -00036 HostItem() { /* stub */ } -00037 virtual ~HostItem() { /* stub */ } -00038 }; -00039 -00040 // banlist is inherited from HostList mainly for readability -00041 // reasons only +00026 #define CM_TOPICLOCK 1 +00027 #define CM_NOEXTERNAL 2 +00028 #define CM_INVITEONLY 4 +00029 #define CM_MODERATED 8 +00030 #define CM_SECRET 16 +00031 #define CM_PRIVATE 32 +00032 +00036 class HostItem : public classbase +00037 { +00038 public: +00039 time_t set_time; +00040 char set_by[NICKMAX]; +00041 char data[MAXBUF]; 00042 -00045 class BanItem : public HostItem -00046 { -00047 }; -00048 -00049 // same with this... -00050 -00053 class ExemptItem : public HostItem -00054 { -00055 }; -00056 -00057 // and this... -00058 -00061 class InviteItem : public HostItem -00062 { -00063 }; -00064 +00043 HostItem() { /* stub */ } +00044 virtual ~HostItem() { /* stub */ } +00045 }; +00046 +00047 // banlist is inherited from HostList mainly for readability +00048 // reasons only +00049 +00052 class BanItem : public HostItem +00053 { +00054 }; +00055 +00056 // same with this... +00057 +00060 class ExemptItem : public HostItem +00061 { +00062 }; +00063 +00064 // and this... 00065 -00070 class ModeParameter : public classbase -00071 { -00072 public: -00073 char mode; -00074 char parameter[MAXBUF]; -00075 char channel[CHANMAX]; -00076 }; -00077 -00080 typedef std::vector<BanItem> BanList; -00081 -00084 typedef std::vector<ExemptItem> ExemptList; -00085 -00088 typedef std::vector<InviteItem> InviteList; -00089 -00094 class chanrec : public Extensible -00095 { -00096 public: -00099 char name[CHANMAX]; /* channel name */ -00103 char custom_modes[MAXMODES]; /* modes handled by modules */ -00104 -00107 long users; -00108 -00112 std::vector<char*> internal_userlist; -00113 -00117 char topic[MAXBUF]; -00120 time_t created; -00124 time_t topicset; -00128 char setby[NICKMAX]; -00129 -00133 long limit; -00134 -00138 char key[32]; -00139 -00142 short int topiclock; -00143 -00146 short int noexternal; -00147 -00150 short int inviteonly; -00151 -00154 short int moderated; -00155 -00159 short int secret; -00160 -00164 short int c_private; -00165 -00168 BanList bans; -00169 -00172 void SetCustomMode(char mode,bool mode_on); -00173 -00176 void SetCustomModeParam(char mode,char* parameter,bool mode_on); -00177 -00180 bool IsCustomModeSet(char mode); -00181 -00188 std::string GetModeParameter(char mode); -00189 -00195 void IncUserCounter(); -00196 -00204 void DecUserCounter(); -00205 -00211 long GetUserCounter(); -00212 -00218 void AddUser(char* castuser); -00219 -00225 void DelUser(char* castuser); -00226 -00234 std::vector<char*> *GetUsers(); -00235 -00238 chanrec(); -00239 -00240 virtual ~chanrec() { /* stub */ } -00241 }; -00242 -00243 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o -00244 * needs to come AFTER struct chanrec */ -00245 -00246 #define UCMODE_OP 1 -00247 #define UCMODE_VOICE 2 -00248 #define UCMODE_HOP 4 -00249 #define UCMODE_PROTECT 8 -00250 #define UCMODE_FOUNDER 16 -00251 -00257 class ucrec : public classbase -00258 { -00259 public: -00263 long uc_modes; -00264 -00268 chanrec *channel; -00269 -00270 ucrec() { /* stub */ } -00271 virtual ~ucrec() { /* stub */ } -00272 }; -00273 -00274 #endif -00275 -
Generated on Thu May 12 02:25:11 2005 for InspIRCd by +00068 class InviteItem : public HostItem +00069 { +00070 }; +00071 +00072 +00077 class ModeParameter : public classbase +00078 { +00079 public: +00080 char mode; +00081 char parameter[MAXBUF]; +00082 char channel[CHANMAX]; +00083 }; +00084 +00087 typedef std::vector<BanItem> BanList; +00088 +00091 typedef std::vector<ExemptItem> ExemptList; +00092 +00095 typedef std::vector<InviteItem> InviteList; +00096 +00101 class chanrec : public Extensible +00102 { +00103 public: +00106 char name[CHANMAX]; /* channel name */ +00110 char custom_modes[MAXMODES]; /* modes handled by modules */ +00111 +00115 std::vector<char*> internal_userlist; +00116 +00120 char topic[MAXBUF]; +00123 time_t created; +00127 time_t topicset; +00131 char setby[NICKMAX]; +00132 +00136 short int limit; +00137 +00141 char key[32]; +00142 +00145 char binarymodes; +00146 +00149 BanList bans; +00150 +00153 void SetCustomMode(char mode,bool mode_on); +00154 +00157 void SetCustomModeParam(char mode,char* parameter,bool mode_on); +00158 +00161 bool IsCustomModeSet(char mode); +00162 +00169 std::string GetModeParameter(char mode); +00170 +00176 long GetUserCounter(); +00177 +00183 void AddUser(char* castuser); +00184 +00190 void DelUser(char* castuser); +00191 +00199 std::vector<char*> *GetUsers(); +00200 +00203 chanrec(); +00204 +00205 virtual ~chanrec() { /* stub */ } +00206 }; +00207 +00208 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o +00209 * needs to come AFTER struct chanrec */ +00210 +00211 #define UCMODE_OP 1 +00212 #define UCMODE_VOICE 2 +00213 #define UCMODE_HOP 4 +00214 #define UCMODE_PROTECT 8 +00215 #define UCMODE_FOUNDER 16 +00216 +00222 class ucrec : public classbase +00223 { +00224 public: +00228 char uc_modes; +00229 +00233 chanrec *channel; +00234 +00235 ucrec() { /* stub */ } +00236 virtual ~ucrec() { /* stub */ } +00237 }; +00238 +00239 #endif +00240 +
Generated on Thu May 12 22:58:57 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 6b6fbdbe0..81a0ada1c 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -37,29 +37,185 @@  Holds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class. More...


Defines

-#define UCMODE_OP   1 +#define CM_TOPICLOCK   1 -#define UCMODE_VOICE   2 +#define CM_NOEXTERNAL   2 -#define UCMODE_HOP   4 +#define CM_INVITEONLY   4 -#define UCMODE_PROTECT   8 +#define CM_MODERATED   8 -#define UCMODE_FOUNDER   16 +#define CM_SECRET   16 + +#define CM_PRIVATE   32 + +#define UCMODE_OP   1 + +#define UCMODE_VOICE   2 + +#define UCMODE_HOP   4 + +#define UCMODE_PROTECT   8 + +#define UCMODE_FOUNDER   16

Typedefs

-typedef std::vector< BanItemBanList +typedef std::vector< BanItemBanList - Holds a complete ban list.


-typedef std::vector< ExemptItemExemptList + Holds a complete ban list.


+typedef std::vector< ExemptItemExemptList - Holds a complete exempt list.


-typedef std::vector< InviteItemInviteList + Holds a complete exempt list.


+typedef std::vector< InviteItemInviteList - Holds a complete invite list.


+ Holds a complete invite list.



Define Documentation

-

+

+ + + + +
+ + +
#define CM_INVITEONLY   4 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 28 of file channels.h.

+

+ + + + +
+ + +
#define CM_MODERATED   8 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 29 of file channels.h.

+

+ + + + +
+ + +
#define CM_NOEXTERNAL   2 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 27 of file channels.h.

+

+ + + + +
+ + +
#define CM_PRIVATE   32 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 31 of file channels.h.

+

+ + + + +
+ + +
#define CM_SECRET   16 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 30 of file channels.h.

+

+ + + + +
+ + +
#define CM_TOPICLOCK   1 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 26 of file channels.h.

+

+Definition at line 215 of file channels.h.
@@ -80,10 +236,10 @@

-Definition at line 250 of file channels.h.

-

+

+Definition at line 213 of file channels.h.
@@ -104,10 +260,10 @@ Definition at line 250 o

-Definition at line 248 of file channels.h.

-

+

+Definition at line 211 of file channels.h.
@@ -128,10 +284,10 @@ Definition at line 248 o

-Definition at line 246 of file channels.h.

-

+

+Definition at line 214 of file channels.h.
@@ -152,10 +308,10 @@ Definition at line 246 o

-Definition at line 249 of file channels.h.

-

+

+Definition at line 212 of file channels.h.
@@ -176,17 +332,17 @@ Definition at line 249 o

-Definition at line 247 of file channels.h.


Typedef Documentation

-

+

@@ -203,16 +359,16 @@ Holds a complete ban list.

-Definition at line 80 of file channels.h. +Definition at line 87 of file channels.h.

-
typedef std::vector<BanItem> BanList + typedef std::vector<BanItem> BanList
-

+

@@ -229,16 +385,16 @@ Holds a complete exempt list.

-Definition at line 84 of file channels.h. +Definition at line 91 of file channels.h.

-
typedef std::vector<ExemptItem> ExemptList + typedef std::vector<ExemptItem> ExemptList
-

+

@@ -255,10 +411,10 @@ Holds a complete invite list.

-Definition at line 88 of file channels.h. +Definition at line 95 of file channels.h.

-
typedef std::vector<InviteItem> InviteList + typedef std::vector<InviteItem> InviteList
-


Generated on Thu May 12 02:25:14 2005 for InspIRCd by +
Generated on Thu May 12 22:58:59 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 17bf4ca60..07341a931 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -13,7 +13,7 @@ NameAdmin NickAdmin ~classbase()classbase [inline] -
Generated on Thu May 12 02:25:18 2005 for InspIRCd by +
Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 46fd7935d..e5eafc9e2 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -76,9 +76,9 @@ Definition at line 123 of

-Definition at line 313 of file modules.cpp. +Definition at line 314 of file modules.cpp.

-

00313 : Name(name), Email(email), Nick(nick) { };
+
00314 : Name(name), Email(email), Nick(nick) { };
 
@@ -157,7 +157,7 @@ Definition at line 126 of
The documentation for this class was generated from the following files: -
Generated on Thu May 12 02:25:18 2005 for InspIRCd by +
Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index f0897a061..c11424cb8 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Thu May 12 02:25:18 2005 for InspIRCd by +
Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 146df0543..61f42292f 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -20,9 +20,9 @@ A subclass of HostItem designed to h

-Definition at line 45 of file channels.h.


The documentation for this class was generated from the following file:
    +Definition at line 52 of file channels.h.
    The documentation for this class was generated from the following file: -
    Generated on Thu May 12 02:25:18 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index 9a52c0733..31cc167fb 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -24,7 +24,7 @@ Verify()ConfigReader ~classbase()classbase [inline] ~ConfigReader()ConfigReader -
    Generated on Thu May 12 02:25:19 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index d47e96452..c37020080 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -97,17 +97,17 @@ Default constructor.

    This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.

    -Definition at line 869 of file modules.cpp. +Definition at line 870 of file modules.cpp.

    References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror.

    -

    00870 {
    -00871         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00872         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00873         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
    -00874         if (!this->readerror)
    -00875                 this->error = CONF_FILE_NOT_FOUND;
    -00876 }
    +
    00871 {
    +00872         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00873         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00874         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
    +00875         if (!this->readerror)
    +00876                 this->error = CONF_FILE_NOT_FOUND;
    +00877 }
     
    @@ -141,17 +141,17 @@ Overloaded constructor.

    This constructor initialises the ConfigReader class to read a user-specified config file

    -Definition at line 888 of file modules.cpp. +Definition at line 889 of file modules.cpp.

    References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror.

    -

    00889 {
    -00890         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00891         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00892         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
    -00893         if (!this->readerror)
    -00894                 this->error = CONF_FILE_NOT_FOUND;
    -00895 };
    +
    00890 {
    +00891         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00892         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00893         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
    +00894         if (!this->readerror)
    +00895                 this->error = CONF_FILE_NOT_FOUND;
    +00896 };
     
    @@ -184,16 +184,16 @@ Default destructor.

    This method destroys the ConfigReader class.

    -Definition at line 879 of file modules.cpp. +Definition at line 880 of file modules.cpp.

    References cache, and errorlog.

    -

    00880 {
    -00881         if (this->cache)
    -00882                 delete this->cache;
    -00883         if (this->errorlog)
    -00884                 delete this->errorlog;
    -00885 }
    +
    00881 {
    +00882         if (this->cache)
    +00883                 delete this->cache;
    +00884         if (this->errorlog)
    +00885                 delete this->errorlog;
    +00886 }
     
    @@ -237,40 +237,40 @@ 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 966 of file modules.cpp. +Definition at line 967 of file modules.cpp.

    References errorlog, connection::fd, and userrec::nick.

    -

    00967 {
    -00968         if (bail)
    -00969         {
    -00970                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
    -00971                 exit(0);
    -00972         }
    -00973         else
    -00974         {
    -00975                 char dataline[1024];
    -00976                 if (user)
    -00977                 {
    -00978                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
    -00979                         while (!errorlog->eof())
    -00980                         {
    -00981                                 errorlog->getline(dataline,1024);
    -00982                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
    -00983                         }
    -00984                 }
    -00985                 else
    -00986                 {
    -00987                         WriteOpers("There were errors in the configuration file:",user->nick);
    -00988                         while (!errorlog->eof())
    -00989                         {
    -00990                                 errorlog->getline(dataline,1024);
    -00991                                 WriteOpers(dataline);
    -00992                         }
    -00993                 }
    -00994                 return;
    -00995         }
    -00996 }
    +
    00968 {
    +00969         if (bail)
    +00970         {
    +00971                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
    +00972                 exit(0);
    +00973         }
    +00974         else
    +00975         {
    +00976                 char dataline[1024];
    +00977                 if (user)
    +00978                 {
    +00979                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
    +00980                         while (!errorlog->eof())
    +00981                         {
    +00982                                 errorlog->getline(dataline,1024);
    +00983                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
    +00984                         }
    +00985                 }
    +00986                 else
    +00987                 {
    +00988                         WriteOpers("There were errors in the configuration file:",user->nick);
    +00989                         while (!errorlog->eof())
    +00990                         {
    +00991                                 errorlog->getline(dataline,1024);
    +00992                                 WriteOpers(dataline);
    +00993                         }
    +00994                 }
    +00995                 return;
    +00996         }
    +00997 }
     
    @@ -304,13 +304,13 @@ 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 ConfigReader::ReadValue to loop through all copies of a multiple instance tag.

    -Definition at line 999 of file modules.cpp. +Definition at line 1000 of file modules.cpp.

    References cache.

    -

    01000 {
    -01001         return EnumConf(cache,tag.c_str());
    -01002 }
    +
    01001 {
    +01002         return EnumConf(cache,tag.c_str());
    +01003 }
     
    @@ -353,13 +353,13 @@ 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 1004 of file modules.cpp. +Definition at line 1005 of file modules.cpp.

    References cache.

    -

    01005 {
    -01006         return EnumValues(cache, tag.c_str(), index);
    -01007 }
    +
    01006 {
    +01007         return EnumValues(cache, tag.c_str(), index);
    +01008 }
     
    @@ -392,15 +392,15 @@ Returns the last error to occur.

    Valid errors can be found by looking in modules.h. Any nonzero value indicates an error condition. A call to GetError() resets the error flag back to 0.

    -Definition at line 959 of file modules.cpp. +Definition at line 960 of file modules.cpp.

    References error.

    -

    00960 {
    -00961         long olderr = this->error;
    -00962         this->error = 0;
    -00963         return olderr;
    -00964 }
    +
    00961 {
    +00962         long olderr = this->error;
    +00963         this->error = 0;
    +00964         return olderr;
    +00965 }
     
    @@ -449,25 +449,25 @@ 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 913 of file modules.cpp. +Definition at line 914 of file modules.cpp.

    References cache, CONF_VALUE_NOT_FOUND, and error.

    -

    00914 {
    -00915         char val[MAXBUF];
    -00916         char t[MAXBUF];
    -00917         char n[MAXBUF];
    -00918         strlcpy(t,tag.c_str(),MAXBUF);
    -00919         strlcpy(n,name.c_str(),MAXBUF);
    -00920         int res = ReadConf(cache,t,n,index,val);
    -00921         if (!res)
    -00922         {
    -00923                 this->error = CONF_VALUE_NOT_FOUND;
    -00924                 return false;
    -00925         }
    -00926         std::string s = val;
    -00927         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
    -00928 }
    +
    00915 {
    +00916         char val[MAXBUF];
    +00917         char t[MAXBUF];
    +00918         char n[MAXBUF];
    +00919         strlcpy(t,tag.c_str(),MAXBUF);
    +00920         strlcpy(n,name.c_str(),MAXBUF);
    +00921         int res = ReadConf(cache,t,n,index,val);
    +00922         if (!res)
    +00923         {
    +00924                 this->error = CONF_VALUE_NOT_FOUND;
    +00925                 return false;
    +00926         }
    +00927         std::string s = val;
    +00928         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
    +00929 }
     
    @@ -522,37 +522,37 @@ 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 GetError() 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 GetError() will return CONF_NOT_UNSIGNED

    -Definition at line 930 of file modules.cpp. +Definition at line 931 of file modules.cpp.

    References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error.

    -

    00931 {
    -00932         char val[MAXBUF];
    -00933         char t[MAXBUF];
    -00934         char n[MAXBUF];
    -00935         strlcpy(t,tag.c_str(),MAXBUF);
    -00936         strlcpy(n,name.c_str(),MAXBUF);
    -00937         int res = ReadConf(cache,t,n,index,val);
    -00938         if (!res)
    -00939         {
    -00940                 this->error = CONF_VALUE_NOT_FOUND;
    -00941                 return 0;
    -00942         }
    -00943         for (int i = 0; i < strlen(val); i++)
    -00944         {
    -00945                 if (!isdigit(val[i]))
    -00946                 {
    -00947                         this->error = CONF_NOT_A_NUMBER;
    -00948                         return 0;
    -00949                 }
    -00950         }
    -00951         if ((needs_unsigned) && (atoi(val)<0))
    -00952         {
    -00953                 this->error = CONF_NOT_UNSIGNED;
    -00954                 return 0;
    -00955         }
    -00956         return atoi(val);
    -00957 }
    +
    00932 {
    +00933         char val[MAXBUF];
    +00934         char t[MAXBUF];
    +00935         char n[MAXBUF];
    +00936         strlcpy(t,tag.c_str(),MAXBUF);
    +00937         strlcpy(n,name.c_str(),MAXBUF);
    +00938         int res = ReadConf(cache,t,n,index,val);
    +00939         if (!res)
    +00940         {
    +00941                 this->error = CONF_VALUE_NOT_FOUND;
    +00942                 return 0;
    +00943         }
    +00944         for (int i = 0; i < strlen(val); i++)
    +00945         {
    +00946                 if (!isdigit(val[i]))
    +00947                 {
    +00948                         this->error = CONF_NOT_A_NUMBER;
    +00949                         return 0;
    +00950                 }
    +00951         }
    +00952         if ((needs_unsigned) && (atoi(val)<0))
    +00953         {
    +00954                 this->error = CONF_NOT_UNSIGNED;
    +00955                 return 0;
    +00956         }
    +00957         return atoi(val);
    +00958 }
     
    @@ -601,24 +601,24 @@ 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 897 of file modules.cpp. +Definition at line 898 of file modules.cpp.

    References cache, CONF_VALUE_NOT_FOUND, and error.

    -

    00898 {
    -00899         char val[MAXBUF];
    -00900         char t[MAXBUF];
    -00901         char n[MAXBUF];
    -00902         strlcpy(t,tag.c_str(),MAXBUF);
    -00903         strlcpy(n,name.c_str(),MAXBUF);
    -00904         int res = ReadConf(cache,t,n,index,val);
    -00905         if (!res)
    -00906         {
    -00907                 this->error = CONF_VALUE_NOT_FOUND;
    -00908                 return "";
    -00909         }
    -00910         return val;
    -00911 }
    +
    00899 {
    +00900         char val[MAXBUF];
    +00901         char t[MAXBUF];
    +00902         char n[MAXBUF];
    +00903         strlcpy(t,tag.c_str(),MAXBUF);
    +00904         strlcpy(n,name.c_str(),MAXBUF);
    +00905         int res = ReadConf(cache,t,n,index,val);
    +00906         if (!res)
    +00907         {
    +00908                 this->error = CONF_VALUE_NOT_FOUND;
    +00909                 return "";
    +00910         }
    +00911         return val;
    +00912 }
     
    @@ -651,13 +651,13 @@ 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 1009 of file modules.cpp. +Definition at line 1010 of file modules.cpp.

    References readerror.

    -

    01010 {
    -01011         return this->readerror;
    -01012 }
    +
    01011 {
    +01012         return this->readerror;
    +01013 }
     
    @@ -687,7 +687,7 @@ It will contain a pointer to the configuration file data with unneeded data (suc

    Definition at line 1155 of file modules.h.

    -Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader(). +Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader().

    @@ -713,7 +713,7 @@ Referenced by ConfigReader(

    Definition at line 1160 of file modules.h.

    -Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue(). +Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue().

    @@ -739,7 +739,7 @@ Referenced by ConfigReader(

    Definition at line 1156 of file modules.h.

    -Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader(). +Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader().

    @@ -767,12 +767,12 @@ Used to store errors.

    Definition at line 1159 of file modules.h.

    -Referenced by ConfigReader(), and Verify(). +Referenced by ConfigReader(), and Verify().


    The documentation for this class was generated from the following files: -
    Generated on Thu May 12 02:25:19 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index a4ad32455..095af0ce1 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -19,7 +19,7 @@ thresholdConnectClass typeConnectClass ~classbase()classbase [inline] -
    Generated on Thu May 12 02:25:19 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index 0b9c4acf8..170e51976 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -18,7 +18,7 @@ Inherits classbase.  ConnectClass ()

    Public Attributes

    -int type +char type  Type of line, either CC_ALLOW or CC_DENY.

    int registration_timeout @@ -36,7 +36,7 @@ Inherits classbase. char pass [MAXBUF]  (Optional) Password for this line


    -long threshold +int threshold  Threshold value for flood disconnect.


    long sendqmax @@ -299,7 +299,7 @@ Referenced by ConnectClass() -
    long ConnectClass::threshold + int ConnectClass::threshold
    @@ -327,7 +327,7 @@ Referenced by ConnectClass() -
    int ConnectClass::type + char ConnectClass::type
    @@ -349,7 +349,7 @@ Definition at line 50 of fi
    The documentation for this class was generated from the following file: -
    Generated on Thu May 12 02:25:19 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classDNS-members.html b/docs/module-doc/classDNS-members.html index 6c7f3e803..1585ca498 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -33,7 +33,7 @@ SetNS(std::string dnsserver)DNS tDNS [private] ~DNS()DNS -
    Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index d444c8013..1fc423586 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -890,7 +890,7 @@ Definition at line 40 of file
    The documentation for this class was generated from the following file: -
    Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index 15bedac9a..19b76f48a 100644 --- a/docs/module-doc/classELine-members.html +++ b/docs/module-doc/classELine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
    Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index e674ef34f..226f14618 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -12,7 +12,7 @@ Inherits XLine. List of all members. - +

    Public Attributes

    char hostmask [MAXBUF]
    char hostmask [200]
     Hostmask (ident) to match against May contain wildcards.

    @@ -23,7 +23,7 @@ Inherits XLine. -
    char ELine::hostmask[MAXBUF] + char ELine::hostmask[200]
    @@ -45,7 +45,7 @@ Definition at line 88 of fi
    The documentation for this class was generated from the following file: -
    Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classEvent-members.html b/docs/module-doc/classEvent-members.html index 861fbfe1f..1cc24a7aa 100644 --- a/docs/module-doc/classEvent-members.html +++ b/docs/module-doc/classEvent-members.html @@ -17,7 +17,7 @@ Send()Event [virtual] sourceEvent [protected] ~classbase()classbase [inline] -
    Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classEvent.html b/docs/module-doc/classEvent.html index 63f69b78c..9441f2961 100644 --- a/docs/module-doc/classEvent.html +++ b/docs/module-doc/classEvent.html @@ -94,9 +94,9 @@ Create a new Event.

    -Definition at line 344 of file modules.cpp. +Definition at line 345 of file modules.cpp.

    -

    00344 : data(anydata), source(src), id(eventid) { };
    +
    00345 : data(anydata), source(src), id(eventid) { };
     
    @@ -130,13 +130,13 @@ Get the Event data.

    -Definition at line 346 of file modules.cpp. +Definition at line 347 of file modules.cpp.

    References data.

    -

    00347 {
    -00348         return this->data;
    -00349 }
    +
    00348 {
    +00349         return this->data;
    +00350 }
     
    @@ -169,13 +169,13 @@ Get the event ID.

    Use this to determine the event type for safe casting of the data

    -Definition at line 362 of file modules.cpp. +Definition at line 363 of file modules.cpp.

    References id.

    -

    00363 {
    -00364         return this->id;
    -00365 }
    +
    00364 {
    +00365         return this->id;
    +00366 }
     
    @@ -208,13 +208,13 @@ Get the event Source.

    -Definition at line 351 of file modules.cpp. +Definition at line 352 of file modules.cpp.

    References source.

    -

    00352 {
    -00353         return this->source;
    -00354 }
    +
    00353 {
    +00354         return this->source;
    +00355 }
     
    @@ -249,14 +249,14 @@ The return result of an Event::Send() Implements ModuleMessage.

    -Definition at line 356 of file modules.cpp. +Definition at line 357 of file modules.cpp.

    References FOREACH_MOD.

    -

    00357 {
    -00358         FOREACH_MOD OnEvent(this);
    -00359         return NULL;
    -00360 }
    +
    00358 {
    +00359         FOREACH_MOD OnEvent(this);
    +00360         return NULL;
    +00361 }
     
    @@ -286,7 +286,7 @@ This member holds a pointer to arbitary data set by the emitter of the message.

    Definition at line 199 of file modules.h.

    -Referenced by GetData(). +Referenced by GetData().

    @@ -314,7 +314,7 @@ This is arbitary text which should be used to distinguish one type of event from

    Definition at line 208 of file modules.h.

    -Referenced by GetEventID(). +Referenced by GetEventID().

    @@ -342,12 +342,12 @@ This is a pointer to the sender of the message, which can be used to directly tr

    Definition at line 203 of file modules.h.

    -Referenced by GetSource(). +Referenced by GetSource().


    The documentation for this class was generated from the following files: -
    Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index aa9268099..52c0f8ff3 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
    Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index f4b247d28..c3ebd85f9 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -20,9 +20,9 @@ A subclass of HostItem designed to h

    -Definition at line 53 of file channels.h.


    The documentation for this class was generated from the following file:
      +Definition at line 60 of file channels.h.
      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 50662ef03..d33cd4180 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -16,7 +16,7 @@ params_when_onExtMode typeExtMode ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index ca994a249..a39031b46 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -82,11 +82,11 @@

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

      -References modechar, needsoper, params_when_off, params_when_on, and type. +References modechar, needsoper, params_when_off, params_when_on, and type.

      -

      00211 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
      +
      00212 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
       
      @@ -112,7 +112,7 @@ References modechar,

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

      @@ -136,9 +136,9 @@ Definition at line 210

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

      -Referenced by ExtMode(). +Referenced by ExtMode().

      @@ -162,9 +162,9 @@ Referenced by ExtMode()

      -Definition at line 209 of file modules.cpp. +Definition at line 210 of file modules.cpp.

      -Referenced by ExtMode(). +Referenced by ExtMode().

      @@ -188,9 +188,9 @@ Referenced by ExtMode()

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

      -Referenced by ExtMode(). +Referenced by ExtMode().

      @@ -214,9 +214,9 @@ Referenced by ExtMode()

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

      -Referenced by ExtMode(). +Referenced by ExtMode().

      @@ -240,14 +240,14 @@ Referenced by ExtMode()

      -Definition at line 206 of file modules.cpp. +Definition at line 207 of file modules.cpp.

      -Referenced by ExtMode(). +Referenced by ExtMode().


      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index 9a2f40170..5a5f91668 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -13,7 +13,7 @@ GetExt(std::string key)Extensible Shrink(std::string key)Extensible ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 6cd7cf697..c4ce082be 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -170,7 +170,7 @@ Definition at line 54 of fil
      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index 3e2fa34a8..26ef69689 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -17,7 +17,7 @@ LoadFile(std::string filename)FileReader ~classbase()classbase [inline] ~FileReader()FileReader -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 1b1d55845..a10a40e3f 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -77,10 +77,10 @@ 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 1022 of file modules.cpp. +Definition at line 1023 of file modules.cpp.

      -

      01023 {
      -01024 }
      +
      01024 {
      +01025 }
       
      @@ -114,15 +114,15 @@ 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, FileReader::FileSize returns 0.

      -Definition at line 1015 of file modules.cpp. +Definition at line 1016 of file modules.cpp.

      References fc, and file_cache.

      -

      01016 {
      -01017         file_cache c;
      -01018         readfile(c,filename.c_str());
      -01019         this->fc = c;
      -01020 }
      +
      01017 {
      +01018         file_cache c;
      +01019         readfile(c,filename.c_str());
      +01020         this->fc = c;
      +01021 }
       
      @@ -155,10 +155,10 @@ Default destructor.

      This deletes the memory allocated to the file.

      -Definition at line 1034 of file modules.cpp. +Definition at line 1035 of file modules.cpp.

      -

      01035 {
      -01036 }
      +
      01036 {
      +01037 }
       
      @@ -192,20 +192,20 @@ Returns true if the file exists This function will return false if the file coul

      -Definition at line 1038 of file modules.cpp. +Definition at line 1039 of file modules.cpp.

      References fc.

      -

      01039 {
      -01040         if (fc.size() == 0)
      -01041         {
      -01042                 return(false);
      -01043         }
      -01044         else
      -01045         {
      -01046                 return(true);
      -01047         }
      -01048 }
      +
      01040 {
      +01041         if (fc.size() == 0)
      +01042         {
      +01043                 return(false);
      +01044         }
      +01045         else
      +01046         {
      +01047                 return(true);
      +01048         }
      +01049 }
       
      @@ -238,13 +238,13 @@ 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 1057 of file modules.cpp. +Definition at line 1058 of file modules.cpp.

      References fc.

      -

      01058 {
      -01059         return fc.size();
      -01060 }
      +
      01059 {
      +01060         return fc.size();
      +01061 }
       
      @@ -278,15 +278,15 @@ 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 1050 of file modules.cpp. +Definition at line 1051 of file modules.cpp.

      References fc.

      -

      01051 {
      -01052         if ((x<0) || (x>fc.size()))
      -01053                 return "";
      -01054         return fc[x];
      -01055 }
      +
      01052 {
      +01053         if ((x<0) || (x>fc.size()))
      +01054                 return "";
      +01055         return fc[x];
      +01056 }
       
      @@ -320,15 +320,15 @@ 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, FileReader::FileSize returns 0.

      -Definition at line 1026 of file modules.cpp. +Definition at line 1027 of file modules.cpp.

      References fc, and file_cache.

      -

      01027 {
      -01028         file_cache c;
      -01029         readfile(c,filename.c_str());
      -01030         this->fc = c;
      -01031 }
      +
      01028 {
      +01029         file_cache c;
      +01030         readfile(c,filename.c_str());
      +01031         this->fc = c;
      +01032 }
       
      @@ -356,12 +356,12 @@ References fc, and Definition at line 1238 of file modules.h.

      -Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile(). +Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile().


      The documentation for this class was generated from the following files: -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index 220286f71..a647a7e6e 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index f052997c0..0214da2a3 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -15,7 +15,7 @@ Inherits XLine. List of all members. - +

      Public Attributes

      char hostmask [MAXBUF]
      char hostmask [200]
       Hostmask (ident) to match against May contain wildcards.

      @@ -31,7 +31,7 @@ Definition at line 73 of fi -
      char GLine::hostmask[MAXBUF] + char GLine::hostmask[200]
      @@ -53,7 +53,7 @@ Definition at line 79 of fi
      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index 55db2ed47..26a6d1827 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index 45b1515bb..8b84e8eb4 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -36,7 +36,7 @@ This class contains a single element in a channel list, such as a banlist.

      -Definition at line 29 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 36 of file channels.h.

      Constructor & Destructor Documentation

      @@ -64,9 +64,9 @@ Definition at line 29 of

      -Definition at line 36 of file channels.h. +Definition at line 43 of file channels.h.

      -

      00036 { /* stub */ }
      +
      00043 { /* stub */ }
       
      @@ -97,9 +97,9 @@ Definition at line 36 of

      -Definition at line 37 of file channels.h. +Definition at line 44 of file channels.h.

      -

      00037 { /* stub */ }
      +
      00044 { /* stub */ }
       
      @@ -125,7 +125,7 @@ Definition at line 37 of

      -Definition at line 34 of file channels.h. +Definition at line 41 of file channels.h.

      @@ -149,7 +149,7 @@ Definition at line 34 of

      -Definition at line 33 of file channels.h. +Definition at line 40 of file channels.h.

      @@ -173,12 +173,12 @@ Definition at line 33 of

      -Definition at line 32 of file channels.h. +Definition at line 39 of file channels.h.


      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index e63dd952a..c596682a5 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
      Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 4f06a7cfc..fa6ff0670 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -20,9 +20,9 @@ A subclass of HostItem designed to h

      -Definition at line 61 of file channels.h.


      The documentation for this class was generated from the following file:
        +Definition at line 68 of file channels.h.
        The documentation for this class was generated from the following file: -
        Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
        Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
        diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index 58b439a5d..46dbdb91b 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -10,7 +10,7 @@ channelInvited classbase()classbase [inline] ~classbase()classbase [inline] -
        Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
        Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
        diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 01921ac9f..a1451e4ff 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -47,12 +47,12 @@ Definition at line 36 of fi

        Definition at line 39 of file users.h.

        -Referenced by userrec::InviteTo(). +Referenced by userrec::InviteTo().


        The documentation for this class was generated from the following file: -
        Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
        Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
        diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index 474de0c9d..67baff1e7 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
        Generated on Thu May 12 02:25:22 2005 for InspIRCd by +
        Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
        diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index f873cb298..4dfe88f54 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -15,7 +15,7 @@ Inherits XLine. List of all members. - +

        Public Attributes

        char hostmask [MAXBUF]
        char hostmask [200]
         Hostmask (ident) to match against May contain wildcards.

        @@ -31,7 +31,7 @@ Definition at line 62 of fi -
        char KLine::hostmask[MAXBUF] + char KLine::hostmask[200]
        @@ -53,7 +53,7 @@ Definition at line 68 of fi
        The documentation for this class was generated from the following file: -
        Generated on Thu May 12 02:25:22 2005 for InspIRCd by +
        Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
        diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index 4b3e0c49d..a84b74fe3 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -12,7 +12,7 @@ modeModeParameter parameterModeParameter ~classbase()classbase [inline] -
        Generated on Thu May 12 02:25:22 2005 for InspIRCd by +
        Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
        diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index fdb591606..621bdfcb1 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -29,7 +29,7 @@ for +L this would hold the channel name.

        -Definition at line 70 of file channels.h.


        Member Data Documentation

        +Definition at line 77 of file channels.h.

        Member Data Documentation

        @@ -51,7 +51,7 @@ Definition at line 70 of

        -Definition at line 75 of file channels.h. +Definition at line 82 of file channels.h.

        Referenced by chanrec::SetCustomModeParam().

        @@ -77,7 +77,7 @@ Referenced by chanrec::Set

        -Definition at line 73 of file channels.h. +Definition at line 80 of file channels.h.

        Referenced by chanrec::SetCustomModeParam(). @@ -103,14 +103,14 @@ Referenced by chanrec::Set

        -Definition at line 74 of file channels.h. +Definition at line 81 of file channels.h.

        Referenced by chanrec::SetCustomModeParam().


        The documentation for this class was generated from the following file: -
        Generated on Thu May 12 02:25:22 2005 for InspIRCd by +
        Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
        diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index cb63b848c..af437cbeb 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -65,7 +65,7 @@ OnWhois(userrec *source, userrec *dest)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
        Generated on Thu May 12 02:25:24 2005 for InspIRCd by +
        Generated on Thu May 12 22:59:04 2005 for InspIRCd by doxygen 1.3.3
        diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 71644e439..842de7ebe 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -221,9 +221,9 @@ Default constructor creates a module class.

        -Definition at line 369 of file modules.cpp. +Definition at line 370 of file modules.cpp.

        -

        00369 { }
        +
        00370 { }
         
        @@ -256,9 +256,9 @@ Default destructor destroys a module class.

        -Definition at line 370 of file modules.cpp. +Definition at line 371 of file modules.cpp.

        -

        00370 { }
        +
        00371 { }
         
        @@ -292,11 +292,11 @@ Returns the version number of a Module.

        The method should return a Version object with its version information assigned via Version::Version

        -Definition at line 382 of file modules.cpp. +Definition at line 383 of file modules.cpp.

        References VF_VENDOR.

        -

        00382 { return Version(1,0,0,0,VF_VENDOR); }
        +
        00383 { return Version(1,0,0,0,VF_VENDOR); }
         
        @@ -330,9 +330,9 @@ 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 394 of file modules.cpp. +Definition at line 395 of file modules.cpp.

        -

        00394 { };
        +
        00395 { };
         
        @@ -399,11 +399,11 @@ This function is called before many functions which check a users status on a ch
        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 391 of file modules.cpp. +Definition at line 392 of file modules.cpp.

        References ACR_DEFAULT.

        -

        00391 { return ACR_DEFAULT; };
        +
        00392 { return ACR_DEFAULT; };
         
        @@ -452,9 +452,9 @@ Called whenever a ban is added to a channel's list.

        Return a non-zero value to 'eat' the mode change and prevent the ban from being added.

        -Definition at line 419 of file modules.cpp. +Definition at line 420 of file modules.cpp.

        -

        00419 { return 0; };
        +
        00420 { return 0; };
         
        @@ -488,9 +488,9 @@ 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 397 of file modules.cpp. +Definition at line 398 of file modules.cpp.

        -

        00397 { };
        +
        00398 { };
         
        @@ -533,9 +533,9 @@ 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 411 of file modules.cpp. +Definition at line 412 of file modules.cpp.

        -

        00411 { return 0; };
        +
        00412 { return 0; };
         
        @@ -578,9 +578,9 @@ 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 410 of file modules.cpp. +Definition at line 411 of file modules.cpp.

        -

        00410 { return 0; };
        +
        00411 { return 0; };
         
        @@ -614,11 +614,11 @@ 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 393 of file modules.cpp. +Definition at line 394 of file modules.cpp.

        References string_list.

        -

        00393 { string_list empty; return empty; }
        +
        00394 { string_list empty; return empty; }
         
        @@ -661,9 +661,9 @@ Called whenever a user joins a channel, to determine if banlist checks should go

        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 408 of file modules.cpp. +Definition at line 409 of file modules.cpp.

        -

        00408 { return 0; };
        +
        00409 { return 0; };
         
        @@ -706,9 +706,9 @@ Called whenever a user joins a channel, to determine if invite checks should go

        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 405 of file modules.cpp. +Definition at line 406 of file modules.cpp.

        -

        00405 { return 0; };
        +
        00406 { return 0; };
         
        @@ -757,9 +757,9 @@ Called whenever a user joins a channel, to determine if key checks should go ahe

        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 406 of file modules.cpp. +Definition at line 407 of file modules.cpp.

        -

        00406 { return 0; };
        +
        00407 { return 0; };
         
        @@ -802,9 +802,9 @@ Called whenever a user joins a channel, to determine if channel limit checks sho

        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 407 of file modules.cpp. +Definition at line 408 of file modules.cpp.

        -

        00407 { return 0; };
        +
        00408 { return 0; };
         
        @@ -838,9 +838,9 @@ Called to check if a user who is connecting can now be allowed to register If an

        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 400 of file modules.cpp. +Definition at line 401 of file modules.cpp.

        -

        00400 { return true; };
        +
        00401 { return true; };
         
        @@ -889,9 +889,9 @@ Called whenever a ban is removed from a channel's list.

        Return a non-zero value to 'eat' the mode change and prevent the ban from being removed.

        -Definition at line 420 of file modules.cpp. +Definition at line 421 of file modules.cpp.

        -

        00420 { return 0; };
        +
        00421 { return 0; };
         
        @@ -925,9 +925,9 @@ Called whenever an Event class is sent

        Please see the documentation of Event::Send() for further information. The Event sent can always be assumed to be non-NULL, you should *always* check the value of Event::GetEventID() before doing anything to the event data, and you should *not* change the event data in any way!

        -Definition at line 414 of file modules.cpp. +Definition at line 415 of file modules.cpp.

        -

        00414 { return; };
        +
        00415 { return; };
         
        @@ -994,9 +994,9 @@ 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 Server::AddExtendedMode 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 381 of file modules.cpp. +Definition at line 382 of file modules.cpp.

        -

        00381 { return false; }
        +
        00382 { return false; }
         
        @@ -1030,9 +1030,9 @@ Called whenever a user connects, anywhere on the network.

        This event is informational only. You should not change any user information in this event. To do so, use the OnUserConnect method to change the state of local users.

        -Definition at line 418 of file modules.cpp. +Definition at line 419 of file modules.cpp.

        -

        00418 { };
        +
        00419 { };
         
        @@ -1066,9 +1066,9 @@ Called whenever a user is given usermode +o, anywhere on the network.

        You cannot override this and prevent it from happening as it is already happened and such a task must be performed by another server. You can however bounce modes by sending servermodes out to reverse mode changes.

        -Definition at line 417 of file modules.cpp. +Definition at line 418 of file modules.cpp.

        -

        00417 { };
        +
        00418 { };
         
        @@ -1103,9 +1103,9 @@ 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:

        <nick> :information here

        -Definition at line 384 of file modules.cpp. +Definition at line 385 of file modules.cpp.

        -

        00384 { };
        +
        00385 { };
         
        @@ -1154,9 +1154,9 @@ 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 395 of file modules.cpp. +Definition at line 396 of file modules.cpp.

        -

        00395 { return 0; };
        +
        00396 { return 0; };
         
        @@ -1199,9 +1199,9 @@ 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 396 of file modules.cpp. +Definition at line 397 of file modules.cpp.

        -

        00396 { };
        +
        00397 { };
         
        @@ -1250,9 +1250,9 @@ 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 412 of file modules.cpp. +Definition at line 413 of file modules.cpp.

        -

        00412 { return 0; };
        +
        00413 { return 0; };
         
        @@ -1325,9 +1325,9 @@ 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 413 of file modules.cpp. +Definition at line 414 of file modules.cpp.

        -

        00413 { return 0; };
        +
        00414 { return 0; };
         
        @@ -1361,9 +1361,9 @@ 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 383 of file modules.cpp. +Definition at line 384 of file modules.cpp.

        -

        00383 { };
        +
        00384 { };
         
        @@ -1406,9 +1406,9 @@ Called whenever an oper password is to be compared to what a user has input.

        The password field (from the config file) is in 'password' and is to be compared against 'input'. This method allows for encryption of oper passwords and much more besides. You should return a nonzero value if you want to allow the comparison or zero if you wish to do nothing.

        -Definition at line 416 of file modules.cpp. +Definition at line 417 of file modules.cpp.

        -

        00416 { return 0; };
        +
        00417 { return 0; };
         
        @@ -1451,9 +1451,9 @@ 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 377 of file modules.cpp. +Definition at line 378 of file modules.cpp.

        -

        00377 { }
        +
        00378 { }
         
        @@ -1496,9 +1496,9 @@ Called before a packet is transmitted across the irc network between two irc ser

        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 376 of file modules.cpp. +Definition at line 377 of file modules.cpp.

        -

        00376 { }
        +
        00377 { }
         
        @@ -1553,9 +1553,9 @@ 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 Server::QuitUser) 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 399 of file modules.cpp. +Definition at line 400 of file modules.cpp.

        -

        00399 { return 0; };
        +
        00400 { return 0; };
         
        @@ -1622,9 +1622,9 @@ 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 404 of file modules.cpp. +Definition at line 405 of file modules.cpp.

        -

        00404 { return 0; };
        +
        00405 { return 0; };
         
        @@ -1673,9 +1673,9 @@ Called immediately after any connection is accepted.

        This is intended for raw socket processing (e.g. modules which wrap the tcp connection within another library) and provides no information relating to a user record as the connection has not been assigned yet. There are no return values from this call as all modules get an opportunity if required to process the connection.

        -Definition at line 421 of file modules.cpp. +Definition at line 422 of file modules.cpp.

        -

        00421 { };
        +
        00422 { };
         
        @@ -1709,9 +1709,9 @@ Called immediately before any socket is closed.

        When this event is called, shutdown() has not yet been called on the socket.

        -Definition at line 423 of file modules.cpp. +Definition at line 424 of file modules.cpp.

        -

        00423 { };
        +
        00424 { };
         
        @@ -1766,9 +1766,9 @@ Called immediately before any read() operation on a client socket in the core.

        This occurs AFTER the select() or poll() so there is always data waiting to be read when this event occurs. Your event should return 1 if it has handled the reading itself, which prevents the core just using read(). You should place any data read into buffer, up to but NOT GREATER THAN the value of count. The value of readresult must be identical to an actual result that might be returned from the read() system call, for example, number of bytes read upon success, 0 upon EOF or closed socket, and -1 for error. If your function returns a nonzero value, you MUST set readresult.

        -Definition at line 424 of file modules.cpp. +Definition at line 425 of file modules.cpp.

        -

        00424 { return 0; };
        +
        00425 { return 0; };
         
        @@ -1817,9 +1817,9 @@ Called immediately before any write() operation on a user's socket in the core.

        Because this event is a low level event no user information is associated with it. It is intended for use by modules which may wrap connections within another API such as SSL for example. return a non-zero result if you have handled the write operation, in which case the core will not call write().

        -Definition at line 422 of file modules.cpp. +Definition at line 423 of file modules.cpp.

        -

        00422 { return 0; };
        +
        00423 { return 0; };
         
        @@ -1852,9 +1852,9 @@ 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 378 of file modules.cpp. +Definition at line 379 of file modules.cpp.

        -

        00378 { }
        +
        00379 { }
         
        @@ -1888,11 +1888,11 @@ Called whenever a Request class is se

        Please see the documentation of Request::Send() for further information. The Request 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 415 of file modules.cpp. +Definition at line 416 of file modules.cpp.

        -Referenced by Request::Send(). +Referenced by Request::Send().

        -

        00415 { return NULL; };
        +
        00416 { return NULL; };
         
        @@ -1941,9 +1941,9 @@ 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 398 of file modules.cpp. +Definition at line 399 of file modules.cpp.

        -

        00398 { };
        +
        00399 { };
         
        @@ -1992,9 +1992,9 @@ 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 379 of file modules.cpp. +Definition at line 380 of file modules.cpp.

        -

        00379 { }
        +
        00380 { }
         
        @@ -2028,9 +2028,9 @@ Called on all /STATS commands This method is triggered for all /STATS use, inclu

        -Definition at line 409 of file modules.cpp. +Definition at line 410 of file modules.cpp.

        -

        00409 { };
        +
        00410 { };
         
        @@ -2064,9 +2064,9 @@ Called when a user connects.

        The details of the connecting user are available to you in the parameter userrec *user

        -Definition at line 371 of file modules.cpp. +Definition at line 372 of file modules.cpp.

        -

        00371 { }
        +
        00372 { }
         
        @@ -2100,9 +2100,9 @@ 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 373 of file modules.cpp. +Definition at line 374 of file modules.cpp.

        -

        00373 { }
        +
        00374 { }
         
        @@ -2145,9 +2145,9 @@ 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 *channel

        -Definition at line 374 of file modules.cpp. +Definition at line 375 of file modules.cpp.

        -

        00374 { }
        +
        00375 { }
         
        @@ -2202,9 +2202,9 @@ 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 Module::OnUserPreKick instead of this method.

        -Definition at line 403 of file modules.cpp. +Definition at line 404 of file modules.cpp.

        -

        00403 { };
        +
        00404 { };
         
        @@ -2247,9 +2247,9 @@ 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 *channel

        -Definition at line 375 of file modules.cpp. +Definition at line 376 of file modules.cpp.

        -

        00375 { }
        +
        00376 { }
         
        @@ -2292,9 +2292,9 @@ 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 390 of file modules.cpp. +Definition at line 391 of file modules.cpp.

        -

        00390 { };
        +
        00391 { };
         
        @@ -2343,9 +2343,9 @@ Called whenever a user is about to invite another user into a channel, before an

        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 386 of file modules.cpp. +Definition at line 387 of file modules.cpp.

        -

        00386 { return 0; };
        +
        00387 { return 0; };
         
        @@ -2396,9 +2396,9 @@ Returning a value of 1 from this function stops the process immediately, causing IMPORTANT NOTE!

        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 380 of file modules.cpp. +Definition at line 381 of file modules.cpp.

        -

        00380 { return 0; }
        +
        00381 { return 0; }
         
        @@ -2453,9 +2453,9 @@ 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 402 of file modules.cpp. +Definition at line 403 of file modules.cpp.

        -

        00402 { return 0; };
        +
        00403 { return 0; };
         
        @@ -2510,9 +2510,9 @@ Called whenever a user is about to PRIVMSG A user or a channel, before any proce

        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 387 of file modules.cpp. +Definition at line 388 of file modules.cpp.

        -

        00387 { return 0; };
        +
        00388 { return 0; };
         
        @@ -2555,9 +2555,9 @@ 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 389 of file modules.cpp. +Definition at line 390 of file modules.cpp.

        -

        00389 { return 0; };
        +
        00390 { return 0; };
         
        @@ -2612,9 +2612,9 @@ Called whenever a user is about to NOTICE A user or a channel, before any proces

        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 388 of file modules.cpp. +Definition at line 389 of file modules.cpp.

        -

        00388 { return 0; };
        +
        00389 { return 0; };
         
        @@ -2648,9 +2648,9 @@ 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 372 of file modules.cpp. +Definition at line 373 of file modules.cpp.

        -

        00372 { }
        +
        00373 { }
         
        @@ -2684,9 +2684,9 @@ 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 401 of file modules.cpp. +Definition at line 402 of file modules.cpp.

        -

        00401 { };
        +
        00402 { };
         
        @@ -2720,11 +2720,11 @@ 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 392 of file modules.cpp. +Definition at line 393 of file modules.cpp.

        References string_list.

        -

        00392 { string_list empty; return empty; }
        +
        00393 { string_list empty; return empty; }
         
        @@ -2767,15 +2767,15 @@ 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 385 of file modules.cpp. +Definition at line 386 of file modules.cpp.

        -

        00385 { };
        +
        00386 { };
         

        The documentation for this class was generated from the following files: -
        Generated on Thu May 12 02:25:24 2005 for InspIRCd by +
        Generated on Thu May 12 22:59:04 2005 for InspIRCd by doxygen 1.3.3
        diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 2be6be25a..61df5c663 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -12,7 +12,7 @@ ModuleFactory()ModuleFactory [inline] ~classbase()classbase [inline] ~ModuleFactory()ModuleFactory [inline, virtual] -
        Generated on Thu May 12 02:25:24 2005 for InspIRCd by +
        Generated on Thu May 12 22:59:04 2005 for InspIRCd by doxygen 1.3.3
        diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 9f1ef7547..365f55f32 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -130,7 +130,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h
      -
      Generated on Thu May 12 02:25:24 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:04 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classModuleMessage-members.html b/docs/module-doc/classModuleMessage-members.html index 7518db946..bf170c071 100644 --- a/docs/module-doc/classModuleMessage-members.html +++ b/docs/module-doc/classModuleMessage-members.html @@ -10,7 +10,7 @@ classbase()classbase [inline] Send()=0ModuleMessage [pure virtual] ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:24 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:04 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classModuleMessage.html b/docs/module-doc/classModuleMessage.html index 7982ae626..df270d9ce 100644 --- a/docs/module-doc/classModuleMessage.html +++ b/docs/module-doc/classModuleMessage.html @@ -61,7 +61,7 @@ Implemented in Request, and
      The documentation for this class was generated from the following file:
      -
      Generated on Thu May 12 02:25:24 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:04 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 9e7886294..527ec3e04 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:24 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:04 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index 33ac64ba9..30c86dbe9 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -15,7 +15,7 @@ Inherits XLine. List of all members. - + @@ -60,7 +60,7 @@ Definition at line 118 of f @@ -82,7 +82,7 @@ Definition at line 114 of f

      Public Attributes

      char nick [MAXBUF]
      char nick [64]
       Nickname to match against.

      bool is_global
      -
      char QLine::nick[MAXBUF] + char QLine::nick[64]

      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:24 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:04 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classRequest-members.html b/docs/module-doc/classRequest-members.html index 594f4ffe1..af1588f21 100644 --- a/docs/module-doc/classRequest-members.html +++ b/docs/module-doc/classRequest-members.html @@ -17,7 +17,7 @@ Send()Request [virtual] sourceRequest [protected] ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:25 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:04 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classRequest.html b/docs/module-doc/classRequest.html index 4703a7638..16b893d3d 100644 --- a/docs/module-doc/classRequest.html +++ b/docs/module-doc/classRequest.html @@ -94,9 +94,9 @@ Create a new Request.

      -Definition at line 315 of file modules.cpp. +Definition at line 316 of file modules.cpp.

      -

      00315 : data(anydata), source(src), dest(dst) { };
      +
      00316 : data(anydata), source(src), dest(dst) { };
       
      @@ -130,13 +130,13 @@ Fetch the Request data.

      -Definition at line 317 of file modules.cpp. +Definition at line 318 of file modules.cpp.

      References data.

      -

      00318 {
      -00319         return this->data;
      -00320 }
      +
      00319 {
      +00320         return this->data;
      +00321 }
       
      @@ -169,13 +169,13 @@ Fetch the request destination (should be 'this' in the receiving module).

      -Definition at line 327 of file modules.cpp. +Definition at line 328 of file modules.cpp.

      References dest.

      -

      00328 {
      -00329         return this->dest;
      -00330 }
      +
      00329 {
      +00330         return this->dest;
      +00331 }
       
      @@ -208,13 +208,13 @@ Fetch the request source.

      -Definition at line 322 of file modules.cpp. +Definition at line 323 of file modules.cpp.

      References source.

      -

      00323 {
      -00324         return this->source;
      -00325 }
      +
      00324 {
      +00325         return this->source;
      +00326 }
       
      @@ -249,20 +249,20 @@ Upon returning the result will be arbitary data returned by the module you sent

      Implements ModuleMessage.

      -Definition at line 332 of file modules.cpp. +Definition at line 333 of file modules.cpp.

      -References dest, and Module::OnRequest(). +References dest, and Module::OnRequest().

      -

      00333 {
      -00334         if (this->dest)
      -00335         {
      -00336                 return dest->OnRequest(this);
      -00337         }
      -00338         else
      -00339         {
      -00340                 return NULL;
      -00341         }
      -00342 }
      +
      00334 {
      +00335         if (this->dest)
      +00336         {
      +00337                 return dest->OnRequest(this);
      +00338         }
      +00339         else
      +00340         {
      +00341                 return NULL;
      +00342         }
      +00343 }
       
      @@ -292,7 +292,7 @@ This member holds a pointer to arbitary data set by the emitter of the message.

      Definition at line 159 of file modules.h.

      -Referenced by GetData(). +Referenced by GetData().

      @@ -320,7 +320,7 @@ The single destination of the Request.

      Definition at line 166 of file modules.h.

      -Referenced by GetDest(), and Send(). +Referenced by GetDest(), and Send().

      @@ -348,12 +348,12 @@ This is a pointer to the sender of the message, which can be used to directly tr

      Definition at line 163 of file modules.h.

      -Referenced by GetSource(). +Referenced by GetSource().


      The documentation for this class was generated from the following files: -
      Generated on Thu May 12 02:25:25 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:04 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 08ef07e51..02bc6810f 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -69,7 +69,7 @@ UserToPseudo(userrec *user, std::string message)Server [virtual] ~classbase()classbase [inline] ~Server()Server [virtual] -
      Generated on Thu May 12 02:25:27 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 5023be91f..6319adcb9 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -233,10 +233,10 @@ Default constructor.

      Creates a Server object.

      -Definition at line 430 of file modules.cpp. +Definition at line 431 of file modules.cpp.

      -

      00431 {
      -00432 }
      +
      00432 {
      +00433 }
       
      @@ -269,10 +269,10 @@ Default destructor.

      Destroys a Server object.

      -Definition at line 434 of file modules.cpp. +Definition at line 435 of file modules.cpp.

      -

      00435 {
      -00436 }
      +
      00436 {
      +00437 }
       
      @@ -336,13 +336,13 @@ This allows modules to add extra commands into the command table. You must place typedef void (handlerfunc) (char**, int, userrec*); ... void handle_kill(char **parameters, int pcnt, userrec *user)

      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 503 of file modules.cpp. +Definition at line 504 of file modules.cpp.

      References createcommand().

      -

      00504 {
      -00505         createcommand(cmd,f,flags,minparams,source);
      -00506 }
      +
      00505 {
      +00506         createcommand(cmd,f,flags,minparams,source);
      +00507 }
       
      @@ -397,13 +397,13 @@ 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 Server::CalcDuration 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 749 of file modules.cpp. +Definition at line 750 of file modules.cpp.

      References add_eline(), and duration().

      -

      00750 {
      -00751         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      -00752 }
      +
      00751 {
      +00752         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      +00753 }
       
      @@ -442,16 +442,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

      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 666 of file modules.cpp. +Definition at line 667 of file modules.cpp.

      -References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL. +References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL.

      -

      00667 {
      -00668         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
      -00669         if (res)
      -00670                 ModeMakeList(modechar);
      -00671         return res;
      -00672 }
      +
      00668 {
      +00669         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
      +00670         if (res)
      +00671                 ModeMakeList(modechar);
      +00672         return res;
      +00673 }
       
      @@ -512,36 +512,36 @@ 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 638 of file modules.cpp. -

      -References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. -

      -

      00639 {
      -00640         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
      -00641         {
      -00642                 if (type == MT_SERVER)
      -00643                 {
      -00644                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
      -00645                         return false;
      -00646                 }
      -00647                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
      -00648                 {
      -00649                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
      -00650                         return false;
      -00651                 }
      -00652                 if ((params_when_on>1) || (params_when_off>1))
      -00653                 {
      -00654                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
      -00655                         return false;
      -00656                 }
      -00657                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
      -00658         }
      -00659         else
      -00660         {
      -00661                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
      -00662         }
      -00663         return false;
      -00664 }
      +Definition at line 639 of file modules.cpp.
      +

      +References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. +

      +

      00640 {
      +00641         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
      +00642         {
      +00643                 if (type == MT_SERVER)
      +00644                 {
      +00645                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
      +00646                         return false;
      +00647                 }
      +00648                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
      +00649                 {
      +00650                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
      +00651                         return false;
      +00652                 }
      +00653                 if ((params_when_on>1) || (params_when_off>1))
      +00654                 {
      +00655                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
      +00656                         return false;
      +00657                 }
      +00658                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
      +00659         }
      +00660         else
      +00661         {
      +00662                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
      +00663         }
      +00664         return false;
      +00665 }
       
      @@ -596,13 +596,13 @@ Adds a G-line The G-line is propogated to all of the servers in the mesh and enf

      The duration must be in seconds, however you can use the Server::CalcDuration 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 729 of file modules.cpp. +Definition at line 730 of file modules.cpp.

      References add_gline(), and duration().

      -

      00730 {
      -00731         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      -00732 }
      +
      00731 {
      +00732         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      +00733 }
       
      @@ -657,13 +657,13 @@ 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 Server::CalcDuration 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 744 of file modules.cpp. +Definition at line 745 of file modules.cpp.

      References add_kline(), and duration().

      -

      00745 {
      -00746         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      -00747 }
      +
      00746 {
      +00747         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      +00748 }
       
      @@ -718,13 +718,13 @@ Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enf

      The duration must be in seconds, however you can use the Server::CalcDuration 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 734 of file modules.cpp. +Definition at line 735 of file modules.cpp.

      References add_qline(), and duration().

      -

      00735 {
      -00736         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
      -00737 }
      +
      00736 {
      +00737         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
      +00738 }
       
      @@ -779,13 +779,13 @@ Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enf

      The duration must be in seconds, however you can use the Server::CalcDuration 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 739 of file modules.cpp. +Definition at line 740 of file modules.cpp.

      References add_zline(), and duration().

      -

      00740 {
      -00741         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
      -00742 }
      +
      00741 {
      +00742         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
      +00743 }
       
      @@ -819,13 +819,13 @@ Calculates a duration This method will take a string containing a formatted dura

      "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 779 of file modules.cpp. +Definition at line 780 of file modules.cpp.

      References duration().

      -

      00780 {
      -00781         return duration(delta.c_str());
      -00782 }
      +
      00781 {
      +00782         return duration(delta.c_str());
      +00783 }
       
      @@ -881,11 +881,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
      ) 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 AddCommand(). 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 493 of file modules.cpp. +Definition at line 494 of file modules.cpp.

      -

      00494 {
      -00495         call_handler(commandname.c_str(),parameters,pcnt,user);
      -00496 }
      +
      00495 {
      +00496         call_handler(commandname.c_str(),parameters,pcnt,user);
      +00497 }
       
      @@ -928,13 +928,13 @@ 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 586 of file modules.cpp. +Definition at line 587 of file modules.cpp.

      References ChangeName().

      -

      00587 {
      -00588         ChangeName(user,gecos.c_str());
      -00589 }
      +
      00588 {
      +00589         ChangeName(user,gecos.c_str());
      +00590 }
       
      @@ -977,13 +977,13 @@ 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 581 of file modules.cpp. +Definition at line 582 of file modules.cpp.

      References ChangeDisplayedHost().

      -

      00582 {
      -00583         ChangeDisplayedHost(user,host.c_str());
      -00584 }
      +
      00583 {
      +00584         ChangeDisplayedHost(user,host.c_str());
      +00585 }
       
      @@ -1026,11 +1026,11 @@ 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 478 of file modules.cpp. +Definition at line 479 of file modules.cpp.

      -

      00479 {
      -00480         force_nickchange(user,nickname.c_str());
      -00481 }
      +
      00480 {
      +00481         force_nickchange(user,nickname.c_str());
      +00482 }
       
      @@ -1073,13 +1073,13 @@ 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 611 of file modules.cpp. +Definition at line 612 of file modules.cpp.

      References cmode().

      -

      00612 {
      -00613         return cmode(User,Chan);
      -00614 }
      +
      00613 {
      +00614         return cmode(User,Chan);
      +00615 }
       
      @@ -1122,13 +1122,13 @@ Returns true if two users share a common channel.

      This method is used internally by the NICK and QUIT commands, and the Server::SendCommon method.

      -Definition at line 559 of file modules.cpp. +Definition at line 560 of file modules.cpp.

      References common_channels().

      -

      00560 {
      -00561         return (common_channels(u1,u2) != 0);
      -00562 }
      +
      00561 {
      +00562         return (common_channels(u1,u2) != 0);
      +00563 }
       
      @@ -1162,11 +1162,11 @@ 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 674 of file modules.cpp. +Definition at line 675 of file modules.cpp.

      -

      00675 {
      -00676         return usercount(c);
      -00677 }
      +
      00676 {
      +00677         return usercount(c);
      +00678 }
       
      @@ -1200,13 +1200,13 @@ Deletes a local E-Line.

      -Definition at line 774 of file modules.cpp. +Definition at line 775 of file modules.cpp.

      References del_eline().

      -

      00775 {
      -00776         del_eline(hostmask.c_str());
      -00777 }
      +
      00776 {
      +00777         del_eline(hostmask.c_str());
      +00778 }
       
      @@ -1240,13 +1240,13 @@ Deletes a G-Line from all servers on the mesh.

      -Definition at line 754 of file modules.cpp. +Definition at line 755 of file modules.cpp.

      References del_gline().

      -

      00755 {
      -00756         del_gline(hostmask.c_str());
      -00757 }
      +
      00756 {
      +00757         del_gline(hostmask.c_str());
      +00758 }
       
      @@ -1280,13 +1280,13 @@ Deletes a local K-Line.

      -Definition at line 769 of file modules.cpp. +Definition at line 770 of file modules.cpp.

      References del_kline().

      -

      00770 {
      -00771         del_kline(hostmask.c_str());
      -00772 }
      +
      00771 {
      +00772         del_kline(hostmask.c_str());
      +00773 }
       
      @@ -1320,13 +1320,13 @@ Deletes a Q-Line from all servers on the mesh.

      -Definition at line 759 of file modules.cpp. +Definition at line 760 of file modules.cpp.

      References del_qline().

      -

      00760 {
      -00761         del_qline(nickname.c_str());
      -00762 }
      +
      00761 {
      +00762         del_qline(nickname.c_str());
      +00763 }
       
      @@ -1360,13 +1360,13 @@ Deletes a Z-Line from all servers on the mesh.

      -Definition at line 764 of file modules.cpp. +Definition at line 765 of file modules.cpp.

      References del_zline().

      -

      00765 {
      -00766         del_zline(ipaddr.c_str());
      -00767 }
      +
      00766 {
      +00767         del_zline(ipaddr.c_str());
      +00768 }
       
      @@ -1400,11 +1400,11 @@ 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 606 of file modules.cpp. +Definition at line 607 of file modules.cpp.

      -

      00607 {
      -00608         return FindChan(channel.c_str());
      -00609 }
      +
      00608 {
      +00609         return FindChan(channel.c_str());
      +00610 }
       
      @@ -1438,13 +1438,13 @@ Attempts to look up a nick using the file descriptor associated with that nick.

      This function will return NULL if the file descriptor is not associated with a valid user.

      -Definition at line 601 of file modules.cpp. +Definition at line 602 of file modules.cpp.

      References fd_ref_table.

      -

      00602 {
      -00603         return (socket < 65536 ? fd_ref_table[socket] : NULL);
      -00604 }
      +
      00603 {
      +00604         return (socket < 65536 ? fd_ref_table[socket] : NULL);
      +00605 }
       
      @@ -1478,20 +1478,20 @@ 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 857 of file modules.cpp. +Definition at line 858 of file modules.cpp.

      -References MODCOUNT, module_names, and modules. +References MODCOUNT, module_names, and modules.

      -

      00858 {
      -00859         for (int i = 0; i <= MODCOUNT; i++)
      -00860         {
      -00861                 if (module_names[i] == name)
      -00862                 {
      -00863                         return modules[i];
      -00864                 }
      -00865         }
      -00866         return NULL;
      -00867 }
      +
      00859 {
      +00860         for (int i = 0; i <= MODCOUNT; i++)
      +00861         {
      +00862                 if (module_names[i] == name)
      +00863                 {
      +00864                         return modules[i];
      +00865                 }
      +00866         }
      +00867         return NULL;
      +00868 }
       
      @@ -1525,11 +1525,11 @@ 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 596 of file modules.cpp. +Definition at line 597 of file modules.cpp.

      -

      00597 {
      -00598         return Find(nick);
      -00599 }
      +
      00598 {
      +00599         return Find(nick);
      +00600 }
       
      @@ -1562,11 +1562,11 @@ Returns the information of the server as returned by the /ADMIN command.

      See the Admin class for further information of the return value. The members Admin::Nick, Admin::Email and Admin::Name contain the information for the server where the module is loaded.

      -Definition at line 631 of file modules.cpp. +Definition at line 632 of file modules.cpp.

      -

      00632 {
      -00633         return Admin(getadminname(),getadminemail(),getadminnick());
      -00634 }
      +
      00633 {
      +00634         return Admin(getadminname(),getadminemail(),getadminnick());
      +00635 }
       
      @@ -1599,11 +1599,11 @@ Returns the network name, global to all linked servers.

      -Definition at line 626 of file modules.cpp. +Definition at line 627 of file modules.cpp.

      -

      00627 {
      -00628         return getnetworkname();
      -00629 }
      +
      00628 {
      +00629         return getnetworkname();
      +00630 }
       
      @@ -1636,11 +1636,11 @@ Returns the server name of the server where the module is loaded.

      -Definition at line 621 of file modules.cpp. +Definition at line 622 of file modules.cpp.

      -

      00622 {
      -00623         return getservername();
      -00624 }
      +
      00623 {
      +00624         return getservername();
      +00625 }
       
      @@ -1674,21 +1674,21 @@ 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 466 of file modules.cpp. -

      -References chanuserlist, chanrec::GetUsers(), and list. -

      -

      00467 {
      -00468         chanuserlist userl;
      -00469         userl.clear();
      -00470         std::vector<char*> *list = chan->GetUsers();
      -00471         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
      -00472         {
      -00473                 char* o = *i;
      -00474                 userl.push_back((userrec*)o);
      -00475         }
      -00476         return userl;
      -00477 }
      +Definition at line 467 of file modules.cpp.
      +

      +References chanuserlist, chanrec::GetUsers(), and list. +

      +

      00468 {
      +00469         chanuserlist userl;
      +00470         userl.clear();
      +00471         std::vector<char*> *list = chan->GetUsers();
      +00472         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
      +00473         {
      +00474                 char* o = *i;
      +00475                 userl.push_back((userrec*)o);
      +00476         }
      +00477         return userl;
      +00478 }
       
      @@ -1722,13 +1722,13 @@ Returns true if a nick is valid.

      Nicks for unregistered connections will return false.

      -Definition at line 591 of file modules.cpp. +Definition at line 592 of file modules.cpp.

      References isnick().

      -

      00592 {
      -00593         return (isnick(nick.c_str()) != 0);
      -00594 }
      +
      00593 {
      +00594         return (isnick(nick.c_str()) != 0);
      +00595 }
       
      @@ -1771,13 +1771,13 @@ 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 616 of file modules.cpp. +Definition at line 617 of file modules.cpp.

      References has_channel().

      -

      00617 {
      -00618         return has_channel(User,Chan);
      -00619 }
      +
      00618 {
      +00619         return has_channel(User,Chan);
      +00620 }
       
      @@ -1811,13 +1811,13 @@ 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 488 of file modules.cpp. +Definition at line 489 of file modules.cpp.

      References is_uline().

      -

      00489 {
      -00490         return is_uline(server.c_str());
      -00491 }
      +
      00490 {
      +00491         return is_uline(server.c_str());
      +00492 }
       
      @@ -1851,35 +1851,35 @@ Returns true if a nick!ident string is correctly formatted, false if otherwise.

      -Definition at line 784 of file modules.cpp. -

      -

      00785 {
      -00786         const char* dest = mask.c_str();
      -00787         if (strchr(dest,'!')==0)
      -00788                 return false;
      -00789         if (strchr(dest,'@')==0)
      -00790                 return false;
      -00791         for (int i = 0; i < strlen(dest); i++)
      -00792                 if (dest[i] < 32)
      -00793                         return false;
      -00794         for (int i = 0; i < strlen(dest); i++)
      -00795                 if (dest[i] > 126)
      -00796                         return false;
      -00797         int c = 0;
      -00798         for (int i = 0; i < strlen(dest); i++)
      -00799                 if (dest[i] == '!')
      -00800                         c++;
      -00801         if (c>1)
      -00802                 return false;
      -00803         c = 0;
      -00804         for (int i = 0; i < strlen(dest); i++)
      -00805                 if (dest[i] == '@')
      -00806                         c++;
      -00807         if (c>1)
      -00808                 return false;
      -00809 
      -00810         return true;
      -00811 }
      +Definition at line 785 of file modules.cpp.
      +

      +

      00786 {
      +00787         const char* dest = mask.c_str();
      +00788         if (strchr(dest,'!')==0)
      +00789                 return false;
      +00790         if (strchr(dest,'@')==0)
      +00791                 return false;
      +00792         for (int i = 0; i < strlen(dest); i++)
      +00793                 if (dest[i] < 32)
      +00794                         return false;
      +00795         for (int i = 0; i < strlen(dest); i++)
      +00796                 if (dest[i] > 126)
      +00797                         return false;
      +00798         int c = 0;
      +00799         for (int i = 0; i < strlen(dest); i++)
      +00800                 if (dest[i] == '!')
      +00801                         c++;
      +00802         if (c>1)
      +00803                 return false;
      +00804         c = 0;
      +00805         for (int i = 0; i < strlen(dest); i++)
      +00806                 if (dest[i] == '@')
      +00807                         c++;
      +00808         if (c>1)
      +00809                 return false;
      +00810 
      +00811         return true;
      +00812 }
       
      @@ -1928,11 +1928,11 @@ 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 456 of file modules.cpp. +Definition at line 457 of file modules.cpp.

      -

      00457 {
      -00458         return add_channel(user,cname.c_str(),key.c_str(),false);
      -00459 }
      +
      00458 {
      +00459         return add_channel(user,cname.c_str(),key.c_str(),false);
      +00460 }
       
      @@ -1975,11 +1975,11 @@ 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 498 of file modules.cpp. +Definition at line 499 of file modules.cpp.

      -

      00499 {
      -00500         log(level,"%s",s.c_str());
      -00501 }
      +
      00500 {
      +00501         log(level,"%s",s.c_str());
      +00502 }
       
      @@ -2022,14 +2022,14 @@ 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 443 of file modules.cpp. +Definition at line 444 of file modules.cpp.

      -

      00444 {
      -00445         char literal[MAXBUF],pattern[MAXBUF];
      -00446         strlcpy(literal,sliteral.c_str(),MAXBUF);
      -00447         strlcpy(pattern,spattern.c_str(),MAXBUF);
      -00448         return match(literal,pattern);
      -00449 }
      +
      00445 {
      +00446         char literal[MAXBUF],pattern[MAXBUF];
      +00447         strlcpy(literal,sliteral.c_str(),MAXBUF);
      +00448         strlcpy(pattern,spattern.c_str(),MAXBUF);
      +00449         return match(literal,pattern);
      +00450 }
       
      @@ -2072,15 +2072,15 @@ This function is used to check if any users on channel c are on server servernam

      This is used internally by PRIVMSG etc. You should not need to use it.

      -Definition at line 839 of file modules.cpp. +Definition at line 840 of file modules.cpp.

      -

      00840 {
      -00841         if (c)
      -00842         {
      -00843                 return ChanAnyOnThisServer(c,(char*)servername.c_str());
      -00844         }
      -00845         else return false;
      -00846 }
      +
      00841 {
      +00842         if (c)
      +00843         {
      +00844                 return ChanAnyOnThisServer(c,(char*)servername.c_str());
      +00845         }
      +00846         else return false;
      +00847 }
       
      @@ -2123,15 +2123,15 @@ This function is used to check if user u has any channels in common with users o

      This is used internally by Server::MeshSendCommon. You should very rarely need to use it.

      -Definition at line 848 of file modules.cpp. +Definition at line 849 of file modules.cpp.

      -

      00849 {
      -00850         if (u)
      -00851         {
      -00852                 return CommonOnThisServer(u,(char*)servername.c_str());
      -00853         }
      -00854         else return false;
      -00855 }
      +
      00850 {
      +00851         if (u)
      +00852         {
      +00853                 return CommonOnThisServer(u,(char*)servername.c_str());
      +00854         }
      +00855         else return false;
      +00856 }
       
      @@ -2165,11 +2165,11 @@ 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 813 of file modules.cpp. +Definition at line 814 of file modules.cpp.

      -

      00814 {
      -00815         NetSendToAll((char*)text.c_str());
      -00816 }
      +
      00815 {
      +00816         NetSendToAll((char*)text.c_str());
      +00817 }
       
      @@ -2203,11 +2203,11 @@ This function is equivalent to Server::MeshSendToAll except it will only route t

      -Definition at line 824 of file modules.cpp. +Definition at line 825 of file modules.cpp.

      -

      00825 {
      -00826         NetSendToAllAlive((char*)text.c_str());
      -00827 }
      +
      00826 {
      +00827         NetSendToAllAlive((char*)text.c_str());
      +00828 }
       
      @@ -2250,11 +2250,11 @@ 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 834 of file modules.cpp. +Definition at line 835 of file modules.cpp.

      -

      00835 {
      -00836         NetSendToAllExcept(target.c_str(),(char*)text.c_str());
      -00837 }
      +
      00836 {
      +00837         NetSendToAllExcept(target.c_str(),(char*)text.c_str());
      +00838 }
       
      @@ -2297,12 +2297,12 @@ This method sends a line of text to all servers who have users which share commo

      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 818 of file modules.cpp. +Definition at line 819 of file modules.cpp.

      -

      00819 {
      -00820         if (user)
      -00821                 NetSendToCommon(user,(char*)text.c_str());
      -00822 }
      +
      00820 {
      +00821         if (user)
      +00822                 NetSendToCommon(user,(char*)text.c_str());
      +00823 }
       
      @@ -2345,11 +2345,11 @@ 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 829 of file modules.cpp. +Definition at line 830 of file modules.cpp.

      -

      00830 {
      -00831         NetSendToOne((char*)destination.c_str(),(char*)text.c_str());
      -00832 }
      +
      00831 {
      +00832         NetSendToOne((char*)destination.c_str(),(char*)text.c_str());
      +00833 }
       
      @@ -2398,11 +2398,11 @@ 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 461 of file modules.cpp. +Definition at line 462 of file modules.cpp.

      -

      00462 {
      -00463         return del_channel(user,cname.c_str(),reason.c_str(),false);
      -00464 }
      +
      00463 {
      +00464         return del_channel(user,cname.c_str(),reason.c_str(),false);
      +00465 }
       
      @@ -2451,38 +2451,38 @@ This user takes one user, and switches their file descriptor with another user,

      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 699 of file modules.cpp. -

      -References ucrec::channel, userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, fd_ref_table, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. -

      -

      00700 {
      -00701         zombie->fd = alive->fd;
      -00702         alive->fd = FD_MAGIC_NUMBER;
      -00703         alive->ClearBuffer();
      -00704         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
      -00705         kill_link(alive,message.c_str());
      -00706         fd_ref_table[zombie->fd] = zombie;
      -00707         for (int i = 0; i != MAXCHANS; i++)
      -00708         {
      -00709                 if (zombie->chans[i].channel != NULL)
      -00710                 {
      -00711                         if (zombie->chans[i].channel->name)
      -00712                         {
      -00713                                 chanrec* Ptr = zombie->chans[i].channel;
      -00714                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
      -00715                                 if (Ptr->topicset)
      -00716                                 {
      -00717                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
      -00718                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
      -00719                                 }
      -00720                                 userlist(zombie,Ptr);
      -00721                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
      -00722 
      -00723                         }
      -00724                 }
      -00725         }
      -00726 
      -00727 }
      +Definition at line 700 of file modules.cpp.
      +

      +References ucrec::channel, userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, fd_ref_table, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. +

      +

      00701 {
      +00702         zombie->fd = alive->fd;
      +00703         alive->fd = FD_MAGIC_NUMBER;
      +00704         alive->ClearBuffer();
      +00705         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
      +00706         kill_link(alive,message.c_str());
      +00707         fd_ref_table[zombie->fd] = zombie;
      +00708         for (int i = 0; i != MAXCHANS; i++)
      +00709         {
      +00710                 if (zombie->chans[i].channel != NULL)
      +00711                 {
      +00712                         if (zombie->chans[i].channel->name)
      +00713                         {
      +00714                                 chanrec* Ptr = zombie->chans[i].channel;
      +00715                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
      +00716                                 if (Ptr->topicset)
      +00717                                 {
      +00718                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
      +00719                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
      +00720                                 }
      +00721                                 userlist(zombie,Ptr);
      +00722                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
      +00723 
      +00724                         }
      +00725                 }
      +00726         }
      +00727 
      +00728 }
       
      @@ -2527,11 +2527,11 @@ To the user, it will appear as if they typed /QUIT themselves, except for the fa WARNING!

      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 483 of file modules.cpp. +Definition at line 484 of file modules.cpp.

      -

      00484 {
      -00485         kill_link(user,reason.c_str());
      -00486 }
      +
      00485 {
      +00486         kill_link(user,reason.c_str());
      +00487 }
       
      @@ -2574,11 +2574,11 @@ 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 513 of file modules.cpp. +Definition at line 514 of file modules.cpp.

      -

      00514 {
      -00515         Write(Socket,"%s",s.c_str());
      -00516 }
      +
      00515 {
      +00516         Write(Socket,"%s",s.c_str());
      +00517 }
       
      @@ -2633,18 +2633,18 @@ 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 547 of file modules.cpp. -

      -

      00548 {
      -00549         if (IncludeSender)
      -00550         {
      -00551                 WriteChannel(Channel,User,"%s",s.c_str());
      -00552         }
      -00553         else
      -00554         {
      -00555                 ChanExceptSender(Channel,User,"%s",s.c_str());
      -00556         }
      -00557 }
      +Definition at line 548 of file modules.cpp.
      +

      +

      00549 {
      +00550         if (IncludeSender)
      +00551         {
      +00552                 WriteChannel(Channel,User,"%s",s.c_str());
      +00553         }
      +00554         else
      +00555         {
      +00556                 ChanExceptSender(Channel,User,"%s",s.c_str());
      +00557         }
      +00558 }
       
      @@ -2693,11 +2693,11 @@ Writes text to a channel, but from a server, including all.

      This can be used to send server notices to a group of users.

      -Definition at line 542 of file modules.cpp. +Definition at line 543 of file modules.cpp.

      -

      00543 {
      -00544         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
      -00545 }
      +
      00544 {
      +00545         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
      +00546 }
       
      @@ -2746,18 +2746,18 @@ 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 564 of file modules.cpp. -

      -

      00565 {
      -00566         if (IncludeSender)
      -00567         {
      -00568                 WriteCommon(User,"%s",text.c_str());
      -00569         }
      -00570         else
      -00571         {
      -00572                 WriteCommonExcept(User,"%s",text.c_str());
      -00573         }
      -00574 }
      +Definition at line 565 of file modules.cpp.
      +

      +

      00566 {
      +00567         if (IncludeSender)
      +00568         {
      +00569                 WriteCommon(User,"%s",text.c_str());
      +00570         }
      +00571         else
      +00572         {
      +00573                 WriteCommonExcept(User,"%s",text.c_str());
      +00574         }
      +00575 }
       
      @@ -2806,11 +2806,11 @@ 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 523 of file modules.cpp. +Definition at line 524 of file modules.cpp.

      -

      00524 {
      -00525         WriteFrom(Socket,User,"%s",s.c_str());
      -00526 }
      +
      00525 {
      +00526         WriteFrom(Socket,User,"%s",s.c_str());
      +00527 }
       
      @@ -2866,13 +2866,13 @@ modes[2] = user->nick;

      Srv->SendMode(modes,3,user);

      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 508 of file modules.cpp. +Definition at line 509 of file modules.cpp.

      References server_mode().

      -

      00509 {
      -00510         server_mode(parameters,pcnt,user);
      -00511 }
      +
      00510 {
      +00511         server_mode(parameters,pcnt,user);
      +00512 }
       
      @@ -2906,11 +2906,11 @@ Sends text to all opers.

      This method sends a server notice to all opers with the usermode +s.

      -Definition at line 438 of file modules.cpp. +Definition at line 439 of file modules.cpp.

      -

      00439 {
      -00440         WriteOpers("%s",s.c_str());
      -00441 }
      +
      00440 {
      +00441         WriteOpers("%s",s.c_str());
      +00442 }
       
      @@ -2953,11 +2953,11 @@ 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 518 of file modules.cpp. +Definition at line 519 of file modules.cpp.

      -

      00519 {
      -00520         WriteServ(Socket,"%s",s.c_str());
      -00521 }
      +
      00520 {
      +00521         WriteServ(Socket,"%s",s.c_str());
      +00522 }
       
      @@ -3010,22 +3010,22 @@ The format will become:

      :localserver TEXT

      Which is useful for numerics and server notices to single users, etc.

      -Definition at line 528 of file modules.cpp. +Definition at line 529 of file modules.cpp.

      References connection::fd.

      -

      00529 {
      -00530         if (!Source)
      -00531         {
      -00532                 // if source is NULL, then the message originates from the local server
      -00533                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
      -00534         }
      -00535         else
      -00536         {
      -00537                 // otherwise it comes from the user specified
      -00538                 WriteTo(Source,Dest,"%s",s.c_str());
      -00539         }
      -00540 }
      +
      00530 {
      +00531         if (!Source)
      +00532         {
      +00533                 // if source is NULL, then the message originates from the local server
      +00534                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
      +00535         }
      +00536         else
      +00537         {
      +00538                 // otherwise it comes from the user specified
      +00539                 WriteTo(Source,Dest,"%s",s.c_str());
      +00540         }
      +00541 }
       
      @@ -3076,11 +3076,11 @@ These can be RFC specified modes such as +i, or module provided modes, including Serv->SendToModeMask("xi", WM_OR, "m00");

      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 451 of file modules.cpp. +Definition at line 452 of file modules.cpp.

      -

      00452 {
      -00453         WriteMode(modes.c_str(),flags,"%s",text.c_str());
      -00454 }
      +
      00453 {
      +00454         WriteMode(modes.c_str(),flags,"%s",text.c_str());
      +00455 }
       
      @@ -3123,11 +3123,11 @@ 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 576 of file modules.cpp. +Definition at line 577 of file modules.cpp.

      -

      00577 {
      -00578         WriteWallOps(User,false,"%s",text.c_str());
      -00579 }
      +
      00578 {
      +00579         WriteWallOps(User,false,"%s",text.c_str());
      +00580 }
       
      @@ -3170,33 +3170,33 @@ Remove a user's connection to the irc server, but leave their client in existenc

      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 680 of file modules.cpp. -

      -References userrec::ClearBuffer(), DEBUG, connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. -

      -

      00681 {
      -00682         unsigned int old_fd = user->fd;
      -00683         user->fd = FD_MAGIC_NUMBER;
      -00684         user->ClearBuffer();
      -00685         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
      -00686 #ifdef USE_KQUEUE
      -00687         struct kevent ke;
      -00688         EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL);
      -00689         int i = kevent(kq, &ke, 1, 0, 0, NULL);
      -00690         if (i == -1)
      -00691         {
      -00692                 log(DEBUG,"kqueue: Failed to remove user from queue!");
      -00693         }
      -00694 #endif
      -00695         shutdown(old_fd,2);
      -00696         close(old_fd);
      -00697 }
      +Definition at line 681 of file modules.cpp.
      +

      +References userrec::ClearBuffer(), DEBUG, connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. +

      +

      00682 {
      +00683         unsigned int old_fd = user->fd;
      +00684         user->fd = FD_MAGIC_NUMBER;
      +00685         user->ClearBuffer();
      +00686         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
      +00687 #ifdef USE_KQUEUE
      +00688         struct kevent ke;
      +00689         EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL);
      +00690         int i = kevent(kq, &ke, 1, 0, 0, NULL);
      +00691         if (i == -1)
      +00692         {
      +00693                 log(DEBUG,"kqueue: Failed to remove user from queue!");
      +00694         }
      +00695 #endif
      +00696         shutdown(old_fd,2);
      +00697         close(old_fd);
      +00698 }
       

      The documentation for this class was generated from the following files: -
      Generated on Thu May 12 02:25:27 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index 95c5bdb08..37a6317c9 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -15,7 +15,7 @@ RevisionVersion Version(int major, int minor, int revision, int build, int flags)Version ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 26f75dbcf..e74dbcefe 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -92,9 +92,9 @@ Definition at line 111 of

      -Definition at line 309 of file modules.cpp. +Definition at line 310 of file modules.cpp.

      -

      00309 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
      +
      00310 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
       
      @@ -221,7 +221,7 @@ Definition at line 114 of
      The documentation for this class was generated from the following files: -
      Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classWhoWasUser-members.html b/docs/module-doc/classWhoWasUser-members.html new file mode 100644 index 000000000..1c600f4cd --- /dev/null +++ b/docs/module-doc/classWhoWasUser-members.html @@ -0,0 +1,21 @@ + + +InspIRCd: Member List + + + + +

      WhoWasUser Member List

      This is the complete list of members for WhoWasUser, including all inherited members. + + + + + + + +
      dhostWhoWasUser
      fullnameWhoWasUser
      hostWhoWasUser
      identWhoWasUser
      nickWhoWasUser
      serverWhoWasUser
      signonWhoWasUser

      Generated on Thu May 12 22:59:06 2005 for InspIRCd by + +doxygen +1.3.3
      + + diff --git a/docs/module-doc/classWhoWasUser.html b/docs/module-doc/classWhoWasUser.html new file mode 100644 index 000000000..d386998ef --- /dev/null +++ b/docs/module-doc/classWhoWasUser.html @@ -0,0 +1,212 @@ + + +InspIRCd: WhoWasUser class Reference + + + + +

      WhoWasUser Class Reference

      A lightweight userrec used by WHOWAS. +More... +

      +#include <users.h> +

      +List of all members. + + + + + + + + + + + + + + + + +

      Public Attributes

      char nick [NICKMAX]
      char ident [16]
      char dhost [160]
      char host [160]
      char fullname [128]
      char server [256]
      time_t signon
      +


      Detailed Description

      +A lightweight userrec used by WHOWAS. +

      + +

      +Definition at line 315 of file users.h.


      Member Data Documentation

      +

      + + + + +
      + + +
      char WhoWasUser::dhost[160] +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 320 of file users.h.

      +

      + + + + +
      + + +
      char WhoWasUser::fullname[128] +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 322 of file users.h.

      +

      + + + + +
      + + +
      char WhoWasUser::host[160] +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 321 of file users.h.

      +

      + + + + +
      + + +
      char WhoWasUser::ident[16] +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 319 of file users.h.

      +

      + + + + +
      + + +
      char WhoWasUser::nick[NICKMAX] +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 318 of file users.h.

      +

      + + + + +
      + + +
      char WhoWasUser::server[256] +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 323 of file users.h.

      +

      + + + + +
      + + +
      time_t WhoWasUser::signon +
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 324 of file users.h.

      +


      The documentation for this class was generated from the following file: +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by + +doxygen +1.3.3
      + + diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index 7f6ff7071..685244f10 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -14,7 +14,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 933828347..250a00d91 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -23,7 +23,7 @@ Inherited by ELine, long duration  The duration of the ban, or 0 if permenant.

      -char source [MAXBUF] +char source [256]  Source of the ban.


      char reason [MAXBUF] @@ -149,7 +149,7 @@ Definition at line 40 of fi -
      char XLine::source[MAXBUF] + char XLine::source[256]
      @@ -171,7 +171,7 @@ Definition at line 48 of fi
      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index 349512e83..ed504e40d 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index f5b1acf92..0a8719c23 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -15,7 +15,7 @@ Inherits XLine. List of all members. - + @@ -34,7 +34,7 @@ Definition at line 93 of fi @@ -82,7 +82,7 @@ Definition at line 103 of f

      Public Attributes

      char ipaddr [MAXBUF]
      char ipaddr [40]
       IP Address (xx.yy.zz.aa) to match against May contain wildcards.

      bool is_global
      -
      char ZLine::ipaddr[MAXBUF] + char ZLine::ipaddr[40]

      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index 657825362..165686ffc 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -6,42 +6,34 @@

      chanrec Member List

      This is the complete list of members for chanrec, including all inherited members. - + - - - + + + - + - - + - - - - - + + + - - - + + - - - + - - - - - + + + -
      AddUser(char *castuser)chanrec
      AddUser(char *castuser)chanrec
      ageclassbase
      banschanrec
      c_privatechanrec
      chanrec()chanrec
      banschanrec
      binarymodeschanrec
      chanrec()chanrec
      classbase()classbase [inline]
      createdchanrec
      createdchanrec
      custom_modeschanrec
      DecUserCounter()chanrec
      DelUser(char *castuser)chanrec
      DelUser(char *castuser)chanrec
      Extend(std::string key, char *p)Extensible
      GetExt(std::string key)Extensible
      GetModeParameter(char mode)chanrec
      GetUserCounter()chanrec
      GetUsers()chanrec
      IncUserCounter()chanrec
      internal_userlistchanrec
      inviteonlychanrec
      GetUserCounter()chanrec
      GetUsers()chanrec
      internal_userlistchanrec
      IsCustomModeSet(char mode)chanrec
      keychanrec
      limitchanrec
      moderatedchanrec
      keychanrec
      limitchanrec
      namechanrec
      noexternalchanrec
      secretchanrec
      setbychanrec
      setbychanrec
      SetCustomMode(char mode, bool mode_on)chanrec
      SetCustomModeParam(char mode, char *parameter, bool mode_on)chanrec
      Shrink(std::string key)Extensible
      topicchanrec
      topiclockchanrec
      topicsetchanrec
      userschanrec
      ~chanrec()chanrec [inline, virtual]
      topicchanrec
      topicsetchanrec
      ~chanrec()chanrec [inline, virtual]
      ~classbase()classbase [inline]

      Generated on Thu May 12 02:25:18 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 44fde568f..c66a50bb8 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -27,28 +27,22 @@ Inherits Extensible. std::string GetModeParameter (char mode)  Returns the parameter for a custom mode on a channel.


      -void IncUserCounter () +long GetUserCounter () - Increment the channel "user counter" The channel user counter is a reference counter which holds the number of users on the channel.


      -void DecUserCounter () + Obtain the channel "user counter" This returns the channel reference counter, which is initialized to 0 when the channel is created and incremented/decremented upon joins, parts quits and kicks.


      +void AddUser (char *castuser) - Decrement the channel "user counter" The channel user counter is a reference counter which holds the number of users on the channel.


      -long GetUserCounter () + Add a user pointer to the internal reference list The data inserted into the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison.


      +void DelUser (char *castuser) - Obtain the channel "user counter" This returns the channel reference counter, which is initialized to 0 when the channel is created and incremented/decremented upon joins, parts quits and kicks.


      -void AddUser (char *castuser) + Delete a user pointer to the internal reference list The data removed from the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison.


      +std::vector< char * > * GetUsers () - Add a user pointer to the internal reference list The data inserted into the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison.


      -void DelUser (char *castuser) + Obrain the internal reference list The internal reference list contains a list of userrec* cast to char*.


      chanrec () - Delete a user pointer to the internal reference list The data removed from the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison.


      -std::vector< char * > * GetUsers () - - Obrain the internal reference list The internal reference list contains a list of userrec* cast to char*.


      chanrec () - - Creates a channel record and initialises it with default values.


      -virtual ~chanrec () + Creates a channel record and initialises it with default values.


      +virtual ~chanrec ()

      Public Attributes

      char name [CHANMAX] @@ -57,51 +51,33 @@ Inherits Extensible. char custom_modes [MAXMODES]  Custom modes for the channel.


      -long users - - Count of users on the channel used for fast user counting.


      -std::vector< char * > internal_userlist - - User list (casted to char*'s to stop forward declaration stuff) (chicken and egg scenario!).


      -char topic [MAXBUF] - - Channel topic.


      -time_t created - - Creation time.


      -time_t topicset - - Time topic was set.


      -char setby [NICKMAX] +std::vector< char * > internal_userlist - The last user to set the topic.


      -long limit + User list (casted to char*'s to stop forward declaration stuff) (chicken and egg scenario!).


      +char topic [MAXBUF] - Contains the channel user limit.


      -char key [32] + Channel topic.


      +time_t created - Contains the channel key.


      -short int topiclock + Creation time.


      +time_t topicset - Nonzero if the mode +t is set.


      -short int noexternal + Time topic was set.


      +char setby [NICKMAX] - Nonzero if the mode +n is set.


      -short int inviteonly + The last user to set the topic.


      +short int limit - Nonzero if the mode +i is set.


      -short int moderated + Contains the channel user limit.


      +char key [32] - Nonzero if the mode +m is set.


      -short int secret + Contains the channel key.


      +char binarymodes - Nonzero if the mode +s is set.


      -short int c_private + Contains a bitmask of the CM_* builtin (RFC) binary mode symbols.


      +BanList bans - Nonzero if the mode +p is set.


      -BanList bans - - The list of all bans set on the channel.


      + The list of all bans set on the channel.



      Detailed Description

      Holds all relevent information for a channel. @@ -110,8 +86,8 @@ This class represents a channel, and contains its name, modes, time created, top

      -Definition at line 94 of file channels.h.


      Constructor & Destructor Documentation

      -

      +Definition at line 101 of file channels.h.


      Constructor & Destructor Documentation

      +

      @@ -142,7 +118,7 @@ Creates a channel record and initialises it with default values.

      Definition at line 113 of file channels.cpp.

      -References c_private, created, custom_modes, internal_userlist, inviteonly, key, limit, moderated, name, noexternal, secret, setby, topic, topiclock, topicset, and users. +References binarymodes, created, custom_modes, internal_userlist, key, limit, name, setby, topic, and topicset.

      00114 {
       00115         strcpy(name,"");
      @@ -150,14 +126,14 @@ References c_private, "");
       00118         strcpy(setby,"");
       00119         strcpy(key,"");
      -00120         created = topicset = limit = users = 0;
      -00121         topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
      -00122         internal_userlist.clear();
      +00120         created = topicset = limit = 0;
      +00121         binarymodes = 0;
      +00122         internal_userlist.clear();
       00123 }
       
      -

      +

      @@ -184,14 +160,14 @@ References c_private,

      -Definition at line 240 of file channels.h. +Definition at line 205 of file channels.h.

      -

      00240 { /* stub */ }
      +
      00205 { /* stub */ }
       


      Member Function Documentation

      -

      +

      - -
      @@ -221,54 +197,18 @@ Add a user pointer to the internal reference list The data inserted into the ref

      -Definition at line 215 of file channels.cpp. -

      -References DEBUG, and internal_userlist. -

      -

      00216 {
      -00217         internal_userlist.push_back(castuser);
      -00218         log(DEBUG,"Added casted user to channel's internal list");
      -00219 }
      -
      -

      - - - - -
      - - - - - - - - - -
      void chanrec::DecUserCounter  ) 
      -
      - - - -
      -   - - -

      -Decrement the channel "user counter" The channel user counter is a reference counter which holds the number of users on the channel. +Definition at line 207 of file channels.cpp.

      -If it decremented to 0 then the channel is removed from the system. Modules may alter the reference count to hold channels open which have no users and would normally be deleted once empty. +References DEBUG, and internal_userlist.

      -Definition at line 206 of file channels.cpp. -

      -

      00207 {
      -00208 }
      +
      00208 {
      +00209         internal_userlist.push_back(castuser);
      +00210         log(DEBUG,"Added casted user to channel's internal list");
      +00211 }
       
      -

      +

      @@ -298,22 +238,22 @@ Delete a user pointer to the internal reference list The data removed from the r

      -Definition at line 221 of file channels.cpp. +Definition at line 213 of file channels.cpp.

      -References DEBUG, internal_userlist, and name. +References DEBUG, internal_userlist, and name.

      -

      00222 {
      -00223         for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++)
      -00224         {
      -00225                 if (*a == castuser)
      -00226                 {
      -00227                         log(DEBUG,"Removed casted user from channel's internal list");
      -00228                         internal_userlist.erase(a);
      -00229                         return;
      -00230                 }
      -00231         }
      -00232         log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
      -00233 }
      +
      00214 {
      +00215         for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++)
      +00216         {
      +00217                 if (*a == castuser)
      +00218                 {
      +00219                         log(DEBUG,"Removed casted user from channel's internal list");
      +00220                         internal_userlist.erase(a);
      +00221                         return;
      +00222                 }
      +00223         }
      +00224         log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
      +00225 }
       
      @@ -367,7 +307,7 @@ References custom_mode_par

      -

      +

      @@ -396,17 +336,17 @@ Obtain the channel "user counter" This returns the channel reference counter, wh

      -Definition at line 210 of file channels.cpp. +Definition at line 202 of file channels.cpp.

      -References internal_userlist. +References internal_userlist.

      -

      00211 {
      -00212         return (this->internal_userlist.size());
      -00213 }
      +
      00203 {
      +00204         return (this->internal_userlist.size());
      +00205 }
       
      -

      +

      - -
      @@ -435,51 +375,15 @@ Obrain the internal reference list The internal reference list contains a list o

      These are used for rapid comparison to determine channel membership for PRIVMSG, NOTICE, QUIT, PART etc. The resulting pointer to the vector should be considered readonly and only modified via AddUser and DelUser.

      -Definition at line 235 of file channels.cpp. -

      -References internal_userlist. -

      -Referenced by Server::GetUsers(). -

      -

      00236 {
      -00237         return &internal_userlist;
      -00238 }
      -
      -

      - - - - -
      - - - - - - - - - -
      void chanrec::IncUserCounter  ) 
      -
      - - - -
      -   - - -

      -Increment the channel "user counter" The channel user counter is a reference counter which holds the number of users on the channel. +Definition at line 227 of file channels.cpp.

      -If it decremented to 0 then the channel is removed from the system. +References internal_userlist.

      -Definition at line 202 of file channels.cpp. +Referenced by Server::GetUsers().

      -

      00203 {
      -00204 }
      +
      00228 {
      +00229         return &internal_userlist;
      +00230 }
       
      @@ -565,7 +469,7 @@ Sets or unsets a custom mode in the channels info.

      Definition at line 125 of file channels.cpp.

      -References custom_modes, DEBUG, and SetCustomModeParam(). +References custom_modes, DEBUG, and SetCustomModeParam().

      00126 {
       00127         if (mode_on) {
      @@ -639,7 +543,7 @@ Sets or unsets the parameters for a custom mode in a channels info.
       

      Definition at line 150 of file channels.cpp.

      -References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter. +References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter.

      Referenced by SetCustomMode().

      @@ -676,13 +580,13 @@ Referenced by SetCustomMod


      Member Data Documentation

      -

      +

      @@ -699,16 +603,16 @@ The list of all bans set on the channel.

      -Definition at line 168 of file channels.h. +Definition at line 149 of file channels.h.

      -
      BanList chanrec::bans + BanList chanrec::bans
      -

      +

      @@ -721,22 +625,22 @@ Definition at line 168 o
      -
      short int chanrec::c_private + char chanrec::binarymodes

      -Nonzero if the mode +p is set. +Contains a bitmask of the CM_* builtin (RFC) binary mode symbols.

      -This value cannot be set at the same time as chanrec::secret +

      -Definition at line 164 of file channels.h. +Definition at line 145 of file channels.h.

      Referenced by chanrec().

      -

      +

      @@ -753,7 +657,7 @@ Creation time.

      -Definition at line 120 of file channels.h. +Definition at line 123 of file channels.h.

      Referenced by chanrec(). @@ -781,18 +685,18 @@ Custom modes for the channel.

      Plugins may use this field in any way they see fit.

      -Definition at line 103 of file channels.h. +Definition at line 110 of file channels.h.

      Referenced by chanrec(), and SetCustomMode().

      -
      time_t chanrec::created + time_t chanrec::created
      -

      +

      @@ -809,46 +713,18 @@ User list (casted to char*'s to stop forward declaration stuff) (chicken and egg

      -Definition at line 112 of file channels.h. -

      -Referenced by AddUser(), chanrec(), DelUser(), GetUserCounter(), and GetUsers(). - -

      -
      std::vector<char*> chanrec::internal_userlist + std::vector<char*> chanrec::internal_userlist
      -

      - - - - -
      - - -
      short int chanrec::inviteonly -
      -
      - - - - +Referenced by AddUser(), chanrec(), DelUser(), GetUserCounter(), and GetUsers().
      -   - - -

      -Nonzero if the mode +i is set. -

      - -

      -Definition at line 150 of file channels.h. +Definition at line 115 of file channels.h.

      -Referenced by chanrec().

      -

      +

      @@ -865,18 +741,18 @@ Contains the channel key.

      If this value is an empty string, there is no channel key in place.

      -Definition at line 138 of file channels.h. +Definition at line 141 of file channels.h.

      Referenced by chanrec().

      -
      char chanrec::key[32] + char chanrec::key[32]
      -

      +

      @@ -893,35 +769,7 @@ Contains the channel user limit.

      If this value is zero, there is no limit in place.

      -Definition at line 133 of file channels.h. -

      -Referenced by chanrec(). - -

      -
      long chanrec::limit + short int chanrec::limit
      -

      - - - - -
      - - -
      short int chanrec::moderated -
      -
      - - - - @@ -949,74 +797,18 @@ The channels name.

      -Definition at line 99 of file channels.h. -

      -Referenced by chanrec(), DelUser(), and Server::PseudoToUser(). - -

      -   - - -

      -Nonzero if the mode +m is set. -

      - -

      -Definition at line 154 of file channels.h. +Definition at line 136 of file channels.h.

      Referenced by chanrec().

      -

      - - - - -
      - - -
      short int chanrec::noexternal -
      -
      - - - - - -
      -   - - -

      -Nonzero if the mode +n is set. -

      - -

      -Definition at line 146 of file channels.h. -

      -Referenced by chanrec().

      -

      - - - - -
      - - -
      short int chanrec::secret -
      -
      - - - - +Referenced by chanrec(), DelUser(), and Server::PseudoToUser().
      -   - - -

      -Nonzero if the mode +s is set. -

      -This value cannot be set at the same time as chanrec::c_private -

      -Definition at line 159 of file channels.h. +Definition at line 106 of file channels.h.

      -Referenced by chanrec().

      -

      +

      @@ -1033,18 +825,18 @@ The last user to set the topic.

      If this member is an empty string, no topic was ever set.

      -Definition at line 128 of file channels.h. +Definition at line 131 of file channels.h.

      -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), and Server::PseudoToUser().

      -
      char chanrec::setby[NICKMAX] + char chanrec::setby[NICKMAX]
      -

      +

      @@ -1061,46 +853,18 @@ Channel topic.

      If this is an empty string, no channel topic is set.

      -Definition at line 117 of file channels.h. -

      -Referenced by chanrec(), and Server::PseudoToUser(). - -

      -
      char chanrec::topic[MAXBUF] + char chanrec::topic[MAXBUF]
      -

      - - - - -
      - - -
      short int chanrec::topiclock -
      -
      - - - - +Referenced by chanrec(), and Server::PseudoToUser().
      -   - - -

      -Nonzero if the mode +t is set. -

      - -

      -Definition at line 142 of file channels.h. +Definition at line 120 of file channels.h.

      -Referenced by chanrec().

      -

      +

      @@ -1115,44 +879,16 @@ Referenced by chanrec() Time topic was set.

      -If no topic was ever set, this will be equal to chanrec::created +If no topic was ever set, this will be equal to chanrec::created

      -Definition at line 124 of file channels.h. +Definition at line 127 of file channels.h.

      -Referenced by chanrec(), and Server::PseudoToUser(). - -

      -
      time_t chanrec::topicset + time_t chanrec::topicset
      -

      - - - - -
      - - -
      long chanrec::users -
      -
      - - - - +Referenced by chanrec(), and Server::PseudoToUser().
      -   - - -

      -Count of users on the channel used for fast user counting. -

      - -

      -Definition at line 107 of file channels.h. -

      -Referenced by chanrec().


      The documentation for this class was generated from the following files: -
      Generated on Thu May 12 02:25:18 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 8719bfe9c..50d9c0fa1 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -9,7 +9,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:18 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index 26b2e35d1..b954122c8 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -132,7 +132,7 @@ Referenced by classbase().
      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:18 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index f0d330dbb..576a008c9 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -19,7 +19,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:19 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 6139dbf21..43fda70c5 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -227,7 +227,7 @@ Definition at line 43 of
      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:19 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index fd2767af3..2ba7e65d4 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -9,38 +9,34 @@ AddIncoming(int fd, char *targethost, int sourceport)connection ageclassbase BeginLink(char *targethost, int port, char *password, char *servername, int myport)connection - bytes_inconnection - bytes_outconnection + bytes_inconnection + bytes_outconnection classbase()classbase [inline] - cmds_inconnection - cmds_outconnection + cmds_inconnection + cmds_outconnection connection()connection - connectorsconnection + connectorsconnection CreateListener(char *host, int p)connection Extend(std::string key, char *p)Extensible fdconnection FindHost(std::string host)connection GetExt(std::string key)Extensible - haspassedconnection + haspassedconnection hostconnection - idle_lastmsgconnection - inbufconnection - internal_addrconnection - internal_portconnection + idle_lastmsgconnection ipconnection - lastpingconnection + lastpingconnection MeshCookie(char *targethost, int port, unsigned long cookie, char *servername)connection - npingconnection - portconnection + npingconnection + portconnection RecvPacket(std::deque< std::string > &messages, char *host)connection - registeredconnection + registeredconnection SendPacket(char *message, const char *host)connection Shrink(std::string key)Extensible - signonconnection - stateconnection + signonconnection TerminateLink(char *targethost)connection ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 784fc69e3..0a13449ff 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -23,10 +23,10 @@ Inherited by serverrec, and bool CreateListener (char *host, int p)  Create a listening socket on 'host' using port number 'p'.

      -bool BeginLink (char *targethost, int port, char *password, char *servername, int myport) +bool BeginLink (char *targethost, int port, char *password, char *servername, int myport)  Begin an outbound link to another ircd at targethost.


      -bool MeshCookie (char *targethost, int port, unsigned long cookie, char *servername) +bool MeshCookie (char *targethost, int port, unsigned long cookie, char *servername)  Begin an outbound mesh link to another ircd on a network you are already an authenticated member of.


      void TerminateLink (char *targethost) @@ -48,60 +48,48 @@ Inherited by serverrec, and int fd  File descriptor of the connection.


      -char host [256] +char host [160]  Hostname of connection.


      -char ip [32] +char ip [16]  IP of connection.


      -char inbuf [MAXBUF] +long bytes_in - Inbuf of connection.


      -long bytes_in + Stats counter for bytes inbound.


      +long bytes_out - Stats counter for bytes inbound.


      -long bytes_out + Stats counter for bytes outbound.


      +long cmds_in - Stats counter for bytes outbound.


      -long cmds_in + Stats counter for commands inbound.


      +long cmds_out - Stats counter for commands inbound.


      -long cmds_out + Stats counter for commands outbound.


      +bool haspassed - Stats counter for commands outbound.


      -bool haspassed + True if server/user has authenticated, false if otherwise.


      +int port - True if server/user has authenticated, false if otherwise.


      -int port + Port number For a userrec, this is the port they connected to the network on.


      +char registered - Port number For a userrec, this is the port they connected to the network on.


      -int registered + Used by userrec to indicate the registration status of the connection.


      +time_t lastping - Used by userrec to indicate the registration status of the connection.


      -short int state + Time the connection was last pinged.


      +time_t signon - Reserved for future use.


      -time_t lastping + Time the connection was created, set in the constructor.


      +time_t idle_lastmsg - Time the connection was last pinged.


      -time_t signon + Time that the connection last sent data, used to calculate idle time.


      +time_t nping - Time the connection was created, set in the constructor.


      -time_t idle_lastmsg + Used by PING checks with clients.


      +std::vector< ircd_connectorconnectors - Time that the connection last sent data, used to calculate idle time.


      -time_t nping - - Used by PING checks with clients.


      -char internal_addr [MAXBUF] - - Unused, will be removed in a future alpha/beta.


      -int internal_port - - Unused, will be removed in a future alpha/beta.


      -std::vector< ircd_connectorconnectors - - With a serverrec, this is a list of all established server connections.


      + With a serverrec, this is a list of all established server connections.



      Detailed Description

      Please note: classes serverrec and userrec both inherit from class connection. @@ -479,13 +467,13 @@ Terminate a link to 'targethost' by calling the

      +

      @@ -502,18 +490,18 @@ Stats counter for bytes inbound.

      -Definition at line 231 of file connection.h. +Definition at line 227 of file connection.h.

      Referenced by userrec::userrec().

      -
      long connection::bytes_in + long connection::bytes_in
      -

      +

      @@ -530,18 +518,18 @@ Stats counter for bytes outbound.

      -Definition at line 235 of file connection.h. +Definition at line 231 of file connection.h.

      -Referenced by userrec::FlushWriteBuf(), and userrec::userrec(). +Referenced by userrec::FlushWriteBuf(), and userrec::userrec().

      -
      long connection::bytes_out + long connection::bytes_out
      -

      +

      @@ -558,18 +546,18 @@ Stats counter for commands inbound.

      -Definition at line 239 of file connection.h. +Definition at line 235 of file connection.h.

      Referenced by userrec::userrec().

      -
      long connection::cmds_in + long connection::cmds_in
      -

      +

      @@ -586,18 +574,18 @@ Stats counter for commands outbound.

      -Definition at line 243 of file connection.h. +Definition at line 239 of file connection.h.

      -Referenced by userrec::FlushWriteBuf(), and userrec::userrec(). +Referenced by userrec::FlushWriteBuf(), and userrec::userrec().

      -
      long connection::cmds_out + long connection::cmds_out
      -

      +

      @@ -614,7 +602,7 @@ With a serverrec, this is a list of all established server connections.

      With a userrec this is unused.

      -Definition at line 290 of file connection.h. +Definition at line 274 of file connection.h.

      -
      std::vector<ircd_connector> connection::connectors + std::vector<ircd_connector> connection::connectors

      @@ -642,16 +630,16 @@ File descriptor of the connection.

      Definition at line 215 of file connection.h.

      -Referenced by ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo(). +Referenced by ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo(). -

      +

      @@ -668,7 +656,7 @@ True if server/user has authenticated, false if otherwise.

      -Definition at line 247 of file connection.h. +Definition at line 243 of file connection.h.

      Referenced by userrec::userrec(). @@ -679,7 +667,7 @@ Referenced by userrec::userre

      @@ -698,16 +686,16 @@ Not used if this is a serverrec

      Definition at line 219 of file connection.h.

      -Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo(). +Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo().

      -
      bool connection::haspassed + bool connection::haspassed
      -
      char connection::host[256] + char connection::host[160]
      -

      +

      @@ -724,98 +712,18 @@ Time that the connection last sent data, used to calculate idle time.

      -Definition at line 273 of file connection.h. -

      -Referenced by userrec::userrec(). - -

      -
      time_t connection::idle_lastmsg + time_t connection::idle_lastmsg
      -

      - - - - -
      - - -
      char connection::inbuf[MAXBUF] -
      -
      - - - -
      -   - - -

      -Inbuf of connection. -

      -Only used for userrec -

      -Definition at line 227 of file connection.h. +Definition at line 265 of file connection.h.

      Referenced by userrec::userrec().

      -

      - - - - -
      - - -
      char connection::internal_addr[MAXBUF] -
      -
      - - - - - -
      -   - - -

      -Unused, will be removed in a future alpha/beta. -

      - -

      -Definition at line 281 of file connection.h.

      -

      - - - - -
      - - -
      int connection::internal_port -
      -
      - - - - - -
      -   - - -

      -Unused, will be removed in a future alpha/beta. -

      - -

      -Definition at line 285 of file connection.h.

      @@ -830,20 +738,20 @@ Definition at line 285

      IP of connection.

      -Reserved for future use. +

      Definition at line 223 of file connection.h.

      Referenced by userrec::userrec().

      -
      char connection::ip[32] + char connection::ip[16]
      -

      +

      @@ -860,18 +768,18 @@ Time the connection was last pinged.

      -Definition at line 265 of file connection.h. +Definition at line 257 of file connection.h.

      Referenced by serverrec::serverrec(), and userrec::userrec().

      -
      time_t connection::lastping + time_t connection::lastping
      -

      +

      @@ -888,18 +796,18 @@ Used by PING checks with clients.

      -Definition at line 277 of file connection.h. +Definition at line 269 of file connection.h.

      Referenced by userrec::userrec().

      -
      time_t connection::nping + time_t connection::nping
      -

      +

      @@ -916,18 +824,18 @@ Port number For a userrec, this is the port they connected to the network on.

      For a serverrec this is the current listening port of the serverrec object.

      -Definition at line 253 of file connection.h. +Definition at line 249 of file connection.h.

      Referenced by userrec::userrec().

      -
      int connection::port + int connection::port
      -

      +

      @@ -944,18 +852,18 @@ Used by userrec to indicate the registration status of the connection.

      -Definition at line 257 of file connection.h. +Definition at line 253 of file connection.h.

      Referenced by userrec::userrec().

      -
      int connection::registered + char connection::registered
      -

      +

      @@ -972,40 +880,14 @@ Time the connection was created, set in the constructor.

      -Definition at line 269 of file connection.h. +Definition at line 261 of file connection.h.

      Referenced by serverrec::serverrec(), and userrec::userrec().

      -
      time_t connection::signon + time_t connection::signon
      -

      - - - - -
      - - -
      short int connection::state -
      -
      - - - - - -
      -   - - -

      -Reserved for future use. -

      - -

      -Definition at line 261 of file connection.h.


      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 1b3c4ae56..b40a1960b 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -8,24 +8,25 @@

      InspIRCd Compound Index

        A  
      DNS   
        H  
      -
      ModuleFactory   serverrec   
      Admin   dns_ip4list   HostItem   ModuleMessage   StrHashComp   
        B  
      +
      ModuleFactory   StrHashComp   
      Admin   dns_ip4list   HostItem   ModuleMessage   
        U  
      +
        B  
        E  
        I  
        N  
      -
        U  
      -
      BanItem   ELine   InAddr_HashComp   nspace::hash< in_addr > (nspace)   ucrec   
        C  
      -
      Event   Invited   nspace::hash< string > (nspace)   userrec   
      chanrec   ExemptItem   InviteItem   
        Q  
      -
        V  
      -
      classbase   Extensible   ircd_connector   QLine   Version   
      command_t   ExtMode   
        K  
      +
      ucrec   
      BanItem   ELine   InAddr_HashComp   nspace::hash< in_addr > (nspace)   userrec   
        C  
      +
      Event   Invited   nspace::hash< string > (nspace)   
        V  
      +
      chanrec   ExemptItem   InviteItem   
        Q  
      +
      Version   
      classbase   Extensible   ircd_connector   QLine   
        W  
      +
      command_t   ExtMode   
        K  
        R  
      -
        X  
      -
      ConfigReader   
        F  
      -
      KLine   Request   XLine   
      ConnectClass   FileReader   
        M  
      +
      WhoWasUser   
      ConfigReader   
        F  
      +
      KLine   Request   
        X  
      +
      ConnectClass   FileReader   
        M  
        S  
      -
        Z  
      -
      connection   
        G  
      -
      ModeParameter   Server   ZLine   
        D  
      -
      GLine   Module   

      Generated on Thu May 12 02:25:17 2005 for InspIRCd by +XLine   connection   
        G  
      +ModeParameter   Server   
        Z  
      +
        D  
      +GLine   Module   serverrec   ZLine   
      Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classircd__connector-members.html b/docs/module-doc/classircd__connector-members.html index b37048dd8..d593500b7 100644 --- a/docs/module-doc/classircd__connector-members.html +++ b/docs/module-doc/classircd__connector-members.html @@ -43,7 +43,7 @@ stateircd_connector [private] versionircd_connector [private] ~classbase()classbase [inline] -
      Generated on Thu May 12 02:25:22 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classircd__connector.html b/docs/module-doc/classircd__connector.html index 95c580e11..d15fa9dd2 100644 --- a/docs/module-doc/classircd__connector.html +++ b/docs/module-doc/classircd__connector.html @@ -106,7 +106,7 @@ Inherits Extensible. std::string description  Server 'GECOS'.


      -int state +char state  State.


      std::string version @@ -1004,7 +1004,7 @@ Definition at line 67 -
      int ircd_connector::state [private] + char ircd_connector::state [private]
      @@ -1052,7 +1052,7 @@ Definition at line 84
      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:22 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index 119f82981..40fe3a744 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -9,44 +9,40 @@ AddIncoming(int fd, char *targethost, int sourceport)connection ageclassbase BeginLink(char *targethost, int port, char *password, char *servername, int myport)connection - bytes_inconnection - bytes_outconnection + bytes_inconnection + bytes_outconnection classbase()classbase [inline] - cmds_inconnection - cmds_outconnection + cmds_inconnection + cmds_outconnection connection()connection - connectorsconnection + connectorsconnection CreateListener(char *host, int p)connection descriptionserverrec Extend(std::string key, char *p)Extensible fdconnection FindHost(std::string host)connection GetExt(std::string key)Extensible - haspassedconnection + haspassedconnection hops_awayserverrec hostconnection - idle_lastmsgconnection - inbufconnection - internal_addrconnection - internal_portconnection + idle_lastmsgconnection ipconnection jupiterserverrec - lastpingconnection + lastpingconnection MeshCookie(char *targethost, int port, unsigned long cookie, char *servername)connection nameserverrec nickservserverrec - npingconnection + npingconnection opercountserverrec pingtimeserverrec - portconnection + portconnection RecvPacket(std::deque< std::string > &messages, char *host)connection - registeredconnection + registeredconnection SendPacket(char *message, const char *host)connection serverrec()serverrec serverrec(char *n, long ver, bool jupe)serverrec Shrink(std::string key)Extensible - signonconnection - stateconnection + signonconnection sync_soonserverrec TerminateLink(char *targethost)connection usercountserverrec @@ -54,7 +50,7 @@ versionserverrec ~classbase()classbase [inline] ~serverrec()serverrec -
      Generated on Thu May 12 02:25:28 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index 872fd6047..3cad25fb3 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -95,15 +95,15 @@ Constructor.

      Definition at line 26 of file servers.cpp.

      -References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, pingtime, connection::signon, sync_soon, TIME, usercount, usercount_i, and version. +References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, pingtime, connection::signon, sync_soon, TIME, usercount, usercount_i, and version.

      00027 {
       00028         strlcpy(name,"",256);
       00029         pingtime = 0;
      -00030         lastping = TIME;
      +00030         lastping = TIME;
       00031         usercount_i = usercount = opercount = version = 0;
       00032         hops_away = 1;
      -00033         signon = TIME;
      +00033         signon = TIME;
       00034         jupiter = false;
       00035         fd = 0;
       00036         sync_soon = false;
      @@ -159,15 +159,15 @@ Constructor which initialises some of the main variables.
       

      Definition at line 45 of file servers.cpp.

      -References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, connection::signon, sync_soon, TIME, usercount, usercount_i, and version. +References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, connection::signon, sync_soon, TIME, usercount, usercount_i, and version.

      00046 {
       00047         strlcpy(name,n,256);
      -00048         lastping = TIME;
      +00048         lastping = TIME;
       00049         usercount_i = usercount = opercount = 0;
       00050         version = ver;
       00051         hops_away = 1;
      -00052         signon = TIME;
      +00052         signon = TIME;
       00053         jupiter = jupe;
       00054         fd = 0;
       00055         sync_soon = false;
      @@ -519,7 +519,7 @@ Referenced by serverrec()
       
      The documentation for this class was generated from the following files:
      -
      Generated on Thu May 12 02:25:28 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index 95f7be1c1..552d18d43 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -13,7 +13,7 @@ ucrec()ucrec [inline] ~classbase()classbase [inline] ~ucrec()ucrec [inline, virtual] -
      Generated on Thu May 12 02:25:28 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index ad7b1ec0e..453ef50a6 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -20,7 +20,7 @@ Inherits classbase. virtual ~ucrec ()

      Public Attributes

      -long uc_modes +char uc_modes  Contains a bitmask of the UCMODE_OP ...

      chanrecchannel @@ -34,7 +34,7 @@ The uc_modes member holds a bitmask of which privilages the user has on the chan

      -Definition at line 257 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 222 of file channels.h.

      Constructor & Destructor Documentation

      @@ -62,9 +62,9 @@ Definition at line 257 o

      -Definition at line 270 of file channels.h. +Definition at line 235 of file channels.h.

      -

      00270 { /* stub */ }
      +
      00235 { /* stub */ }
       
      @@ -95,9 +95,9 @@ Definition at line 270 o

      -Definition at line 271 of file channels.h. +Definition at line 236 of file channels.h.

      -

      00271 { /* stub */ }
      +
      00236 { /* stub */ }
       
      @@ -125,9 +125,9 @@ Points to the channel record where the given modes apply.

      If the record is not in use, this value will be NULL.

      -Definition at line 268 of file channels.h. +Definition at line 233 of file channels.h.

      -Referenced by Server::PseudoToUser(), and userrec::userrec(). +Referenced by Server::PseudoToUser(), and userrec::userrec().

      @@ -136,7 +136,7 @@ Referenced by Server::Pseud -
      long ucrec::uc_modes + char ucrec::uc_modes
      @@ -153,14 +153,14 @@ Contains a bitmask of the UCMODE_OP ...

      UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel.

      -Definition at line 263 of file channels.h. +Definition at line 228 of file channels.h.

      Referenced by userrec::userrec().


      The documentation for this class was generated from the following file: -
      Generated on Thu May 12 02:25:28 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index 57e339772..3044da8d9 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -13,15 +13,15 @@ awaymsguserrec BeginLink(char *targethost, int port, char *password, char *servername, int myport)connection BufferIsReady()userrec - bytes_inconnection - bytes_outconnection + bytes_inconnection + bytes_outconnection chansuserrec classbase()classbase [inline] ClearBuffer()userrec - cmds_inconnection - cmds_outconnection + cmds_inconnection + cmds_outconnection connection()connection - connectorsconnection + connectorsconnection CreateListener(char *host, int p)connection dhostuserrec dns_doneuserrec @@ -36,32 +36,29 @@ GetFullHost()userrec [virtual] GetFullRealHost()userrec [virtual] GetWriteError()userrec - haspassedconnection + haspassedconnection HasPermission(char *command)userrec hostconnection identuserrec - idle_lastmsgconnection - inbufconnection - internal_addrconnection - internal_portconnection + idle_lastmsgconnection invitesuserrec [private] InviteTo(char *channel)userrec [virtual] ipconnection IsInvited(char *channel)userrec [virtual] - lastpingconnection + lastpingconnection lines_inuserrec MeshCookie(char *targethost, int port, unsigned long cookie, char *servername)connection modesuserrec nickuserrec - npingconnection + npingconnection operuserrec passworduserrec pingmaxuserrec - portconnection + portconnection RecvPacket(std::deque< std::string > &messages, char *host)connection recvquserrec recvqmaxuserrec - registeredconnection + registeredconnection RemoveInvite(char *channel)userrec [virtual] reset_dueuserrec resultuserrec @@ -71,8 +68,7 @@ serveruserrec SetWriteError(std::string error)userrec Shrink(std::string key)Extensible - signonconnection - stateconnection + signonconnection TerminateLink(char *targethost)connection thresholduserrec timeoutuserrec @@ -80,7 +76,7 @@ WriteErroruserrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
      Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index a1d605b1b..1b7b4000c 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -65,10 +65,10 @@ Inherits connection. char nick [NICKMAX]  The users nickname.


      -char ident [64] +char ident [16]  The users ident reply.


      -char dhost [256] +char dhost [160]  The host displayed to non-opers (used for cloaking etc).


      char fullname [128] @@ -91,7 +91,7 @@ Inherits connection. int flood  Number of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood.


      -unsigned long timeout +unsigned int timeout  Number of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected.


      char oper [NICKMAX] @@ -100,7 +100,7 @@ Inherits connection. bool dns_done  True when DNS lookups are completed.


      -unsigned long pingmax +unsigned int pingmax  Number of seconds between PINGs for this user (set from <connect:allow> tag.


      char password [MAXBUF] @@ -112,7 +112,7 @@ Inherits connection. std::string sendq  User's send queue.


      -long lines_in +int lines_in  Flood counters.


      time_t reset_due @@ -169,7 +169,7 @@ Definition at line 108 of f

      Definition at line 28 of file users.cpp.

      -References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, connection::inbuf, invites, connection::ip, connection::lastping, lines_in, modes, nick, connection::nping, oper, connection::port, recvq, connection::registered, reset_due, result, sendq, server, connection::signon, TIME, timeout, and ucrec::uc_modes. +References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, invites, connection::ip, connection::lastping, lines_in, modes, nick, connection::nping, oper, connection::port, recvq, connection::registered, reset_due, result, sendq, server, connection::signon, TIME, timeout, and ucrec::uc_modes.

      00029 {
       00030         // the PROPER way to do it, AVOID bzero at *ALL* costs
      @@ -181,26 +181,25 @@ References awaymsg, "");
       00037         strcpy(fullname,"");
       00038         strcpy(modes,"");
      -00039         strcpy(inbuf,"");
      -00040         strcpy(server,"");
      -00041         strcpy(awaymsg,"");
      -00042         strcpy(oper,"");
      -00043         reset_due = TIME;
      -00044         lines_in = 0;
      -00045         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
      -00046         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
      -00047         haspassed = false;
      -00048         dns_done = false;
      -00049         recvq = "";
      -00050         sendq = "";
      -00051         strcpy(result,"");
      -00052         for (int i = 0; i < MAXCHANS; i++)
      -00053         {
      -00054                 this->chans[i].channel = NULL;
      -00055                 this->chans[i].uc_modes = 0;
      -00056         }
      -00057         invites.clear();
      -00058 }
      +00039         strcpy(server,"");
      +00040         strcpy(awaymsg,"");
      +00041         strcpy(oper,"");
      +00042         reset_due = TIME;
      +00043         lines_in = 0;
      +00044         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
      +00045         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
      +00046         haspassed = false;
      +00047         dns_done = false;
      +00048         recvq = "";
      +00049         sendq = "";
      +00050         strcpy(result,"");
      +00051         for (int i = 0; i < MAXCHANS; i++)
      +00052         {
      +00053                 this->chans[i].channel = NULL;
      +00054                 this->chans[i].uc_modes = 0;
      +00055         }
      +00056         invites.clear();
      +00057 }
       
      @@ -268,34 +267,34 @@ This method adds data to the buffer of the user.

      The buffer can grow to any size within limits of the available memory, managed by the size of a std::string, however if any individual line in the buffer grows over 600 bytes in length (which is 88 chars over the RFC-specified limit per line) then the method will return false and the text will not be inserted.

      -Definition at line 170 of file users.cpp. -

      -References recvq, recvqmax, and SetWriteError(). -

      -

      00171 {
      -00172         std::string b = "";
      -00173         for (int i = 0; i < a.length(); i++)
      -00174                 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7))
      -00175                         b = b + a[i];
      -00176         std::stringstream stream(recvq);
      -00177         stream << b;
      -00178         recvq = stream.str();
      -00179         int i = 0;
      -00180         // count the size of the first line in the buffer.
      -00181         while (i < recvq.length())
      -00182         {
      -00183                 if (recvq[i++] == '\n')
      -00184                         break;
      -00185         }
      -00186         if (recvq.length() > this->recvqmax)
      -00187         {
      -00188                 this->SetWriteError("RecvQ exceeded");
      -00189                 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
      -00190         }
      -00191         // return false if we've had more than 600 characters WITHOUT
      -00192         // a carriage return (this is BAD, drop the socket)
      -00193         return (i < 600);
      -00194 }
      +Definition at line 169 of file users.cpp.
      +

      +References recvq, recvqmax, and SetWriteError(). +

      +

      00170 {
      +00171         std::string b = "";
      +00172         for (int i = 0; i < a.length(); i++)
      +00173                 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7))
      +00174                         b = b + a[i];
      +00175         std::stringstream stream(recvq);
      +00176         stream << b;
      +00177         recvq = stream.str();
      +00178         int i = 0;
      +00179         // count the size of the first line in the buffer.
      +00180         while (i < recvq.length())
      +00181         {
      +00182                 if (recvq[i++] == '\n')
      +00183                         break;
      +00184         }
      +00185         if (recvq.length() > this->recvqmax)
      +00186         {
      +00187                 this->SetWriteError("RecvQ exceeded");
      +00188                 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
      +00189         }
      +00190         // return false if we've had more than 600 characters WITHOUT
      +00191         // a carriage return (this is BAD, drop the socket)
      +00192         return (i < 600);
      +00193 }
       
      @@ -329,23 +328,23 @@ Adds to the user's write buffer.

      You may add any amount of text up to this users sendq value, if you exceed the sendq value, SetWriteError() will be called to set the users error string to "SendQ exceeded", and further buffer adds will be dropped.

      -Definition at line 226 of file users.cpp. -

      -References GetWriteError(), sendq, sendqmax, and SetWriteError(). -

      -

      00227 {
      -00228         if (this->GetWriteError() != "")
      -00229                 return;
      -00230         if (sendq.length() + data.length() > this->sendqmax)
      -00231         {
      -00232                 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax);
      -00233                 this->SetWriteError("SendQ exceeded");
      -00234                 return;
      -00235         }
      -00236         std::stringstream stream;
      -00237         stream << sendq << data;
      -00238         sendq = stream.str();
      -00239 }
      +Definition at line 225 of file users.cpp.
      +

      +References GetWriteError(), sendq, sendqmax, and SetWriteError(). +

      +

      00226 {
      +00227         if (this->GetWriteError() != "")
      +00228                 return;
      +00229         if (sendq.length() + data.length() > this->sendqmax)
      +00230         {
      +00231                 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax);
      +00232                 this->SetWriteError("SendQ exceeded");
      +00233                 return;
      +00234         }
      +00235         std::stringstream stream;
      +00236         stream << sendq << data;
      +00237         sendq = stream.str();
      +00238 }
       
      @@ -378,16 +377,16 @@ This method returns true if the buffer contains at least one carriage return cha

      one complete line may be read)

      -Definition at line 196 of file users.cpp. +Definition at line 195 of file users.cpp.

      References recvq.

      -

      00197 {
      -00198         for (int i = 0; i < recvq.length(); i++)
      -00199                 if (recvq[i] == '\n')
      -00200                         return true;
      -00201         return false;
      -00202 }
      +
      00196 {
      +00197         for (int i = 0; i < recvq.length(); i++)
      +00198                 if (recvq[i] == '\n')
      +00199                         return true;
      +00200         return false;
      +00201 }
       
      @@ -420,15 +419,15 @@ This function clears the entire buffer by setting it to an empty string.

      -Definition at line 204 of file users.cpp. +Definition at line 203 of file users.cpp.

      References recvq.

      -Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). +Referenced by Server::PseudoToUser(), and Server::UserToPseudo().

      -

      00205 {
      -00206         recvq = "";
      -00207 }
      +
      00204 {
      +00205         recvq = "";
      +00206 }
       
      @@ -461,30 +460,30 @@ Flushes as much of the user's buffer to the file descriptor as possible.

      This function may not always flush the entire buffer, rather instead as much of it as it possibly can. If the send() call fails to send the entire buffer, the buffer position is advanced forwards and the rest of the data sent at the next call to this method.

      -Definition at line 242 of file users.cpp. -

      -References connection::bytes_out, connection::cmds_out, sendq, and SetWriteError(). -

      -

      00243 {
      -00244         if (sendq.length())
      -00245         {
      -00246                 char* tb = (char*)this->sendq.c_str();
      -00247                 int n_sent = write(this->fd,tb,this->sendq.length());
      -00248                 if (n_sent == -1)
      -00249                 {
      -00250                         this->SetWriteError(strerror(errno));
      -00251                 }
      -00252                 else
      -00253                 {
      -00254                         // advance the queue
      -00255                         tb += n_sent;
      -00256                         this->sendq = tb;
      -00257                         // update the user's stats counters
      -00258                         this->bytes_out += n_sent;
      -00259                         this->cmds_out++;
      -00260                 }
      -00261         }
      -00262 }
      +Definition at line 241 of file users.cpp.
      +

      +References connection::bytes_out, connection::cmds_out, sendq, and SetWriteError(). +

      +

      00242 {
      +00243         if (sendq.length())
      +00244         {
      +00245                 char* tb = (char*)this->sendq.c_str();
      +00246                 int n_sent = write(this->fd,tb,this->sendq.length());
      +00247                 if (n_sent == -1)
      +00248                 {
      +00249                         this->SetWriteError(strerror(errno));
      +00250                 }
      +00251                 else
      +00252                 {
      +00253                         // advance the queue
      +00254                         tb += n_sent;
      +00255                         this->sendq = tb;
      +00256                         // update the user's stats counters
      +00257                         this->bytes_out += n_sent;
      +00258                         this->cmds_out++;
      +00259                 }
      +00260         }
      +00261 }
       
      @@ -517,25 +516,25 @@ This method returns the first available string at the tail end of the buffer and

      This means it is a one way operation in a similar way to strtok(), and multiple calls return multiple lines if they are available. The results of this function if there are no lines to be read are unknown, always use BufferIsReady() to check if it is ok to read the buffer before calling GetBuffer().

      -Definition at line 209 of file users.cpp. +Definition at line 208 of file users.cpp.

      References recvq.

      -

      00210 {
      -00211         if (recvq == "")
      -00212                 return "";
      -00213         char* line = (char*)recvq.c_str();
      -00214         std::string ret = "";
      -00215         while ((*line != '\n') && (strlen(line)))
      -00216         {
      -00217                 ret = ret + *line;
      -00218                 line++;
      -00219         }
      -00220         if ((*line == '\n') || (*line == '\r'))
      -00221                 line++;
      -00222         recvq = line;
      -00223         return ret;
      -00224 }
      +
      00209 {
      +00210         if (recvq == "")
      +00211                 return "";
      +00212         char* line = (char*)recvq.c_str();
      +00213         std::string ret = "";
      +00214         while ((*line != '\n') && (strlen(line)))
      +00215         {
      +00216                 ret = ret + *line;
      +00217                 line++;
      +00218         }
      +00219         if ((*line == '\n') || (*line == '\r'))
      +00220                 line++;
      +00221         recvq = line;
      +00222         return ret;
      +00223 }
       
      @@ -568,14 +567,14 @@ Returns the full displayed host of the user This member function returns the hos

      -Definition at line 62 of file users.cpp. +Definition at line 61 of file users.cpp.

      References dhost, ident, nick, and result.

      -

      00063 {
      -00064         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
      -00065         return result;
      -00066 }
      +
      00062 {
      +00063         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
      +00064         return result;
      +00065 }
       
      @@ -608,14 +607,14 @@ Returns the full real host of the user This member function returns the hostname

      If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.

      -Definition at line 69 of file users.cpp. +Definition at line 68 of file users.cpp.

      References connection::host, ident, nick, and result.

      -

      00070 {
      -00071         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host);
      -00072         return result;
      -00073 }
      +
      00069 {
      +00070         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host);
      +00071         return result;
      +00072 }
       
      @@ -648,15 +647,15 @@ Returns the write error which last occured on this connection or an empty string

      -Definition at line 272 of file users.cpp. +Definition at line 271 of file users.cpp.

      References WriteError.

      -Referenced by AddWriteBuf(). +Referenced by AddWriteBuf().

      -

      00273 {
      -00274         return this->WriteError;
      -00275 }
      +
      00272 {
      +00273         return this->WriteError;
      +00274 }
       
      @@ -690,59 +689,59 @@ Returns true or false for if a user can execute a privilaged oper command.

      This is done by looking up their oper type from userrec::oper, then referencing this to their oper classes and checking the commands they can execute.

      -Definition at line 118 of file users.cpp. +Definition at line 117 of file users.cpp.

      References config_f, and DEBUG.

      -

      00119 {
      -00120         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
      -00121         char* mycmd;
      -00122         char* savept;
      -00123         char* savept2;
      -00124         
      -00125         // are they even an oper at all?
      -00126         if (strchr(this->modes,'o'))
      -00127         {
      -00128                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
      -00129                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
      -00130                 {
      -00131                         ConfValue("type","name",j,TypeName,&config_f);
      -00132                         if (!strcmp(TypeName,this->oper))
      -00133                         {
      -00134                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
      -00135                                 ConfValue("type","classes",j,Classes,&config_f);
      -00136                                 char* myclass = strtok_r(Classes," ",&savept);
      -00137                                 while (myclass)
      -00138                                 {
      -00139                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
      -00140                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
      -00141                                         {
      -00142                                                 ConfValue("class","name",k,ClassName,&config_f);
      -00143                                                 if (!strcmp(ClassName,myclass))
      -00144                                                 {
      -00145                                                         ConfValue("class","commands",k,CommandList,&config_f);
      -00146                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
      +
      00118 {
      +00119         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
      +00120         char* mycmd;
      +00121         char* savept;
      +00122         char* savept2;
      +00123         
      +00124         // are they even an oper at all?
      +00125         if (strchr(this->modes,'o'))
      +00126         {
      +00127                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
      +00128                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
      +00129                 {
      +00130                         ConfValue("type","name",j,TypeName,&config_f);
      +00131                         if (!strcmp(TypeName,this->oper))
      +00132                         {
      +00133                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
      +00134                                 ConfValue("type","classes",j,Classes,&config_f);
      +00135                                 char* myclass = strtok_r(Classes," ",&savept);
      +00136                                 while (myclass)
      +00137                                 {
      +00138                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
      +00139                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
      +00140                                         {
      +00141                                                 ConfValue("class","name",k,ClassName,&config_f);
      +00142                                                 if (!strcmp(ClassName,myclass))
      +00143                                                 {
      +00144                                                         ConfValue("class","commands",k,CommandList,&config_f);
      +00145                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
      +00146                                                         
       00147                                                         
      -00148                                                         
      -00149                                                         mycmd = strtok_r(CommandList," ",&savept2);
      -00150                                                         while (mycmd)
      -00151                                                         {
      -00152                                                                 if (!strcasecmp(mycmd,command))
      -00153                                                                 {
      -00154                                                                         log(DEBUG,"*** Command %s found, returning true",command);
      -00155                                                                         return true;
      -00156                                                                 }
      -00157                                                                 mycmd = strtok_r(NULL," ",&savept2);
      -00158                                                         }
      -00159                                                 }
      -00160                                         }
      -00161                                         myclass = strtok_r(NULL," ",&savept);
      -00162                                 }
      -00163                         }
      -00164                 }
      -00165         }
      -00166         return false;
      -00167 }
      +00148                                                         mycmd = strtok_r(CommandList," ",&savept2);
      +00149                                                         while (mycmd)
      +00150                                                         {
      +00151                                                                 if (!strcasecmp(mycmd,command))
      +00152                                                                 {
      +00153                                                                         log(DEBUG,"*** Command %s found, returning true",command);
      +00154                                                                         return true;
      +00155                                                                 }
      +00156                                                                 mycmd = strtok_r(NULL," ",&savept2);
      +00157                                                         }
      +00158                                                 }
      +00159                                         }
      +00160                                         myclass = strtok_r(NULL," ",&savept);
      +00161                                 }
      +00162                         }
      +00163                 }
      +00164         }
      +00165         return false;
      +00166 }
       
      @@ -776,15 +775,15 @@ Adds a channel to a users invite list (invites them to a channel).

      -Definition at line 89 of file users.cpp. +Definition at line 88 of file users.cpp.

      References Invited::channel, and invites.

      -

      00090 {
      -00091         Invited i;
      -00092         strlcpy(i.channel,channel,CHANMAX);
      -00093         invites.push_back(i);
      -00094 }
      +
      00089 {
      +00090         Invited i;
      +00091         strlcpy(i.channel,channel,CHANMAX);
      +00092         invites.push_back(i);
      +00093 }
       
      @@ -818,22 +817,22 @@ Returns true if a user is invited to a channel.

      -Definition at line 75 of file users.cpp. +Definition at line 74 of file users.cpp.

      References invites.

      -

      00076 {
      -00077         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
      -00078         {
      -00079                 if (i->channel) {
      -00080                         if (!strcasecmp(i->channel,channel))
      -00081                         {
      -00082                                 return true;
      -00083                         }
      -00084                 }
      -00085         }
      -00086         return false;
      -00087 }
      +
      00075 {
      +00076         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
      +00077         {
      +00078                 if (i->channel) {
      +00079                         if (!strcasecmp(i->channel,channel))
      +00080                         {
      +00081                                 return true;
      +00082                         }
      +00083                 }
      +00084         }
      +00085         return false;
      +00086 }
       
      @@ -867,30 +866,30 @@ Removes a channel from a users invite list.

      This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.

      -Definition at line 96 of file users.cpp. +Definition at line 95 of file users.cpp.

      References DEBUG, and invites.

      -

      00097 {
      -00098         log(DEBUG,"Removing invites");
      -00099         if (channel)
      -00100         {
      -00101                 if (invites.size())
      -00102                 {
      -00103                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
      -00104                         {
      -00105                                 if (i->channel)
      -00106                                 {
      -00107                                         if (!strcasecmp(i->channel,channel))
      -00108                                         {
      -00109                                                 invites.erase(i);
      -00110                                                 return;
      -00111                                         }
      -00112                                 }
      -00113                         }
      -00114                 }
      -00115         }
      -00116 }
      +
      00096 {
      +00097         log(DEBUG,"Removing invites");
      +00098         if (channel)
      +00099         {
      +00100                 if (invites.size())
      +00101                 {
      +00102                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
      +00103                         {
      +00104                                 if (i->channel)
      +00105                                 {
      +00106                                         if (!strcasecmp(i->channel,channel))
      +00107                                         {
      +00108                                                 invites.erase(i);
      +00109                                                 return;
      +00110                                         }
      +00111                                 }
      +00112                         }
      +00113                 }
      +00114         }
      +00115 }
       
      @@ -924,18 +923,18 @@ Sets the write error for a connection.

      This is done because the actual disconnect of a client may occur at an inopportune time such as half way through /LIST output. The WriteErrors of clients are checked at a more ideal time (in the mainloop) and errored clients purged.

      -Definition at line 264 of file users.cpp. +Definition at line 263 of file users.cpp.

      References DEBUG, and WriteError.

      -Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf(). +Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf().

      -

      00265 {
      -00266         log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
      -00267         // don't try to set the error twice, its already set take the first string.
      -00268         if (this->WriteError == "")
      -00269                 this->WriteError = error;
      -00270 }
      +
      00264 {
      +00265         log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
      +00266         // don't try to set the error twice, its already set take the first string.
      +00267         if (this->WriteError == "")
      +00268                 this->WriteError = error;
      +00269 }
       
      @@ -991,7 +990,7 @@ Referenced by userrec().

      Definition at line 142 of file users.h.

      -Referenced by Server::PseudoToUser(), and userrec(). +Referenced by Server::PseudoToUser(), and userrec().

      @@ -1000,7 +999,7 @@ Referenced by Server::Pseud -
      char userrec::dhost[256] + char userrec::dhost[160]
      @@ -1019,7 +1018,7 @@ This usually matches the value of
      u

      Definition at line 130 of file users.h.

      -Referenced by GetFullHost(), and userrec(). +Referenced by GetFullHost(), and userrec().

      @@ -1112,7 +1111,7 @@ Referenced by userrec(). -
      char userrec::ident[64] + char userrec::ident[16]
      @@ -1131,7 +1130,7 @@ The users ident reply.

      Definition at line 125 of file users.h.

      -Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo(). +Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo().

      @@ -1159,7 +1158,7 @@ A list of channels the user has a pending invite to.

      Definition at line 114 of file users.h.

      -Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec(). +Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec().

      @@ -1168,7 +1167,7 @@ Referenced by InviteTo(), -
      long userrec::lines_in + int userrec::lines_in
      @@ -1243,7 +1242,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma

      Definition at line 121 of file users.h.

      -Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), and userrec(). +Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), and userrec().

      @@ -1306,7 +1305,7 @@ Definition at line 189 of f -
      unsigned long userrec::pingmax + unsigned int userrec::pingmax
      @@ -1351,7 +1350,7 @@ Lines from the IRCd awaiting processing are stored here. Upgraded april 2005, ol

      Definition at line 195 of file users.h.

      -Referenced by AddBuffer(), BufferIsReady(), ClearBuffer(), GetBuffer(), and userrec(). +Referenced by AddBuffer(), BufferIsReady(), ClearBuffer(), GetBuffer(), and userrec().

      @@ -1379,7 +1378,7 @@ Maximum size this user's recvq can become.

      Definition at line 218 of file users.h.

      -Referenced by AddBuffer(). +Referenced by AddBuffer().

      @@ -1433,7 +1432,7 @@ You may use this to increase the speed of use of this class.

      Definition at line 156 of file users.h.

      -Referenced by GetFullHost(), GetFullRealHost(), and userrec(). +Referenced by GetFullHost(), GetFullRealHost(), and userrec().

      @@ -1461,7 +1460,7 @@ Lines waiting to be sent are stored here until their buffer is flushed.

      Definition at line 200 of file users.h.

      -Referenced by AddWriteBuf(), FlushWriteBuf(), and userrec(). +Referenced by AddWriteBuf(), FlushWriteBuf(), and userrec().

      @@ -1489,7 +1488,7 @@ Maximum size this user's sendq can become.

      Definition at line 214 of file users.h.

      -Referenced by AddWriteBuf(). +Referenced by AddWriteBuf().

      @@ -1550,7 +1549,7 @@ Definition at line 206 of f -
      unsigned long userrec::timeout + unsigned int userrec::timeout
      @@ -1595,12 +1594,12 @@ Referenced by userrec().

      Definition at line 210 of file users.h.

      -Referenced by GetWriteError(), and SetWriteError(). +Referenced by GetWriteError(), and SetWriteError().


      The documentation for this class was generated from the following files: -
      Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index bd2afa087..01a404602 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -118,7 +118,7 @@ 00121 long duration(const char* str); 00122 00123 #endif -

      Generated on Thu May 12 02:25:11 2005 for InspIRCd by +

      Generated on Thu May 12 22:58:58 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index d7be65235..c07eff440 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -207,7 +207,7 @@ Other useful functions.

      -Referenced by Server::AddELine(), Server::AddGLine(), Server::AddKLine(), Server::AddQLine(), Server::AddZLine(), and Server::CalcDuration(). +Referenced by Server::AddELine(), Server::AddGLine(), Server::AddKLine(), Server::AddQLine(), Server::AddZLine(), and Server::CalcDuration().

      @@ -3722,7 +3722,7 @@ Functions for u:lined servers.

      -Referenced by Server::IsUlined(). +Referenced by Server::IsUlined().

      @@ -3793,7 +3793,7 @@ Referenced by Server::IsUli -


      Generated on Thu May 12 02:25:15 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 79c043389..c5010e9c4 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -57,7 +57,7 @@ 00068 00071 std::string description; 00072 -00076 int state; +00076 char state; 00077 00080 bool SetHostAddress(char* host, int port); 00081 @@ -122,65 +122,57 @@ 00212 public: 00215 int fd; 00216 -00219 char host[256]; +00219 char host[160]; 00220 -00223 char ip[32]; +00223 char ip[16]; 00224 -00227 char inbuf[MAXBUF]; -00228 -00231 long bytes_in; +00227 long bytes_in; +00228 +00231 long bytes_out; 00232 -00235 long bytes_out; +00235 long cmds_in; 00236 -00239 long cmds_in; +00239 long cmds_out; 00240 -00243 long cmds_out; +00243 bool haspassed; 00244 -00247 bool haspassed; -00248 -00253 int port; +00249 int port; +00250 +00253 char registered; 00254 -00257 int registered; +00257 time_t lastping; 00258 -00261 short int state; +00261 time_t signon; 00262 -00265 time_t lastping; +00265 time_t idle_lastmsg; 00266 -00269 time_t signon; +00269 time_t nping; 00270 -00273 time_t idle_lastmsg; -00274 -00277 time_t nping; -00278 -00281 char internal_addr[MAXBUF]; -00282 -00285 int internal_port; -00286 -00290 std::vector<ircd_connector> connectors; +00274 std::vector<ircd_connector> connectors; +00275 +00278 connection(); +00279 +00282 bool CreateListener(char* host, int p); +00283 +00286 bool BeginLink(char* targethost, int port, char* password, char* servername, int myport); +00287 +00290 bool MeshCookie(char* targethost, int port, unsigned long cookie, char* servername); 00291 -00294 connection(); +00294 void TerminateLink(char* targethost); 00295 -00298 bool CreateListener(char* host, int p); -00299 -00302 bool BeginLink(char* targethost, int port, char* password, char* servername, int myport); -00303 -00306 bool MeshCookie(char* targethost, int port, unsigned long cookie, char* servername); -00307 -00310 void TerminateLink(char* targethost); -00311 -00315 bool SendPacket(char *message, const char* host); -00316 -00321 bool RecvPacket(std::deque<std::string> &messages, char* host); -00322 -00325 ircd_connector* FindHost(std::string host); -00326 -00330 bool AddIncoming(int fd,char* targethost, int sourceport); -00331 -00332 }; -00333 -00334 -00335 #endif -

      Generated on Thu May 12 02:25:11 2005 for InspIRCd by +00299 bool SendPacket(char *message, const char* host); +00300 +00305 bool RecvPacket(std::deque<std::string> &messages, char* host); +00306 +00309 ircd_connector* FindHost(std::string host); +00310 +00314 bool AddIncoming(int fd,char* targethost, int sourceport); +00315 +00316 }; +00317 +00318 +00319 #endif +

      Generated on Thu May 12 22:58:58 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index c8689a50c..1a63fd8ac 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -189,7 +189,7 @@ Definition at line 40 Definition at line 37 of file connection.h. -
      Generated on Thu May 12 02:25:15 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index b526d691c..42043fa7d 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -42,7 +42,7 @@ 00051 00052 #endif 00053 -

      Generated on Thu May 12 02:25:11 2005 for InspIRCd by +

      Generated on Thu May 12 22:58:58 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index 92975a456..c1a32b0a5 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -17,7 +17,7 @@  A structure that defines a command. More...

      -
      Generated on Thu May 12 02:25:15 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/dns_8h-source.html b/docs/module-doc/dns_8h-source.html index 820de511b..302f5d95b 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -70,7 +70,7 @@ 00093 }; 00094 00095 #endif -

      Generated on Thu May 12 02:25:11 2005 for InspIRCd by +

      Generated on Thu May 12 22:58:58 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/dns_8h.html b/docs/module-doc/dns_8h.html index 5ce0d54b4..5408cc9fd 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -20,7 +20,7 @@ struct  dns_ip4list -
      Generated on Thu May 12 02:25:15 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 67668e45d..7f2028d46 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -23,7 +23,7 @@ users.h [code] xline.h [code] -
      Generated on Thu May 12 02:25:10 2005 for InspIRCd by +
      Generated on Thu May 12 22:58:57 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index f22b189e8..a65648658 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -24,7 +24,7 @@ Here is a list of all class members with links to the classes they belong to:

      Server
    • AddQLine() : Server
    • addr : ircd_connector
    • AddUser() -: chanrec
    • AddWriteBuf() +: chanrec
    • AddWriteBuf() : userrec
    • AddZLine() : Server
    • Admin() : Admin
    • age @@ -33,18 +33,18 @@ Here is a list of all class members with links to the classes they belong to:

      - b -

      +: connection
    • bytes_out +: connection

    - c -

    - d -

    +: WhoWasUser, userrec

- g -

@@ -167,25 +166,20 @@ Here is a list of all class members with links to the classes they belong to:

- i -

- l -

@@ -247,10 +240,9 @@ Here is a list of all class members with links to the classes they belong to:

ExtMode
  • next : dns_ip4list
  • Nick : Admin
  • nick -: QLine, userrec
  • nickserv -: serverrec
  • noexternal -: chanrec
  • nping -: connection +: QLine, WhoWasUser, userrec
  • nickserv +: serverrec
  • nping +: connection

    - o -

    - q -

      @@ -338,7 +330,7 @@ Here is a list of all class members with links to the classes they belong to:

      connection
    • recvq : userrec
    • recvqmax : userrec, ConnectClass
    • registered -: connection
    • registration_timeout +: connection
    • registration_timeout : ConnectClass
    • RemoveInvite() : userrec
    • Request() : Request
    • reset_due @@ -349,8 +341,7 @@ Here is a list of all class members with links to the classes they belong to:

      ircd_connector

    - s -

    - t -

    - u - @@ -409,15 +399,14 @@ Here is a list of all class members with links to the classes they belong to:

    command_t
  • usercount : serverrec
  • usercount_i : serverrec
  • userrec() -: userrec
  • users -: chanrec
  • UserToPseudo() +: userrec
  • UserToPseudo() : Server

    - v -

    +: ConfigReader
  • Version() +: Version
  • version +: serverrec, ircd_connector

    - w -

    • WriteError @@ -425,7 +414,7 @@ Here is a list of all class members with links to the classes they belong to:

      - ~ -

      • ~chanrec() -: chanrec
      • ~classbase() +: chanrec
      • ~classbase() : classbase
      • ~ConfigReader() : ConfigReader
      • ~DNS() : DNS
      • ~FileReader() @@ -437,7 +426,7 @@ Here is a list of all class members with links to the classes they belong to:

        serverrec
      • ~ucrec() : ucrec
      • ~userrec() : userrec
      -
      Generated on Thu May 12 02:25:17 2005 for InspIRCd by +
      Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
      diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index 4fbcb8a2d..7af84533c 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -23,7 +23,7 @@ : connection
    • AddKLine() : Server
    • AddQLine() : Server
    • AddUser() -: chanrec
    • AddWriteBuf() +: chanrec
    • AddWriteBuf() : userrec
    • AddZLine() : Server
    • Admin() : Admin
    @@ -42,7 +42,7 @@ : Server
  • ChangeUserNick() : Server
  • ChanMode() : Server
  • chanrec() -: chanrec
  • classbase() +: chanrec
  • classbase() : classbase
  • ClearBuffer() : userrec, ircd_connector
  • CloseConnection() : ircd_connector
  • CommonChannels() @@ -55,13 +55,12 @@ : ModuleFactory

    - d -

    @@ -137,8 +136,7 @@ : HostItem

    - i -

    - c -

    - d -

    - e - @@ -62,26 +62,22 @@ : Version
  • flags_needed : command_t
  • flood : userrec, ConnectClass
  • fullname -: userrec +: WhoWasUser, userrec

    - h -

    - i -

    - l -

    - m - @@ -109,8 +105,7 @@ : command_t
  • Minor : Version
  • mode : ModeParameter
  • modechar -: ExtMode
  • moderated -: chanrec
  • modes +: ExtMode
  • modes : userrec

    - n -

    +: QLine, WhoWasUser, userrec
  • nickserv +: serverrec
  • nping +: connection

    - o -

    +: connection, ircd_connector

    - r -

    - s -

    - t -

    - u - @@ -186,8 +178,7 @@ : ucrec
  • use_count : command_t
  • usercount : serverrec
  • usercount_i -: serverrec
  • users -: chanrec +: serverrec

    - v -

    • version @@ -196,7 +187,7 @@
  • -
    Generated on Thu May 12 02:25:18 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 78dbd626c..2f86a79ad 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -42,7 +42,7 @@ Here is a list of all file members with links to the files they belong to:

    - b -

    - c - @@ -54,16 +54,22 @@ Here is a list of all file members with links to the files they belong to:

    modules.cpp
  • ChangeDisplayedHost() : message.h
  • ChangeName() : message.h
  • chanlist -: modules.cpp
  • chanuserlist +: modules.cpp
  • chanuserlist : modules.h
  • chlist() : message.h
  • chop() : message.h
  • ClassVector : users.h
  • CleanAndResolve() : message.h
  • clientlist -: modules.cpp
  • cmdlist -: modules.cpp
  • cmode() +: modules.cpp
  • CM_INVITEONLY +: channels.h
  • CM_MODERATED +: channels.h
  • CM_NOEXTERNAL +: channels.h
  • CM_PRIVATE +: channels.h
  • CM_SECRET +: channels.h
  • CM_TOPICLOCK +: channels.h
  • cmdlist +: modules.cpp
  • cmode() : message.h
  • command_table -: modules.cpp
  • common_channels() +: modules.cpp
  • common_channels() : message.h
  • CONF_FILE_NOT_FOUND : modules.h
  • CONF_NOT_A_NUMBER : modules.h
  • CONF_NOT_UNSIGNED @@ -88,20 +94,20 @@ Here is a list of all file members with links to the files they belong to:

    modules.cpp, channels.cpp
  • diepass : modules.cpp, channels.cpp
  • DieValue : modules.cpp, channels.cpp
  • DoAddExtendedMode() -: modules.cpp
  • duration() +: modules.cpp
  • duration() : commands.h

    - e -

    +: modules.cpp
  • ExtModeListIter +: modules.cpp

    - f -

    +: modules.cpp

    - s -

  • - v -

    -
    Generated on Thu May 12 02:25:30 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_func.html b/docs/module-doc/globals_func.html index 6051a5a49..7a1559017 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -47,7 +47,7 @@ : xline.h
  • del_qline() : xline.h
  • del_zline() : xline.h
  • DoAddExtendedMode() -: modules.cpp
  • duration() +: modules.cpp
  • duration() : commands.h

    - e -

    - g -

    +: modules.cpp
  • ModeDefinedOff() +: modules.cpp
  • ModeDefinedOn() +: modules.cpp
  • ModeDefinedOper() +: modules.cpp
  • ModeIsListMode() +: modules.cpp
  • ModeMakeList() +: modules.cpp
  • modules() +: modules.cpp, channels.cpp

    - n -

    • NonBlocking() @@ -211,7 +211,7 @@
    • zline_make_global() : xline.h
    • zline_set_creation_time() : xline.h
    -
    Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index 5cdbf4b78..2ed72665e 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -11,22 +11,23 @@ -
    Generated on Thu May 12 02:25:30 2005 for InspIRCd by +: base.h
  • whowas_hash +: modules.cpp +
    Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index b674bccfc..88f29bb7b 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -25,9 +25,9 @@

    - c -

    - d - @@ -41,17 +41,17 @@

    - e -

    +: modules.cpp

    - f -

    - i -

    +: modules.cpp

    - l -

    +: modules.cpp

    - n -

    +: modules.cpp

    - s -

    -
    Generated on Thu May 12 02:25:17 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:01 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index cb9903ab4..7b721f540 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@

    InspIRCd Documentation

    -


    Generated on Thu May 12 02:25:10 2005 for InspIRCd by +
    Generated on Thu May 12 22:58:57 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index 86c8778ba..f69916dd1 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -57,7 +57,7 @@ 00050 void send_network_quit(const char* nick, const char* reason); 00051 00052 #endif -

  • Generated on Thu May 12 02:25:11 2005 for InspIRCd by +
    Generated on Thu May 12 22:58:58 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index aa5d628cb..2ff62954f 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -155,7 +155,7 @@

    -Referenced by Server::ChangeHost(). +Referenced by Server::ChangeHost().

    @@ -195,7 +195,7 @@ Referenced by Server::Chang

    -Referenced by Server::ChangeGECOS(). +Referenced by Server::ChangeGECOS().

    @@ -340,7 +340,7 @@ Referenced by Server::Chang

    -Referenced by Server::ChanMode(). +Referenced by Server::ChanMode().

    @@ -380,7 +380,7 @@ Referenced by Server::ChanM

    -Referenced by Server::CommonChannels(). +Referenced by Server::CommonChannels().

    @@ -458,7 +458,7 @@ Referenced by Server::Commo

    -Referenced by Server::IsOnChannel(). +Referenced by Server::IsOnChannel().

    @@ -556,7 +556,7 @@ Referenced by Server::IsOnC

    -Referenced by Server::IsNick(). +Referenced by Server::IsNick().

    @@ -742,7 +742,7 @@ Referenced by Server::IsNic -


    Generated on Thu May 12 02:25:15 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 8662cbecc..b51a6b704 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -53,7 +53,7 @@ 00046 00047 00048 #endif -
    Generated on Thu May 12 02:25:11 2005 for InspIRCd by +
    Generated on Thu May 12 22:58:58 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index ba2beca0f..93a53d9b9 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ -
    Generated on Thu May 12 02:25:15 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 9807b4f97..0dd52681c 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -192,888 +192,889 @@ 00185 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; 00186 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; 00187 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache; -00188 typedef std::deque<command_t> command_table; -00189 +00188 typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, StrHashComp> whowas_hash; +00189 typedef std::deque<command_t> command_table; 00190 -00191 extern user_hash clientlist; -00192 extern chan_hash chanlist; -00193 extern user_hash whowas; -00194 extern command_table cmdlist; -00195 extern file_cache MOTD; -00196 extern file_cache RULES; -00197 extern address_cache IP; -00198 +00191 +00192 extern user_hash clientlist; +00193 extern chan_hash chanlist; +00194 extern whowas_hash whowas; +00195 extern command_table cmdlist; +00196 extern file_cache MOTD; +00197 extern file_cache RULES; +00198 extern address_cache IP; 00199 -00200 // class type for holding an extended mode character - internal to core -00201 -00202 class ExtMode : public classbase -00203 { -00204 public: -00205 char modechar; -00206 int type; -00207 int params_when_on; -00208 int params_when_off; -00209 bool needsoper; -00210 bool list; -00211 ExtMode(char mc, int ty, bool oper, int p_on, int p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; -00212 }; -00213 -00214 typedef std::vector<ExtMode> ExtModeList; -00215 typedef ExtModeList::iterator ExtModeListIter; -00216 +00200 +00201 // class type for holding an extended mode character - internal to core +00202 +00203 class ExtMode : public classbase +00204 { +00205 public: +00206 char modechar; +00207 int type; +00208 int params_when_on; +00209 int params_when_off; +00210 bool needsoper; +00211 bool list; +00212 ExtMode(char mc, int ty, bool oper, int p_on, int p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; +00213 }; +00214 +00215 typedef std::vector<ExtMode> ExtModeList; +00216 typedef ExtModeList::iterator ExtModeListIter; 00217 -00218 ExtModeList EMode; -00219 -00220 // returns true if an extended mode character is in use -00221 bool ModeDefined(char modechar, int type) -00222 { -00223 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00224 { -00225 if ((i->modechar == modechar) && (i->type == type)) -00226 { -00227 return true; -00228 } -00229 } -00230 return false; -00231 } -00232 -00233 bool ModeIsListMode(char modechar, int type) -00234 { -00235 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00236 { -00237 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -00238 { -00239 return true; -00240 } -00241 } -00242 return false; -00243 } -00244 -00245 bool ModeDefinedOper(char modechar, int type) -00246 { -00247 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00248 { -00249 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -00250 { -00251 return true; -00252 } -00253 } -00254 return false; -00255 } -00256 -00257 // returns number of parameters for a custom mode when it is switched on -00258 int ModeDefinedOn(char modechar, int type) -00259 { -00260 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00261 { -00262 if ((i->modechar == modechar) && (i->type == type)) -00263 { -00264 return i->params_when_on; -00265 } -00266 } -00267 return 0; -00268 } -00269 -00270 // returns number of parameters for a custom mode when it is switched on -00271 int ModeDefinedOff(char modechar, int type) -00272 { -00273 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00274 { -00275 if ((i->modechar == modechar) && (i->type == type)) -00276 { -00277 return i->params_when_off; -00278 } -00279 } -00280 return 0; -00281 } -00282 -00283 // returns true if an extended mode character is in use -00284 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) -00285 { -00286 if (ModeDefined(modechar,type)) { -00287 return false; -00288 } -00289 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -00290 return true; -00291 } -00292 -00293 // turns a mode into a listmode -00294 void ModeMakeList(char modechar) -00295 { -00296 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00297 { -00298 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -00299 { -00300 i->list = true; -00301 return; -00302 } -00303 } -00304 return; -00305 } -00306 -00307 // version is a simple class for holding a modules version number -00308 -00309 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; -00310 -00311 // admin is a simple class for holding a server's administrative info -00312 -00313 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; -00314 -00315 Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { }; -00316 -00317 char* Request::GetData() -00318 { -00319 return this->data; -00320 } -00321 -00322 Module* Request::GetSource() -00323 { -00324 return this->source; -00325 } -00326 -00327 Module* Request::GetDest() -00328 { -00329 return this->dest; -00330 } -00331 -00332 char* Request::Send() -00333 { -00334 if (this->dest) -00335 { -00336 return dest->OnRequest(this); -00337 } -00338 else -00339 { -00340 return NULL; -00341 } -00342 } -00343 -00344 Event::Event(char* anydata, Module* src, std::string eventid) : data(anydata), source(src), id(eventid) { }; -00345 -00346 char* Event::GetData() -00347 { -00348 return this->data; -00349 } -00350 -00351 Module* Event::GetSource() -00352 { -00353 return this->source; -00354 } -00355 -00356 char* Event::Send() -00357 { -00358 FOREACH_MOD OnEvent(this); -00359 return NULL; -00360 } -00361 -00362 std::string Event::GetEventID() -00363 { -00364 return this->id; -00365 } -00366 +00218 +00219 ExtModeList EMode; +00220 +00221 // returns true if an extended mode character is in use +00222 bool ModeDefined(char modechar, int type) +00223 { +00224 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00225 { +00226 if ((i->modechar == modechar) && (i->type == type)) +00227 { +00228 return true; +00229 } +00230 } +00231 return false; +00232 } +00233 +00234 bool ModeIsListMode(char modechar, int type) +00235 { +00236 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00237 { +00238 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +00239 { +00240 return true; +00241 } +00242 } +00243 return false; +00244 } +00245 +00246 bool ModeDefinedOper(char modechar, int type) +00247 { +00248 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00249 { +00250 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +00251 { +00252 return true; +00253 } +00254 } +00255 return false; +00256 } +00257 +00258 // returns number of parameters for a custom mode when it is switched on +00259 int ModeDefinedOn(char modechar, int type) +00260 { +00261 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00262 { +00263 if ((i->modechar == modechar) && (i->type == type)) +00264 { +00265 return i->params_when_on; +00266 } +00267 } +00268 return 0; +00269 } +00270 +00271 // returns number of parameters for a custom mode when it is switched on +00272 int ModeDefinedOff(char modechar, int type) +00273 { +00274 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00275 { +00276 if ((i->modechar == modechar) && (i->type == type)) +00277 { +00278 return i->params_when_off; +00279 } +00280 } +00281 return 0; +00282 } +00283 +00284 // returns true if an extended mode character is in use +00285 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) +00286 { +00287 if (ModeDefined(modechar,type)) { +00288 return false; +00289 } +00290 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +00291 return true; +00292 } +00293 +00294 // turns a mode into a listmode +00295 void ModeMakeList(char modechar) +00296 { +00297 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00298 { +00299 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +00300 { +00301 i->list = true; +00302 return; +00303 } +00304 } +00305 return; +00306 } +00307 +00308 // version is a simple class for holding a modules version number +00309 +00310 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +00311 +00312 // admin is a simple class for holding a server's administrative info +00313 +00314 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; +00315 +00316 Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { }; +00317 +00318 char* Request::GetData() +00319 { +00320 return this->data; +00321 } +00322 +00323 Module* Request::GetSource() +00324 { +00325 return this->source; +00326 } +00327 +00328 Module* Request::GetDest() +00329 { +00330 return this->dest; +00331 } +00332 +00333 char* Request::Send() +00334 { +00335 if (this->dest) +00336 { +00337 return dest->OnRequest(this); +00338 } +00339 else +00340 { +00341 return NULL; +00342 } +00343 } +00344 +00345 Event::Event(char* anydata, Module* src, std::string eventid) : data(anydata), source(src), id(eventid) { }; +00346 +00347 char* Event::GetData() +00348 { +00349 return this->data; +00350 } +00351 +00352 Module* Event::GetSource() +00353 { +00354 return this->source; +00355 } +00356 +00357 char* Event::Send() +00358 { +00359 FOREACH_MOD OnEvent(this); +00360 return NULL; +00361 } +00362 +00363 std::string Event::GetEventID() +00364 { +00365 return this->id; +00366 } 00367 -00368 // These declarations define the behavours of the base class Module (which does nothing at all) -00369 Module::Module() { } -00370 Module::~Module() { } -00371 void Module::OnUserConnect(userrec* user) { } -00372 void Module::OnUserQuit(userrec* user) { } -00373 void Module::OnUserDisconnect(userrec* user) { } -00374 void Module::OnUserJoin(userrec* user, chanrec* channel) { } -00375 void Module::OnUserPart(userrec* user, chanrec* channel) { } -00376 void Module::OnPacketTransmit(std::string &data, std::string serv) { } -00377 void Module::OnPacketReceive(std::string &data, std::string serv) { } -00378 void Module::OnRehash() { } -00379 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } -00380 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } -00381 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } -00382 Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } -00383 void Module::OnOper(userrec* user) { }; -00384 void Module::OnInfo(userrec* user) { }; -00385 void Module::OnWhois(userrec* source, userrec* dest) { }; -00386 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; -00387 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00388 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00389 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; -00390 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; -00391 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; -00392 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } -00393 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } -00394 void Module::On005Numeric(std::string &output) { }; -00395 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; -00396 void Module::OnLoadModule(Module* mod,std::string name) { }; -00397 void Module::OnBackgroundTimer(time_t curtime) { }; -00398 void Module::OnSendList(userrec* user, chanrec* channel, char mode) { }; -00399 int Module::OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) { return 0; }; -00400 bool Module::OnCheckReady(userrec* user) { return true; }; -00401 void Module::OnUserRegister(userrec* user) { }; -00402 int Module::OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { return 0; }; -00403 void Module::OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { }; -00404 int Module::OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt) { return 0; }; -00405 int Module::OnCheckInvite(userrec* user, chanrec* chan) { return 0; }; -00406 int Module::OnCheckKey(userrec* user, chanrec* chan, std::string keygiven) { return 0; }; -00407 int Module::OnCheckLimit(userrec* user, chanrec* chan) { return 0; }; -00408 int Module::OnCheckBan(userrec* user, chanrec* chan) { return 0; }; -00409 void Module::OnStats(char symbol) { }; -00410 int Module::OnChangeLocalUserHost(userrec* user, std::string newhost) { return 0; }; -00411 int Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost) { return 0; }; -00412 int Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { return 0; }; -00413 int Module::OnMeshToken(char token,string_list params,serverrec* source,serverrec* reply, std::string tcp_host,std::string ipaddr,int port) { return 0; }; -00414 void Module::OnEvent(Event* event) { return; }; -00415 char* Module::OnRequest(Request* request) { return NULL; }; -00416 int Module::OnOperCompare(std::string password, std::string input) { return 0; }; -00417 void Module::OnGlobalOper(userrec* user) { }; -00418 void Module::OnGlobalConnect(userrec* user) { }; -00419 int Module::OnAddBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; -00420 int Module::OnDelBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; -00421 void Module::OnRawSocketAccept(int fd, std::string ip, int localport) { }; -00422 int Module::OnRawSocketWrite(int fd, char* buffer, int count) { return 0; }; -00423 void Module::OnRawSocketClose(int fd) { }; -00424 int Module::OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult) { return 0; }; -00425 -00426 // server is a wrapper class that provides methods to all of the C-style -00427 // exports in the core -00428 // -00429 -00430 Server::Server() -00431 { -00432 } -00433 -00434 Server::~Server() -00435 { -00436 } -00437 -00438 void Server::SendOpers(std::string s) -00439 { -00440 WriteOpers("%s",s.c_str()); -00441 } -00442 -00443 bool Server::MatchText(std::string sliteral, std::string spattern) -00444 { -00445 char literal[MAXBUF],pattern[MAXBUF]; -00446 strlcpy(literal,sliteral.c_str(),MAXBUF); -00447 strlcpy(pattern,spattern.c_str(),MAXBUF); -00448 return match(literal,pattern); -00449 } -00450 -00451 void Server::SendToModeMask(std::string modes, int flags, std::string text) -00452 { -00453 WriteMode(modes.c_str(),flags,"%s",text.c_str()); -00454 } -00455 -00456 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) -00457 { -00458 return add_channel(user,cname.c_str(),key.c_str(),false); -00459 } -00460 -00461 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) -00462 { -00463 return del_channel(user,cname.c_str(),reason.c_str(),false); -00464 } -00465 -00466 chanuserlist Server::GetUsers(chanrec* chan) -00467 { -00468 chanuserlist userl; -00469 userl.clear(); -00470 std::vector<char*> *list = chan->GetUsers(); -00471 for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) -00472 { -00473 char* o = *i; -00474 userl.push_back((userrec*)o); -00475 } -00476 return userl; -00477 } -00478 void Server::ChangeUserNick(userrec* user, std::string nickname) -00479 { -00480 force_nickchange(user,nickname.c_str()); -00481 } -00482 -00483 void Server::QuitUser(userrec* user, std::string reason) -00484 { -00485 kill_link(user,reason.c_str()); -00486 } -00487 -00488 bool Server::IsUlined(std::string server) -00489 { -00490 return is_uline(server.c_str()); -00491 } -00492 -00493 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) -00494 { -00495 call_handler(commandname.c_str(),parameters,pcnt,user); -00496 } -00497 -00498 void Server::Log(int level, std::string s) -00499 { -00500 log(level,"%s",s.c_str()); -00501 } -00502 -00503 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) -00504 { -00505 createcommand(cmd,f,flags,minparams,source); -00506 } -00507 -00508 void Server::SendMode(char **parameters, int pcnt, userrec *user) -00509 { -00510 server_mode(parameters,pcnt,user); -00511 } -00512 -00513 void Server::Send(int Socket, std::string s) -00514 { -00515 Write(Socket,"%s",s.c_str()); -00516 } -00517 -00518 void Server::SendServ(int Socket, std::string s) -00519 { -00520 WriteServ(Socket,"%s",s.c_str()); -00521 } -00522 -00523 void Server::SendFrom(int Socket, userrec* User, std::string s) -00524 { -00525 WriteFrom(Socket,User,"%s",s.c_str()); -00526 } -00527 -00528 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) -00529 { -00530 if (!Source) -00531 { -00532 // if source is NULL, then the message originates from the local server -00533 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); -00534 } -00535 else -00536 { -00537 // otherwise it comes from the user specified -00538 WriteTo(Source,Dest,"%s",s.c_str()); -00539 } -00540 } -00541 -00542 void Server::SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text) -00543 { -00544 WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str()); -00545 } -00546 -00547 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00548 { -00549 if (IncludeSender) -00550 { -00551 WriteChannel(Channel,User,"%s",s.c_str()); -00552 } -00553 else -00554 { -00555 ChanExceptSender(Channel,User,"%s",s.c_str()); -00556 } -00557 } -00558 -00559 bool Server::CommonChannels(userrec* u1, userrec* u2) -00560 { -00561 return (common_channels(u1,u2) != 0); -00562 } -00563 -00564 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00565 { -00566 if (IncludeSender) -00567 { -00568 WriteCommon(User,"%s",text.c_str()); -00569 } -00570 else -00571 { -00572 WriteCommonExcept(User,"%s",text.c_str()); -00573 } -00574 } -00575 -00576 void Server::SendWallops(userrec* User, std::string text) -00577 { -00578 WriteWallOps(User,false,"%s",text.c_str()); -00579 } -00580 -00581 void Server::ChangeHost(userrec* user, std::string host) -00582 { -00583 ChangeDisplayedHost(user,host.c_str()); -00584 } -00585 -00586 void Server::ChangeGECOS(userrec* user, std::string gecos) -00587 { -00588 ChangeName(user,gecos.c_str()); -00589 } -00590 -00591 bool Server::IsNick(std::string nick) -00592 { -00593 return (isnick(nick.c_str()) != 0); -00594 } -00595 -00596 userrec* Server::FindNick(std::string nick) -00597 { -00598 return Find(nick); -00599 } -00600 -00601 userrec* Server::FindDescriptor(int socket) -00602 { -00603 return (socket < 65536 ? fd_ref_table[socket] : NULL); -00604 } -00605 -00606 chanrec* Server::FindChannel(std::string channel) -00607 { -00608 return FindChan(channel.c_str()); -00609 } -00610 -00611 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00612 { -00613 return cmode(User,Chan); -00614 } -00615 -00616 bool Server::IsOnChannel(userrec* User, chanrec* Chan) -00617 { -00618 return has_channel(User,Chan); -00619 } -00620 -00621 std::string Server::GetServerName() -00622 { -00623 return getservername(); -00624 } -00625 -00626 std::string Server::GetNetworkName() -00627 { -00628 return getnetworkname(); -00629 } -00630 -00631 Admin Server::GetAdmin() -00632 { -00633 return Admin(getadminname(),getadminemail(),getadminnick()); -00634 } -00635 +00368 +00369 // These declarations define the behavours of the base class Module (which does nothing at all) +00370 Module::Module() { } +00371 Module::~Module() { } +00372 void Module::OnUserConnect(userrec* user) { } +00373 void Module::OnUserQuit(userrec* user) { } +00374 void Module::OnUserDisconnect(userrec* user) { } +00375 void Module::OnUserJoin(userrec* user, chanrec* channel) { } +00376 void Module::OnUserPart(userrec* user, chanrec* channel) { } +00377 void Module::OnPacketTransmit(std::string &data, std::string serv) { } +00378 void Module::OnPacketReceive(std::string &data, std::string serv) { } +00379 void Module::OnRehash() { } +00380 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } +00381 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } +00382 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } +00383 Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } +00384 void Module::OnOper(userrec* user) { }; +00385 void Module::OnInfo(userrec* user) { }; +00386 void Module::OnWhois(userrec* source, userrec* dest) { }; +00387 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; +00388 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00389 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00390 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; +00391 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; +00392 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; +00393 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } +00394 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } +00395 void Module::On005Numeric(std::string &output) { }; +00396 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; +00397 void Module::OnLoadModule(Module* mod,std::string name) { }; +00398 void Module::OnBackgroundTimer(time_t curtime) { }; +00399 void Module::OnSendList(userrec* user, chanrec* channel, char mode) { }; +00400 int Module::OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) { return 0; }; +00401 bool Module::OnCheckReady(userrec* user) { return true; }; +00402 void Module::OnUserRegister(userrec* user) { }; +00403 int Module::OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { return 0; }; +00404 void Module::OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { }; +00405 int Module::OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt) { return 0; }; +00406 int Module::OnCheckInvite(userrec* user, chanrec* chan) { return 0; }; +00407 int Module::OnCheckKey(userrec* user, chanrec* chan, std::string keygiven) { return 0; }; +00408 int Module::OnCheckLimit(userrec* user, chanrec* chan) { return 0; }; +00409 int Module::OnCheckBan(userrec* user, chanrec* chan) { return 0; }; +00410 void Module::OnStats(char symbol) { }; +00411 int Module::OnChangeLocalUserHost(userrec* user, std::string newhost) { return 0; }; +00412 int Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost) { return 0; }; +00413 int Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { return 0; }; +00414 int Module::OnMeshToken(char token,string_list params,serverrec* source,serverrec* reply, std::string tcp_host,std::string ipaddr,int port) { return 0; }; +00415 void Module::OnEvent(Event* event) { return; }; +00416 char* Module::OnRequest(Request* request) { return NULL; }; +00417 int Module::OnOperCompare(std::string password, std::string input) { return 0; }; +00418 void Module::OnGlobalOper(userrec* user) { }; +00419 void Module::OnGlobalConnect(userrec* user) { }; +00420 int Module::OnAddBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; +00421 int Module::OnDelBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; +00422 void Module::OnRawSocketAccept(int fd, std::string ip, int localport) { }; +00423 int Module::OnRawSocketWrite(int fd, char* buffer, int count) { return 0; }; +00424 void Module::OnRawSocketClose(int fd) { }; +00425 int Module::OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult) { return 0; }; +00426 +00427 // server is a wrapper class that provides methods to all of the C-style +00428 // exports in the core +00429 // +00430 +00431 Server::Server() +00432 { +00433 } +00434 +00435 Server::~Server() +00436 { +00437 } +00438 +00439 void Server::SendOpers(std::string s) +00440 { +00441 WriteOpers("%s",s.c_str()); +00442 } +00443 +00444 bool Server::MatchText(std::string sliteral, std::string spattern) +00445 { +00446 char literal[MAXBUF],pattern[MAXBUF]; +00447 strlcpy(literal,sliteral.c_str(),MAXBUF); +00448 strlcpy(pattern,spattern.c_str(),MAXBUF); +00449 return match(literal,pattern); +00450 } +00451 +00452 void Server::SendToModeMask(std::string modes, int flags, std::string text) +00453 { +00454 WriteMode(modes.c_str(),flags,"%s",text.c_str()); +00455 } +00456 +00457 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) +00458 { +00459 return add_channel(user,cname.c_str(),key.c_str(),false); +00460 } +00461 +00462 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) +00463 { +00464 return del_channel(user,cname.c_str(),reason.c_str(),false); +00465 } +00466 +00467 chanuserlist Server::GetUsers(chanrec* chan) +00468 { +00469 chanuserlist userl; +00470 userl.clear(); +00471 std::vector<char*> *list = chan->GetUsers(); +00472 for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) +00473 { +00474 char* o = *i; +00475 userl.push_back((userrec*)o); +00476 } +00477 return userl; +00478 } +00479 void Server::ChangeUserNick(userrec* user, std::string nickname) +00480 { +00481 force_nickchange(user,nickname.c_str()); +00482 } +00483 +00484 void Server::QuitUser(userrec* user, std::string reason) +00485 { +00486 kill_link(user,reason.c_str()); +00487 } +00488 +00489 bool Server::IsUlined(std::string server) +00490 { +00491 return is_uline(server.c_str()); +00492 } +00493 +00494 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) +00495 { +00496 call_handler(commandname.c_str(),parameters,pcnt,user); +00497 } +00498 +00499 void Server::Log(int level, std::string s) +00500 { +00501 log(level,"%s",s.c_str()); +00502 } +00503 +00504 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) +00505 { +00506 createcommand(cmd,f,flags,minparams,source); +00507 } +00508 +00509 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00510 { +00511 server_mode(parameters,pcnt,user); +00512 } +00513 +00514 void Server::Send(int Socket, std::string s) +00515 { +00516 Write(Socket,"%s",s.c_str()); +00517 } +00518 +00519 void Server::SendServ(int Socket, std::string s) +00520 { +00521 WriteServ(Socket,"%s",s.c_str()); +00522 } +00523 +00524 void Server::SendFrom(int Socket, userrec* User, std::string s) +00525 { +00526 WriteFrom(Socket,User,"%s",s.c_str()); +00527 } +00528 +00529 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00530 { +00531 if (!Source) +00532 { +00533 // if source is NULL, then the message originates from the local server +00534 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); +00535 } +00536 else +00537 { +00538 // otherwise it comes from the user specified +00539 WriteTo(Source,Dest,"%s",s.c_str()); +00540 } +00541 } +00542 +00543 void Server::SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text) +00544 { +00545 WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str()); +00546 } +00547 +00548 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00549 { +00550 if (IncludeSender) +00551 { +00552 WriteChannel(Channel,User,"%s",s.c_str()); +00553 } +00554 else +00555 { +00556 ChanExceptSender(Channel,User,"%s",s.c_str()); +00557 } +00558 } +00559 +00560 bool Server::CommonChannels(userrec* u1, userrec* u2) +00561 { +00562 return (common_channels(u1,u2) != 0); +00563 } +00564 +00565 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00566 { +00567 if (IncludeSender) +00568 { +00569 WriteCommon(User,"%s",text.c_str()); +00570 } +00571 else +00572 { +00573 WriteCommonExcept(User,"%s",text.c_str()); +00574 } +00575 } +00576 +00577 void Server::SendWallops(userrec* User, std::string text) +00578 { +00579 WriteWallOps(User,false,"%s",text.c_str()); +00580 } +00581 +00582 void Server::ChangeHost(userrec* user, std::string host) +00583 { +00584 ChangeDisplayedHost(user,host.c_str()); +00585 } +00586 +00587 void Server::ChangeGECOS(userrec* user, std::string gecos) +00588 { +00589 ChangeName(user,gecos.c_str()); +00590 } +00591 +00592 bool Server::IsNick(std::string nick) +00593 { +00594 return (isnick(nick.c_str()) != 0); +00595 } +00596 +00597 userrec* Server::FindNick(std::string nick) +00598 { +00599 return Find(nick); +00600 } +00601 +00602 userrec* Server::FindDescriptor(int socket) +00603 { +00604 return (socket < 65536 ? fd_ref_table[socket] : NULL); +00605 } +00606 +00607 chanrec* Server::FindChannel(std::string channel) +00608 { +00609 return FindChan(channel.c_str()); +00610 } +00611 +00612 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00613 { +00614 return cmode(User,Chan); +00615 } +00616 +00617 bool Server::IsOnChannel(userrec* User, chanrec* Chan) +00618 { +00619 return has_channel(User,Chan); +00620 } +00621 +00622 std::string Server::GetServerName() +00623 { +00624 return getservername(); +00625 } +00626 +00627 std::string Server::GetNetworkName() +00628 { +00629 return getnetworkname(); +00630 } +00631 +00632 Admin Server::GetAdmin() +00633 { +00634 return Admin(getadminname(),getadminemail(),getadminnick()); +00635 } 00636 00637 -00638 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) -00639 { -00640 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) -00641 { -00642 if (type == MT_SERVER) -00643 { -00644 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); -00645 return false; -00646 } -00647 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -00648 { -00649 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); -00650 return false; -00651 } -00652 if ((params_when_on>1) || (params_when_off>1)) -00653 { -00654 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); -00655 return false; -00656 } -00657 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -00658 } -00659 else -00660 { -00661 log(DEBUG,"*** API ERROR *** Muppet modechar detected."); -00662 } -00663 return false; -00664 } -00665 -00666 bool Server::AddExtendedListMode(char modechar) -00667 { -00668 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -00669 if (res) -00670 ModeMakeList(modechar); -00671 return res; -00672 } -00673 -00674 int Server::CountUsers(chanrec* c) -00675 { -00676 return usercount(c); -00677 } -00678 +00638 +00639 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) +00640 { +00641 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) +00642 { +00643 if (type == MT_SERVER) +00644 { +00645 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); +00646 return false; +00647 } +00648 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +00649 { +00650 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); +00651 return false; +00652 } +00653 if ((params_when_on>1) || (params_when_off>1)) +00654 { +00655 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); +00656 return false; +00657 } +00658 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +00659 } +00660 else +00661 { +00662 log(DEBUG,"*** API ERROR *** Muppet modechar detected."); +00663 } +00664 return false; +00665 } +00666 +00667 bool Server::AddExtendedListMode(char modechar) +00668 { +00669 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +00670 if (res) +00671 ModeMakeList(modechar); +00672 return res; +00673 } +00674 +00675 int Server::CountUsers(chanrec* c) +00676 { +00677 return usercount(c); +00678 } 00679 -00680 bool Server::UserToPseudo(userrec* user,std::string message) -00681 { -00682 unsigned int old_fd = user->fd; -00683 user->fd = FD_MAGIC_NUMBER; -00684 user->ClearBuffer(); -00685 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); -00686 #ifdef USE_KQUEUE -00687 struct kevent ke; -00688 EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL); -00689 int i = kevent(kq, &ke, 1, 0, 0, NULL); -00690 if (i == -1) -00691 { -00692 log(DEBUG,"kqueue: Failed to remove user from queue!"); -00693 } -00694 #endif -00695 shutdown(old_fd,2); -00696 close(old_fd); -00697 } -00698 -00699 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) -00700 { -00701 zombie->fd = alive->fd; -00702 alive->fd = FD_MAGIC_NUMBER; -00703 alive->ClearBuffer(); -00704 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); -00705 kill_link(alive,message.c_str()); -00706 fd_ref_table[zombie->fd] = zombie; -00707 for (int i = 0; i != MAXCHANS; i++) -00708 { -00709 if (zombie->chans[i].channel != NULL) -00710 { -00711 if (zombie->chans[i].channel->name) -00712 { -00713 chanrec* Ptr = zombie->chans[i].channel; -00714 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); -00715 if (Ptr->topicset) -00716 { -00717 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); -00718 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -00719 } -00720 userlist(zombie,Ptr); -00721 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); -00722 -00723 } -00724 } -00725 } -00726 -00727 } -00728 -00729 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) -00730 { -00731 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00732 } -00733 -00734 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) -00735 { -00736 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -00737 } -00738 -00739 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) -00740 { -00741 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -00742 } -00743 -00744 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) -00745 { -00746 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00747 } -00748 -00749 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) -00750 { -00751 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00752 } -00753 -00754 bool Server::DelGLine(std::string hostmask) -00755 { -00756 del_gline(hostmask.c_str()); -00757 } -00758 -00759 bool Server::DelQLine(std::string nickname) -00760 { -00761 del_qline(nickname.c_str()); -00762 } -00763 -00764 bool Server::DelZLine(std::string ipaddr) -00765 { -00766 del_zline(ipaddr.c_str()); -00767 } -00768 -00769 bool Server::DelKLine(std::string hostmask) -00770 { -00771 del_kline(hostmask.c_str()); -00772 } -00773 -00774 bool Server::DelELine(std::string hostmask) -00775 { -00776 del_eline(hostmask.c_str()); -00777 } -00778 -00779 long Server::CalcDuration(std::string delta) -00780 { -00781 return duration(delta.c_str()); -00782 } -00783 -00784 bool Server::IsValidMask(std::string mask) -00785 { -00786 const char* dest = mask.c_str(); -00787 if (strchr(dest,'!')==0) -00788 return false; -00789 if (strchr(dest,'@')==0) -00790 return false; -00791 for (int i = 0; i < strlen(dest); i++) -00792 if (dest[i] < 32) -00793 return false; -00794 for (int i = 0; i < strlen(dest); i++) -00795 if (dest[i] > 126) -00796 return false; -00797 int c = 0; -00798 for (int i = 0; i < strlen(dest); i++) -00799 if (dest[i] == '!') -00800 c++; -00801 if (c>1) -00802 return false; -00803 c = 0; -00804 for (int i = 0; i < strlen(dest); i++) -00805 if (dest[i] == '@') -00806 c++; -00807 if (c>1) -00808 return false; -00809 -00810 return true; -00811 } -00812 -00813 void Server::MeshSendAll(std::string text) -00814 { -00815 NetSendToAll((char*)text.c_str()); -00816 } -00817 -00818 void Server::MeshSendCommon(userrec* user, std::string text) -00819 { -00820 if (user) -00821 NetSendToCommon(user,(char*)text.c_str()); -00822 } -00823 -00824 void Server::MeshSendAllAlive(std::string text) -00825 { -00826 NetSendToAllAlive((char*)text.c_str()); -00827 } -00828 -00829 void Server::MeshSendUnicast(std::string destination, std::string text) -00830 { -00831 NetSendToOne((char*)destination.c_str(),(char*)text.c_str()); -00832 } -00833 -00834 void Server::MeshSendAllExcept(std::string target, std::string text) -00835 { -00836 NetSendToAllExcept(target.c_str(),(char*)text.c_str()); -00837 } -00838 -00839 bool Server::MeshCheckChan(chanrec *c,std::string servername) -00840 { -00841 if (c) -00842 { -00843 return ChanAnyOnThisServer(c,(char*)servername.c_str()); -00844 } -00845 else return false; -00846 } -00847 -00848 bool Server::MeshCheckCommon(userrec* u,std::string servername) -00849 { -00850 if (u) -00851 { -00852 return CommonOnThisServer(u,(char*)servername.c_str()); -00853 } -00854 else return false; -00855 } -00856 -00857 Module* Server::FindModule(std::string name) -00858 { -00859 for (int i = 0; i <= MODCOUNT; i++) -00860 { -00861 if (module_names[i] == name) -00862 { -00863 return modules[i]; -00864 } -00865 } -00866 return NULL; -00867 } -00868 -00869 ConfigReader::ConfigReader() -00870 { -00871 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00872 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00873 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00874 if (!this->readerror) -00875 this->error = CONF_FILE_NOT_FOUND; -00876 } -00877 +00680 +00681 bool Server::UserToPseudo(userrec* user,std::string message) +00682 { +00683 unsigned int old_fd = user->fd; +00684 user->fd = FD_MAGIC_NUMBER; +00685 user->ClearBuffer(); +00686 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); +00687 #ifdef USE_KQUEUE +00688 struct kevent ke; +00689 EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL); +00690 int i = kevent(kq, &ke, 1, 0, 0, NULL); +00691 if (i == -1) +00692 { +00693 log(DEBUG,"kqueue: Failed to remove user from queue!"); +00694 } +00695 #endif +00696 shutdown(old_fd,2); +00697 close(old_fd); +00698 } +00699 +00700 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) +00701 { +00702 zombie->fd = alive->fd; +00703 alive->fd = FD_MAGIC_NUMBER; +00704 alive->ClearBuffer(); +00705 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); +00706 kill_link(alive,message.c_str()); +00707 fd_ref_table[zombie->fd] = zombie; +00708 for (int i = 0; i != MAXCHANS; i++) +00709 { +00710 if (zombie->chans[i].channel != NULL) +00711 { +00712 if (zombie->chans[i].channel->name) +00713 { +00714 chanrec* Ptr = zombie->chans[i].channel; +00715 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); +00716 if (Ptr->topicset) +00717 { +00718 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); +00719 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +00720 } +00721 userlist(zombie,Ptr); +00722 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); +00723 +00724 } +00725 } +00726 } +00727 +00728 } +00729 +00730 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) +00731 { +00732 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00733 } +00734 +00735 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) +00736 { +00737 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +00738 } +00739 +00740 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) +00741 { +00742 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +00743 } +00744 +00745 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) +00746 { +00747 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00748 } +00749 +00750 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) +00751 { +00752 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00753 } +00754 +00755 bool Server::DelGLine(std::string hostmask) +00756 { +00757 del_gline(hostmask.c_str()); +00758 } +00759 +00760 bool Server::DelQLine(std::string nickname) +00761 { +00762 del_qline(nickname.c_str()); +00763 } +00764 +00765 bool Server::DelZLine(std::string ipaddr) +00766 { +00767 del_zline(ipaddr.c_str()); +00768 } +00769 +00770 bool Server::DelKLine(std::string hostmask) +00771 { +00772 del_kline(hostmask.c_str()); +00773 } +00774 +00775 bool Server::DelELine(std::string hostmask) +00776 { +00777 del_eline(hostmask.c_str()); +00778 } +00779 +00780 long Server::CalcDuration(std::string delta) +00781 { +00782 return duration(delta.c_str()); +00783 } +00784 +00785 bool Server::IsValidMask(std::string mask) +00786 { +00787 const char* dest = mask.c_str(); +00788 if (strchr(dest,'!')==0) +00789 return false; +00790 if (strchr(dest,'@')==0) +00791 return false; +00792 for (int i = 0; i < strlen(dest); i++) +00793 if (dest[i] < 32) +00794 return false; +00795 for (int i = 0; i < strlen(dest); i++) +00796 if (dest[i] > 126) +00797 return false; +00798 int c = 0; +00799 for (int i = 0; i < strlen(dest); i++) +00800 if (dest[i] == '!') +00801 c++; +00802 if (c>1) +00803 return false; +00804 c = 0; +00805 for (int i = 0; i < strlen(dest); i++) +00806 if (dest[i] == '@') +00807 c++; +00808 if (c>1) +00809 return false; +00810 +00811 return true; +00812 } +00813 +00814 void Server::MeshSendAll(std::string text) +00815 { +00816 NetSendToAll((char*)text.c_str()); +00817 } +00818 +00819 void Server::MeshSendCommon(userrec* user, std::string text) +00820 { +00821 if (user) +00822 NetSendToCommon(user,(char*)text.c_str()); +00823 } +00824 +00825 void Server::MeshSendAllAlive(std::string text) +00826 { +00827 NetSendToAllAlive((char*)text.c_str()); +00828 } +00829 +00830 void Server::MeshSendUnicast(std::string destination, std::string text) +00831 { +00832 NetSendToOne((char*)destination.c_str(),(char*)text.c_str()); +00833 } +00834 +00835 void Server::MeshSendAllExcept(std::string target, std::string text) +00836 { +00837 NetSendToAllExcept(target.c_str(),(char*)text.c_str()); +00838 } +00839 +00840 bool Server::MeshCheckChan(chanrec *c,std::string servername) +00841 { +00842 if (c) +00843 { +00844 return ChanAnyOnThisServer(c,(char*)servername.c_str()); +00845 } +00846 else return false; +00847 } +00848 +00849 bool Server::MeshCheckCommon(userrec* u,std::string servername) +00850 { +00851 if (u) +00852 { +00853 return CommonOnThisServer(u,(char*)servername.c_str()); +00854 } +00855 else return false; +00856 } +00857 +00858 Module* Server::FindModule(std::string name) +00859 { +00860 for (int i = 0; i <= MODCOUNT; i++) +00861 { +00862 if (module_names[i] == name) +00863 { +00864 return modules[i]; +00865 } +00866 } +00867 return NULL; +00868 } +00869 +00870 ConfigReader::ConfigReader() +00871 { +00872 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00873 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00874 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00875 if (!this->readerror) +00876 this->error = CONF_FILE_NOT_FOUND; +00877 } 00878 -00879 ConfigReader::~ConfigReader() -00880 { -00881 if (this->cache) -00882 delete this->cache; -00883 if (this->errorlog) -00884 delete this->errorlog; -00885 } -00886 +00879 +00880 ConfigReader::~ConfigReader() +00881 { +00882 if (this->cache) +00883 delete this->cache; +00884 if (this->errorlog) +00885 delete this->errorlog; +00886 } 00887 -00888 ConfigReader::ConfigReader(std::string filename) -00889 { -00890 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00891 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00892 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -00893 if (!this->readerror) -00894 this->error = CONF_FILE_NOT_FOUND; -00895 }; -00896 -00897 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00898 { -00899 char val[MAXBUF]; -00900 char t[MAXBUF]; -00901 char n[MAXBUF]; -00902 strlcpy(t,tag.c_str(),MAXBUF); -00903 strlcpy(n,name.c_str(),MAXBUF); -00904 int res = ReadConf(cache,t,n,index,val); -00905 if (!res) -00906 { -00907 this->error = CONF_VALUE_NOT_FOUND; -00908 return ""; -00909 } -00910 return val; -00911 } -00912 -00913 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) -00914 { -00915 char val[MAXBUF]; -00916 char t[MAXBUF]; -00917 char n[MAXBUF]; -00918 strlcpy(t,tag.c_str(),MAXBUF); -00919 strlcpy(n,name.c_str(),MAXBUF); -00920 int res = ReadConf(cache,t,n,index,val); -00921 if (!res) -00922 { -00923 this->error = CONF_VALUE_NOT_FOUND; -00924 return false; -00925 } -00926 std::string s = val; -00927 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); -00928 } -00929 -00930 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) -00931 { -00932 char val[MAXBUF]; -00933 char t[MAXBUF]; -00934 char n[MAXBUF]; -00935 strlcpy(t,tag.c_str(),MAXBUF); -00936 strlcpy(n,name.c_str(),MAXBUF); -00937 int res = ReadConf(cache,t,n,index,val); -00938 if (!res) -00939 { -00940 this->error = CONF_VALUE_NOT_FOUND; -00941 return 0; -00942 } -00943 for (int i = 0; i < strlen(val); i++) -00944 { -00945 if (!isdigit(val[i])) -00946 { -00947 this->error = CONF_NOT_A_NUMBER; -00948 return 0; -00949 } -00950 } -00951 if ((needs_unsigned) && (atoi(val)<0)) -00952 { -00953 this->error = CONF_NOT_UNSIGNED; -00954 return 0; -00955 } -00956 return atoi(val); -00957 } -00958 -00959 long ConfigReader::GetError() -00960 { -00961 long olderr = this->error; -00962 this->error = 0; -00963 return olderr; -00964 } -00965 -00966 void ConfigReader::DumpErrors(bool bail, userrec* user) -00967 { -00968 if (bail) -00969 { -00970 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); -00971 exit(0); -00972 } -00973 else -00974 { -00975 char dataline[1024]; -00976 if (user) -00977 { -00978 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); -00979 while (!errorlog->eof()) -00980 { -00981 errorlog->getline(dataline,1024); -00982 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); -00983 } -00984 } -00985 else -00986 { -00987 WriteOpers("There were errors in the configuration file:",user->nick); -00988 while (!errorlog->eof()) -00989 { -00990 errorlog->getline(dataline,1024); -00991 WriteOpers(dataline); -00992 } -00993 } -00994 return; -00995 } -00996 } -00997 +00888 +00889 ConfigReader::ConfigReader(std::string filename) +00890 { +00891 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00892 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00893 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +00894 if (!this->readerror) +00895 this->error = CONF_FILE_NOT_FOUND; +00896 }; +00897 +00898 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00899 { +00900 char val[MAXBUF]; +00901 char t[MAXBUF]; +00902 char n[MAXBUF]; +00903 strlcpy(t,tag.c_str(),MAXBUF); +00904 strlcpy(n,name.c_str(),MAXBUF); +00905 int res = ReadConf(cache,t,n,index,val); +00906 if (!res) +00907 { +00908 this->error = CONF_VALUE_NOT_FOUND; +00909 return ""; +00910 } +00911 return val; +00912 } +00913 +00914 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00915 { +00916 char val[MAXBUF]; +00917 char t[MAXBUF]; +00918 char n[MAXBUF]; +00919 strlcpy(t,tag.c_str(),MAXBUF); +00920 strlcpy(n,name.c_str(),MAXBUF); +00921 int res = ReadConf(cache,t,n,index,val); +00922 if (!res) +00923 { +00924 this->error = CONF_VALUE_NOT_FOUND; +00925 return false; +00926 } +00927 std::string s = val; +00928 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); +00929 } +00930 +00931 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00932 { +00933 char val[MAXBUF]; +00934 char t[MAXBUF]; +00935 char n[MAXBUF]; +00936 strlcpy(t,tag.c_str(),MAXBUF); +00937 strlcpy(n,name.c_str(),MAXBUF); +00938 int res = ReadConf(cache,t,n,index,val); +00939 if (!res) +00940 { +00941 this->error = CONF_VALUE_NOT_FOUND; +00942 return 0; +00943 } +00944 for (int i = 0; i < strlen(val); i++) +00945 { +00946 if (!isdigit(val[i])) +00947 { +00948 this->error = CONF_NOT_A_NUMBER; +00949 return 0; +00950 } +00951 } +00952 if ((needs_unsigned) && (atoi(val)<0)) +00953 { +00954 this->error = CONF_NOT_UNSIGNED; +00955 return 0; +00956 } +00957 return atoi(val); +00958 } +00959 +00960 long ConfigReader::GetError() +00961 { +00962 long olderr = this->error; +00963 this->error = 0; +00964 return olderr; +00965 } +00966 +00967 void ConfigReader::DumpErrors(bool bail, userrec* user) +00968 { +00969 if (bail) +00970 { +00971 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); +00972 exit(0); +00973 } +00974 else +00975 { +00976 char dataline[1024]; +00977 if (user) +00978 { +00979 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); +00980 while (!errorlog->eof()) +00981 { +00982 errorlog->getline(dataline,1024); +00983 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); +00984 } +00985 } +00986 else +00987 { +00988 WriteOpers("There were errors in the configuration file:",user->nick); +00989 while (!errorlog->eof()) +00990 { +00991 errorlog->getline(dataline,1024); +00992 WriteOpers(dataline); +00993 } +00994 } +00995 return; +00996 } +00997 } 00998 -00999 int ConfigReader::Enumerate(std::string tag) -01000 { -01001 return EnumConf(cache,tag.c_str()); -01002 } -01003 -01004 int ConfigReader::EnumerateValues(std::string tag, int index) -01005 { -01006 return EnumValues(cache, tag.c_str(), index); -01007 } -01008 -01009 bool ConfigReader::Verify() -01010 { -01011 return this->readerror; -01012 } -01013 +00999 +01000 int ConfigReader::Enumerate(std::string tag) +01001 { +01002 return EnumConf(cache,tag.c_str()); +01003 } +01004 +01005 int ConfigReader::EnumerateValues(std::string tag, int index) +01006 { +01007 return EnumValues(cache, tag.c_str(), index); +01008 } +01009 +01010 bool ConfigReader::Verify() +01011 { +01012 return this->readerror; +01013 } 01014 -01015 FileReader::FileReader(std::string filename) -01016 { -01017 file_cache c; -01018 readfile(c,filename.c_str()); -01019 this->fc = c; -01020 } -01021 -01022 FileReader::FileReader() -01023 { -01024 } -01025 -01026 void FileReader::LoadFile(std::string filename) -01027 { -01028 file_cache c; -01029 readfile(c,filename.c_str()); -01030 this->fc = c; -01031 } -01032 +01015 +01016 FileReader::FileReader(std::string filename) +01017 { +01018 file_cache c; +01019 readfile(c,filename.c_str()); +01020 this->fc = c; +01021 } +01022 +01023 FileReader::FileReader() +01024 { +01025 } +01026 +01027 void FileReader::LoadFile(std::string filename) +01028 { +01029 file_cache c; +01030 readfile(c,filename.c_str()); +01031 this->fc = c; +01032 } 01033 -01034 FileReader::~FileReader() -01035 { -01036 } -01037 -01038 bool FileReader::Exists() -01039 { -01040 if (fc.size() == 0) -01041 { -01042 return(false); -01043 } -01044 else -01045 { -01046 return(true); -01047 } -01048 } -01049 -01050 std::string FileReader::GetLine(int x) -01051 { -01052 if ((x<0) || (x>fc.size())) -01053 return ""; -01054 return fc[x]; -01055 } -01056 -01057 int FileReader::FileSize() -01058 { -01059 return fc.size(); -01060 } -01061 +01034 +01035 FileReader::~FileReader() +01036 { +01037 } +01038 +01039 bool FileReader::Exists() +01040 { +01041 if (fc.size() == 0) +01042 { +01043 return(false); +01044 } +01045 else +01046 { +01047 return(true); +01048 } +01049 } +01050 +01051 std::string FileReader::GetLine(int x) +01052 { +01053 if ((x<0) || (x>fc.size())) +01054 return ""; +01055 return fc[x]; +01056 } +01057 +01058 int FileReader::FileSize() +01059 { +01060 return fc.size(); +01061 } 01062 -01063 std::vector<Module*> modules(255); -01064 std::vector<ircd_module*> factory(255); -01065 -01066 int MODCOUNT = -1; -01067 +01063 +01064 std::vector<Module*> modules(255); +01065 std::vector<ircd_module*> factory(255); +01066 +01067 int MODCOUNT = -1; 01068 -
    Generated on Thu May 12 02:25:12 2005 for InspIRCd by +01069 +
    Generated on Thu May 12 22:58:58 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index 973fa385a..fa8d484be 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -67,30 +67,34 @@ in_addr, string *, nspace::hash<
    in_addr >, InAddr_HashCompaddress_cache -typedef std::deque< command_tcommand_table +typedef nspace::hash_map<
    + std::string, WhoWasUser *,
    + nspace::hash< string >, StrHashCompwhowas_hash + +typedef std::deque< command_tcommand_table -typedef std::vector< ExtModeExtModeList +typedef std::vector< ExtModeExtModeList -typedef ExtModeList::iterator ExtModeListIter +typedef ExtModeList::iterator ExtModeListIter

    Functions

    -bool ModeDefined (char modechar, int type) +bool ModeDefined (char modechar, int type) -bool ModeIsListMode (char modechar, int type) +bool ModeIsListMode (char modechar, int type) -bool ModeDefinedOper (char modechar, int type) +bool ModeDefinedOper (char modechar, int type) -int ModeDefinedOn (char modechar, int type) +int ModeDefinedOn (char modechar, int type) -int ModeDefinedOff (char modechar, int type) +int ModeDefinedOff (char modechar, int type) -bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off) +bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off) -void ModeMakeList (char modechar) +void ModeMakeList (char modechar) -std::vector< Module * > modules (255) +std::vector< Module * > modules (255) -std::vector< ircd_module * > factory (255) +std::vector< ircd_module * > factory (255)

    Variables

    int MODCOUNT = -1 @@ -169,21 +173,21 @@ userrecfd_ref_table [65536] -user_hash clientlist +user_hash clientlist -chan_hash chanlist +chan_hash chanlist -user_hash whowas +whowas_hash whowas -command_table cmdlist +command_table cmdlist -file_cache MOTD +file_cache MOTD -file_cache RULES +file_cache RULES -address_cache IP +address_cache IP -ExtModeList EMode +ExtModeList EMode

    Define Documentation

    @@ -260,13 +264,13 @@ Definition at line 187 Definition at line 186 of file modules.cpp. -

    +

    @@ -281,16 +285,16 @@ Definition at line 186

    -Definition at line 188 of file modules.cpp. +Definition at line 189 of file modules.cpp.

    -
    typedef std::deque<command_t> command_table + typedef std::deque<command_t> command_table
    -

    +

    @@ -305,16 +309,16 @@ Definition at line 188

    -Definition at line 214 of file modules.cpp. +Definition at line 215 of file modules.cpp.

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

    +

    @@ -329,9 +333,9 @@ Definition at line 214

    -Definition at line 215 of file modules.cpp. +Definition at line 216 of file modules.cpp.

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

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

    @@ -358,8 +362,32 @@ Referenced by ModeDefined() Definition at line 185 of file modules.cpp. +

    + + + + +
    + + +
    typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, StrHashComp> whowas_hash +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 188 of file modules.cpp.


    Function Documentation

    -

    +

    @@ -414,23 +442,23 @@ Definition at line 185

    -Definition at line 284 of file modules.cpp. +Definition at line 285 of file modules.cpp.

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

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

    -

    00285 {
    -00286         if (ModeDefined(modechar,type)) {
    -00287                 return false;
    -00288         }
    -00289         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    -00290         return true;
    -00291 }
    +
    00286 {
    +00287         if (ModeDefined(modechar,type)) {
    +00288                 return false;
    +00289         }
    +00290         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    +00291         return true;
    +00292 }
     
    -

    +

    @@ -459,7 +487,7 @@ Referenced by Server::AddEx
    -

    +

    @@ -496,26 +524,26 @@ Referenced by Server::AddEx

    -Definition at line 221 of file modules.cpp. +Definition at line 222 of file modules.cpp.

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

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

    -

    00222 {
    -00223         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00224         {
    -00225                 if ((i->modechar == modechar) && (i->type == type))
    -00226                 {
    -00227                         return true;
    -00228                 }
    -00229         }
    -00230         return false;
    -00231 }
    +
    00223 {
    +00224         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00225         {
    +00226                 if ((i->modechar == modechar) && (i->type == type))
    +00227                 {
    +00228                         return true;
    +00229                 }
    +00230         }
    +00231         return false;
    +00232 }
     
    -

    +

    @@ -552,24 +580,24 @@ Referenced by DoAddExtended

    -Definition at line 271 of file modules.cpp. +Definition at line 272 of file modules.cpp.

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

    -

    00272 {
    -00273         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00274         {
    -00275                 if ((i->modechar == modechar) && (i->type == type))
    -00276                 {
    -00277                         return i->params_when_off;
    -00278                 }
    -00279         }
    -00280         return 0;
    -00281 }
    +
    00273 {
    +00274         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00275         {
    +00276                 if ((i->modechar == modechar) && (i->type == type))
    +00277                 {
    +00278                         return i->params_when_off;
    +00279                 }
    +00280         }
    +00281         return 0;
    +00282 }
     
    -

    +

    @@ -606,24 +634,24 @@ References EMode, and <

    -Definition at line 258 of file modules.cpp. +Definition at line 259 of file modules.cpp.

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

    -

    00259 {
    -00260         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00261         {
    -00262                 if ((i->modechar == modechar) && (i->type == type))
    -00263                 {
    -00264                         return i->params_when_on;
    -00265                 }
    -00266         }
    -00267         return 0;
    -00268 }
    +
    00260 {
    +00261         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00262         {
    +00263                 if ((i->modechar == modechar) && (i->type == type))
    +00264                 {
    +00265                         return i->params_when_on;
    +00266                 }
    +00267         }
    +00268         return 0;
    +00269 }
     
    -

    +

    @@ -660,24 +688,24 @@ References EMode, and <

    -Definition at line 245 of file modules.cpp. +Definition at line 246 of file modules.cpp.

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

    -

    00246 {
    -00247         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00248         {
    -00249                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    -00250                 {
    -00251                         return true;
    -00252                 }
    -00253         }
    -00254         return false;
    -00255 }
    +
    00247 {
    +00248         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00249         {
    +00250                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    +00251                 {
    +00252                         return true;
    +00253                 }
    +00254         }
    +00255         return false;
    +00256 }
     
    -

    +

    @@ -714,24 +742,24 @@ References EMode, and <

    -Definition at line 233 of file modules.cpp. +Definition at line 234 of file modules.cpp.

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

    -

    00234 {
    -00235         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00236         {
    -00237                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    -00238                 {
    -00239                         return true;
    -00240                 }
    -00241         }
    -00242         return false;
    -00243 }
    +
    00235 {
    +00236         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00237         {
    +00238                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    +00239                 {
    +00240                         return true;
    +00241                 }
    +00242         }
    +00243         return false;
    +00244 }
     
    -

    +

    @@ -759,27 +787,27 @@ References EMode, and <

    -Definition at line 294 of file modules.cpp. +Definition at line 295 of file modules.cpp.

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

    -Referenced by Server::AddExtendedListMode(). +Referenced by Server::AddExtendedListMode().

    -

    00295 {
    -00296         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00297         {
    -00298                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    -00299                 {
    -00300                         i->list = true;
    -00301                         return;
    -00302                 }
    -00303         }
    -00304         return;
    -00305 }
    +
    00296 {
    +00297         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00298         {
    +00299                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    +00300                 {
    +00301                         i->list = true;
    +00302                         return;
    +00303                 }
    +00304         }
    +00305         return;
    +00306 }
     
    -

    +

    @@ -929,13 +957,13 @@ Definition at line 112 Definition at line 106 of file modules.cpp.
    -

    +

    @@ -950,16 +978,16 @@ Definition at line 106

    -Definition at line 192 of file modules.cpp. +Definition at line 193 of file modules.cpp.

    -
    chan_hash chanlist + chan_hash chanlist
    -

    +

    @@ -974,16 +1002,16 @@ Definition at line 192

    -Definition at line 191 of file modules.cpp. +Definition at line 192 of file modules.cpp.

    -
    user_hash clientlist + user_hash clientlist
    -

    +

    @@ -998,7 +1026,7 @@ Definition at line 191

    -Definition at line 194 of file modules.cpp. +Definition at line 195 of file modules.cpp.

    -
    command_table cmdlist + command_table cmdlist

    @@ -1145,13 +1173,13 @@ Definition at line 86 o Definition at line 92 of file modules.cpp. -

    +

    @@ -1166,9 +1194,9 @@ Definition at line 92 o

    -Definition at line 218 of file modules.cpp. +Definition at line 219 of file modules.cpp.

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

    -
    ExtModeList EMode + ExtModeList EMode

    @@ -1242,16 +1270,16 @@ Definition at line 103

    Definition at line 119 of file modules.cpp.

    -Referenced by Server::FindDescriptor(), and Server::PseudoToUser(). +Referenced by Server::FindDescriptor(), and Server::PseudoToUser(). -

    +

    @@ -1266,7 +1294,7 @@ Referenced by Server::FindD

    -Definition at line 197 of file modules.cpp. +Definition at line 198 of file modules.cpp.

    -
    address_cache IP + address_cache IP

    @@ -1410,7 +1438,7 @@ Definition at line 115

    -Definition at line 1066 of file modules.cpp. +Definition at line 1067 of file modules.cpp.

    @@ -1461,13 +1489,13 @@ Definition at line 104 Definition at line 74 of file modules.cpp. -

    +

    @@ -1482,7 +1510,7 @@ Definition at line 74 o

    -Definition at line 195 of file modules.cpp. +Definition at line 196 of file modules.cpp.

    -
    file_cache MOTD + file_cache MOTD

    @@ -1677,13 +1705,13 @@ Definition at line 91 o Definition at line 87 of file modules.cpp. -

    +

    @@ -1698,7 +1726,7 @@ Definition at line 87 o

    -Definition at line 196 of file modules.cpp. +Definition at line 197 of file modules.cpp.

    -
    file_cache RULES + file_cache RULES

    @@ -1845,13 +1873,13 @@ Definition at line 98 o Definition at line 77 of file modules.cpp. -

    +

    @@ -1866,7 +1894,7 @@ Definition at line 77 o

    -Definition at line 193 of file modules.cpp. +Definition at line 194 of file modules.cpp.

    -
    user_hash whowas + whowas_hash whowas

    @@ -1917,7 +1945,7 @@ Definition at line 96 o Definition at line 95 of file modules.cpp. -


    Generated on Thu May 12 02:25:16 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index f8dd7dff6..d649f6438 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -449,7 +449,7 @@ 01304 typedef DLLFactory<ModuleFactory> ircd_module; 01305 01306 #endif -
    Generated on Thu May 12 02:25:13 2005 for InspIRCd by +
    Generated on Thu May 12 22:58:59 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index d7e50acde..180f6aa2a 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -390,7 +390,7 @@ Definition at line 39 of

    Definition at line 37 of file modules.h.

    -Referenced by Module::OnAccessCheck(). +Referenced by Module::OnAccessCheck().

    @@ -440,7 +440,7 @@ Definition at line 38 of

    Definition at line 1138 of file modules.h.

    -Referenced by ConfigReader::ConfigReader(). +Referenced by ConfigReader::ConfigReader().

    @@ -466,7 +466,7 @@ Referenced by ConfigReader:

    Definition at line 1135 of file modules.h.

    -Referenced by ConfigReader::ReadInteger(). +Referenced by ConfigReader::ReadInteger().

    @@ -492,7 +492,7 @@ Referenced by ConfigReader:

    Definition at line 1136 of file modules.h.

    -Referenced by ConfigReader::ReadInteger(). +Referenced by ConfigReader::ReadInteger().

    @@ -518,7 +518,7 @@ Referenced by ConfigReader:

    Definition at line 1137 of file modules.h.

    -Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). +Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue().

    @@ -544,7 +544,7 @@ Referenced by ConfigReader:

    Definition at line 23 of file modules.h.

    -Referenced by Server::AddExtendedMode(), chanrec::AddUser(), chanrec::DelUser(), userrec::HasPermission(), chanrec::IsCustomModeSet(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), userrec::SetWriteError(), and Server::UserToPseudo(). +Referenced by Server::AddExtendedMode(), chanrec::AddUser(), chanrec::DelUser(), userrec::HasPermission(), chanrec::IsCustomModeSet(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), userrec::SetWriteError(), and Server::UserToPseudo().

    @@ -594,7 +594,7 @@ Definition at line 25 of

    Definition at line 99 of file modules.h.

    -Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). +Referenced by Server::PseudoToUser(), and Server::UserToPseudo().

    @@ -620,7 +620,7 @@ Referenced by Server::Pseud

    Definition at line 79 of file modules.h.

    -Referenced by Event::Send(). +Referenced by Event::Send().

    @@ -684,7 +684,7 @@ Definition at line 87 of

    Definition at line 31 of file modules.h.

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

    @@ -710,7 +710,7 @@ Referenced by Server::AddEx

    Definition at line 32 of file modules.h.

    -Referenced by Server::AddExtendedMode(). +Referenced by Server::AddExtendedMode().

    @@ -736,7 +736,7 @@ Referenced by Server::AddEx

    Definition at line 33 of file modules.h.

    -Referenced by Server::AddExtendedMode(). +Referenced by Server::AddExtendedMode().

    @@ -906,7 +906,7 @@ Definition at line 53 of

    Definition at line 54 of file modules.h.

    -Referenced by Module::GetVersion(). +Referenced by Module::GetVersion().


    Typedef Documentation

    @@ -935,7 +935,7 @@ Holds a list of users in a channel.

    Definition at line 72 of file modules.h.

    -Referenced by Server::GetUsers(). +Referenced by Server::GetUsers().

    @@ -963,7 +963,7 @@ Low level definition of a FileReader Definition at line 67 of file modules.h.

    -Referenced by FileReader::FileReader(), and FileReader::LoadFile(). +Referenced by FileReader::FileReader(), and FileReader::LoadFile().

    @@ -1013,7 +1013,7 @@ Definition at line 1304 o

    Definition at line 68 of file modules.h.

    -Referenced by Module::OnChannelSync(), and Module::OnUserSync(). +Referenced by Module::OnChannelSync(), and Module::OnUserSync().


    Function Documentation

    @@ -1072,7 +1072,7 @@ Referenced by Module::OnCha

    -Referenced by Server::AddCommand(). +Referenced by Server::AddCommand().

    @@ -1118,10 +1118,10 @@ Referenced by Server::AddCo

    -Referenced by Server::SendMode(). +Referenced by Server::SendMode(). -


    Generated on Thu May 12 02:25:16 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index 1e560dd80..7aed6f4ab 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ struct  nspace.hash< string > -
    Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index ced11e9ed..1e080619e 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -9,7 +9,7 @@ nspace std -
    Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index 8dac21507..60f0c9bb9 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@
    -
    Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index bbcf5c632..3b6e56fa4 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -34,10 +34,10 @@ 00027 { 00028 strlcpy(name,"",256); 00029 pingtime = 0; -00030 lastping = TIME; +00030 lastping = TIME; 00031 usercount_i = usercount = opercount = version = 0; 00032 hops_away = 1; -00033 signon = TIME; +00033 signon = TIME; 00034 jupiter = false; 00035 fd = 0; 00036 sync_soon = false; @@ -52,18 +52,18 @@ 00045 serverrec::serverrec(char* n, long ver, bool jupe) 00046 { 00047 strlcpy(name,n,256); -00048 lastping = TIME; +00048 lastping = TIME; 00049 usercount_i = usercount = opercount = 0; 00050 version = ver; 00051 hops_away = 1; -00052 signon = TIME; +00052 signon = TIME; 00053 jupiter = jupe; 00054 fd = 0; 00055 sync_soon = false; 00056 strlcpy(nickserv,"",NICKMAX); 00057 } 00058 -
    Generated on Thu May 12 02:25:13 2005 for InspIRCd by +
    Generated on Thu May 12 22:58:59 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index 776c4f9e8..ec18f8fda 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -44,7 +44,7 @@ Definition at line 24 of file servers.cpp. -
    Generated on Thu May 12 02:25:16 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index 3c443abc6..bf748c04b 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -61,7 +61,7 @@ 00082 00083 #endif 00084 -
    Generated on Thu May 12 02:25:13 2005 for InspIRCd by +
    Generated on Thu May 12 22:58:59 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index 0b760db97..d26e898db 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -72,7 +72,7 @@ Definition at line 25 of Definition at line 26 of file servers.h. -
    Generated on Thu May 12 02:25:16 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structInAddr__HashComp-members.html b/docs/module-doc/structInAddr__HashComp-members.html index 951c05837..11adac43d 100644 --- a/docs/module-doc/structInAddr__HashComp-members.html +++ b/docs/module-doc/structInAddr__HashComp-members.html @@ -7,7 +7,7 @@

    InAddr_HashComp Member List

    This is the complete list of members for InAddr_HashComp, including all inherited members. -
    operator()(const in_addr &s1, const in_addr &s2) constInAddr_HashComp [inline]

    Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structInAddr__HashComp.html b/docs/module-doc/structInAddr__HashComp.html index 88b933b91..6f795ce6e 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -65,7 +65,7 @@ Definition at line 171
    The documentation for this struct was generated from the following file: -
    Generated on Thu May 12 02:25:21 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:03 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structStrHashComp-members.html b/docs/module-doc/structStrHashComp-members.html index ab85bd8d7..d79e1ed66 100644 --- a/docs/module-doc/structStrHashComp-members.html +++ b/docs/module-doc/structStrHashComp-members.html @@ -7,7 +7,7 @@

    StrHashComp Member List

    This is the complete list of members for StrHashComp, including all inherited members. -
    operator()(const string &s1, const string &s2) constStrHashComp [inline]

    Generated on Thu May 12 02:25:28 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structStrHashComp.html b/docs/module-doc/structStrHashComp.html index fa19cfc59..8f6db6891 100644 --- a/docs/module-doc/structStrHashComp.html +++ b/docs/module-doc/structStrHashComp.html @@ -64,7 +64,7 @@ Definition at line 156
    The documentation for this struct was generated from the following file: -
    Generated on Thu May 12 02:25:28 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:06 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index fce7a30d8..5ebfc16f9 100644 --- a/docs/module-doc/structdns__ip4list-members.html +++ b/docs/module-doc/structdns__ip4list-members.html @@ -8,7 +8,7 @@

    dns_ip4list Member List

    This is the complete list of members for dns_ip4list, including all inherited members. -
    ipdns_ip4list
    nextdns_ip4list

    Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structdns__ip4list.html b/docs/module-doc/structdns__ip4list.html index 9076908a6..be470a76a 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -66,7 +66,7 @@ Definition at line 28 of file
    The documentation for this struct was generated from the following file: -
    Generated on Thu May 12 02:25:20 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:02 2005 for InspIRCd by doxygen 1.3.3
    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 e85ac6e89..bd2a66c39 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 @@

    nspace::hash< in_addr > Member List

    This is the complete list of members for nspace::hash< in_addr >, including all inherited members. -
    operator()(const struct in_addr &a) constnspace::hash< in_addr > [inline]

    Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
    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 e23d5d983..d3a171cc8 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 129
    The documentation for this struct was generated from the following file: -
    Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
    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 1a59a61ea..5b8b255f4 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 @@

    nspace::hash< string > Member List

    This is the complete list of members for nspace::hash< string >, including all inherited members. -
    operator()(const string &s) constnspace::hash< string > [inline]

    Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
    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 a35172501..3c48404b4 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 142
    The documentation for this struct was generated from the following file: -
    Generated on Thu May 12 02:25:29 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/tree.html b/docs/module-doc/tree.html index e5b64e514..19fa64caa 100644 --- a/docs/module-doc/tree.html +++ b/docs/module-doc/tree.html @@ -169,6 +169,7 @@

    |o*ucrec

    |o*userrec

    |o*Version

    +

    |o*WhoWasUser

    |o*XLine

    |\*ZLine

    @@ -224,7 +225,8 @@

    |o*InAddr_HashComp

    |o*nspace::hash< in_addr >

    |o*nspace::hash< string >

    -

    |\*StrHashComp

    +

    |o*StrHashComp

    +

    |\*WhoWasUser

    o*Compound Members

    o+Namespace List

    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 5a5d09547..b17e945a7 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -43,244 +43,243 @@ 00036 strcpy(dhost,""); 00037 strcpy(fullname,""); 00038 strcpy(modes,""); -00039 strcpy(inbuf,""); -00040 strcpy(server,""); -00041 strcpy(awaymsg,""); -00042 strcpy(oper,""); -00043 reset_due = TIME; -00044 lines_in = 0; -00045 fd = lastping = signon = idle_lastmsg = nping = registered = 0; -00046 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; -00047 haspassed = false; -00048 dns_done = false; -00049 recvq = ""; -00050 sendq = ""; -00051 strcpy(result,""); -00052 for (int i = 0; i < MAXCHANS; i++) -00053 { -00054 this->chans[i].channel = NULL; -00055 this->chans[i].uc_modes = 0; -00056 } -00057 invites.clear(); -00058 } +00039 strcpy(server,""); +00040 strcpy(awaymsg,""); +00041 strcpy(oper,""); +00042 reset_due = TIME; +00043 lines_in = 0; +00044 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +00045 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +00046 haspassed = false; +00047 dns_done = false; +00048 recvq = ""; +00049 sendq = ""; +00050 strcpy(result,""); +00051 for (int i = 0; i < MAXCHANS; i++) +00052 { +00053 this->chans[i].channel = NULL; +00054 this->chans[i].uc_modes = 0; +00055 } +00056 invites.clear(); +00057 } +00058 00059 -00060 -00061 -00062 char* userrec::GetFullHost() -00063 { -00064 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost); -00065 return result; -00066 } +00060 +00061 char* userrec::GetFullHost() +00062 { +00063 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost); +00064 return result; +00065 } +00066 00067 -00068 -00069 char* userrec::GetFullRealHost() -00070 { -00071 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host); -00072 return result; -00073 } -00074 -00075 bool userrec::IsInvited(char* channel) -00076 { -00077 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00078 { -00079 if (i->channel) { -00080 if (!strcasecmp(i->channel,channel)) -00081 { -00082 return true; -00083 } -00084 } -00085 } -00086 return false; -00087 } -00088 -00089 void userrec::InviteTo(char* channel) -00090 { -00091 Invited i; -00092 strlcpy(i.channel,channel,CHANMAX); -00093 invites.push_back(i); -00094 } -00095 -00096 void userrec::RemoveInvite(char* channel) -00097 { -00098 log(DEBUG,"Removing invites"); -00099 if (channel) -00100 { -00101 if (invites.size()) -00102 { -00103 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00104 { -00105 if (i->channel) -00106 { -00107 if (!strcasecmp(i->channel,channel)) -00108 { -00109 invites.erase(i); -00110 return; -00111 } -00112 } -00113 } -00114 } -00115 } -00116 } -00117 -00118 bool userrec::HasPermission(char* command) -00119 { -00120 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -00121 char* mycmd; -00122 char* savept; -00123 char* savept2; -00124 -00125 // are they even an oper at all? -00126 if (strchr(this->modes,'o')) -00127 { -00128 log(DEBUG,"*** HasPermission: %s is an oper",this->nick); -00129 for (int j =0; j < ConfValueEnum("type",&config_f); j++) -00130 { -00131 ConfValue("type","name",j,TypeName,&config_f); -00132 if (!strcmp(TypeName,this->oper)) -00133 { -00134 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); -00135 ConfValue("type","classes",j,Classes,&config_f); -00136 char* myclass = strtok_r(Classes," ",&savept); -00137 while (myclass) -00138 { -00139 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); -00140 for (int k =0; k < ConfValueEnum("class",&config_f); k++) -00141 { -00142 ConfValue("class","name",k,ClassName,&config_f); -00143 if (!strcmp(ClassName,myclass)) -00144 { -00145 ConfValue("class","commands",k,CommandList,&config_f); -00146 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); +00068 char* userrec::GetFullRealHost() +00069 { +00070 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host); +00071 return result; +00072 } +00073 +00074 bool userrec::IsInvited(char* channel) +00075 { +00076 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00077 { +00078 if (i->channel) { +00079 if (!strcasecmp(i->channel,channel)) +00080 { +00081 return true; +00082 } +00083 } +00084 } +00085 return false; +00086 } +00087 +00088 void userrec::InviteTo(char* channel) +00089 { +00090 Invited i; +00091 strlcpy(i.channel,channel,CHANMAX); +00092 invites.push_back(i); +00093 } +00094 +00095 void userrec::RemoveInvite(char* channel) +00096 { +00097 log(DEBUG,"Removing invites"); +00098 if (channel) +00099 { +00100 if (invites.size()) +00101 { +00102 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00103 { +00104 if (i->channel) +00105 { +00106 if (!strcasecmp(i->channel,channel)) +00107 { +00108 invites.erase(i); +00109 return; +00110 } +00111 } +00112 } +00113 } +00114 } +00115 } +00116 +00117 bool userrec::HasPermission(char* command) +00118 { +00119 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +00120 char* mycmd; +00121 char* savept; +00122 char* savept2; +00123 +00124 // are they even an oper at all? +00125 if (strchr(this->modes,'o')) +00126 { +00127 log(DEBUG,"*** HasPermission: %s is an oper",this->nick); +00128 for (int j =0; j < ConfValueEnum("type",&config_f); j++) +00129 { +00130 ConfValue("type","name",j,TypeName,&config_f); +00131 if (!strcmp(TypeName,this->oper)) +00132 { +00133 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); +00134 ConfValue("type","classes",j,Classes,&config_f); +00135 char* myclass = strtok_r(Classes," ",&savept); +00136 while (myclass) +00137 { +00138 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); +00139 for (int k =0; k < ConfValueEnum("class",&config_f); k++) +00140 { +00141 ConfValue("class","name",k,ClassName,&config_f); +00142 if (!strcmp(ClassName,myclass)) +00143 { +00144 ConfValue("class","commands",k,CommandList,&config_f); +00145 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); +00146 00147 -00148 -00149 mycmd = strtok_r(CommandList," ",&savept2); -00150 while (mycmd) -00151 { -00152 if (!strcasecmp(mycmd,command)) -00153 { -00154 log(DEBUG,"*** Command %s found, returning true",command); -00155 return true; -00156 } -00157 mycmd = strtok_r(NULL," ",&savept2); -00158 } -00159 } -00160 } -00161 myclass = strtok_r(NULL," ",&savept); -00162 } -00163 } -00164 } -00165 } -00166 return false; -00167 } +00148 mycmd = strtok_r(CommandList," ",&savept2); +00149 while (mycmd) +00150 { +00151 if (!strcasecmp(mycmd,command)) +00152 { +00153 log(DEBUG,"*** Command %s found, returning true",command); +00154 return true; +00155 } +00156 mycmd = strtok_r(NULL," ",&savept2); +00157 } +00158 } +00159 } +00160 myclass = strtok_r(NULL," ",&savept); +00161 } +00162 } +00163 } +00164 } +00165 return false; +00166 } +00167 00168 -00169 -00170 bool userrec::AddBuffer(std::string a) -00171 { -00172 std::string b = ""; -00173 for (int i = 0; i < a.length(); i++) -00174 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7)) -00175 b = b + a[i]; -00176 std::stringstream stream(recvq); -00177 stream << b; -00178 recvq = stream.str(); -00179 int i = 0; -00180 // count the size of the first line in the buffer. -00181 while (i < recvq.length()) -00182 { -00183 if (recvq[i++] == '\n') -00184 break; -00185 } -00186 if (recvq.length() > this->recvqmax) -00187 { -00188 this->SetWriteError("RecvQ exceeded"); -00189 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax); -00190 } -00191 // return false if we've had more than 600 characters WITHOUT -00192 // a carriage return (this is BAD, drop the socket) -00193 return (i < 600); -00194 } -00195 -00196 bool userrec::BufferIsReady() -00197 { -00198 for (int i = 0; i < recvq.length(); i++) -00199 if (recvq[i] == '\n') -00200 return true; -00201 return false; -00202 } -00203 -00204 void userrec::ClearBuffer() -00205 { -00206 recvq = ""; -00207 } -00208 -00209 std::string userrec::GetBuffer() -00210 { -00211 if (recvq == "") -00212 return ""; -00213 char* line = (char*)recvq.c_str(); -00214 std::string ret = ""; -00215 while ((*line != '\n') && (strlen(line))) -00216 { -00217 ret = ret + *line; -00218 line++; -00219 } -00220 if ((*line == '\n') || (*line == '\r')) -00221 line++; -00222 recvq = line; -00223 return ret; -00224 } -00225 -00226 void userrec::AddWriteBuf(std::string data) -00227 { -00228 if (this->GetWriteError() != "") -00229 return; -00230 if (sendq.length() + data.length() > this->sendqmax) -00231 { -00232 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax); -00233 this->SetWriteError("SendQ exceeded"); -00234 return; -00235 } -00236 std::stringstream stream; -00237 stream << sendq << data; -00238 sendq = stream.str(); -00239 } -00240 -00241 // send AS MUCH OF THE USERS SENDQ as we are able to (might not be all of it) -00242 void userrec::FlushWriteBuf() -00243 { -00244 if (sendq.length()) -00245 { -00246 char* tb = (char*)this->sendq.c_str(); -00247 int n_sent = write(this->fd,tb,this->sendq.length()); -00248 if (n_sent == -1) -00249 { -00250 this->SetWriteError(strerror(errno)); -00251 } -00252 else -00253 { -00254 // advance the queue -00255 tb += n_sent; -00256 this->sendq = tb; -00257 // update the user's stats counters -00258 this->bytes_out += n_sent; -00259 this->cmds_out++; -00260 } -00261 } -00262 } -00263 -00264 void userrec::SetWriteError(std::string error) -00265 { -00266 log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str()); -00267 // don't try to set the error twice, its already set take the first string. -00268 if (this->WriteError == "") -00269 this->WriteError = error; -00270 } -00271 -00272 std::string userrec::GetWriteError() -00273 { -00274 return this->WriteError; -00275 } -
    Generated on Thu May 12 02:25:13 2005 for InspIRCd by +00169 bool userrec::AddBuffer(std::string a) +00170 { +00171 std::string b = ""; +00172 for (int i = 0; i < a.length(); i++) +00173 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7)) +00174 b = b + a[i]; +00175 std::stringstream stream(recvq); +00176 stream << b; +00177 recvq = stream.str(); +00178 int i = 0; +00179 // count the size of the first line in the buffer. +00180 while (i < recvq.length()) +00181 { +00182 if (recvq[i++] == '\n') +00183 break; +00184 } +00185 if (recvq.length() > this->recvqmax) +00186 { +00187 this->SetWriteError("RecvQ exceeded"); +00188 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax); +00189 } +00190 // return false if we've had more than 600 characters WITHOUT +00191 // a carriage return (this is BAD, drop the socket) +00192 return (i < 600); +00193 } +00194 +00195 bool userrec::BufferIsReady() +00196 { +00197 for (int i = 0; i < recvq.length(); i++) +00198 if (recvq[i] == '\n') +00199 return true; +00200 return false; +00201 } +00202 +00203 void userrec::ClearBuffer() +00204 { +00205 recvq = ""; +00206 } +00207 +00208 std::string userrec::GetBuffer() +00209 { +00210 if (recvq == "") +00211 return ""; +00212 char* line = (char*)recvq.c_str(); +00213 std::string ret = ""; +00214 while ((*line != '\n') && (strlen(line))) +00215 { +00216 ret = ret + *line; +00217 line++; +00218 } +00219 if ((*line == '\n') || (*line == '\r')) +00220 line++; +00221 recvq = line; +00222 return ret; +00223 } +00224 +00225 void userrec::AddWriteBuf(std::string data) +00226 { +00227 if (this->GetWriteError() != "") +00228 return; +00229 if (sendq.length() + data.length() > this->sendqmax) +00230 { +00231 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax); +00232 this->SetWriteError("SendQ exceeded"); +00233 return; +00234 } +00235 std::stringstream stream; +00236 stream << sendq << data; +00237 sendq = stream.str(); +00238 } +00239 +00240 // send AS MUCH OF THE USERS SENDQ as we are able to (might not be all of it) +00241 void userrec::FlushWriteBuf() +00242 { +00243 if (sendq.length()) +00244 { +00245 char* tb = (char*)this->sendq.c_str(); +00246 int n_sent = write(this->fd,tb,this->sendq.length()); +00247 if (n_sent == -1) +00248 { +00249 this->SetWriteError(strerror(errno)); +00250 } +00251 else +00252 { +00253 // advance the queue +00254 tb += n_sent; +00255 this->sendq = tb; +00256 // update the user's stats counters +00257 this->bytes_out += n_sent; +00258 this->cmds_out++; +00259 } +00260 } +00261 } +00262 +00263 void userrec::SetWriteError(std::string error) +00264 { +00265 log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str()); +00266 // don't try to set the error twice, its already set take the first string. +00267 if (this->WriteError == "") +00268 this->WriteError = error; +00269 } +00270 +00271 std::string userrec::GetWriteError() +00272 { +00273 return this->WriteError; +00274 } +
    Generated on Thu May 12 22:58:59 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index 8a29677a3..ff8d3676e 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -70,7 +70,7 @@ Definition at line 24 of Definition at line 26 of file users.cpp. -
    Generated on Thu May 12 02:25:16 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 8a6aee69e..92a802dc1 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -48,14 +48,14 @@ 00045 class ConnectClass : public classbase 00046 { 00047 public: -00050 int type; +00050 char type; 00053 int registration_timeout; 00056 int flood; 00059 char host[MAXBUF]; 00062 int pingtime; 00065 char pass[MAXBUF]; 00066 -00069 long threshold; +00069 int threshold; 00070 00073 long sendqmax; 00074 @@ -89,9 +89,9 @@ 00116 00121 char nick[NICKMAX]; 00122 -00125 char ident[64]; +00125 char ident[16]; 00126 -00130 char dhost[256]; +00130 char dhost[160]; 00131 00134 char fullname[128]; 00135 @@ -107,13 +107,13 @@ 00157 00162 int flood; 00163 -00168 unsigned long timeout; +00168 unsigned int timeout; 00169 00175 char oper[NICKMAX]; 00176 00179 bool dns_done; 00180 -00183 unsigned long pingmax; +00183 unsigned int pingmax; 00184 00189 char password[MAXBUF]; 00190 @@ -121,7 +121,7 @@ 00196 00200 std::string sendq; 00201 -00204 long lines_in; +00204 int lines_in; 00205 time_t reset_due; 00206 long threshold; 00207 @@ -167,9 +167,20 @@ 00310 00311 }; 00312 -00313 -00314 #endif -
    Generated on Thu May 12 02:25:14 2005 for InspIRCd by +00315 class WhoWasUser +00316 { +00317 public: +00318 char nick[NICKMAX]; +00319 char ident[16]; +00320 char dhost[160]; +00321 char host[160]; +00322 char fullname[128]; +00323 char server[256]; +00324 time_t signon; +00325 }; +00326 +00327 #endif +
    Generated on Thu May 12 22:58:59 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 4b542a778..85bf324e9 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -24,6 +24,9 @@ class  userrec  Holds all information about a user This class stores all information about a user connected to the irc server. More...

    +class  WhoWasUser + + A lightweight userrec used by WHOWAS.
    More...


    Defines

    #define STATUS_OP   4 @@ -243,7 +246,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line 94 of file users.h. -
    Generated on Thu May 12 02:25:17 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index 33ad97901..e2a4242b8 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -44,7 +44,7 @@ 00041 00044 long duration; 00045 -00048 char source[MAXBUF]; +00048 char source[256]; 00049 00052 char reason[MAXBUF]; 00053 @@ -55,32 +55,32 @@ 00062 class KLine : public XLine 00063 { 00064 public: -00068 char hostmask[MAXBUF]; +00068 char hostmask[200]; 00069 }; 00070 00073 class GLine : public XLine 00074 { 00075 public: -00079 char hostmask[MAXBUF]; +00079 char hostmask[200]; 00080 }; 00081 00082 class ELine : public XLine 00083 { 00084 public: -00088 char hostmask[MAXBUF]; +00088 char hostmask[200]; 00089 }; 00090 00093 class ZLine : public XLine 00094 { 00095 public: -00099 char ipaddr[MAXBUF]; +00099 char ipaddr[40]; 00103 bool is_global; 00104 }; 00105 00108 class QLine : public XLine 00109 { 00110 public: -00114 char nick[MAXBUF]; +00114 char nick[64]; 00118 bool is_global; 00119 }; 00120 @@ -123,7 +123,7 @@ 00157 void sync_xlines(serverrec* serv, char* tcp_host); 00158 00159 #endif -
    Generated on Thu May 12 02:25:14 2005 for InspIRCd by +
    Generated on Thu May 12 22:58:59 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index bfbbe3225..440779a91 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -145,7 +145,7 @@

    -Referenced by Server::AddELine(). +Referenced by Server::AddELine().

    @@ -197,7 +197,7 @@ Referenced by Server::AddEL

    -Referenced by Server::AddGLine(). +Referenced by Server::AddGLine().

    @@ -249,7 +249,7 @@ Referenced by Server::AddGL

    -Referenced by Server::AddKLine(). +Referenced by Server::AddKLine().

    @@ -301,7 +301,7 @@ Referenced by Server::AddKL

    -Referenced by Server::AddQLine(). +Referenced by Server::AddQLine().

    @@ -353,7 +353,7 @@ Referenced by Server::AddQL

    -Referenced by Server::AddZLine(). +Referenced by Server::AddZLine().

    @@ -412,7 +412,7 @@ Referenced by Server::AddZL

    -Referenced by Server::DelELine(). +Referenced by Server::DelELine().

    @@ -443,7 +443,7 @@ Referenced by Server::DelEL

    -Referenced by Server::DelGLine(). +Referenced by Server::DelGLine().

    @@ -474,7 +474,7 @@ Referenced by Server::DelGL

    -Referenced by Server::DelKLine(). +Referenced by Server::DelKLine().

    @@ -505,7 +505,7 @@ Referenced by Server::DelKL

    -Referenced by Server::DelQLine(). +Referenced by Server::DelQLine().

    @@ -536,7 +536,7 @@ Referenced by Server::DelQL

    -Referenced by Server::DelZLine(). +Referenced by Server::DelZLine().

    @@ -1095,7 +1095,7 @@ Referenced by Server::DelZL -


    Generated on Thu May 12 02:25:17 2005 for InspIRCd by +
    Generated on Thu May 12 22:59:00 2005 for InspIRCd by doxygen 1.3.3
    -- cgit v1.2.3