From 5a2675d174e661c55843b3795afe2d688e7197f9 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 26 Apr 2005 17:15:49 +0000 Subject: New documentation! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1199 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/man/man3/Admin.3 | 2 +- docs/man/man3/BanItem.3 | 2 +- docs/man/man3/ConfigReader.3 | 274 ++--- docs/man/man3/ConnectClass.3 | 2 +- docs/man/man3/DNS.3 | 16 +- docs/man/man3/ELine.3 | 2 +- docs/man/man3/Event.3 | 10 +- docs/man/man3/ExemptItem.3 | 2 +- docs/man/man3/ExtMode.3 | 2 +- docs/man/man3/Extensible.3 | 2 +- docs/man/man3/FileReader.3 | 84 +- docs/man/man3/GLine.3 | 2 +- docs/man/man3/HostItem.3 | 2 +- docs/man/man3/InAddr_HashComp.3 | 2 +- docs/man/man3/InviteItem.3 | 2 +- docs/man/man3/Invited.3 | 2 +- docs/man/man3/KLine.3 | 2 +- docs/man/man3/ModeParameter.3 | 2 +- docs/man/man3/Module.3 | 37 +- docs/man/man3/ModuleFactory.3 | 12 +- docs/man/man3/ModuleMessage.3 | 4 +- docs/man/man3/QLine.3 | 2 +- docs/man/man3/Request.3 | 10 +- docs/man/man3/Server.3 | 720 +++++------ docs/man/man3/StrHashComp.3 | 2 +- docs/man/man3/Version.3 | 2 +- docs/man/man3/XLine.3 | 2 +- docs/man/man3/ZLine.3 | 2 +- docs/man/man3/base.h.3 | 2 +- docs/man/man3/channels.cpp.3 | 4 +- docs/man/man3/channels.h.3 | 12 +- docs/man/man3/chanrec.3 | 306 +++-- docs/man/man3/classbase.3 | 2 +- docs/man/man3/command_t.3 | 2 +- docs/man/man3/commands.h.3 | 2 +- docs/man/man3/connection.3 | 46 +- docs/man/man3/connection.h.3 | 16 +- docs/man/man3/ctables.h.3 | 2 +- docs/man/man3/dns.h.3 | 2 +- docs/man/man3/dns_ip4list.3 | 2 +- docs/man/man3/ircd_connector.3 | 55 +- docs/man/man3/message.h.3 | 2 +- docs/man/man3/mode.h.3 | 2 +- docs/man/man3/modules.cpp.3 | 4 +- docs/man/man3/modules.h.3 | 22 +- docs/man/man3/nspace.3 | 2 +- docs/man/man3/nspace_nspace_hash_ in_addr _.3 | 2 +- docs/man/man3/nspace_nspace_hash_ string _.3 | 2 +- docs/man/man3/serverrec.3 | 2 +- docs/man/man3/servers.cpp.3 | 2 +- docs/man/man3/servers.h.3 | 2 +- docs/man/man3/std.3 | 2 +- docs/man/man3/ucrec.3 | 16 +- docs/man/man3/userrec.3 | 106 +- docs/man/man3/users.cpp.3 | 2 +- docs/man/man3/users.h.3 | 2 +- docs/man/man3/xline.h.3 | 2 +- docs/module-doc/annotated.html | 2 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/channels_8cpp-source.html | 212 ++-- docs/module-doc/channels_8cpp.html | 12 +- docs/module-doc/channels_8h-source.html | 130 +- docs/module-doc/channels_8h.html | 12 +- docs/module-doc/classAdmin-members.html | 2 +- docs/module-doc/classAdmin.html | 2 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 2 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 320 ++--- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 2 +- docs/module-doc/classDNS-members.html | 9 +- docs/module-doc/classDNS.html | 58 +- docs/module-doc/classELine-members.html | 2 +- docs/module-doc/classELine.html | 2 +- docs/module-doc/classEvent-members.html | 2 +- docs/module-doc/classEvent.html | 16 +- docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 2 +- docs/module-doc/classExtMode-members.html | 2 +- docs/module-doc/classExtMode.html | 2 +- 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 | 96 +- docs/module-doc/classGLine-members.html | 2 +- docs/module-doc/classGLine.html | 2 +- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 2 +- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 2 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 2 +- docs/module-doc/classKLine-members.html | 2 +- docs/module-doc/classKLine.html | 2 +- docs/module-doc/classModeParameter-members.html | 2 +- docs/module-doc/classModeParameter.html | 8 +- docs/module-doc/classModule-members.html | 5 +- docs/module-doc/classModule.html | 130 +- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 12 +- docs/module-doc/classModuleMessage-members.html | 2 +- docs/module-doc/classModuleMessage.html | 4 +- docs/module-doc/classQLine-members.html | 2 +- docs/module-doc/classQLine.html | 2 +- docs/module-doc/classRequest-members.html | 2 +- docs/module-doc/classRequest.html | 18 +- docs/module-doc/classServer-members.html | 2 +- docs/module-doc/classServer.html | 740 ++++++------ docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 2 +- docs/module-doc/classXLine-members.html | 2 +- docs/module-doc/classXLine.html | 2 +- docs/module-doc/classZLine-members.html | 2 +- docs/module-doc/classZLine.html | 2 +- docs/module-doc/classchanrec-members.html | 40 +- docs/module-doc/classchanrec.html | 654 +++++++--- 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 | 4 +- docs/module-doc/classconnection.html | 50 +- docs/module-doc/classes.html | 2 +- docs/module-doc/classircd__connector-members.html | 17 +- docs/module-doc/classircd__connector.html | 204 +++- docs/module-doc/classserverrec-members.html | 4 +- docs/module-doc/classserverrec.html | 6 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 18 +- docs/module-doc/classuserrec-members.html | 5 +- docs/module-doc/classuserrec.html | 138 ++- docs/module-doc/commands_8h-source.html | 2 +- docs/module-doc/commands_8h.html | 6 +- docs/module-doc/connection_8h-source.html | 246 ++-- docs/module-doc/connection_8h.html | 15 +- docs/module-doc/ctables_8h-source.html | 2 +- docs/module-doc/ctables_8h.html | 2 +- docs/module-doc/dns_8h-source.html | 10 +- docs/module-doc/dns_8h.html | 2 +- docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 99 +- docs/module-doc/functions_func.html | 42 +- docs/module-doc/functions_vars.html | 61 +- docs/module-doc/globals.html | 2 +- docs/module-doc/globals_defs.html | 2 +- docs/module-doc/globals_func.html | 2 +- docs/module-doc/globals_type.html | 2 +- docs/module-doc/globals_vars.html | 2 +- docs/module-doc/hierarchy.html | 2 +- docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 2 +- docs/module-doc/message_8h.html | 16 +- docs/module-doc/mode_8h-source.html | 2 +- docs/module-doc/mode_8h.html | 2 +- docs/module-doc/modules_8cpp-source.html | 1246 ++++++++++---------- docs/module-doc/modules_8cpp.html | 10 +- docs/module-doc/modules_8h-source.html | 606 +++++----- docs/module-doc/modules_8h.html | 46 +- 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 | 2 +- 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/users_8cpp-source.html | 97 +- docs/module-doc/users_8cpp.html | 2 +- docs/module-doc/users_8h-source.html | 38 +- docs/module-doc/users_8h.html | 2 +- docs/module-doc/xline_8h-source.html | 2 +- docs/module-doc/xline_8h.html | 22 +- 183 files changed, 4201 insertions(+), 3279 deletions(-) (limited to 'docs') diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3 index bc5466d24..6e414dc78 100644 --- a/docs/man/man3/Admin.3 +++ b/docs/man/man3/Admin.3 @@ -1,4 +1,4 @@ -.TH "Admin" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Admin" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/BanItem.3 b/docs/man/man3/BanItem.3 index d860624f0..5a7e51df0 100644 --- a/docs/man/man3/BanItem.3 +++ b/docs/man/man3/BanItem.3 @@ -1,4 +1,4 @@ -.TH "BanItem" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "BanItem" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3 index 1b6478571..294eec961 100644 --- a/docs/man/man3/ConfigReader.3 +++ b/docs/man/man3/ConfigReader.3 @@ -1,4 +1,4 @@ -.TH "ConfigReader" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ConfigReader" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -84,239 +84,239 @@ Allows reading of values from configuration files This class allows a module to It may either be instantiated with one parameter or none. Constructing the class using one parameter allows you to specify a path to your own configuration file, otherwise, inspircd.conf is read. .PP -Definition at line 1072 of file modules.h. +Definition at line 1097 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ConfigReader::ConfigReader ()" .PP -Default constructor. This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.Definition at line 833 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 835 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -834 { -835 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -836 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -837 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -838 if (!this->readerror) -839 this->error = CONF_FILE_NOT_FOUND; -840 } +836 { +837 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +838 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +839 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +840 if (!this->readerror) +841 this->error = CONF_FILE_NOT_FOUND; +842 } .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 852 of file modules.cpp. +Overloaded constructor. This constructor initialises the ConfigReader class to read a user-specified config fileDefinition at line 854 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -853 { -854 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -855 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -856 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -857 if (!this->readerror) -858 this->error = CONF_FILE_NOT_FOUND; -859 }; +855 { +856 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +857 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +858 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +859 if (!this->readerror) +860 this->error = CONF_FILE_NOT_FOUND; +861 }; .fi .SS "ConfigReader::~\fBConfigReader\fP ()" .PP -Default destructor. This method destroys the ConfigReader class.Definition at line 843 of file modules.cpp. +Default destructor. This method destroys the ConfigReader class.Definition at line 845 of file modules.cpp. .PP References cache, and errorlog. .PP .nf -844 { -845 if (this->cache) -846 delete this->cache; -847 if (this->errorlog) -848 delete this->errorlog; -849 } +846 { +847 if (this->cache) +848 delete this->cache; +849 if (this->errorlog) +850 delete this->errorlog; +851 } .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 930 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 932 of file modules.cpp. .PP References errorlog, connection::fd, and userrec::nick. .PP .nf -931 { -932 if (bail) -933 { -934 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); -935 exit(0); -936 } -937 else -938 { -939 char dataline[1024]; -940 if (user) -941 { -942 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); -943 while (!errorlog->eof()) -944 { -945 errorlog->getline(dataline,1024); -946 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); -947 } -948 } -949 else -950 { -951 WriteOpers('There were errors in the configuration file:',user->nick); -952 while (!errorlog->eof()) -953 { -954 errorlog->getline(dataline,1024); -955 WriteOpers(dataline); -956 } -957 } -958 return; -959 } -960 } +933 { +934 if (bail) +935 { +936 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); +937 exit(0); +938 } +939 else +940 { +941 char dataline[1024]; +942 if (user) +943 { +944 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); +945 while (!errorlog->eof()) +946 { +947 errorlog->getline(dataline,1024); +948 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); +949 } +950 } +951 else +952 { +953 WriteOpers('There were errors in the configuration file:',user->nick); +954 while (!errorlog->eof()) +955 { +956 errorlog->getline(dataline,1024); +957 WriteOpers(dataline); +958 } +959 } +960 return; +961 } +962 } .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 963 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 965 of file modules.cpp. .PP References cache. .PP .nf -964 { -965 return EnumConf(cache,tag.c_str()); -966 } +966 { +967 return EnumConf(cache,tag.c_str()); +968 } .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 968 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 970 of file modules.cpp. .PP References cache. .PP .nf -969 { -970 return EnumValues(cache, tag.c_str(), index); -971 } +971 { +972 return EnumValues(cache, tag.c_str(), index); +973 } .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 923 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 925 of file modules.cpp. .PP References error. .PP .nf -924 { -925 long olderr = this->error; -926 this->error = 0; -927 return olderr; -928 } +926 { +927 long olderr = this->error; +928 this->error = 0; +929 return olderr; +930 } .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 877 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 879 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -878 { -879 char val[MAXBUF]; -880 char t[MAXBUF]; -881 char n[MAXBUF]; -882 strlcpy(t,tag.c_str(),MAXBUF); -883 strlcpy(n,name.c_str(),MAXBUF); -884 int res = ReadConf(cache,t,n,index,val); -885 if (!res) -886 { -887 this->error = CONF_VALUE_NOT_FOUND; -888 return false; -889 } -890 std::string s = val; -891 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); -892 } +880 { +881 char val[MAXBUF]; +882 char t[MAXBUF]; +883 char n[MAXBUF]; +884 strlcpy(t,tag.c_str(),MAXBUF); +885 strlcpy(n,name.c_str(),MAXBUF); +886 int res = ReadConf(cache,t,n,index,val); +887 if (!res) +888 { +889 this->error = CONF_VALUE_NOT_FOUND; +890 return false; +891 } +892 std::string s = val; +893 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); +894 } .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 894 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 896 of file modules.cpp. .PP References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error. .PP .nf -895 { -896 char val[MAXBUF]; -897 char t[MAXBUF]; -898 char n[MAXBUF]; -899 strlcpy(t,tag.c_str(),MAXBUF); -900 strlcpy(n,name.c_str(),MAXBUF); -901 int res = ReadConf(cache,t,n,index,val); -902 if (!res) -903 { -904 this->error = CONF_VALUE_NOT_FOUND; -905 return 0; -906 } -907 for (int i = 0; i < strlen(val); i++) -908 { -909 if (!isdigit(val[i])) -910 { -911 this->error = CONF_NOT_A_NUMBER; -912 return 0; -913 } -914 } -915 if ((needs_unsigned) && (atoi(val)<0)) -916 { -917 this->error = CONF_NOT_UNSIGNED; -918 return 0; -919 } -920 return atoi(val); -921 } +897 { +898 char val[MAXBUF]; +899 char t[MAXBUF]; +900 char n[MAXBUF]; +901 strlcpy(t,tag.c_str(),MAXBUF); +902 strlcpy(n,name.c_str(),MAXBUF); +903 int res = ReadConf(cache,t,n,index,val); +904 if (!res) +905 { +906 this->error = CONF_VALUE_NOT_FOUND; +907 return 0; +908 } +909 for (int i = 0; i < strlen(val); i++) +910 { +911 if (!isdigit(val[i])) +912 { +913 this->error = CONF_NOT_A_NUMBER; +914 return 0; +915 } +916 } +917 if ((needs_unsigned) && (atoi(val)<0)) +918 { +919 this->error = CONF_NOT_UNSIGNED; +920 return 0; +921 } +922 return atoi(val); +923 } .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 861 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 863 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -862 { -863 char val[MAXBUF]; -864 char t[MAXBUF]; -865 char n[MAXBUF]; -866 strlcpy(t,tag.c_str(),MAXBUF); -867 strlcpy(n,name.c_str(),MAXBUF); -868 int res = ReadConf(cache,t,n,index,val); -869 if (!res) -870 { -871 this->error = CONF_VALUE_NOT_FOUND; -872 return ''; -873 } -874 return std::string(val); -875 } +864 { +865 char val[MAXBUF]; +866 char t[MAXBUF]; +867 char n[MAXBUF]; +868 strlcpy(t,tag.c_str(),MAXBUF); +869 strlcpy(n,name.c_str(),MAXBUF); +870 int res = ReadConf(cache,t,n,index,val); +871 if (!res) +872 { +873 this->error = CONF_VALUE_NOT_FOUND; +874 return ''; +875 } +876 return std::string(val); +877 } .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 973 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 975 of file modules.cpp. .PP References readerror. .PP .nf -974 { -975 return this->readerror; -976 } +976 { +977 return this->readerror; +978 } .fi .SH "Member Data Documentation" .PP .SS "std::stringstream* \fBConfigReader::cache\fP\fC [protected]\fP" .PP -The contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed). It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.Definition at line 1080 of file modules.h. +The contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed). It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.Definition at line 1105 of file modules.h. .PP Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader(). .SS "long \fBConfigReader::error\fP\fC [protected]\fP" .PP -Definition at line 1085 of file modules.h. +Definition at line 1110 of file modules.h. .PP Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue(). .SS "std::stringstream* \fBConfigReader::errorlog\fP\fC [protected]\fP" .PP -Definition at line 1081 of file modules.h. +Definition at line 1106 of file modules.h. .PP Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader(). .SS "bool \fBConfigReader::readerror\fP\fC [protected]\fP" .PP -Used to store errors. Definition at line 1084 of file modules.h. +Used to store errors. Definition at line 1109 of file modules.h. .PP Referenced by ConfigReader(), and Verify(). diff --git a/docs/man/man3/ConnectClass.3 b/docs/man/man3/ConnectClass.3 index ed5ed3e81..563c7368c 100644 --- a/docs/man/man3/ConnectClass.3 +++ b/docs/man/man3/ConnectClass.3 @@ -1,4 +1,4 @@ -.TH "ConnectClass" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ConnectClass" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/DNS.3 b/docs/man/man3/DNS.3 index 8c44aa268..8ca9f17b4 100644 --- a/docs/man/man3/DNS.3 +++ b/docs/man/man3/DNS.3 @@ -1,4 +1,4 @@ -.TH "DNS" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "DNS" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -99,16 +99,13 @@ DNS \- The DNS class allows fast nonblocking resolution of hostnames and ip addr .in +1c .ti -1c -.RI "char * \fBresult\fP" -.br -.ti -1c .RI "in_addr * \fBbinip\fP" .br .ti -1c -.RI "int \fBt\fP" +.RI "char * \fBresult\fP" .br .ti -1c -.RI "int \fBi\fP" +.RI "int \fBt\fP" .br .ti -1c .RI "unsigned int \fBfd\fP" @@ -183,16 +180,13 @@ This method will start the reverse lookup of an ip given in dotted decimal forma .PP .SS "in_addr* \fBDNS::binip\fP\fC [private]\fP" .PP -Definition at line 39 of file dns.h. +Definition at line 38 of file dns.h. .SS "unsigned int \fBDNS::fd\fP\fC [private]\fP" .PP Definition at line 42 of file dns.h. -.SS "int \fBDNS::i\fP\fC [private]\fP" -.PP -Definition at line 40 of file dns.h. .SS "char* \fBDNS::result\fP\fC [private]\fP" .PP -Definition at line 38 of file dns.h. +Definition at line 39 of file dns.h. .SS "int \fBDNS::t\fP\fC [private]\fP" .PP Definition at line 40 of file dns.h. diff --git a/docs/man/man3/ELine.3 b/docs/man/man3/ELine.3 index e7d6c5374..dac7540a1 100644 --- a/docs/man/man3/ELine.3 +++ b/docs/man/man3/ELine.3 @@ -1,4 +1,4 @@ -.TH "ELine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ELine" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Event.3 b/docs/man/man3/Event.3 index 7cb7e8109..40a9d4ea8 100644 --- a/docs/man/man3/Event.3 +++ b/docs/man/man3/Event.3 @@ -1,4 +1,4 @@ -.TH "Event" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Event" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -58,7 +58,7 @@ The Event class is a unicast message directed at all modules. When the class is properly instantiated it may be sent to all modules using the \fBSend()\fP method, which will trigger the OnEvent method in all modules passing the object as its parameter. .PP -Definition at line 191 of file modules.h. +Definition at line 194 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Event::Event (char * anydata, \fBModule\fP * src, std::string eventid)" @@ -121,17 +121,17 @@ References FOREACH_MOD. .PP .SS "char* \fBEvent::data\fP\fC [protected]\fP" .PP -This member holds a pointer to arbitary data set by the emitter of the message. Definition at line 196 of file modules.h. +This member holds a pointer to arbitary data set by the emitter of the message. Definition at line 199 of file modules.h. .PP Referenced by GetData(). .SS "std::string \fBEvent::id\fP\fC [protected]\fP" .PP -The event identifier. This is arbitary text which should be used to distinguish one type of event from another. Definition at line 205 of file modules.h. +The event identifier. This is arbitary text which should be used to distinguish one type of event from another. Definition at line 208 of file modules.h. .PP Referenced by GetEventID(). .SS "\fBModule\fP* \fBEvent::source\fP\fC [protected]\fP" .PP -This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply. Definition at line 200 of file modules.h. +This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply. Definition at line 203 of file modules.h. .PP Referenced by GetSource(). diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3 index a95a85bdf..e8ca07eea 100644 --- a/docs/man/man3/ExemptItem.3 +++ b/docs/man/man3/ExemptItem.3 @@ -1,4 +1,4 @@ -.TH "ExemptItem" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ExemptItem" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExtMode.3 b/docs/man/man3/ExtMode.3 index 8df2a5c5f..3c225024c 100644 --- a/docs/man/man3/ExtMode.3 +++ b/docs/man/man3/ExtMode.3 @@ -1,4 +1,4 @@ -.TH "ExtMode" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ExtMode" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Extensible.3 b/docs/man/man3/Extensible.3 index 94ffff5f8..cd2180659 100644 --- a/docs/man/man3/Extensible.3 +++ b/docs/man/man3/Extensible.3 @@ -1,4 +1,4 @@ -.TH "Extensible" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Extensible" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3 index 6bea2ee1e..a69617742 100644 --- a/docs/man/man3/FileReader.3 +++ b/docs/man/man3/FileReader.3 @@ -1,4 +1,4 @@ -.TH "FileReader" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "FileReader" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -57,100 +57,100 @@ Caches a text file into memory and can be used to retrieve lines from it. This class contains methods for read-only manipulation of a text file in memory. Either use the constructor type with one parameter to load a file into memory at construction, or use the LoadFile method to load a file. .PP -Definition at line 1161 of file modules.h. +Definition at line 1186 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "FileReader::FileReader ()" .PP -Default constructor. This method does not load any file into memory, you must use the LoadFile method after constructing the class this way.Definition at line 986 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 988 of file modules.cpp. .PP .nf -987 { -988 } +989 { +990 } .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 979 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 981 of file modules.cpp. .PP References fc, and file_cache. .PP .nf -980 { -981 file_cache c; -982 readfile(c,filename.c_str()); -983 this->fc = c; -984 } +982 { +983 file_cache c; +984 readfile(c,filename.c_str()); +985 this->fc = c; +986 } .fi .SS "FileReader::~\fBFileReader\fP ()" .PP -Default destructor. This deletes the memory allocated to the file.Definition at line 998 of file modules.cpp. +Default destructor. This deletes the memory allocated to the file.Definition at line 1000 of file modules.cpp. .PP .nf -999 { -1000 } +1001 { +1002 } .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 1002 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 1004 of file modules.cpp. .PP References fc. .PP .nf -1003 { -1004 if (fc.size() == 0) -1005 { -1006 return(false); -1007 } -1008 else -1009 { -1010 return(true); -1011 } -1012 } +1005 { +1006 if (fc.size() == 0) +1007 { +1008 return(false); +1009 } +1010 else +1011 { +1012 return(true); +1013 } +1014 } .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 1021 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 1023 of file modules.cpp. .PP References fc. .PP .nf -1022 { -1023 return fc.size(); -1024 } +1024 { +1025 return fc.size(); +1026 } .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 1014 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 1016 of file modules.cpp. .PP References fc. .PP .nf -1015 { -1016 if ((x<0) || (x>fc.size())) -1017 return ''; -1018 return fc[x]; -1019 } +1017 { +1018 if ((x<0) || (x>fc.size())) +1019 return ''; +1020 return fc[x]; +1021 } .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 990 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 992 of file modules.cpp. .PP References fc, and file_cache. .PP .nf -991 { -992 file_cache c; -993 readfile(c,filename.c_str()); -994 this->fc = c; -995 } +993 { +994 file_cache c; +995 readfile(c,filename.c_str()); +996 this->fc = c; +997 } .fi .SH "Member Data Documentation" .PP .SS "\fBfile_cache\fP \fBFileReader::fc\fP\fC [private]\fP" .PP -Definition at line 1163 of file modules.h. +Definition at line 1188 of file modules.h. .PP Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile(). diff --git a/docs/man/man3/GLine.3 b/docs/man/man3/GLine.3 index 0c263effd..118afd97b 100644 --- a/docs/man/man3/GLine.3 +++ b/docs/man/man3/GLine.3 @@ -1,4 +1,4 @@ -.TH "GLine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "GLine" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3 index 1a74b43f1..cbb5e7b2d 100644 --- a/docs/man/man3/HostItem.3 +++ b/docs/man/man3/HostItem.3 @@ -1,4 +1,4 @@ -.TH "HostItem" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "HostItem" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/InAddr_HashComp.3 b/docs/man/man3/InAddr_HashComp.3 index a0b6759c0..ab6cd4563 100644 --- a/docs/man/man3/InAddr_HashComp.3 +++ b/docs/man/man3/InAddr_HashComp.3 @@ -1,4 +1,4 @@ -.TH "InAddr_HashComp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "InAddr_HashComp" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3 index 187472a3c..9ce27dd83 100644 --- a/docs/man/man3/InviteItem.3 +++ b/docs/man/man3/InviteItem.3 @@ -1,4 +1,4 @@ -.TH "InviteItem" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "InviteItem" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Invited.3 b/docs/man/man3/Invited.3 index be48e1d72..b0268a92e 100644 --- a/docs/man/man3/Invited.3 +++ b/docs/man/man3/Invited.3 @@ -1,4 +1,4 @@ -.TH "Invited" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Invited" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/KLine.3 b/docs/man/man3/KLine.3 index 42eb9f1dd..211bfefb1 100644 --- a/docs/man/man3/KLine.3 +++ b/docs/man/man3/KLine.3 @@ -1,4 +1,4 @@ -.TH "KLine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "KLine" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3 index 6e62ab564..41ce3695a 100644 --- a/docs/man/man3/ModeParameter.3 +++ b/docs/man/man3/ModeParameter.3 @@ -1,4 +1,4 @@ -.TH "ModeParameter" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModeParameter" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3 index 9acfc10ce..486b10e2f 100644 --- a/docs/man/man3/Module.3 +++ b/docs/man/man3/Module.3 @@ -1,4 +1,4 @@ -.TH "Module" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Module" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -203,6 +203,18 @@ Inherits \fBclassbase\fP. .RI "virtual char * \fBOnRequest\fP (\fBRequest\fP *request)" .br .RI "\fICalled whenever a \fBRequest\fP class is sent to your module by another module. \fP" +.ti -1c +.RI "virtual int \fBOnOperCompare\fP (std::string password, std::string input)" +.br +.RI "\fICalled whenever an oper password is to be compared to what a user has input. \fP" +.ti -1c +.RI "virtual void \fBOnGlobalOper\fP (\fBuserrec\fP *user)" +.br +.RI "\fICalled whenever a user is given usermode +o, anywhere on the network. \fP" +.ti -1c +.RI "virtual void \fBOnGlobalConnect\fP (\fBuserrec\fP *user)" +.br +.RI "\fICalled whenever a user connects, anywhere on the network. \fP" .in -1c .SH "Detailed Description" .PP @@ -210,7 +222,7 @@ Base class for all InspIRCd modules This class is the base class for InspIRCd mo All modules must inherit from this class, its methods will be called when irc server events occur. class inherited from module must be instantiated by the \fBModuleFactory\fP class (see relevent section) for the plugin to be initialised. .PP -Definition at line 233 of file modules.h. +Definition at line 236 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Module::Module ()" @@ -357,6 +369,20 @@ Called whenever an extended mode is to be processed. The type parameter is MT_SE .nf 373 { 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 410 of file modules.cpp. +.PP +.nf +410 { }; +.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 409 of file modules.cpp. +.PP +.nf +409 { }; +.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: @@ -401,6 +427,13 @@ Called whenever a user opers locally. The userrec will contain the oper mode 'o' .nf 375 { }; .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 408 of file modules.cpp. +.PP +.nf +408 { 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 369 of file modules.cpp. diff --git a/docs/man/man3/ModuleFactory.3 b/docs/man/man3/ModuleFactory.3 index 44c837e10..5e8420840 100644 --- a/docs/man/man3/ModuleFactory.3 +++ b/docs/man/man3/ModuleFactory.3 @@ -1,4 +1,4 @@ -.TH "ModuleFactory" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModuleFactory" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -32,22 +32,22 @@ Instantiates classes inherited from \fBModule\fP This class creates a class inhe This is to allow for modules to create many different variants of \fBModule\fP, dependent on architecture, configuration, etc. In most cases, the simple class shown in the example module m_foobar.so will suffice for most modules. .PP -Definition at line 1216 of file modules.h. +Definition at line 1241 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ModuleFactory::ModuleFactory ()\fC [inline]\fP" .PP -Definition at line 1219 of file modules.h. +Definition at line 1244 of file modules.h. .PP .nf -1219 { } +1244 { } .fi .SS "virtual ModuleFactory::~\fBModuleFactory\fP ()\fC [inline, virtual]\fP" .PP -Definition at line 1220 of file modules.h. +Definition at line 1245 of file modules.h. .PP .nf -1220 { } +1245 { } .fi .SH "Member Function Documentation" .PP diff --git a/docs/man/man3/ModuleMessage.3 b/docs/man/man3/ModuleMessage.3 index faec8396b..3b04d034a 100644 --- a/docs/man/man3/ModuleMessage.3 +++ b/docs/man/man3/ModuleMessage.3 @@ -1,4 +1,4 @@ -.TH "ModuleMessage" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModuleMessage" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -24,7 +24,7 @@ Inherited by \fBEvent\fP, and \fBRequest\fP. .in -1c .SH "Detailed Description" .PP -The ModuleMessage class is the base class of \fBRequest\fP and \fBEvent\fP This class is used to represent a basic data structure which is passed between modules for safe inter-module communications. Definition at line 138 of file modules.h. +The ModuleMessage class is the base class of \fBRequest\fP and \fBEvent\fP This class is used to represent a basic data structure which is passed between modules for safe inter-module communications. Definition at line 141 of file modules.h. .SH "Member Function Documentation" .PP .SS "virtual char* ModuleMessage::Send ()\fC [pure virtual]\fP" diff --git a/docs/man/man3/QLine.3 b/docs/man/man3/QLine.3 index 54c689494..a8a1adf0b 100644 --- a/docs/man/man3/QLine.3 +++ b/docs/man/man3/QLine.3 @@ -1,4 +1,4 @@ -.TH "QLine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "QLine" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Request.3 b/docs/man/man3/Request.3 index 523b76247..28a518bc5 100644 --- a/docs/man/man3/Request.3 +++ b/docs/man/man3/Request.3 @@ -1,4 +1,4 @@ -.TH "Request" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Request" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -58,7 +58,7 @@ The Request class is a unicast message directed at a given module. When this class is properly instantiated it may be sent to a module using the \fBSend()\fP method, which will call the given module's OnRequest method with this class as its parameter. .PP -Definition at line 151 of file modules.h. +Definition at line 154 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Request::Request (char * anydata, \fBModule\fP * src, \fBModule\fP * dst)" @@ -127,17 +127,17 @@ References dest, and Module::OnRequest(). .PP .SS "char* \fBRequest::data\fP\fC [protected]\fP" .PP -This member holds a pointer to arbitary data set by the emitter of the message. Definition at line 156 of file modules.h. +This member holds a pointer to arbitary data set by the emitter of the message. Definition at line 159 of file modules.h. .PP Referenced by GetData(). .SS "\fBModule\fP* \fBRequest::dest\fP\fC [protected]\fP" .PP -The single destination of the Request. Definition at line 163 of file modules.h. +The single destination of the Request. Definition at line 166 of file modules.h. .PP Referenced by GetDest(), and Send(). .SS "\fBModule\fP* \fBRequest::source\fP\fC [protected]\fP" .PP -This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply. Definition at line 160 of file modules.h. +This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply. Definition at line 163 of file modules.h. .PP Referenced by GetSource(). diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3 index 3749d4cd3..47253deec 100644 --- a/docs/man/man3/Server.3 +++ b/docs/man/man3/Server.3 @@ -1,4 +1,4 @@ -.TH "Server" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Server" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -254,24 +254,24 @@ Allows server output and query functions This class contains methods which allow All modules should instantiate at least one copy of this class, and use its member functions to perform their tasks. .PP -Definition at line 627 of file modules.h. +Definition at line 652 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Server::Server ()" .PP -Default constructor. Creates a Server object.Definition at line 414 of file modules.cpp. +Default constructor. Creates a Server object.Definition at line 416 of file modules.cpp. .PP .nf -415 { -416 } +417 { +418 } .fi .SS "Server::~\fBServer\fP ()\fC [virtual]\fP" .PP -Default destructor. Destroys a Server object.Definition at line 418 of file modules.cpp. +Default destructor. Destroys a Server object.Definition at line 420 of file modules.cpp. .PP .nf -419 { -420 } +421 { +422 } .fi .SH "Member Function Documentation" .PP @@ -281,25 +281,25 @@ Adds a command to the command table. This allows modules to add extra commands i .PP typedef void (handlerfunc) (char**, int, userrec*); ... void \fBhandle_kill(char **parameters, int pcnt, userrec *user)\fP .PP -When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'. The source parameter is used for resource tracking, and should contain the name of your module (with file extension) e.g. 'm_blarp.so'. If you place the wrong identifier here, you can cause crashes if your module is unloaded.Definition at line 495 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 497 of file modules.cpp. .PP References createcommand(). .PP .nf -496 { -497 createcommand(cmd,f,flags,minparams,source); -498 } +498 { +499 createcommand(cmd,f,flags,minparams,source); +500 } .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 713 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 715 of file modules.cpp. .PP References add_eline(), and duration(). .PP .nf -714 { -715 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -716 } +716 { +717 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +718 } .fi .SS "bool Server::AddExtendedListMode (char modechar)\fC [virtual]\fP" .PP @@ -313,528 +313,528 @@ Adds an extended mode letter which is parsed by a module and handled in a list f .PP (4) The mode and its parameter are NOT stored in the channels modes structure .PP -It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing.Definition at line 640 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 642 of file modules.cpp. .PP References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL. .PP .nf -641 { -642 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -643 if (res) -644 ModeMakeList(modechar); -645 return res; -646 } +643 { +644 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +645 if (res) +646 ModeMakeList(modechar); +647 return res; +648 } .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 620 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 622 of file modules.cpp. .PP References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. .PP .nf -621 { -622 if (type == MT_SERVER) -623 { -624 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); -625 return false; -626 } -627 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -628 { -629 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); -630 return false; -631 } -632 if ((params_when_on>1) || (params_when_off>1)) -633 { -634 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); -635 return false; -636 } -637 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -638 } +623 { +624 if (type == MT_SERVER) +625 { +626 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); +627 return false; +628 } +629 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +630 { +631 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); +632 return false; +633 } +634 if ((params_when_on>1) || (params_when_off>1)) +635 { +636 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); +637 return false; +638 } +639 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +640 } .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 693 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 695 of file modules.cpp. .PP References add_gline(), and duration(). .PP .nf -694 { -695 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -696 } +696 { +697 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +698 } .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 708 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 710 of file modules.cpp. .PP References add_kline(), and duration(). .PP .nf -709 { -710 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -711 } +711 { +712 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +713 } .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 698 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 700 of file modules.cpp. .PP References add_qline(), and duration(). .PP .nf -699 { -700 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -701 } +701 { +702 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +703 } .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 703 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 705 of file modules.cpp. .PP References add_zline(), and duration(). .PP .nf -704 { -705 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -706 } +706 { +707 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +708 } .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 743 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 745 of file modules.cpp. .PP References duration(). .PP .nf -744 { -745 return duration(delta.c_str()); -746 } +746 { +747 return duration(delta.c_str()); +748 } .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 485 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 487 of file modules.cpp. .PP .nf -486 { -487 call_handler(commandname.c_str(),parameters,pcnt,user); -488 } +488 { +489 call_handler(commandname.c_str(),parameters,pcnt,user); +490 } .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 573 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 575 of file modules.cpp. .PP References ChangeName(). .PP .nf -574 { -575 ChangeName(user,gecos.c_str()); -576 } +576 { +577 ChangeName(user,gecos.c_str()); +578 } .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 568 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 570 of file modules.cpp. .PP References ChangeDisplayedHost(). .PP .nf -569 { -570 ChangeDisplayedHost(user,host.c_str()); -571 } +571 { +572 ChangeDisplayedHost(user,host.c_str()); +573 } .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 469 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 471 of file modules.cpp. .PP .nf -470 { -471 force_nickchange(user,nickname.c_str()); -472 } +472 { +473 force_nickchange(user,nickname.c_str()); +474 } .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 593 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 595 of file modules.cpp. .PP References cmode(). .PP .nf -594 { -595 return cmode(User,Chan); -596 } +596 { +597 return cmode(User,Chan); +598 } .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 546 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 548 of file modules.cpp. .PP References common_channels(). .PP .nf -547 { -548 return (common_channels(u1,u2) != 0); -549 } +549 { +550 return (common_channels(u1,u2) != 0); +551 } .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 648 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 650 of file modules.cpp. .PP .nf -649 { -650 return usercount(c); -651 } +651 { +652 return usercount(c); +653 } .fi .SS "bool Server::DelELine (std::string hostmask)\fC [virtual]\fP" .PP -Deletes a local E-Line. Definition at line 738 of file modules.cpp. +Deletes a local E-Line. Definition at line 740 of file modules.cpp. .PP References del_eline(). .PP .nf -739 { -740 del_eline(hostmask.c_str()); -741 } +741 { +742 del_eline(hostmask.c_str()); +743 } .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 718 of file modules.cpp. +Deletes a G-Line from all servers on the mesh. Definition at line 720 of file modules.cpp. .PP References del_gline(). .PP .nf -719 { -720 del_gline(hostmask.c_str()); -721 } +721 { +722 del_gline(hostmask.c_str()); +723 } .fi .SS "bool Server::DelKLine (std::string hostmask)\fC [virtual]\fP" .PP -Deletes a local K-Line. Definition at line 733 of file modules.cpp. +Deletes a local K-Line. Definition at line 735 of file modules.cpp. .PP References del_kline(). .PP .nf -734 { -735 del_kline(hostmask.c_str()); -736 } +736 { +737 del_kline(hostmask.c_str()); +738 } .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 723 of file modules.cpp. +Deletes a Q-Line from all servers on the mesh. Definition at line 725 of file modules.cpp. .PP References del_qline(). .PP .nf -724 { -725 del_qline(nickname.c_str()); -726 } +726 { +727 del_qline(nickname.c_str()); +728 } .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 728 of file modules.cpp. +Deletes a Z-Line from all servers on the mesh. Definition at line 730 of file modules.cpp. .PP References del_zline(). .PP .nf -729 { -730 del_zline(ipaddr.c_str()); -731 } +731 { +732 del_zline(ipaddr.c_str()); +733 } .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 588 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 590 of file modules.cpp. .PP .nf -589 { -590 return FindChan(channel.c_str()); -591 } +591 { +592 return FindChan(channel.c_str()); +593 } .fi .SS "\fBModule\fP * Server::FindModule (std::string name)\fC [virtual]\fP" .PP -This function finds a module by name. You must provide the filename of the module. If the module cannot be found (is not loaded) the function will return NULL.Definition at line 821 of file modules.cpp. +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 823 of file modules.cpp. .PP References MODCOUNT, module_names, and modules. .PP .nf -822 { -823 for (int i = 0; i <= MODCOUNT; i++) -824 { -825 if (module_names[i] == name) -826 { -827 return modules[i]; -828 } -829 } -830 return NULL; -831 } +824 { +825 for (int i = 0; i <= MODCOUNT; i++) +826 { +827 if (module_names[i] == name) +828 { +829 return modules[i]; +830 } +831 } +832 return NULL; +833 } .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 583 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 585 of file modules.cpp. .PP .nf -584 { -585 return Find(nick); -586 } +586 { +587 return Find(nick); +588 } .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 613 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 615 of file modules.cpp. .PP .nf -614 { -615 return Admin(getadminname(),getadminemail(),getadminnick()); -616 } +616 { +617 return Admin(getadminname(),getadminemail(),getadminnick()); +618 } .fi .SS "std::string Server::GetNetworkName ()\fC [virtual]\fP" .PP -Returns the network name, global to all linked servers. Definition at line 608 of file modules.cpp. +Returns the network name, global to all linked servers. Definition at line 610 of file modules.cpp. .PP .nf -609 { -610 return getnetworkname(); -611 } +611 { +612 return getnetworkname(); +613 } .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 603 of file modules.cpp. +Returns the server name of the server where the module is loaded. Definition at line 605 of file modules.cpp. .PP .nf -604 { -605 return getservername(); -606 } +606 { +607 return getservername(); +608 } .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 450 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 452 of file modules.cpp. .PP References chanuserlist, clientlist, has_channel(), and isnick(). .PP .nf -451 { -452 chanuserlist userl; -453 userl.clear(); -454 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) -455 { -456 if (i->second) -457 { -458 if (has_channel(i->second,chan)) -459 { -460 if (isnick(i->second->nick)) -461 { -462 userl.push_back(i->second); -463 } -464 } -465 } -466 } -467 return userl; -468 } +453 { +454 chanuserlist userl; +455 userl.clear(); +456 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) +457 { +458 if (i->second) +459 { +460 if (has_channel(i->second,chan)) +461 { +462 if (isnick(i->second->nick)) +463 { +464 userl.push_back(i->second); +465 } +466 } +467 } +468 } +469 return userl; +470 } .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 578 of file modules.cpp. +Returns true if a nick is valid. Nicks for unregistered connections will return false.Definition at line 580 of file modules.cpp. .PP References isnick(). .PP .nf -579 { -580 return (isnick(nick.c_str()) != 0); -581 } +581 { +582 return (isnick(nick.c_str()) != 0); +583 } .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 598 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 600 of file modules.cpp. .PP References has_channel(). .PP .nf -599 { -600 return has_channel(User,Chan); -601 } +601 { +602 return has_channel(User,Chan); +603 } .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 480 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 482 of file modules.cpp. .PP References is_uline(). .PP .nf -481 { -482 return is_uline(server.c_str()); -483 } +483 { +484 return is_uline(server.c_str()); +485 } .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 748 of file modules.cpp. +Returns true if a nick!ident string is correctly formatted, false if otherwise. Definition at line 750 of file modules.cpp. .PP .nf -749 { -750 const char* dest = mask.c_str(); -751 if (strchr(dest,'!')==0) -752 return false; -753 if (strchr(dest,'@')==0) +751 { +752 const char* dest = mask.c_str(); +753 if (strchr(dest,'!')==0) 754 return false; -755 for (int i = 0; i < strlen(dest); i++) -756 if (dest[i] < 32) -757 return false; -758 for (int i = 0; i < strlen(dest); i++) -759 if (dest[i] > 126) -760 return false; -761 int c = 0; -762 for (int i = 0; i < strlen(dest); i++) -763 if (dest[i] == '!') -764 c++; -765 if (c>1) -766 return false; -767 c = 0; -768 for (int i = 0; i < strlen(dest); i++) -769 if (dest[i] == '@') -770 c++; -771 if (c>1) -772 return false; -773 -774 return true; -775 } +755 if (strchr(dest,'@')==0) +756 return false; +757 for (int i = 0; i < strlen(dest); i++) +758 if (dest[i] < 32) +759 return false; +760 for (int i = 0; i < strlen(dest); i++) +761 if (dest[i] > 126) +762 return false; +763 int c = 0; +764 for (int i = 0; i < strlen(dest); i++) +765 if (dest[i] == '!') +766 c++; +767 if (c>1) +768 return false; +769 c = 0; +770 for (int i = 0; i < strlen(dest); i++) +771 if (dest[i] == '@') +772 c++; +773 if (c>1) +774 return false; +775 +776 return true; +777 } .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 440 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 442 of file modules.cpp. .PP .nf -441 { -442 return add_channel(user,cname.c_str(),key.c_str(),true); -443 } +443 { +444 return add_channel(user,cname.c_str(),key.c_str(),true); +445 } .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 490 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 492 of file modules.cpp. .PP .nf -491 { -492 log(level,'%s',s.c_str()); -493 } +493 { +494 log(level,'%s',s.c_str()); +495 } .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 427 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 429 of file modules.cpp. .PP .nf -428 { -429 char literal[MAXBUF],pattern[MAXBUF]; -430 strlcpy(literal,sliteral.c_str(),MAXBUF); -431 strlcpy(pattern,spattern.c_str(),MAXBUF); -432 return match(literal,pattern); -433 } +430 { +431 char literal[MAXBUF],pattern[MAXBUF]; +432 strlcpy(literal,sliteral.c_str(),MAXBUF); +433 strlcpy(pattern,spattern.c_str(),MAXBUF); +434 return match(literal,pattern); +435 } .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 803 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 805 of file modules.cpp. .PP .nf -804 { -805 if (c) -806 { -807 return ChanAnyOnThisServer(c,(char*)servername.c_str()); -808 } -809 else return false; -810 } +806 { +807 if (c) +808 { +809 return ChanAnyOnThisServer(c,(char*)servername.c_str()); +810 } +811 else return false; +812 } .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 812 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 814 of file modules.cpp. .PP .nf -813 { -814 if (u) -815 { -816 return CommonOnThisServer(u,(char*)servername.c_str()); -817 } -818 else return false; -819 } +815 { +816 if (u) +817 { +818 return CommonOnThisServer(u,(char*)servername.c_str()); +819 } +820 else return false; +821 } .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 777 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 779 of file modules.cpp. .PP .nf -778 { -779 NetSendToAll((char*)text.c_str()); -780 } +780 { +781 NetSendToAll((char*)text.c_str()); +782 } .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 788 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 790 of file modules.cpp. .PP .nf -789 { -790 NetSendToAllAlive((char*)text.c_str()); -791 } +791 { +792 NetSendToAllAlive((char*)text.c_str()); +793 } .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 798 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 800 of file modules.cpp. .PP .nf -799 { -800 NetSendToAllExcept(target.c_str(),(char*)text.c_str()); -801 } +801 { +802 NetSendToAllExcept(target.c_str(),(char*)text.c_str()); +803 } .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 782 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 784 of file modules.cpp. .PP .nf -783 { -784 if (user) -785 NetSendToCommon(user,(char*)text.c_str()); -786 } +785 { +786 if (user) +787 NetSendToCommon(user,(char*)text.c_str()); +788 } .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 793 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 795 of file modules.cpp. .PP .nf -794 { -795 NetSendToOne((char*)destination.c_str(),(char*)text.c_str()); -796 } +796 { +797 NetSendToOne((char*)destination.c_str(),(char*)text.c_str()); +798 } .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 445 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 447 of file modules.cpp. .PP .nf -446 { -447 return del_channel(user,cname.c_str(),reason.c_str(),false); -448 } +448 { +449 return del_channel(user,cname.c_str(),reason.c_str(),false); +450 } .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 663 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 665 of file modules.cpp. .PP References ucrec::channel, userrec::chans, connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. .PP .nf -664 { -665 zombie->fd = alive->fd; -666 alive->fd = FD_MAGIC_NUMBER; -667 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); -668 kill_link(alive,message.c_str()); -669 for (int i = 0; i != MAXCHANS; i++) -670 { -671 if (zombie->chans[i].channel != NULL) -672 { -673 if (zombie->chans[i].channel->name) -674 { -675 chanrec* Ptr = zombie->chans[i].channel; -676 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); -677 if (Ptr->topicset) -678 { -679 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); -680 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -681 } -682 userlist(zombie,Ptr); -683 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); -684 //WriteServ(zombie->fd,'324 %s %s +%s',zombie->nick, Ptr->name,chanmodes(Ptr)); -685 //WriteServ(zombie->fd,'329 %s %s %d', zombie->nick, Ptr->name, Ptr->created); -686 -687 } -688 } -689 } -690 -691 } +666 { +667 zombie->fd = alive->fd; +668 alive->fd = FD_MAGIC_NUMBER; +669 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); +670 kill_link(alive,message.c_str()); +671 for (int i = 0; i != MAXCHANS; i++) +672 { +673 if (zombie->chans[i].channel != NULL) +674 { +675 if (zombie->chans[i].channel->name) +676 { +677 chanrec* Ptr = zombie->chans[i].channel; +678 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); +679 if (Ptr->topicset) +680 { +681 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); +682 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +683 } +684 userlist(zombie,Ptr); +685 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); +686 //WriteServ(zombie->fd,'324 %s %s +%s',zombie->nick, Ptr->name,chanmodes(Ptr)); +687 //WriteServ(zombie->fd,'329 %s %s %d', zombie->nick, Ptr->name, Ptr->created); +688 +689 } +690 } +691 } +692 +693 } .fi .SS "void Server::QuitUser (\fBuserrec\fP * user, std::string reason)\fC [virtual]\fP" .PP @@ -842,65 +842,65 @@ Forces a user to quit with the specified reason. To the user, it will appear as .PP WARNING! .PP -Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler.Definition at line 474 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 476 of file modules.cpp. .PP References userrec::nick, and send_network_quit(). .PP .nf -475 { -476 send_network_quit(user->nick,reason.c_str()); -477 kill_link(user,reason.c_str()); -478 } +477 { +478 send_network_quit(user->nick,reason.c_str()); +479 kill_link(user,reason.c_str()); +480 } .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 505 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 507 of file modules.cpp. .PP .nf -506 { -507 Write(Socket,'%s',s.c_str()); -508 } +508 { +509 Write(Socket,'%s',s.c_str()); +510 } .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 534 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 536 of file modules.cpp. .PP .nf -535 { -536 if (IncludeSender) -537 { -538 WriteChannel(Channel,User,'%s',s.c_str()); -539 } -540 else -541 { -542 ChanExceptSender(Channel,User,'%s',s.c_str()); -543 } -544 } +537 { +538 if (IncludeSender) +539 { +540 WriteChannel(Channel,User,'%s',s.c_str()); +541 } +542 else +543 { +544 ChanExceptSender(Channel,User,'%s',s.c_str()); +545 } +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 551 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 553 of file modules.cpp. .PP .nf -552 { -553 if (IncludeSender) -554 { -555 WriteCommon(User,'%s',text.c_str()); -556 } -557 else -558 { -559 WriteCommonExcept(User,'%s',text.c_str()); -560 } -561 } +554 { +555 if (IncludeSender) +556 { +557 WriteCommon(User,'%s',text.c_str()); +558 } +559 else +560 { +561 WriteCommonExcept(User,'%s',text.c_str()); +562 } +563 } .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 515 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 517 of file modules.cpp. .PP .nf -516 { -517 WriteFrom(Socket,User,'%s',s.c_str()); -518 } +518 { +519 WriteFrom(Socket,User,'%s',s.c_str()); +520 } .fi .SS "void Server::SendMode (char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" .PP @@ -918,32 +918,32 @@ modes[2] = user->nick; .PP Srv->SendMode(modes,3,user); .PP -The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state!Definition at line 500 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 502 of file modules.cpp. .PP References server_mode(). .PP .nf -501 { -502 server_mode(parameters,pcnt,user); -503 } +503 { +504 server_mode(parameters,pcnt,user); +505 } .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 422 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 424 of file modules.cpp. .PP .nf -423 { -424 WriteOpers('%s',s.c_str()); -425 } +425 { +426 WriteOpers('%s',s.c_str()); +427 } .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 510 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 512 of file modules.cpp. .PP .nf -511 { -512 WriteServ(Socket,'%s',s.c_str()); -513 } +513 { +514 WriteServ(Socket,'%s',s.c_str()); +515 } .fi .SS "void Server::SendTo (\fBuserrec\fP * Source, \fBuserrec\fP * Dest, std::string s)\fC [virtual]\fP" .PP @@ -955,23 +955,23 @@ The format will become: .PP :localserver TEXT .PP -Which is useful for numerics and server notices to single users, etc.Definition at line 520 of file modules.cpp. +Which is useful for numerics and server notices to single users, etc.Definition at line 522 of file modules.cpp. .PP References connection::fd. .PP .nf -521 { -522 if (!Source) -523 { -524 // if source is NULL, then the message originates from the local server -525 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); -526 } -527 else -528 { -529 // otherwise it comes from the user specified -530 WriteTo(Source,Dest,'%s',s.c_str()); -531 } -532 } +523 { +524 if (!Source) +525 { +526 // if source is NULL, then the message originates from the local server +527 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); +528 } +529 else +530 { +531 // otherwise it comes from the user specified +532 WriteTo(Source,Dest,'%s',s.c_str()); +533 } +534 } .fi .SS "void Server::SendToModeMask (std::string modes, int flags, std::string text)\fC [virtual]\fP" .PP @@ -979,36 +979,36 @@ Sends to all users matching a mode mask You must specify one or more usermodes a .PP Serv->SendToModeMask('xi', WM_OR, 'm00'); .PP -Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message.Definition at line 435 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 437 of file modules.cpp. .PP .nf -436 { -437 WriteMode(modes.c_str(),flags,'%s',text.c_str()); -438 } +438 { +439 WriteMode(modes.c_str(),flags,'%s',text.c_str()); +440 } .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 563 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 565 of file modules.cpp. .PP .nf -564 { -565 WriteWallOps(User,false,'%s',text.c_str()); -566 } +566 { +567 WriteWallOps(User,false,'%s',text.c_str()); +568 } .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 654 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 656 of file modules.cpp. .PP References connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. .PP .nf -655 { -656 unsigned int old_fd = user->fd; -657 user->fd = FD_MAGIC_NUMBER; -658 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); -659 close(old_fd); -660 shutdown (old_fd,2); -661 } +657 { +658 unsigned int old_fd = user->fd; +659 user->fd = FD_MAGIC_NUMBER; +660 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); +661 close(old_fd); +662 shutdown (old_fd,2); +663 } .fi diff --git a/docs/man/man3/StrHashComp.3 b/docs/man/man3/StrHashComp.3 index 1c6c04405..bcdf74124 100644 --- a/docs/man/man3/StrHashComp.3 +++ b/docs/man/man3/StrHashComp.3 @@ -1,4 +1,4 @@ -.TH "StrHashComp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "StrHashComp" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3 index 245c2b184..2c0ed2ead 100644 --- a/docs/man/man3/Version.3 +++ b/docs/man/man3/Version.3 @@ -1,4 +1,4 @@ -.TH "Version" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Version" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/XLine.3 b/docs/man/man3/XLine.3 index cb8a54538..caad829bc 100644 --- a/docs/man/man3/XLine.3 +++ b/docs/man/man3/XLine.3 @@ -1,4 +1,4 @@ -.TH "XLine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "XLine" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ZLine.3 b/docs/man/man3/ZLine.3 index 3ce871a94..e350adf0e 100644 --- a/docs/man/man3/ZLine.3 +++ b/docs/man/man3/ZLine.3 @@ -1,4 +1,4 @@ -.TH "ZLine" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ZLine" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/base.h.3 b/docs/man/man3/base.h.3 index 5d513596e..bceb6d795 100644 --- a/docs/man/man3/base.h.3 +++ b/docs/man/man3/base.h.3 @@ -1,4 +1,4 @@ -.TH "base.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "base.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/channels.cpp.3 b/docs/man/man3/channels.cpp.3 index cba651bbc..c1cbe6acb 100644 --- a/docs/man/man3/channels.cpp.3 +++ b/docs/man/man3/channels.cpp.3 @@ -1,4 +1,4 @@ -.TH "channels.cpp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "channels.cpp" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -271,7 +271,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 1030 of file modules.cpp. +Definition at line 1032 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 028883c6d..5d6c7051e 100644 --- a/docs/man/man3/channels.h.3 +++ b/docs/man/man3/channels.h.3 @@ -1,4 +1,4 @@ -.TH "channels.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "channels.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -88,19 +88,19 @@ channels.h \- .PP .SS "#define UCMODE_FOUNDER 16" .PP -Definition at line 195 of file channels.h. +Definition at line 250 of file channels.h. .SS "#define UCMODE_HOP 4" .PP -Definition at line 193 of file channels.h. +Definition at line 248 of file channels.h. .SS "#define UCMODE_OP 1" .PP -Definition at line 191 of file channels.h. +Definition at line 246 of file channels.h. .SS "#define UCMODE_PROTECT 8" .PP -Definition at line 194 of file channels.h. +Definition at line 249 of file channels.h. .SS "#define UCMODE_VOICE 2" .PP -Definition at line 192 of file channels.h. +Definition at line 247 of file channels.h. .SH "Typedef Documentation" .PP .SS "typedef std::vector<\fBBanItem\fP> \fBBanList\fP" diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3 index 5c9d0d9c4..80b5db18d 100644 --- a/docs/man/man3/chanrec.3 +++ b/docs/man/man3/chanrec.3 @@ -1,4 +1,4 @@ -.TH "chanrec" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "chanrec" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -32,6 +32,30 @@ 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" +.ti -1c +.RI "void \fBAddUser\fP (char *castuser)" +.br +.RI "\fIAdd 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. \fP" +.ti -1c +.RI "void \fBDelUser\fP (char *castuser)" +.br +.RI "\fIDelete 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. \fP" +.ti -1c +.RI "std::vector< char * > * \fBGetUsers\fP ()" +.br +.RI "\fIObrain the internal reference list The internal reference list contains a list of userrec* cast to char*. \fP" +.ti -1c .RI "\fBchanrec\fP ()" .br .RI "\fICreates a channel record and initialises it with default values. \fP" @@ -51,6 +75,14 @@ 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" +.ti -1c .RI "char \fBtopic\fP [MAXBUF]" .br .RI "\fIChannel topic. \fP" @@ -116,7 +148,7 @@ Definition at line 94 of file channels.h. .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, inviteonly, key, limit, moderated, name, noexternal, secret, setby, topic, topiclock, and topicset. +References c_private, created, custom_modes, internal_userlist, inviteonly, key, limit, moderated, name, noexternal, secret, setby, topic, topiclock, topicset, and users. .PP .nf 114 { @@ -125,134 +157,214 @@ References c_private, created, custom_modes, inviteonly, key, limit, moderated, 117 strcpy(topic,''); 118 strcpy(setby,''); 119 strcpy(key,''); -120 created = topicset = limit = 0; +120 created = topicset = limit = users = 0; 121 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; -122 } +122 internal_userlist.clear(); +123 } .fi .SS "virtual chanrec::~\fBchanrec\fP ()\fC [inline, virtual]\fP" .PP -Definition at line 185 of file channels.h. +Definition at line 240 of file channels.h. .PP .nf -185 { /* stub */ } +240 { /* 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 220 of file channels.cpp. +.PP +References DEBUG, and internal_userlist. +.PP +.nf +221 { +222 internal_userlist.push_back(castuser); +223 log(DEBUG,'Added casted user to channel's internal list'); +224 } +.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 208 of file channels.cpp. +.PP +References DEBUG, name, and users. +.PP +.nf +209 { +210 if (this->users > 0) +211 this->users--; +212 log(DEBUG,'Decremented channel user count for %s to %lu',name,(unsigned long)users); +213 } +.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 226 of file channels.cpp. +.PP +References DEBUG, internal_userlist, and name. +.PP +.nf +227 { +228 for (std::vector::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) +229 { +230 if (*a == castuser) +231 { +232 log(DEBUG,'Removed casted user from channel's internal list'); +233 internal_userlist.erase(a); +234 return; +235 } +236 } +237 log(DEBUG,'BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!',name); +238 } +.fi .SS "std::string chanrec::GetModeParameter (char mode)" .PP -Returns the parameter for a custom mode on a channel. For example if '+L #foo' is set, and you pass this method 'L', it will return '#foo'. If the mode is not set on the channel, or the mode has no parameters associated with it, it will return an empty string.Definition at line 186 of file channels.cpp. +Returns the parameter for a custom mode on a channel. For example if '+L #foo' is set, and you pass this method 'L', it will return '#foo'. If the mode is not set on the channel, or the mode has no parameters associated with it, it will return an empty string.Definition at line 187 of file channels.cpp. .PP References custom_mode_params. .PP .nf -187 { -188 if (custom_mode_params.size()) -189 { -190 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -191 { -192 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -193 { -194 return std::string(i->parameter); -195 } -196 } -197 } -198 return std::string(''); -199 } +188 { +189 if (custom_mode_params.size()) +190 { +191 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +192 { +193 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +194 { +195 return std::string(i->parameter); +196 } +197 } +198 } +199 return std::string(''); +200 } +.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 215 of file channels.cpp. +.PP +References users. +.PP +.nf +216 { +217 return (this->users); +218 } +.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 240 of file channels.cpp. +.PP +References internal_userlist. +.PP +.nf +241 { +242 return &internal_userlist; +243 } +.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 +References DEBUG, name, and users. +.PP +.nf +203 { +204 this->users++; +205 log(DEBUG,'Incremented channel user count for %s to %lu',name,(unsigned long)users); +206 } .fi .SS "bool chanrec::IsCustomModeSet (char mode)" .PP -Returns true if a custom mode is set on a channel. Definition at line 180 of file channels.cpp. +Returns true if a custom mode is set on a channel. Definition at line 181 of file channels.cpp. .PP References DEBUG. .PP .nf -181 { -182 log(DEBUG,'Checking ISCustomModeSet: %c %s',mode,this->custom_modes); -183 return (strchr(this->custom_modes,mode) != 0); -184 } +182 { +183 log(DEBUG,'Checking ISCustomModeSet: %c %s',mode,this->custom_modes); +184 return (strchr(this->custom_modes,mode) != 0); +185 } .fi .SS "void chanrec::SetCustomMode (char mode, bool mode_on)" .PP -Sets or unsets a custom mode in the channels info. Definition at line 124 of file channels.cpp. +Sets or unsets a custom mode in the channels info. Definition at line 125 of file channels.cpp. .PP References custom_modes, DEBUG, and SetCustomModeParam(). .PP .nf -125 { -126 if (mode_on) { -127 char m[3]; -128 m[0] = mode; -129 m[1] = '\0'; -130 if (!strchr(this->custom_modes,mode)) -131 { -132 strlcat(custom_modes,m,MAXMODES); -133 } -134 log(DEBUG,'Custom mode %c set',mode); -135 } -136 else { -137 -138 std::string a = this->custom_modes; -139 int pos = a.find(mode); -140 a.erase(pos,1); -141 strncpy(this->custom_modes,a.c_str(),MAXMODES); -142 -143 log(DEBUG,'Custom mode %c removed: modelist='%s'',mode,this->custom_modes); -144 this->SetCustomModeParam(mode,'',false); -145 } -146 } +126 { +127 if (mode_on) { +128 char m[3]; +129 m[0] = mode; +130 m[1] = '\0'; +131 if (!strchr(this->custom_modes,mode)) +132 { +133 strlcat(custom_modes,m,MAXMODES); +134 } +135 log(DEBUG,'Custom mode %c set',mode); +136 } +137 else { +138 +139 std::string a = this->custom_modes; +140 int pos = a.find(mode); +141 a.erase(pos,1); +142 strncpy(this->custom_modes,a.c_str(),MAXMODES); +143 +144 log(DEBUG,'Custom mode %c removed: modelist='%s'',mode,this->custom_modes); +145 this->SetCustomModeParam(mode,'',false); +146 } +147 } .fi .SS "void chanrec::SetCustomModeParam (char mode, char * parameter, bool mode_on)" .PP -Sets or unsets the parameters for a custom mode in a channels info. Definition at line 149 of file channels.cpp. +Sets or unsets the parameters for a custom mode in a channels info. Definition at line 150 of file channels.cpp. .PP References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter. .PP Referenced by SetCustomMode(). .PP .nf -150 { -151 -152 log(DEBUG,'SetCustomModeParam called'); -153 ModeParameter M; -154 M.mode = mode; -155 strlcpy(M.channel,this->name,CHANMAX); -156 strlcpy(M.parameter,parameter,MAXBUF); -157 if (mode_on) -158 { -159 log(DEBUG,'Custom mode parameter %c %s added',mode,parameter); -160 custom_mode_params.push_back(M); -161 } -162 else -163 { -164 if (custom_mode_params.size()) -165 { -166 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -167 { -168 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -169 { -170 log(DEBUG,'Custom mode parameter %c %s removed',mode,parameter); -171 custom_mode_params.erase(i); -172 return; -173 } -174 } -175 } -176 log(DEBUG,'*** BUG *** Attempt to remove non-existent mode parameter!'); -177 } -178 } +151 { +152 +153 log(DEBUG,'SetCustomModeParam called'); +154 ModeParameter M; +155 M.mode = mode; +156 strlcpy(M.channel,this->name,CHANMAX); +157 strlcpy(M.parameter,parameter,MAXBUF); +158 if (mode_on) +159 { +160 log(DEBUG,'Custom mode parameter %c %s added',mode,parameter); +161 custom_mode_params.push_back(M); +162 } +163 else +164 { +165 if (custom_mode_params.size()) +166 { +167 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +168 { +169 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +170 { +171 log(DEBUG,'Custom mode parameter %c %s removed',mode,parameter); +172 custom_mode_params.erase(i); +173 return; +174 } +175 } +176 } +177 log(DEBUG,'*** BUG *** Attempt to remove non-existent mode parameter!'); +178 } +179 } .fi .SH "Member Data Documentation" .PP .SS "\fBBanList\fP \fBchanrec::bans\fP" .PP -The list of all bans set on the channel. Definition at line 159 of file channels.h. +The list of all bans set on the channel. Definition at line 168 of file channels.h. .SS "short int \fBchanrec::c_private\fP" .PP -Nonzero if the mode +p is set. This value cannot be set at the same time as \fBchanrec::secret\fPDefinition at line 155 of file channels.h. +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. .PP Referenced by chanrec(). .SS "time_t \fBchanrec::created\fP" .PP -Creation time. Definition at line 111 of file channels.h. +Creation time. Definition at line 120 of file channels.h. .PP Referenced by chanrec(). .SS "char \fBchanrec::custom_modes\fP[MAXMODES]" @@ -260,61 +372,71 @@ Referenced by chanrec(). Custom modes for the channel. Plugins may use this field in any way they see fit.Definition at line 103 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. +.PP +Referenced by AddUser(), chanrec(), DelUser(), and GetUsers(). .SS "short int \fBchanrec::inviteonly\fP" .PP -Nonzero if the mode +i is set. Definition at line 141 of file channels.h. +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 129 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 138 of file channels.h. .PP Referenced by chanrec(). .SS "long \fBchanrec::limit\fP" .PP -Contains the channel user limit. If this value is zero, there is no limit in place.Definition at line 124 of file channels.h. +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 145 of file channels.h. +Nonzero if the mode +m is set. Definition at line 154 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. .PP -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), DecUserCounter(), DelUser(), IncUserCounter(), and Server::PseudoToUser(). .SS "short int \fBchanrec::noexternal\fP" .PP -Nonzero if the mode +n is set. Definition at line 137 of file channels.h. +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 150 of file channels.h. +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 119 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 128 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 108 of file channels.h. +Channel topic. If this is an empty string, no channel topic is set.Definition at line 117 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 133 of file channels.h. +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 115 of file channels.h. +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. .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(), DecUserCounter(), GetUserCounter(), and IncUserCounter(). .SH "Author" .PP diff --git a/docs/man/man3/classbase.3 b/docs/man/man3/classbase.3 index a8299e1f5..aa5dbd61e 100644 --- a/docs/man/man3/classbase.3 +++ b/docs/man/man3/classbase.3 @@ -1,4 +1,4 @@ -.TH "classbase" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "classbase" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/command_t.3 b/docs/man/man3/command_t.3 index ba965234c..b826865e6 100644 --- a/docs/man/man3/command_t.3 +++ b/docs/man/man3/command_t.3 @@ -1,4 +1,4 @@ -.TH "command_t" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "command_t" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/commands.h.3 b/docs/man/man3/commands.h.3 index 27fa66676..7f72427e7 100644 --- a/docs/man/man3/commands.h.3 +++ b/docs/man/man3/commands.h.3 @@ -1,4 +1,4 @@ -.TH "commands.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "commands.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3 index d1e4e7e63..ca2a69951 100644 --- a/docs/man/man3/connection.3 +++ b/docs/man/man3/connection.3 @@ -1,4 +1,4 @@ -.TH "connection" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "connection" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -30,7 +30,7 @@ Inherited by \fBserverrec\fP, and \fBuserrec\fP. .br .RI "\fIBegin an outbound link to another ircd at targethost. \fP" .ti -1c -.RI "bool \fBMeshCookie\fP (char *targethost, int \fBport\fP, long cookie, char *servername)" +.RI "bool \fBMeshCookie\fP (char *targethost, int \fBport\fP, unsigned long cookie, char *servername)" .br .RI "\fIBegin an outbound mesh link to another ircd on a network you are already an authenticated member of. \fP" .ti -1c @@ -140,7 +140,7 @@ Inherited by \fBserverrec\fP, and \fBuserrec\fP. .in -1c .SH "Detailed Description" .PP -Please note: classes serverrec and userrec both inherit from class connection. Definition at line 166 of file connection.h. +Please note: classes serverrec and userrec both inherit from class connection. Definition at line 178 of file connection.h. .SH "Constructor & Destructor Documentation" .PP .SS "connection::connection ()" @@ -163,7 +163,7 @@ Find the \fBircd_connector\fP oject related to a certain servername given in 'ho .SS "long connection::GenKey ()" .PP This function is deprecated and may be removed in a later alpha/beta. -.SS "bool connection::MeshCookie (char * targethost, int port, long cookie, char * servername)" +.SS "bool connection::MeshCookie (char * targethost, int port, unsigned long cookie, char * servername)" .PP Begin an outbound mesh link to another ircd on a network you are already an authenticated member of. .SS "bool connection::RecvPacket (std::deque< std::string > & messages, char * host)" @@ -179,91 +179,91 @@ 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 187 of file connection.h. +Stats counter for bytes inbound. Definition at line 199 of file connection.h. .PP Referenced by userrec::userrec(). .SS "long \fBconnection::bytes_out\fP" .PP -Stats counter for bytes outbound. Definition at line 191 of file connection.h. +Stats counter for bytes outbound. Definition at line 203 of file connection.h. .PP Referenced by userrec::userrec(). .SS "long \fBconnection::cmds_in\fP" .PP -Stats counter for commands inbound. Definition at line 195 of file connection.h. +Stats counter for commands inbound. Definition at line 207 of file connection.h. .PP Referenced by userrec::userrec(). .SS "long \fBconnection::cmds_out\fP" .PP -Stats counter for commands outbound. Definition at line 199 of file connection.h. +Stats counter for commands outbound. Definition at line 211 of file connection.h. .PP Referenced by 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 246 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 258 of file connection.h. .SS "int \fBconnection::fd\fP" .PP -File descriptor of the connection. Definition at line 171 of file connection.h. +File descriptor of the connection. Definition at line 183 of file connection.h. .PP 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 203 of file connection.h. +True if server/user has authenticated, false if otherwise. Definition at line 215 of file connection.h. .PP Referenced by userrec::userrec(). .SS "char \fBconnection::host\fP[256]" .PP -Hostname of connection. Not used if this is a serverrecDefinition at line 175 of file connection.h. +Hostname of connection. Not used if this is a serverrecDefinition at line 187 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 229 of file connection.h. +Time that the connection last sent data, used to calculate idle time. Definition at line 241 of file connection.h. .PP Referenced by userrec::userrec(). .SS "char \fBconnection::inbuf\fP[MAXBUF]" .PP -Inbuf of connection. Only used for userrecDefinition at line 183 of file connection.h. +Inbuf of connection. Only used for userrecDefinition at line 195 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 237 of file connection.h. +Unused, will be removed in a future alpha/beta. Definition at line 249 of file connection.h. .SS "int \fBconnection::internal_port\fP" .PP -Unused, will be removed in a future alpha/beta. Definition at line 241 of file connection.h. +Unused, will be removed in a future alpha/beta. Definition at line 253 of file connection.h. .SS "char \fBconnection::ip\fP[32]" .PP -IP of connection. Reserved for future use.Definition at line 179 of file connection.h. +IP of connection. Reserved for future use.Definition at line 191 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 221 of file connection.h. +Time the connection was last pinged. Definition at line 233 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 233 of file connection.h. +Used by PING checks with clients. Definition at line 245 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 209 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 221 of file connection.h. .PP Referenced by userrec::userrec(). .SS "int \fBconnection::registered\fP" .PP -Used by userrec to indicate the registration status of the connection. Definition at line 213 of file connection.h. +Used by userrec to indicate the registration status of the connection. Definition at line 225 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 225 of file connection.h. +Time the connection was created, set in the constructor. Definition at line 237 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 217 of file connection.h. +Reserved for future use. Definition at line 229 of file connection.h. .SH "Author" .PP diff --git a/docs/man/man3/connection.h.3 b/docs/man/man3/connection.h.3 index e57b5cede..b0d6374fc 100644 --- a/docs/man/man3/connection.h.3 +++ b/docs/man/man3/connection.h.3 @@ -1,4 +1,4 @@ -.TH "connection.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "connection.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -32,6 +32,8 @@ connection.h \- .br \fC#include \fP .br +\fC#include \fP +.br .SS "Compounds" @@ -71,22 +73,22 @@ connection.h \- .PP .SS "#define STATE_CONNECTED 1" .PP -Definition at line 35 of file connection.h. +Definition at line 36 of file connection.h. .SS "#define STATE_DISCONNECTED 0" .PP -Definition at line 34 of file connection.h. +Definition at line 35 of file connection.h. .SS "#define STATE_NOAUTH_INBOUND 3" .PP -Definition at line 37 of file connection.h. +Definition at line 38 of file connection.h. .SS "#define STATE_NOAUTH_OUTBOUND 4" .PP -Definition at line 38 of file connection.h. +Definition at line 39 of file connection.h. .SS "#define STATE_SERVICES 5" .PP -Definition at line 39 of file connection.h. +Definition at line 40 of file connection.h. .SS "#define STATE_SYNC 2" .PP -Definition at line 36 of file connection.h. +Definition at line 37 of file connection.h. .SH "Author" .PP Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/ctables.h.3 b/docs/man/man3/ctables.h.3 index cf8d86cc3..6541dbb1a 100644 --- a/docs/man/man3/ctables.h.3 +++ b/docs/man/man3/ctables.h.3 @@ -1,4 +1,4 @@ -.TH "ctables.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ctables.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns.h.3 b/docs/man/man3/dns.h.3 index 508f04cff..3b7155194 100644 --- a/docs/man/man3/dns.h.3 +++ b/docs/man/man3/dns.h.3 @@ -1,4 +1,4 @@ -.TH "dns.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "dns.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns_ip4list.3 b/docs/man/man3/dns_ip4list.3 index 756ce99df..f850d584a 100644 --- a/docs/man/man3/dns_ip4list.3 +++ b/docs/man/man3/dns_ip4list.3 @@ -1,4 +1,4 @@ -.TH "dns_ip4list" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "dns_ip4list" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ircd_connector.3 b/docs/man/man3/ircd_connector.3 index 9a47718e0..5c9e3016b 100644 --- a/docs/man/man3/ircd_connector.3 +++ b/docs/man/man3/ircd_connector.3 @@ -1,4 +1,4 @@ -.TH "ircd_connector" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ircd_connector" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -16,7 +16,7 @@ Inherits \fBExtensible\fP. .in +1c .ti -1c -.RI "bool \fBMakeOutboundConnection\fP (char *\fBhost\fP, int \fBport\fP)" +.RI "bool \fBMakeOutboundConnection\fP (char *newhost, int newport)" .br .RI "\fICreate an outbound connection to a listening socket. \fP" .ti -1c @@ -64,18 +64,34 @@ Inherits \fBExtensible\fP. .br .RI "\fISet the port used by this connection. \fP" .ti -1c -.RI "bool \fBSetHostAndPort\fP (char *\fBhost\fP, int \fBport\fP)" +.RI "bool \fBSetHostAndPort\fP (char *newhost, int newport)" .br .RI "\fISet both the host and the port in one operation for this connection. \fP" .ti -1c .RI "void \fBCloseConnection\fP ()" .br .RI "\fIClose the connection by calling close() on its file descriptor This function call updates no other data. \fP" +.ti -1c +.RI "void \fBAddBuffer\fP (std::string a)" +.br +.ti -1c +.RI "bool \fBBufferIsComplete\fP ()" +.br +.ti -1c +.RI "void \fBClearBuffer\fP ()" +.br +.ti -1c +.RI "std::string \fBGetBuffer\fP ()" +.br .in -1c .SS "Public Attributes" .in +1c .ti -1c +.RI "std::string \fBircdbuffer\fP" +.br +.RI "\fIIRCD Buffer for input characters, holds one line. \fP" +.ti -1c .RI "char \fBhost\fP [MAXBUF]" .br .RI "\fIWhen MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. \fP" @@ -126,12 +142,20 @@ Each connection has one or more of these each represents ONE outbound connection A listening socket that accepts server type connections is represented by one class serverrec. Class serverrec will instantiate several objects of type ircd_connector to represent each established connection, inbound or outbound. So, to determine all linked servers you must walk through all the serverrecs that the core defines, and in each one iterate through until you find connection(s) relating to the server you want information on. The core and module API provide functions for this. .PP -Definition at line 53 of file connection.h. +Definition at line 54 of file connection.h. .SH "Member Function Documentation" .PP +.SS "void ircd_connector::AddBuffer (std::string a)" +.PP +.SS "bool ircd_connector::BufferIsComplete ()" +.PP +.SS "void ircd_connector::ClearBuffer ()" +.PP .SS "void ircd_connector::CloseConnection ()" .PP Close the connection by calling close() on its file descriptor This function call updates no other data. +.SS "std::string ircd_connector::GetBuffer ()" +.PP .SS "std::string ircd_connector::GetDescription ()" .PP Get the server description of this connection. @@ -150,7 +174,7 @@ Get the port number being used for this connection If the connection is outbound .SS "int ircd_connector::GetState ()" .PP Get the state flags for this connection. -.SS "bool ircd_connector::MakeOutboundConnection (char * host, int port)" +.SS "bool ircd_connector::MakeOutboundConnection (char * newhost, int newport)" .PP Create an outbound connection to a listening socket. .SS "void ircd_connector::SetDescription (std::string desc)" @@ -162,7 +186,7 @@ Set the file descriptor for this connection. .SS "bool ircd_connector::SetHostAddress (char * host, int port)\fC [private]\fP" .PP PRIVATE function to set the host address and port to connect to. -.SS "bool ircd_connector::SetHostAndPort (char * host, int port)" +.SS "bool ircd_connector::SetHostAndPort (char * newhost, int newport)" .PP Set both the host and the port in one operation for this connection. .SS "void ircd_connector::SetServerName (std::string serv)" @@ -178,28 +202,31 @@ Set the state flags for this connection. .PP .SS "sockaddr_in \fBircd_connector::addr\fP\fC [private]\fP" .PP -Sockaddr of the outbound ip and port. Definition at line 58 of file connection.h. +Sockaddr of the outbound ip and port. Definition at line 59 of file connection.h. .SS "std::string \fBircd_connector::description\fP\fC [private]\fP" .PP -\fBServer\fP 'GECOS'. Definition at line 70 of file connection.h. +\fBServer\fP 'GECOS'. Definition at line 71 of file connection.h. .SS "int \fBircd_connector::fd\fP\fC [private]\fP" .PP -File descriptor of the connection. Definition at line 62 of file connection.h. +File descriptor of the connection. Definition at line 63 of file connection.h. .SS "char \fBircd_connector::host\fP[MAXBUF]" .PP -When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. Definition at line 87 of file connection.h. +When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. Definition at line 94 of file connection.h. +.SS "std::string \fBircd_connector::ircdbuffer\fP" +.PP +IRCD Buffer for input characters, holds one line. Definition at line 87 of file connection.h. .SS "int \fBircd_connector::port\fP" .PP -When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. Definition at line 93 of file connection.h. +When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. Definition at line 100 of file connection.h. .SS "std::vector \fBircd_connector::routes\fP" .PP -\fBServer\fP names of servers that this server is linked to So for A->B->C, if this was the record for B it would contain A and C whilever both servers are connected to B. Definition at line 99 of file connection.h. +\fBServer\fP names of servers that this server is linked to So for A->B->C, if this was the record for B it would contain A and C whilever both servers are connected to B. Definition at line 106 of file connection.h. .SS "std::string \fBircd_connector::servername\fP\fC [private]\fP" .PP -\fBServer\fP name. Definition at line 66 of file connection.h. +\fBServer\fP name. Definition at line 67 of file connection.h. .SS "int \fBircd_connector::state\fP\fC [private]\fP" .PP -State. STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTEDDefinition at line 75 of file connection.h. +State. STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTEDDefinition at line 76 of file connection.h. .SH "Author" .PP diff --git a/docs/man/man3/message.h.3 b/docs/man/man3/message.h.3 index 613102a3a..127926d3e 100644 --- a/docs/man/man3/message.h.3 +++ b/docs/man/man3/message.h.3 @@ -1,4 +1,4 @@ -.TH "message.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "message.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/mode.h.3 b/docs/man/man3/mode.h.3 index be2164f1b..e6a1628c1 100644 --- a/docs/man/man3/mode.h.3 +++ b/docs/man/man3/mode.h.3 @@ -1,4 +1,4 @@ -.TH "mode.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "mode.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/modules.cpp.3 b/docs/man/man3/modules.cpp.3 index b91ae0484..cde9a3b91 100644 --- a/docs/man/man3/modules.cpp.3 +++ b/docs/man/man3/modules.cpp.3 @@ -1,4 +1,4 @@ -.TH "modules.cpp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "modules.cpp" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -533,7 +533,7 @@ Definition at line 91 of file modules.cpp. Definition at line 106 of file modules.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 1030 of file modules.cpp. +Definition at line 1032 of file modules.cpp. .SS "std::vector \fBmodule_names\fP" .PP Definition at line 95 of file modules.cpp. diff --git a/docs/man/man3/modules.h.3 b/docs/man/man3/modules.h.3 index d2fb56fd4..5b3be2f2a 100644 --- a/docs/man/man3/modules.h.3 +++ b/docs/man/man3/modules.h.3 @@ -1,4 +1,4 @@ -.TH "modules.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "modules.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -139,7 +139,7 @@ modules.h \- .RI "#define \fBVF_COMMON\fP 8" .br .ti -1c -.RI "#define \fBFOREACH_MOD\fP for (int i = 0; i <= \fBMODCOUNT\fP; i++) modules[i]->" +.RI "#define \fBFOREACH_MOD\fP for (int _i = 0; _i <= \fBMODCOUNT\fP; _i++) modules[_i]->" .br .ti -1c .RI "#define \fBFOREACH_RESULT\fP(x)" @@ -230,29 +230,29 @@ Referenced by Module::OnAccessCheck(). Definition at line 38 of file modules.h. .SS "#define CONF_FILE_NOT_FOUND 0x000200" .PP -Definition at line 1063 of file modules.h. +Definition at line 1088 of file modules.h. .PP Referenced by ConfigReader::ConfigReader(). .SS "#define CONF_NOT_A_NUMBER 0x000010" .PP -Definition at line 1060 of file modules.h. +Definition at line 1085 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_NOT_UNSIGNED 0x000080" .PP -Definition at line 1061 of file modules.h. +Definition at line 1086 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_VALUE_NOT_FOUND 0x000100" .PP -Definition at line 1062 of file modules.h. +Definition at line 1087 of file modules.h. .PP Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). .SS "#define DEBUG 10" .PP Definition at line 23 of file modules.h. .PP -Referenced by Server::AddExtendedMode(), userrec::HasPermission(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam(). +Referenced by Server::AddExtendedMode(), chanrec::AddUser(), chanrec::DecUserCounter(), chanrec::DelUser(), userrec::HasPermission(), chanrec::IncUserCounter(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam(). .SS "#define DEFAULT 30" .PP Definition at line 25 of file modules.h. @@ -261,7 +261,7 @@ Definition at line 25 of file modules.h. Definition at line 99 of file modules.h. .PP Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). -.SS "#define FOREACH_MOD for (int i = 0; i <= \fBMODCOUNT\fP; i++) modules[i]->" +.SS "#define FOREACH_MOD for (int _i = 0; _i <= \fBMODCOUNT\fP; _i++) modules[_i]->" .PP Definition at line 79 of file modules.h. .PP @@ -270,8 +270,8 @@ Referenced by Event::Send(). .PP \fBValue:\fP.nf { MOD_RESULT = 0; \ - for (int i = 0; i <= MODCOUNT; i++) { \ - int res = modules[i]->x ; \ + for (int _i = 0; _i <= MODCOUNT; _i++) { \ + int res = modules[_i]->x ; \ if (res != 0) { \ MOD_RESULT = res; \ break; \ @@ -333,7 +333,7 @@ Low level definition of a \fBFileReader\fP classes file cache area. Definition a Referenced by FileReader::FileReader(), and FileReader::LoadFile(). .SS "typedef DLLFactory<\fBModuleFactory\fP> \fBircd_module\fP" .PP -Definition at line 1229 of file modules.h. +Definition at line 1254 of file modules.h. .SS "typedef \fBfile_cache\fP \fBstring_list\fP" .PP Definition at line 68 of file modules.h. diff --git a/docs/man/man3/nspace.3 b/docs/man/man3/nspace.3 index 9ff36fa71..7cfff7689 100644 --- a/docs/man/man3/nspace.3 +++ b/docs/man/man3/nspace.3 @@ -1,4 +1,4 @@ -.TH "nspace" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_nspace_hash_ in_addr _.3 b/docs/man/man3/nspace_nspace_hash_ in_addr _.3 index 2c771436c..2f257e697 100644 --- a/docs/man/man3/nspace_nspace_hash_ in_addr _.3 +++ b/docs/man/man3/nspace_nspace_hash_ in_addr _.3 @@ -1,4 +1,4 @@ -.TH "nspace::nspace::hash< in_addr >" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace::nspace::hash< in_addr >" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_nspace_hash_ string _.3 b/docs/man/man3/nspace_nspace_hash_ string _.3 index 2c89b3913..dce6079d6 100644 --- a/docs/man/man3/nspace_nspace_hash_ string _.3 +++ b/docs/man/man3/nspace_nspace_hash_ string _.3 @@ -1,4 +1,4 @@ -.TH "nspace::nspace::hash< string >" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace::nspace::hash< string >" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/serverrec.3 b/docs/man/man3/serverrec.3 index 937637ec0..3517dc84d 100644 --- a/docs/man/man3/serverrec.3 +++ b/docs/man/man3/serverrec.3 @@ -1,4 +1,4 @@ -.TH "serverrec" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "serverrec" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/servers.cpp.3 b/docs/man/man3/servers.cpp.3 index 00ab9528d..ef1e28d83 100644 --- a/docs/man/man3/servers.cpp.3 +++ b/docs/man/man3/servers.cpp.3 @@ -1,4 +1,4 @@ -.TH "servers.cpp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "servers.cpp" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/servers.h.3 b/docs/man/man3/servers.h.3 index 707489eb1..13cf46371 100644 --- a/docs/man/man3/servers.h.3 +++ b/docs/man/man3/servers.h.3 @@ -1,4 +1,4 @@ -.TH "servers.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "servers.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/std.3 b/docs/man/man3/std.3 index 37b3ebb26..107c01c59 100644 --- a/docs/man/man3/std.3 +++ b/docs/man/man3/std.3 @@ -1,4 +1,4 @@ -.TH "std" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "std" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3 index 5b5cc3285..5f9098e25 100644 --- a/docs/man/man3/ucrec.3 +++ b/docs/man/man3/ucrec.3 @@ -1,4 +1,4 @@ -.TH "ucrec" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ucrec" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -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 202 of file channels.h. +Definition at line 257 of file channels.h. .SH "Constructor & Destructor Documentation" .PP .SS "ucrec::ucrec ()\fC [inline]\fP" .PP -Definition at line 215 of file channels.h. +Definition at line 270 of file channels.h. .PP .nf -215 { /* stub */ } +270 { /* stub */ } .fi .SS "virtual ucrec::~\fBucrec\fP ()\fC [inline, virtual]\fP" .PP -Definition at line 216 of file channels.h. +Definition at line 271 of file channels.h. .PP .nf -216 { /* stub */ } +271 { /* 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 213 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 268 of file channels.h. .PP Referenced by Server::PseudoToUser(), and userrec::userrec(). .SS "long \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 208 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 263 of file channels.h. .PP Referenced by userrec::userrec(). diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3 index 83d323e83..2e78c5206 100644 --- a/docs/man/man3/userrec.3 +++ b/docs/man/man3/userrec.3 @@ -1,4 +1,4 @@ -.TH "userrec" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "userrec" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -104,6 +104,10 @@ Inherits \fBconnection\fP. .RI "unsigned long \fBpingmax\fP" .br .RI "\fINumber of seconds between PINGs for this user (set from tag. \fP" +.ti -1c +.RI "char \fBpassword\fP [MAXBUF]" +.br +.RI "\fIPassword specified by the user when they registered. \fP" .in -1c .SS "Private Attributes" @@ -158,10 +162,10 @@ References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, .fi .SS "virtual userrec::~\fBuserrec\fP ()\fC [inline, virtual]\fP" .PP -Definition at line 172 of file users.h. +Definition at line 178 of file users.h. .PP .nf -172 { } +178 { } .fi .SH "Member Function Documentation" .PP @@ -198,54 +202,53 @@ References config_f, and DEBUG. .nf 115 { 116 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -117 char* myclass; -118 char* mycmd; -119 char* savept; -120 char* savept2; -121 -122 // are they even an oper at all? -123 if (strchr(this->modes,'o')) -124 { -125 log(DEBUG,'*** HasPermission: %s is an oper',this->nick); -126 for (int j =0; j < ConfValueEnum('type',&config_f); j++) -127 { -128 ConfValue('type','name',j,TypeName,&config_f); -129 if (!strcmp(TypeName,this->oper)) -130 { -131 log(DEBUG,'*** HasPermission: %s is an oper of type '%s'',this->nick,this->oper); -132 ConfValue('type','classes',j,Classes,&config_f); -133 char* myclass = strtok_r(Classes,' ',&savept); -134 while (myclass) -135 { -136 log(DEBUG,'*** HasPermission: checking classtype '%s'',myclass); -137 for (int k =0; k < ConfValueEnum('class',&config_f); k++) -138 { -139 ConfValue('class','name',k,ClassName,&config_f); -140 if (!strcmp(ClassName,myclass)) -141 { -142 ConfValue('class','commands',k,CommandList,&config_f); -143 log(DEBUG,'*** HasPermission: found class named %s with commands: '%s'',ClassName,CommandList); +117 char* mycmd; +118 char* savept; +119 char* savept2; +120 +121 // are they even an oper at all? +122 if (strchr(this->modes,'o')) +123 { +124 log(DEBUG,'*** HasPermission: %s is an oper',this->nick); +125 for (int j =0; j < ConfValueEnum('type',&config_f); j++) +126 { +127 ConfValue('type','name',j,TypeName,&config_f); +128 if (!strcmp(TypeName,this->oper)) +129 { +130 log(DEBUG,'*** HasPermission: %s is an oper of type '%s'',this->nick,this->oper); +131 ConfValue('type','classes',j,Classes,&config_f); +132 char* myclass = strtok_r(Classes,' ',&savept); +133 while (myclass) +134 { +135 log(DEBUG,'*** HasPermission: checking classtype '%s'',myclass); +136 for (int k =0; k < ConfValueEnum('class',&config_f); k++) +137 { +138 ConfValue('class','name',k,ClassName,&config_f); +139 if (!strcmp(ClassName,myclass)) +140 { +141 ConfValue('class','commands',k,CommandList,&config_f); +142 log(DEBUG,'*** HasPermission: found class named %s with commands: '%s'',ClassName,CommandList); +143 144 -145 -146 mycmd = strtok_r(CommandList,' ',&savept2); -147 while (mycmd) -148 { -149 if (!strcasecmp(mycmd,command)) -150 { -151 log(DEBUG,'*** Command %s found, returning true',command); -152 return true; -153 } -154 mycmd = strtok_r(NULL,' ',&savept2); -155 } -156 } -157 } -158 myclass = strtok_r(NULL,' ',&savept); -159 } -160 } -161 } -162 } -163 return false; -164 } +145 mycmd = strtok_r(CommandList,' ',&savept2); +146 while (mycmd) +147 { +148 if (!strcasecmp(mycmd,command)) +149 { +150 log(DEBUG,'*** Command %s found, returning true',command); +151 return true; +152 } +153 mycmd = strtok_r(NULL,' ',&savept2); +154 } +155 } +156 } +157 myclass = strtok_r(NULL,' ',&savept); +158 } +159 } +160 } +161 } +162 return false; +163 } .fi .SS "void userrec::InviteTo (char * channel)\fC [virtual]\fP" .PP @@ -365,6 +368,9 @@ Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Serv The oper type they logged in as, if they are an oper. This is used to check permissions in operclasses, so that we can say 'yay' or 'nay' to any commands they issue. The value of this is the value of a valid 'type name=' tag.Definition at line 160 of file users.h. .PP 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 174 of file users.h. .SS "unsigned long \fBuserrec::pingmax\fP" .PP Number of seconds between PINGs for this user (set from tag. Definition at line 168 of file users.h. diff --git a/docs/man/man3/users.cpp.3 b/docs/man/man3/users.cpp.3 index 5b1969971..614228ad2 100644 --- a/docs/man/man3/users.cpp.3 +++ b/docs/man/man3/users.cpp.3 @@ -1,4 +1,4 @@ -.TH "users.cpp" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "users.cpp" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3 index 6e3177d25..09eb0ae89 100644 --- a/docs/man/man3/users.h.3 +++ b/docs/man/man3/users.h.3 @@ -1,4 +1,4 @@ -.TH "users.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "users.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/xline.h.3 b/docs/man/man3/xline.h.3 index 3cbdff2e2..8a3263c2f 100644 --- a/docs/man/man3/xline.h.3 +++ b/docs/man/man3/xline.h.3 @@ -1,4 +1,4 @@ -.TH "xline.h" 3 "20 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "xline.h" 3 "26 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index ce826efc6..6e437bf8f 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -46,7 +46,7 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:46 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 0d0fa25dd..66fe97bfe 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 Wed Apr 20 15:46:53 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:43 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 1231ee991..181c18aae 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 Wed Apr 20 15:46:56 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:44 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 a78f32fa8..c149c9b12 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -117,94 +117,138 @@ 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 = 0; -00121 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; -00122 } -00123 -00124 void chanrec::SetCustomMode(char mode,bool mode_on) -00125 { -00126 if (mode_on) { -00127 char m[3]; -00128 m[0] = mode; -00129 m[1] = '\0'; -00130 if (!strchr(this->custom_modes,mode)) -00131 { -00132 strlcat(custom_modes,m,MAXMODES); -00133 } -00134 log(DEBUG,"Custom mode %c set",mode); -00135 } -00136 else { -00137 -00138 std::string a = this->custom_modes; -00139 int pos = a.find(mode); -00140 a.erase(pos,1); -00141 strncpy(this->custom_modes,a.c_str(),MAXMODES); -00142 -00143 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes); -00144 this->SetCustomModeParam(mode,"",false); -00145 } -00146 } -00147 +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(); +00123 } +00124 +00125 void chanrec::SetCustomMode(char mode,bool mode_on) +00126 { +00127 if (mode_on) { +00128 char m[3]; +00129 m[0] = mode; +00130 m[1] = '\0'; +00131 if (!strchr(this->custom_modes,mode)) +00132 { +00133 strlcat(custom_modes,m,MAXMODES); +00134 } +00135 log(DEBUG,"Custom mode %c set",mode); +00136 } +00137 else { +00138 +00139 std::string a = this->custom_modes; +00140 int pos = a.find(mode); +00141 a.erase(pos,1); +00142 strncpy(this->custom_modes,a.c_str(),MAXMODES); +00143 +00144 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes); +00145 this->SetCustomModeParam(mode,"",false); +00146 } +00147 } 00148 -00149 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) -00150 { -00151 -00152 log(DEBUG,"SetCustomModeParam called"); -00153 ModeParameter M; -00154 M.mode = mode; -00155 strlcpy(M.channel,this->name,CHANMAX); -00156 strlcpy(M.parameter,parameter,MAXBUF); -00157 if (mode_on) -00158 { -00159 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter); -00160 custom_mode_params.push_back(M); -00161 } -00162 else -00163 { -00164 if (custom_mode_params.size()) -00165 { -00166 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00167 { -00168 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00169 { -00170 log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter); -00171 custom_mode_params.erase(i); -00172 return; -00173 } -00174 } -00175 } -00176 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!"); -00177 } -00178 } -00179 -00180 bool chanrec::IsCustomModeSet(char mode) -00181 { -00182 log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes); -00183 return (strchr(this->custom_modes,mode) != 0); -00184 } -00185 -00186 std::string chanrec::GetModeParameter(char mode) -00187 { -00188 if (custom_mode_params.size()) -00189 { -00190 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00191 { -00192 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00193 { -00194 return std::string(i->parameter); -00195 } -00196 } -00197 } -00198 return std::string(""); -00199 } -
Generated on Wed Apr 20 15:46:53 2005 for InspIRCd by +00149 +00150 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) +00151 { +00152 +00153 log(DEBUG,"SetCustomModeParam called"); +00154 ModeParameter M; +00155 M.mode = mode; +00156 strlcpy(M.channel,this->name,CHANMAX); +00157 strlcpy(M.parameter,parameter,MAXBUF); +00158 if (mode_on) +00159 { +00160 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter); +00161 custom_mode_params.push_back(M); +00162 } +00163 else +00164 { +00165 if (custom_mode_params.size()) +00166 { +00167 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +00168 { +00169 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00170 { +00171 log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter); +00172 custom_mode_params.erase(i); +00173 return; +00174 } +00175 } +00176 } +00177 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!"); +00178 } +00179 } +00180 +00181 bool chanrec::IsCustomModeSet(char mode) +00182 { +00183 log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes); +00184 return (strchr(this->custom_modes,mode) != 0); +00185 } +00186 +00187 std::string chanrec::GetModeParameter(char mode) +00188 { +00189 if (custom_mode_params.size()) +00190 { +00191 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +00192 { +00193 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00194 { +00195 return std::string(i->parameter); +00196 } +00197 } +00198 } +00199 return std::string(""); +00200 } +00201 +00202 void chanrec::IncUserCounter() +00203 { +00204 this->users++; +00205 log(DEBUG,"Incremented channel user count for %s to %lu",name,(unsigned long)users); +00206 } +00207 +00208 void chanrec::DecUserCounter() +00209 { +00210 if (this->users > 0) +00211 this->users--; +00212 log(DEBUG,"Decremented channel user count for %s to %lu",name,(unsigned long)users); +00213 } +00214 +00215 long chanrec::GetUserCounter() +00216 { +00217 return (this->users); +00218 } +00219 +00220 void chanrec::AddUser(char* castuser) +00221 { +00222 internal_userlist.push_back(castuser); +00223 log(DEBUG,"Added casted user to channel's internal list"); +00224 } +00225 +00226 void chanrec::DelUser(char* castuser) +00227 { +00228 for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) +00229 { +00230 if (*a == castuser) +00231 { +00232 log(DEBUG,"Removed casted user from channel's internal list"); +00233 internal_userlist.erase(a); +00234 return; +00235 } +00236 } +00237 log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name); +00238 } +00239 +00240 std::vector<char*> *chanrec::GetUsers() +00241 { +00242 return &internal_userlist; +00243 } +
Generated on Tue Apr 26 17:11:43 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 304e4c8b6..9956afa92 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -319,7 +319,7 @@ Referenced by userrec::HasPer

Definition at line 111 of file channels.cpp.

-Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam(). +Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam().

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

-Definition at line 1030 of file modules.cpp. +Definition at line 1032 of file modules.cpp.

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

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

Definition at line 92 of file channels.cpp.

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

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

Definition at line 64 of file channels.cpp.

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

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


Generated on Wed Apr 20 15:46:57 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:45 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 fd902fdf7..6d1312c53 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -80,66 +80,82 @@ 00096 public: 00099 char name[CHANMAX]; /* channel name */ 00103 char custom_modes[MAXMODES]; /* modes handled by modules */ -00104 -00108 char topic[MAXBUF]; -00111 time_t created; -00115 time_t topicset; -00119 char setby[NICKMAX]; -00120 -00124 long limit; -00125 -00129 char key[32]; -00130 -00133 short int topiclock; +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 -00137 short int noexternal; -00138 -00141 short int inviteonly; -00142 -00145 short int moderated; -00146 -00150 short int secret; +00138 char key[32]; +00139 +00142 short int topiclock; +00143 +00146 short int noexternal; +00147 +00150 short int inviteonly; 00151 -00155 short int c_private; -00156 -00159 BanList bans; +00154 short int moderated; +00155 +00159 short int secret; 00160 -00163 void SetCustomMode(char mode,bool mode_on); -00164 -00167 void SetCustomModeParam(char mode,char* parameter,bool mode_on); -00168 -00171 bool IsCustomModeSet(char mode); -00172 -00179 std::string GetModeParameter(char mode); -00180 -00183 chanrec(); -00184 -00185 virtual ~chanrec() { /* stub */ } -00186 }; -00187 -00188 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o -00189 * needs to come AFTER struct chanrec */ -00190 -00191 #define UCMODE_OP 1 -00192 #define UCMODE_VOICE 2 -00193 #define UCMODE_HOP 4 -00194 #define UCMODE_PROTECT 8 -00195 #define UCMODE_FOUNDER 16 -00196 -00202 class ucrec : public classbase -00203 { -00204 public: -00208 long uc_modes; -00209 -00213 chanrec *channel; -00214 -00215 ucrec() { /* stub */ } -00216 virtual ~ucrec() { /* stub */ } -00217 }; -00218 -00219 #endif -00220 -
Generated on Wed Apr 20 15:46:53 2005 for InspIRCd by +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 Tue Apr 26 17:11:43 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 766d863c1..cee3ed386 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -80,7 +80,7 @@

-Definition at line 195 of file channels.h. +Definition at line 250 of file channels.h.

@@ -104,7 +104,7 @@ Definition at line 195 o

-Definition at line 193 of file channels.h. +Definition at line 248 of file channels.h.

@@ -128,7 +128,7 @@ Definition at line 193 o

-Definition at line 191 of file channels.h. +Definition at line 246 of file channels.h.

@@ -152,7 +152,7 @@ Definition at line 191 o

-Definition at line 194 of file channels.h. +Definition at line 249 of file channels.h.

@@ -176,7 +176,7 @@ Definition at line 194 o

-Definition at line 192 of file channels.h. +Definition at line 247 of file channels.h.


Typedef Documentation

@@ -258,7 +258,7 @@ Holds a complete invite list. Definition at line 88 of file channels.h. -
Generated on Wed Apr 20 15:46:57 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:45 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 7719c1e74..ac42b3705 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 Wed Apr 20 15:47:00 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:46 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index c0e85bdbf..585a7249b 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -157,7 +157,7 @@ Definition at line 126 of
The documentation for this class was generated from the following files: -
Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:46 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 c29fa5d5b..a5f221045 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 Wed Apr 20 15:47:00 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:46 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 221f69061..572bbc0f2 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -22,7 +22,7 @@ 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: -
Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:46 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 6f7d3e741..1ed2aed93 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 Wed Apr 20 15:47:01 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 5a037b4de..7b302eed2 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -67,7 +67,7 @@ It may either be instantiated with one parameter or none. Constructing the class

-Definition at line 1072 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 1097 of file modules.h.

Constructor & Destructor Documentation

@@ -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 833 of file modules.cpp. +Definition at line 835 of file modules.cpp.

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

-

00834 {
-00835         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00836         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00837         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
-00838         if (!this->readerror)
-00839                 this->error = CONF_FILE_NOT_FOUND;
-00840 }
+
00836 {
+00837         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00838         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00839         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
+00840         if (!this->readerror)
+00841                 this->error = CONF_FILE_NOT_FOUND;
+00842 }
 
@@ -141,17 +141,17 @@ Overloaded constructor.

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

-Definition at line 852 of file modules.cpp. +Definition at line 854 of file modules.cpp.

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

-

00853 {
-00854         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00855         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00856         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
-00857         if (!this->readerror)
-00858                 this->error = CONF_FILE_NOT_FOUND;
-00859 };
+
00855 {
+00856         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00857         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00858         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
+00859         if (!this->readerror)
+00860                 this->error = CONF_FILE_NOT_FOUND;
+00861 };
 
@@ -184,16 +184,16 @@ Default destructor.

This method destroys the ConfigReader class.

-Definition at line 843 of file modules.cpp. +Definition at line 845 of file modules.cpp.

-References cache, and errorlog. +References cache, and errorlog.

-

00844 {
-00845         if (this->cache)
-00846                 delete this->cache;
-00847         if (this->errorlog)
-00848                 delete this->errorlog;
-00849 }
+
00846 {
+00847         if (this->cache)
+00848                 delete this->cache;
+00849         if (this->errorlog)
+00850                 delete this->errorlog;
+00851 }
 
@@ -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 930 of file modules.cpp. -

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

-

00931 {
-00932         if (bail)
-00933         {
-00934                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
-00935                 exit(0);
-00936         }
-00937         else
-00938         {
-00939                 char dataline[1024];
-00940                 if (user)
-00941                 {
-00942                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
-00943                         while (!errorlog->eof())
-00944                         {
-00945                                 errorlog->getline(dataline,1024);
-00946                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
-00947                         }
-00948                 }
-00949                 else
-00950                 {
-00951                         WriteOpers("There were errors in the configuration file:",user->nick);
-00952                         while (!errorlog->eof())
-00953                         {
-00954                                 errorlog->getline(dataline,1024);
-00955                                 WriteOpers(dataline);
-00956                         }
-00957                 }
-00958                 return;
-00959         }
-00960 }
+Definition at line 932 of file modules.cpp.
+

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

+

00933 {
+00934         if (bail)
+00935         {
+00936                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
+00937                 exit(0);
+00938         }
+00939         else
+00940         {
+00941                 char dataline[1024];
+00942                 if (user)
+00943                 {
+00944                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
+00945                         while (!errorlog->eof())
+00946                         {
+00947                                 errorlog->getline(dataline,1024);
+00948                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
+00949                         }
+00950                 }
+00951                 else
+00952                 {
+00953                         WriteOpers("There were errors in the configuration file:",user->nick);
+00954                         while (!errorlog->eof())
+00955                         {
+00956                                 errorlog->getline(dataline,1024);
+00957                                 WriteOpers(dataline);
+00958                         }
+00959                 }
+00960                 return;
+00961         }
+00962 }
 
@@ -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 963 of file modules.cpp. +Definition at line 965 of file modules.cpp.

-References cache. +References cache.

-

00964 {
-00965         return EnumConf(cache,tag.c_str());
-00966 }
+
00966 {
+00967         return EnumConf(cache,tag.c_str());
+00968 }
 
@@ -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 968 of file modules.cpp. +Definition at line 970 of file modules.cpp.

-References cache. +References cache.

-

00969 {
-00970         return EnumValues(cache, tag.c_str(), index);
-00971 }
+
00971 {
+00972         return EnumValues(cache, tag.c_str(), index);
+00973 }
 
@@ -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 923 of file modules.cpp. +Definition at line 925 of file modules.cpp.

-References error. +References error.

-

00924 {
-00925         long olderr = this->error;
-00926         this->error = 0;
-00927         return olderr;
-00928 }
+
00926 {
+00927         long olderr = this->error;
+00928         this->error = 0;
+00929         return olderr;
+00930 }
 
@@ -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 877 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

00878 {
-00879         char val[MAXBUF];
-00880         char t[MAXBUF];
-00881         char n[MAXBUF];
-00882         strlcpy(t,tag.c_str(),MAXBUF);
-00883         strlcpy(n,name.c_str(),MAXBUF);
-00884         int res = ReadConf(cache,t,n,index,val);
-00885         if (!res)
-00886         {
-00887                 this->error = CONF_VALUE_NOT_FOUND;
-00888                 return false;
-00889         }
-00890         std::string s = val;
-00891         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
-00892 }
+Definition at line 879 of file modules.cpp.
+

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

00880 {
+00881         char val[MAXBUF];
+00882         char t[MAXBUF];
+00883         char n[MAXBUF];
+00884         strlcpy(t,tag.c_str(),MAXBUF);
+00885         strlcpy(n,name.c_str(),MAXBUF);
+00886         int res = ReadConf(cache,t,n,index,val);
+00887         if (!res)
+00888         {
+00889                 this->error = CONF_VALUE_NOT_FOUND;
+00890                 return false;
+00891         }
+00892         std::string s = val;
+00893         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
+00894 }
 
@@ -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 894 of file modules.cpp. -

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

-

00895 {
-00896         char val[MAXBUF];
-00897         char t[MAXBUF];
-00898         char n[MAXBUF];
-00899         strlcpy(t,tag.c_str(),MAXBUF);
-00900         strlcpy(n,name.c_str(),MAXBUF);
-00901         int res = ReadConf(cache,t,n,index,val);
-00902         if (!res)
-00903         {
-00904                 this->error = CONF_VALUE_NOT_FOUND;
-00905                 return 0;
-00906         }
-00907         for (int i = 0; i < strlen(val); i++)
-00908         {
-00909                 if (!isdigit(val[i]))
-00910                 {
-00911                         this->error = CONF_NOT_A_NUMBER;
-00912                         return 0;
-00913                 }
-00914         }
-00915         if ((needs_unsigned) && (atoi(val)<0))
-00916         {
-00917                 this->error = CONF_NOT_UNSIGNED;
-00918                 return 0;
-00919         }
-00920         return atoi(val);
-00921 }
+Definition at line 896 of file modules.cpp.
+

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

+

00897 {
+00898         char val[MAXBUF];
+00899         char t[MAXBUF];
+00900         char n[MAXBUF];
+00901         strlcpy(t,tag.c_str(),MAXBUF);
+00902         strlcpy(n,name.c_str(),MAXBUF);
+00903         int res = ReadConf(cache,t,n,index,val);
+00904         if (!res)
+00905         {
+00906                 this->error = CONF_VALUE_NOT_FOUND;
+00907                 return 0;
+00908         }
+00909         for (int i = 0; i < strlen(val); i++)
+00910         {
+00911                 if (!isdigit(val[i]))
+00912                 {
+00913                         this->error = CONF_NOT_A_NUMBER;
+00914                         return 0;
+00915                 }
+00916         }
+00917         if ((needs_unsigned) && (atoi(val)<0))
+00918         {
+00919                 this->error = CONF_NOT_UNSIGNED;
+00920                 return 0;
+00921         }
+00922         return atoi(val);
+00923 }
 
@@ -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 861 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

00862 {
-00863         char val[MAXBUF];
-00864         char t[MAXBUF];
-00865         char n[MAXBUF];
-00866         strlcpy(t,tag.c_str(),MAXBUF);
-00867         strlcpy(n,name.c_str(),MAXBUF);
-00868         int res = ReadConf(cache,t,n,index,val);
-00869         if (!res)
-00870         {
-00871                 this->error = CONF_VALUE_NOT_FOUND;
-00872                 return "";
-00873         }
-00874         return std::string(val);
-00875 }
+Definition at line 863 of file modules.cpp.
+

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

00864 {
+00865         char val[MAXBUF];
+00866         char t[MAXBUF];
+00867         char n[MAXBUF];
+00868         strlcpy(t,tag.c_str(),MAXBUF);
+00869         strlcpy(n,name.c_str(),MAXBUF);
+00870         int res = ReadConf(cache,t,n,index,val);
+00871         if (!res)
+00872         {
+00873                 this->error = CONF_VALUE_NOT_FOUND;
+00874                 return "";
+00875         }
+00876         return std::string(val);
+00877 }
 
@@ -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 973 of file modules.cpp. +Definition at line 975 of file modules.cpp.

-References readerror. +References readerror.

-

00974 {
-00975         return this->readerror;
-00976 }
+
00976 {
+00977         return this->readerror;
+00978 }
 
@@ -685,9 +685,9 @@ The contents of the configuration file This protected member should never be acc

It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.

-Definition at line 1080 of file modules.h. +Definition at line 1105 of file modules.h.

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

@@ -711,9 +711,9 @@ Referenced by ConfigReader(

-Definition at line 1085 of file modules.h. +Definition at line 1110 of file modules.h.

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

@@ -737,9 +737,9 @@ Referenced by ConfigReader(

-Definition at line 1081 of file modules.h. +Definition at line 1106 of file modules.h.

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

@@ -765,14 +765,14 @@ Used to store errors.

-Definition at line 1084 of file modules.h. +Definition at line 1109 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 Wed Apr 20 15:47:01 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 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 d29d1363b..0f73e7de4 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -16,7 +16,7 @@ registration_timeoutConnectClass typeConnectClass ~classbase()classbase [inline] -
Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index de93840c8..61fb38d40 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -253,7 +253,7 @@ Definition at line 50 of fi
The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 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 9fe87f425..27446a113 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -6,7 +6,7 @@

DNS Member List

This is the complete list of members for DNS, including all inherited members. - + @@ -23,18 +23,17 @@ - + - - + -
binipDNS [private]
binipDNS [private]
DNS()DNS
DNS(std::string dnsserver)DNS
dns_aton4(const char *const ipstring)DNS [private]
dns_ntoa4(const in_addr *const ip)DNS [private]
dns_ntoa4_r(const in_addr *const ip)DNS [private]
dns_ntoa4_s(const in_addr *const ip, char *const result)DNS [private]
fdDNS [private]
fdDNS [private]
ForwardLookup(std::string host)DNS
GetFD()DNS
GetResult()DNS
HasResult()DNS
iDNS [private]
resultDNS [private]
resultDNS [private]
ReverseLookup(std::string ip)DNS
SetNS(std::string dnsserver)DNS
tDNS [private]
~DNS()DNS

Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 29354bad4..9b2563cf4 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -54,30 +54,28 @@ int dns_getname4 (const in_addr *const ip) -char * dns_getresult (const int fd) +char * dns_getresult (const int fd) in_addr * dns_aton4_s (const char *const ipstring, in_addr *const ip) -char * dns_ntoa4_s (const in_addr *const ip, char *const result) +char * dns_ntoa4_s (const in_addr *const ip, char *const result) -char * dns_getresult_s (const int fd, char *const result) +char * dns_getresult_s (const int fd, char *const result) in_addr * dns_aton4_r (const char *const ipstring) char * dns_ntoa4_r (const in_addr *const ip) -char * dns_getresult_r (const int fd) +char * dns_getresult_r (const int fd)

Private Attributes

-char * result +in_addr * binip -in_addr * binip +char * result int t -int i - -unsigned int fd +unsigned int fd

Detailed Description

@@ -794,13 +792,13 @@ This method will start the reverse lookup of an ip given in dotted decimal forma

Member Data Documentation

-

+

@@ -815,16 +813,16 @@ This method will start the reverse lookup of an ip given in dotted decimal forma

-Definition at line 39 of file dns.h. +Definition at line 38 of file dns.h.

-
in_addr* DNS::binip [private] + in_addr* DNS::binip [private]
-

+

@@ -842,13 +840,13 @@ Definition at line 39 of file Definition at line 42 of file dns.h.
-
unsigned int DNS::fd [private] + unsigned int DNS::fd [private]
-

+

@@ -863,31 +861,7 @@ Definition at line 42 of file

-Definition at line 40 of file dns.h. - -

-
int DNS::i [private] + char* DNS::result [private]
-

- - - - -
- - -
char* DNS::result [private] -
-
- - - - +Definition at line 39 of file dns.h.
-   - - -

- -

-Definition at line 38 of file dns.h.

@@ -916,7 +890,7 @@ Definition at line 40 of file


The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 d0902d831..bed310fd6 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 Wed Apr 20 15:47:02 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index b04ff66b1..7d4681a99 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -45,7 +45,7 @@ Definition at line 88 of fi
The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 24baef684..3e77cb876 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classEvent.html b/docs/module-doc/classEvent.html index 170fa3474..86bb599fa 100644 --- a/docs/module-doc/classEvent.html +++ b/docs/module-doc/classEvent.html @@ -48,7 +48,7 @@ When the class is properly instantiated it may be sent to all modules using the

-Definition at line 191 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 194 of file modules.h.

Constructor & Destructor Documentation

@@ -132,7 +132,7 @@ Get the Event data.

Definition at line 339 of file modules.cpp.

-References data. +References data.

00340 {
 00341         return this->data;
@@ -171,7 +171,7 @@ Use this to determine the event type for safe casting of the data
 

Definition at line 355 of file modules.cpp.

-References id. +References id.

00356 {
 00357         return this->id;
@@ -210,7 +210,7 @@ Get the event Source.
 

Definition at line 344 of file modules.cpp.

-References source. +References source.

00345 {
 00346         return this->source;
@@ -284,7 +284,7 @@ This member holds a pointer to arbitary data set by the emitter of the message.
 

-Definition at line 196 of file modules.h. +Definition at line 199 of file modules.h.

Referenced by GetData().

@@ -312,7 +312,7 @@ The event identifier.

This is arbitary text which should be used to distinguish one type of event from another.

-Definition at line 205 of file modules.h. +Definition at line 208 of file modules.h.

Referenced by GetEventID(). @@ -340,14 +340,14 @@ This is a pointer to the sender of the message, which can be used to directly tr

-Definition at line 200 of file modules.h. +Definition at line 203 of file modules.h.

Referenced by GetSource().


The documentation for this class was generated from the following files: -
Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 d52ce9172..bbece52c2 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index 0b63537a6..3eb87d59d 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -22,7 +22,7 @@ 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: -
Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 8c3c7da3d..a76751ffc 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index c90e27944..c173b696f 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -247,7 +247,7 @@ Referenced by ExtMode()
The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 a7cbccc24..9627587a2 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index c97ad8fcc..eb4935693 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 e6eb6aae8..b4b4ce247 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index ffccc4d37..15bfc3626 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -47,7 +47,7 @@ This class contains methods for read-only manipulation of a text file in memory.

-Definition at line 1161 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 1186 of file modules.h.

Constructor & Destructor Documentation

@@ -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 986 of file modules.cpp. +Definition at line 988 of file modules.cpp.

-

00987 {
-00988 }
+
00989 {
+00990 }
 
@@ -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 979 of file modules.cpp. +Definition at line 981 of file modules.cpp.

-References fc, and file_cache. +References fc, and file_cache.

-

00980 {
-00981         file_cache c;
-00982         readfile(c,filename.c_str());
-00983         this->fc = c;
-00984 }
+
00982 {
+00983         file_cache c;
+00984         readfile(c,filename.c_str());
+00985         this->fc = c;
+00986 }
 
@@ -155,10 +155,10 @@ Default destructor.

This deletes the memory allocated to the file.

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

-

00999 {
-01000 }
+
01001 {
+01002 }
 
@@ -192,20 +192,20 @@ Returns true if the file exists This function will return false if the file coul

-Definition at line 1002 of file modules.cpp. +Definition at line 1004 of file modules.cpp.

-References fc. +References fc.

-

01003 {
-01004         if (fc.size() == 0)
-01005         {
-01006                 return(false);
-01007         }
-01008         else
-01009         {
-01010                 return(true);
-01011         }
-01012 }
+
01005 {
+01006         if (fc.size() == 0)
+01007         {
+01008                 return(false);
+01009         }
+01010         else
+01011         {
+01012                 return(true);
+01013         }
+01014 }
 
@@ -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 1021 of file modules.cpp. +Definition at line 1023 of file modules.cpp.

-References fc. +References fc.

-

01022 {
-01023         return fc.size();
-01024 }
+
01024 {
+01025         return fc.size();
+01026 }
 
@@ -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 1014 of file modules.cpp. +Definition at line 1016 of file modules.cpp.

-References fc. +References fc.

-

01015 {
-01016         if ((x<0) || (x>fc.size()))
-01017                 return "";
-01018         return fc[x];
-01019 }
+
01017 {
+01018         if ((x<0) || (x>fc.size()))
+01019                 return "";
+01020         return fc[x];
+01021 }
 
@@ -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 990 of file modules.cpp. +Definition at line 992 of file modules.cpp.

-References fc, and file_cache. +References fc, and file_cache.

-

00991 {
-00992         file_cache c;
-00993         readfile(c,filename.c_str());
-00994         this->fc = c;
-00995 }
+
00993 {
+00994         file_cache c;
+00995         readfile(c,filename.c_str());
+00996         this->fc = c;
+00997 }
 
@@ -354,14 +354,14 @@ References fc, and

-Definition at line 1163 of file modules.h. +Definition at line 1188 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 c4ab25dee..b8e35fd58 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index 623741c5a..3ea20d2ce 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -53,7 +53,7 @@ Definition at line 79 of fi
The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 f1eeb07c7..e76b1ac3e 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index 97e3f7154..71d59cfe3 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -178,7 +178,7 @@ Definition at line 32 of
The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 58554fc61..4a5a4aa56 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 Wed Apr 20 15:47:04 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 626406afd..2172cc4ea 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -22,7 +22,7 @@ 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: -
Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 fee911d38..e6442ed32 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 57b456cd1..61717cecc 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -52,7 +52,7 @@ Referenced by userrec::Invite
The documentation for this class was generated from the following file:
-
Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 b76cb3967..556118288 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 Wed Apr 20 15:47:04 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index 424dee41d..4f707ad92 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -53,7 +53,7 @@ Definition at line 68 of fi
The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 dca5b61d4..fceaaac90 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 Wed Apr 20 15:47:04 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index 8cd028b8c..4f4bdd98b 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -53,7 +53,7 @@ Definition at line 70 of

Definition at line 75 of file channels.h.

-Referenced by chanrec::SetCustomModeParam(). +Referenced by chanrec::SetCustomModeParam().

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

Definition at line 73 of file channels.h.

-Referenced by chanrec::SetCustomModeParam(). +Referenced by chanrec::SetCustomModeParam().

@@ -105,12 +105,12 @@ Referenced by chanrec::Set

Definition at line 74 of file channels.h.

-Referenced by chanrec::SetCustomModeParam(). +Referenced by chanrec::SetCustomModeParam().


The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 899b9eb48..ddafaae13 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -23,12 +23,15 @@ OnCheckReady(userrec *user)Module [virtual] OnEvent(Event *event)Module [virtual] OnExtendedMode(userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)Module [virtual] + OnGlobalConnect(userrec *user)Module [virtual] + OnGlobalOper(userrec *user)Module [virtual] OnInfo(userrec *user)Module [virtual] OnKill(userrec *source, userrec *dest, std::string reason)Module [virtual] OnLoadModule(Module *mod, std::string name)Module [virtual] OnLocalTopicChange(userrec *user, chanrec *chan, std::string topic)Module [virtual] OnMeshToken(char token, string_list params, serverrec *source, serverrec *reply, std::string tcp_host, std::string ipaddr, int port)Module [virtual] OnOper(userrec *user)Module [virtual] + OnOperCompare(std::string password, std::string input)Module [virtual] OnPacketReceive(std::string &data, std::string serv)Module [virtual] OnPacketTransmit(std::string &data, std::string serv)Module [virtual] OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user)Module [virtual] @@ -56,7 +59,7 @@ OnWhois(userrec *source, userrec *dest)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:49 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 6062b0714..c587dcc90 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -156,6 +156,15 @@ Inherits classbase. virtual char * OnRequest (Request *request)  Called whenever a Request class is sent to your module by another module.

+virtual int OnOperCompare (std::string password, std::string input) + + Called whenever an oper password is to be compared to what a user has input.


+virtual void OnGlobalOper (userrec *user) + + Called whenever a user is given usermode +o, anywhere on the network.


+virtual void OnGlobalConnect (userrec *user) + + Called whenever a user connects, anywhere on the network.



Detailed Description

Base class for all InspIRCd modules This class is the base class for InspIRCd modules. @@ -164,7 +173,7 @@ All modules must inherit from this class, its methods will be called when irc se

-Definition at line 233 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 236 of file modules.h.

Constructor & Destructor Documentation

@@ -871,6 +880,78 @@ Definition at line 373
+

+ + + + +
+ + + + + + + + + + +
void Module::OnGlobalConnect userrec user  )  [virtual]
+
+ + + + + +
+   + + +

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

+

00410 { };
+
+

+ + + + +
+ + + + + + + + + + +
void Module::OnGlobalOper userrec user  )  [virtual]
+
+ + + + + +
+   + + +

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

+

00409 { };
+

@@ -1166,6 +1247,51 @@ Definition at line 375
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
int Module::OnOperCompare std::string  password,
std::string  input
[virtual]
+
+ + + + + +
+   + + +

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

+

00408 { return 0; };
+

@@ -2334,7 +2460,7 @@ Definition at line 377


The documentation for this class was generated from the following files: -
Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:49 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 9349845ba..eb43d4db8 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 Wed Apr 20 15:47:06 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:50 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 46ebd6f6c..b17f50643 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -30,7 +30,7 @@ This is to allow for modules to create many different variants of

-Definition at line 1216 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 1241 of file modules.h.

Constructor & Destructor Documentation

@@ -58,9 +58,9 @@ Definition at line 1216 o

-Definition at line 1219 of file modules.h. +Definition at line 1244 of file modules.h.

-

01219 { }
+
01244 { }
 
@@ -91,9 +91,9 @@ Definition at line 1219 o

-Definition at line 1220 of file modules.h. +Definition at line 1245 of file modules.h.

-

01220 { }
+
01245 { }
 
@@ -130,7 +130,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:50 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 d58038317..91cee99f4 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 Wed Apr 20 15:47:06 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:50 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleMessage.html b/docs/module-doc/classModuleMessage.html index 98ed3879d..75d1769b2 100644 --- a/docs/module-doc/classModuleMessage.html +++ b/docs/module-doc/classModuleMessage.html @@ -26,7 +26,7 @@ The ModuleMessage class is the base class of 138 of file modules.h.

Member Function Documentation

+Definition at line 141 of file modules.h.

Member Function Documentation

@@ -61,7 +61,7 @@ Implemented in Request, and
The documentation for this class was generated from the following file:
-
Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:50 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 fb7c04944..da0ee8a07 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 Wed Apr 20 15:47:06 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:50 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index a4fac087a..2404c5e44 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -82,7 +82,7 @@ Definition at line 114 of f
The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:06 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:50 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 508792dd7..e9c70663d 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 Wed Apr 20 15:47:07 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:50 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classRequest.html b/docs/module-doc/classRequest.html index 8af50c2b9..68ba84a00 100644 --- a/docs/module-doc/classRequest.html +++ b/docs/module-doc/classRequest.html @@ -48,7 +48,7 @@ When this class is properly instantiated it may be sent to a module using the

-Definition at line 151 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 154 of file modules.h.

Constructor & Destructor Documentation

@@ -132,7 +132,7 @@ Fetch the Request data.

Definition at line 310 of file modules.cpp.

-References data. +References data.

00311 {
 00312         return this->data;
@@ -171,7 +171,7 @@ Fetch the request destination (should be 'this' in the receiving module).
 

Definition at line 320 of file modules.cpp.

-References dest. +References dest.

00321 {
 00322         return this->dest;
@@ -210,7 +210,7 @@ Fetch the request source.
 

Definition at line 315 of file modules.cpp.

-References source. +References source.

00316 {
 00317         return this->source;
@@ -251,7 +251,7 @@ Implements ModuleMessage.
 

Definition at line 325 of file modules.cpp.

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

00326 {
 00327         if (this->dest)
@@ -290,7 +290,7 @@ This member holds a pointer to arbitary data set by the emitter of the message.
 

-Definition at line 156 of file modules.h. +Definition at line 159 of file modules.h.

Referenced by GetData().

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

-Definition at line 163 of file modules.h. +Definition at line 166 of file modules.h.

Referenced by GetDest(), and Send(). @@ -346,14 +346,14 @@ This is a pointer to the sender of the message, which can be used to directly tr

-Definition at line 160 of file modules.h. +Definition at line 163 of file modules.h.

Referenced by GetSource().


The documentation for this class was generated from the following files: -
Generated on Wed Apr 20 15:47:07 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:50 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 4f69dbfbb..cff4e3588 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -67,7 +67,7 @@ UserToPseudo(userrec *user, std::string message)Server [virtual] ~classbase()classbase [inline] ~Server()Server [virtual] -
Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index f5a542c97..ae31470bc 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -197,7 +197,7 @@ All modules should instantiate at least one copy of this class, and use its memb

-Definition at line 627 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 652 of file modules.h.

Constructor & Destructor Documentation

@@ -227,10 +227,10 @@ Default constructor.

Creates a Server object.

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

-

00415 {
-00416 }
+
00417 {
+00418 }
 
@@ -263,10 +263,10 @@ Default destructor.

Destroys a Server object.

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

-

00419 {
-00420 }
+
00421 {
+00422 }
 
@@ -330,13 +330,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 495 of file modules.cpp. +Definition at line 497 of file modules.cpp.

References createcommand().

-

00496 {
-00497         createcommand(cmd,f,flags,minparams,source);
-00498 }
+
00498 {
+00499         createcommand(cmd,f,flags,minparams,source);
+00500 }
 
@@ -391,13 +391,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 713 of file modules.cpp. +Definition at line 715 of file modules.cpp.

References add_eline(), and duration().

-

00714 {
-00715         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00716 }
+
00716 {
+00717         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00718 }
 
@@ -436,16 +436,16 @@ This call is used to implement modes like +q and +a. The characteristics of thes (4) The mode and its parameter are NOT stored in the channels modes structure

It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing.

-Definition at line 640 of file modules.cpp. +Definition at line 642 of file modules.cpp.

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

-

00641 {
-00642         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
-00643         if (res)
-00644                 ModeMakeList(modechar);
-00645         return res;
-00646 }
+
00643 {
+00644         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
+00645         if (res)
+00646                 ModeMakeList(modechar);
+00647         return res;
+00648 }
 
@@ -506,28 +506,28 @@ Adds an extended mode letter which is parsed by a module.

This allows modules to add extra mode letters, e.g. +x for hostcloak. the "type" parameter is either MT_CHANNEL, MT_CLIENT, or MT_SERVER, to indicate wether the mode is a channel mode, a client mode, or a server mode. requires_oper is used with MT_CLIENT type modes only to indicate the mode can only be set or unset by an oper. If this is used for MT_CHANNEL type modes it is ignored. params_when_on is the number of modes to expect when the mode is turned on (for type MT_CHANNEL only), e.g. with mode +k, this would have a value of 1. the params_when_off value has a similar value to params_when_on, except it indicates the number of parameters to expect when the mode is disabled. Modes which act in a similar way to channel mode +l (e.g. require a parameter to enable, but not to disable) should use this parameter. The function returns false if the mode is unavailable, and will not attempt to allocate another character, as this will confuse users. This also means that as only one module can claim a specific mode character, the core does not need to keep track of which modules own which modes, which speeds up operation of the server. In this version, a mode can have at most one parameter, attempting to use more parameters will have undefined effects.

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

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

-

00621 {
-00622         if (type == MT_SERVER)
-00623         {
-00624                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
-00625                 return false;
-00626         }
-00627         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
-00628         {
-00629                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
-00630                 return false;
-00631         }
-00632         if ((params_when_on>1) || (params_when_off>1))
-00633         {
-00634                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
-00635                 return false;
-00636         }
-00637         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
-00638 }
+
00623 {
+00624         if (type == MT_SERVER)
+00625         {
+00626                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
+00627                 return false;
+00628         }
+00629         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
+00630         {
+00631                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
+00632                 return false;
+00633         }
+00634         if ((params_when_on>1) || (params_when_off>1))
+00635         {
+00636                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
+00637                 return false;
+00638         }
+00639         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
+00640 }
 
@@ -582,13 +582,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 693 of file modules.cpp. +Definition at line 695 of file modules.cpp.

References add_gline(), and duration().

-

00694 {
-00695         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00696 }
+
00696 {
+00697         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00698 }
 
@@ -643,13 +643,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 708 of file modules.cpp. +Definition at line 710 of file modules.cpp.

References add_kline(), and duration().

-

00709 {
-00710         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00711 }
+
00711 {
+00712         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00713 }
 
@@ -704,13 +704,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 698 of file modules.cpp. +Definition at line 700 of file modules.cpp.

References add_qline(), and duration().

-

00699 {
-00700         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
-00701 }
+
00701 {
+00702         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
+00703 }
 
@@ -765,13 +765,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 703 of file modules.cpp. +Definition at line 705 of file modules.cpp.

References add_zline(), and duration().

-

00704 {
-00705         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
-00706 }
+
00706 {
+00707         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
+00708 }
 
@@ -805,13 +805,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 743 of file modules.cpp. +Definition at line 745 of file modules.cpp.

References duration().

-

00744 {
-00745         return duration(delta.c_str());
-00746 }
+
00746 {
+00747         return duration(delta.c_str());
+00748 }
 
@@ -867,11 +867,11 @@ Calls the handler for a command, either implemented by the core or by another mo You can use this function to trigger other commands in the ircd, such as PRIVMSG, JOIN, KICK etc, or even as a method of callback. By defining command names that are untypeable for users on irc (e.g. those which contain a or
) 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 485 of file modules.cpp. +Definition at line 487 of file modules.cpp.

-

00486 {
-00487         call_handler(commandname.c_str(),parameters,pcnt,user);
-00488 }
+
00488 {
+00489         call_handler(commandname.c_str(),parameters,pcnt,user);
+00490 }
 
@@ -914,13 +914,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 573 of file modules.cpp. +Definition at line 575 of file modules.cpp.

References ChangeName().

-

00574 {
-00575         ChangeName(user,gecos.c_str());
-00576 }
+
00576 {
+00577         ChangeName(user,gecos.c_str());
+00578 }
 
@@ -963,13 +963,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 568 of file modules.cpp. +Definition at line 570 of file modules.cpp.

References ChangeDisplayedHost().

-

00569 {
-00570         ChangeDisplayedHost(user,host.c_str());
-00571 }
+
00571 {
+00572         ChangeDisplayedHost(user,host.c_str());
+00573 }
 
@@ -1012,11 +1012,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 469 of file modules.cpp. +Definition at line 471 of file modules.cpp.

-

00470 {
-00471         force_nickchange(user,nickname.c_str());
-00472 }
+
00472 {
+00473         force_nickchange(user,nickname.c_str());
+00474 }
 
@@ -1059,13 +1059,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 593 of file modules.cpp. +Definition at line 595 of file modules.cpp.

References cmode().

-

00594 {
-00595         return cmode(User,Chan);
-00596 }
+
00596 {
+00597         return cmode(User,Chan);
+00598 }
 
@@ -1108,13 +1108,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 546 of file modules.cpp. +Definition at line 548 of file modules.cpp.

References common_channels().

-

00547 {
-00548         return (common_channels(u1,u2) != 0);
-00549 }
+
00549 {
+00550         return (common_channels(u1,u2) != 0);
+00551 }
 
@@ -1148,11 +1148,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 648 of file modules.cpp. +Definition at line 650 of file modules.cpp.

-

00649 {
-00650         return usercount(c);
-00651 }
+
00651 {
+00652         return usercount(c);
+00653 }
 
@@ -1186,13 +1186,13 @@ Deletes a local E-Line.

-Definition at line 738 of file modules.cpp. +Definition at line 740 of file modules.cpp.

References del_eline().

-

00739 {
-00740         del_eline(hostmask.c_str());
-00741 }
+
00741 {
+00742         del_eline(hostmask.c_str());
+00743 }
 
@@ -1226,13 +1226,13 @@ Deletes a G-Line from all servers on the mesh.

-Definition at line 718 of file modules.cpp. +Definition at line 720 of file modules.cpp.

References del_gline().

-

00719 {
-00720         del_gline(hostmask.c_str());
-00721 }
+
00721 {
+00722         del_gline(hostmask.c_str());
+00723 }
 
@@ -1266,13 +1266,13 @@ Deletes a local K-Line.

-Definition at line 733 of file modules.cpp. +Definition at line 735 of file modules.cpp.

References del_kline().

-

00734 {
-00735         del_kline(hostmask.c_str());
-00736 }
+
00736 {
+00737         del_kline(hostmask.c_str());
+00738 }
 
@@ -1306,13 +1306,13 @@ Deletes a Q-Line from all servers on the mesh.

-Definition at line 723 of file modules.cpp. +Definition at line 725 of file modules.cpp.

References del_qline().

-

00724 {
-00725         del_qline(nickname.c_str());
-00726 }
+
00726 {
+00727         del_qline(nickname.c_str());
+00728 }
 
@@ -1346,13 +1346,13 @@ Deletes a Z-Line from all servers on the mesh.

-Definition at line 728 of file modules.cpp. +Definition at line 730 of file modules.cpp.

References del_zline().

-

00729 {
-00730         del_zline(ipaddr.c_str());
-00731 }
+
00731 {
+00732         del_zline(ipaddr.c_str());
+00733 }
 
@@ -1386,11 +1386,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 588 of file modules.cpp. +Definition at line 590 of file modules.cpp.

-

00589 {
-00590         return FindChan(channel.c_str());
-00591 }
+
00591 {
+00592         return FindChan(channel.c_str());
+00593 }
 
@@ -1424,20 +1424,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 821 of file modules.cpp. +Definition at line 823 of file modules.cpp.

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

-

00822 {
-00823         for (int i = 0; i <= MODCOUNT; i++)
-00824         {
-00825                 if (module_names[i] == name)
-00826                 {
-00827                         return modules[i];
-00828                 }
-00829         }
-00830         return NULL;
-00831 }
+
00824 {
+00825         for (int i = 0; i <= MODCOUNT; i++)
+00826         {
+00827                 if (module_names[i] == name)
+00828                 {
+00829                         return modules[i];
+00830                 }
+00831         }
+00832         return NULL;
+00833 }
 
@@ -1471,11 +1471,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 583 of file modules.cpp. +Definition at line 585 of file modules.cpp.

-

00584 {
-00585         return Find(nick);
-00586 }
+
00586 {
+00587         return Find(nick);
+00588 }
 
@@ -1508,11 +1508,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 613 of file modules.cpp. +Definition at line 615 of file modules.cpp.

-

00614 {
-00615         return Admin(getadminname(),getadminemail(),getadminnick());
-00616 }
+
00616 {
+00617         return Admin(getadminname(),getadminemail(),getadminnick());
+00618 }
 
@@ -1545,11 +1545,11 @@ Returns the network name, global to all linked servers.

-Definition at line 608 of file modules.cpp. +Definition at line 610 of file modules.cpp.

-

00609 {
-00610         return getnetworkname();
-00611 }
+
00611 {
+00612         return getnetworkname();
+00613 }
 
@@ -1582,11 +1582,11 @@ Returns the server name of the server where the module is loaded.

-Definition at line 603 of file modules.cpp. +Definition at line 605 of file modules.cpp.

-

00604 {
-00605         return getservername();
-00606 }
+
00606 {
+00607         return getservername();
+00608 }
 
@@ -1620,28 +1620,28 @@ Fetches the userlist of a channel.

This function must be here and not a member of userrec or chanrec due to include constraints.

-Definition at line 450 of file modules.cpp. +Definition at line 452 of file modules.cpp.

References chanuserlist, clientlist, has_channel(), and isnick().

-

00451 {
-00452         chanuserlist userl;
-00453         userl.clear();
-00454         for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
-00455         {
-00456                 if (i->second)
-00457                 {
-00458                         if (has_channel(i->second,chan))
-00459                         {
-00460                                 if (isnick(i->second->nick))
-00461                                 {
-00462                                         userl.push_back(i->second);
-00463                                 }
-00464                         }
-00465                 }
-00466         }
-00467         return userl;
-00468 }
+
00453 {
+00454         chanuserlist userl;
+00455         userl.clear();
+00456         for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
+00457         {
+00458                 if (i->second)
+00459                 {
+00460                         if (has_channel(i->second,chan))
+00461                         {
+00462                                 if (isnick(i->second->nick))
+00463                                 {
+00464                                         userl.push_back(i->second);
+00465                                 }
+00466                         }
+00467                 }
+00468         }
+00469         return userl;
+00470 }
 
@@ -1675,13 +1675,13 @@ Returns true if a nick is valid.

Nicks for unregistered connections will return false.

-Definition at line 578 of file modules.cpp. +Definition at line 580 of file modules.cpp.

References isnick().

-

00579 {
-00580         return (isnick(nick.c_str()) != 0);
-00581 }
+
00581 {
+00582         return (isnick(nick.c_str()) != 0);
+00583 }
 
@@ -1724,13 +1724,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 598 of file modules.cpp. +Definition at line 600 of file modules.cpp.

References has_channel().

-

00599 {
-00600         return has_channel(User,Chan);
-00601 }
+
00601 {
+00602         return has_channel(User,Chan);
+00603 }
 
@@ -1764,13 +1764,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 480 of file modules.cpp. +Definition at line 482 of file modules.cpp.

References is_uline().

-

00481 {
-00482         return is_uline(server.c_str());
-00483 }
+
00483 {
+00484         return is_uline(server.c_str());
+00485 }
 
@@ -1804,35 +1804,35 @@ Returns true if a nick!ident string is correctly formatted, false if otherwise.

-Definition at line 748 of file modules.cpp. +Definition at line 750 of file modules.cpp.

-

00749 {
-00750         const char* dest = mask.c_str();
-00751         if (strchr(dest,'!')==0)
-00752                 return false;
-00753         if (strchr(dest,'@')==0)
+
00751 {
+00752         const char* dest = mask.c_str();
+00753         if (strchr(dest,'!')==0)
 00754                 return false;
-00755         for (int i = 0; i < strlen(dest); i++)
-00756                 if (dest[i] < 32)
-00757                         return false;
-00758         for (int i = 0; i < strlen(dest); i++)
-00759                 if (dest[i] > 126)
-00760                         return false;
-00761         int c = 0;
-00762         for (int i = 0; i < strlen(dest); i++)
-00763                 if (dest[i] == '!')
-00764                         c++;
-00765         if (c>1)
-00766                 return false;
-00767         c = 0;
-00768         for (int i = 0; i < strlen(dest); i++)
-00769                 if (dest[i] == '@')
-00770                         c++;
-00771         if (c>1)
-00772                 return false;
-00773 
-00774         return true;
-00775 }
+00755         if (strchr(dest,'@')==0)
+00756                 return false;
+00757         for (int i = 0; i < strlen(dest); i++)
+00758                 if (dest[i] < 32)
+00759                         return false;
+00760         for (int i = 0; i < strlen(dest); i++)
+00761                 if (dest[i] > 126)
+00762                         return false;
+00763         int c = 0;
+00764         for (int i = 0; i < strlen(dest); i++)
+00765                 if (dest[i] == '!')
+00766                         c++;
+00767         if (c>1)
+00768                 return false;
+00769         c = 0;
+00770         for (int i = 0; i < strlen(dest); i++)
+00771                 if (dest[i] == '@')
+00772                         c++;
+00773         if (c>1)
+00774                 return false;
+00775 
+00776         return true;
+00777 }
 
@@ -1881,11 +1881,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 440 of file modules.cpp. +Definition at line 442 of file modules.cpp.

-

00441 {
-00442         return add_channel(user,cname.c_str(),key.c_str(),true);
-00443 }
+
00443 {
+00444         return add_channel(user,cname.c_str(),key.c_str(),true);
+00445 }
 
@@ -1928,11 +1928,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 490 of file modules.cpp. +Definition at line 492 of file modules.cpp.

-

00491 {
-00492         log(level,"%s",s.c_str());
-00493 }
+
00493 {
+00494         log(level,"%s",s.c_str());
+00495 }
 
@@ -1975,14 +1975,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 427 of file modules.cpp. +Definition at line 429 of file modules.cpp.

-

00428 {
-00429         char literal[MAXBUF],pattern[MAXBUF];
-00430         strlcpy(literal,sliteral.c_str(),MAXBUF);
-00431         strlcpy(pattern,spattern.c_str(),MAXBUF);
-00432         return match(literal,pattern);
-00433 }
+
00430 {
+00431         char literal[MAXBUF],pattern[MAXBUF];
+00432         strlcpy(literal,sliteral.c_str(),MAXBUF);
+00433         strlcpy(pattern,spattern.c_str(),MAXBUF);
+00434         return match(literal,pattern);
+00435 }
 
@@ -2025,15 +2025,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 803 of file modules.cpp. +Definition at line 805 of file modules.cpp.

-

00804 {
-00805         if (c)
-00806         {
-00807                 return ChanAnyOnThisServer(c,(char*)servername.c_str());
-00808         }
-00809         else return false;
-00810 }
+
00806 {
+00807         if (c)
+00808         {
+00809                 return ChanAnyOnThisServer(c,(char*)servername.c_str());
+00810         }
+00811         else return false;
+00812 }
 
@@ -2076,15 +2076,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 812 of file modules.cpp. +Definition at line 814 of file modules.cpp.

-

00813 {
-00814         if (u)
-00815         {
-00816                 return CommonOnThisServer(u,(char*)servername.c_str());
-00817         }
-00818         else return false;
-00819 }
+
00815 {
+00816         if (u)
+00817         {
+00818                 return CommonOnThisServer(u,(char*)servername.c_str());
+00819         }
+00820         else return false;
+00821 }
 
@@ -2118,11 +2118,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 777 of file modules.cpp. +Definition at line 779 of file modules.cpp.

-

00778 {
-00779         NetSendToAll((char*)text.c_str());
-00780 }
+
00780 {
+00781         NetSendToAll((char*)text.c_str());
+00782 }
 
@@ -2156,11 +2156,11 @@ This function is equivalent to Server::MeshSendToAll except it will only route t

-Definition at line 788 of file modules.cpp. +Definition at line 790 of file modules.cpp.

-

00789 {
-00790         NetSendToAllAlive((char*)text.c_str());
-00791 }
+
00791 {
+00792         NetSendToAllAlive((char*)text.c_str());
+00793 }
 
@@ -2203,11 +2203,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 798 of file modules.cpp. +Definition at line 800 of file modules.cpp.

-

00799 {
-00800         NetSendToAllExcept(target.c_str(),(char*)text.c_str());
-00801 }
+
00801 {
+00802         NetSendToAllExcept(target.c_str(),(char*)text.c_str());
+00803 }
 
@@ -2250,12 +2250,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 782 of file modules.cpp. +Definition at line 784 of file modules.cpp.

-

00783 {
-00784         if (user)
-00785                 NetSendToCommon(user,(char*)text.c_str());
-00786 }
+
00785 {
+00786         if (user)
+00787                 NetSendToCommon(user,(char*)text.c_str());
+00788 }
 
@@ -2298,11 +2298,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 793 of file modules.cpp. +Definition at line 795 of file modules.cpp.

-

00794 {
-00795         NetSendToOne((char*)destination.c_str(),(char*)text.c_str());
-00796 }
+
00796 {
+00797         NetSendToOne((char*)destination.c_str(),(char*)text.c_str());
+00798 }
 
@@ -2351,11 +2351,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 445 of file modules.cpp. +Definition at line 447 of file modules.cpp.

-

00446 {
-00447         return del_channel(user,cname.c_str(),reason.c_str(),false);
-00448 }
+
00448 {
+00449         return del_channel(user,cname.c_str(),reason.c_str(),false);
+00450 }
 
@@ -2404,38 +2404,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 663 of file modules.cpp. -

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

-

00664 {
-00665         zombie->fd = alive->fd;
-00666         alive->fd = FD_MAGIC_NUMBER;
-00667         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
-00668         kill_link(alive,message.c_str());
-00669         for (int i = 0; i != MAXCHANS; i++)
-00670         {
-00671                 if (zombie->chans[i].channel != NULL)
-00672                 {
-00673                         if (zombie->chans[i].channel->name)
-00674                         {
-00675                                 chanrec* Ptr = zombie->chans[i].channel;
-00676                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
-00677                                 if (Ptr->topicset)
-00678                                 {
-00679                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
-00680                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
-00681                                 }
-00682                                 userlist(zombie,Ptr);
-00683                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
-00684                                 //WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr));
-00685                                 //WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created);
-00686 
-00687                         }
-00688                 }
-00689         }
-00690 
-00691 }
+Definition at line 665 of file modules.cpp.
+

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

+

00666 {
+00667         zombie->fd = alive->fd;
+00668         alive->fd = FD_MAGIC_NUMBER;
+00669         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
+00670         kill_link(alive,message.c_str());
+00671         for (int i = 0; i != MAXCHANS; i++)
+00672         {
+00673                 if (zombie->chans[i].channel != NULL)
+00674                 {
+00675                         if (zombie->chans[i].channel->name)
+00676                         {
+00677                                 chanrec* Ptr = zombie->chans[i].channel;
+00678                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
+00679                                 if (Ptr->topicset)
+00680                                 {
+00681                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
+00682                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
+00683                                 }
+00684                                 userlist(zombie,Ptr);
+00685                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
+00686                                 //WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr));
+00687                                 //WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created);
+00688 
+00689                         }
+00690                 }
+00691         }
+00692 
+00693 }
 
@@ -2480,14 +2480,14 @@ 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 474 of file modules.cpp. +Definition at line 476 of file modules.cpp.

References userrec::nick, and send_network_quit().

-

00475 {
-00476         send_network_quit(user->nick,reason.c_str());
-00477         kill_link(user,reason.c_str());
-00478 }
+
00477 {
+00478         send_network_quit(user->nick,reason.c_str());
+00479         kill_link(user,reason.c_str());
+00480 }
 
@@ -2530,11 +2530,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 505 of file modules.cpp. +Definition at line 507 of file modules.cpp.

-

00506 {
-00507         Write(Socket,"%s",s.c_str());
-00508 }
+
00508 {
+00509         Write(Socket,"%s",s.c_str());
+00510 }
 
@@ -2589,18 +2589,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 534 of file modules.cpp. -

-

00535 {
-00536         if (IncludeSender)
-00537         {
-00538                 WriteChannel(Channel,User,"%s",s.c_str());
-00539         }
-00540         else
-00541         {
-00542                 ChanExceptSender(Channel,User,"%s",s.c_str());
-00543         }
-00544 }
+Definition at line 536 of file modules.cpp.
+

+

00537 {
+00538         if (IncludeSender)
+00539         {
+00540                 WriteChannel(Channel,User,"%s",s.c_str());
+00541         }
+00542         else
+00543         {
+00544                 ChanExceptSender(Channel,User,"%s",s.c_str());
+00545         }
+00546 }
 
@@ -2649,18 +2649,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 551 of file modules.cpp. -

-

00552 {
-00553         if (IncludeSender)
-00554         {
-00555                 WriteCommon(User,"%s",text.c_str());
-00556         }
-00557         else
-00558         {
-00559                 WriteCommonExcept(User,"%s",text.c_str());
-00560         }
-00561 }
+Definition at line 553 of file modules.cpp.
+

+

00554 {
+00555         if (IncludeSender)
+00556         {
+00557                 WriteCommon(User,"%s",text.c_str());
+00558         }
+00559         else
+00560         {
+00561                 WriteCommonExcept(User,"%s",text.c_str());
+00562         }
+00563 }
 
@@ -2709,11 +2709,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 515 of file modules.cpp. +Definition at line 517 of file modules.cpp.

-

00516 {
-00517         WriteFrom(Socket,User,"%s",s.c_str());
-00518 }
+
00518 {
+00519         WriteFrom(Socket,User,"%s",s.c_str());
+00520 }
 
@@ -2769,13 +2769,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 500 of file modules.cpp. +Definition at line 502 of file modules.cpp.

References server_mode().

-

00501 {
-00502         server_mode(parameters,pcnt,user);
-00503 }
+
00503 {
+00504         server_mode(parameters,pcnt,user);
+00505 }
 
@@ -2809,11 +2809,11 @@ Sends text to all opers.

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

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

-

00423 {
-00424         WriteOpers("%s",s.c_str());
-00425 }
+
00425 {
+00426         WriteOpers("%s",s.c_str());
+00427 }
 
@@ -2856,11 +2856,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 510 of file modules.cpp. +Definition at line 512 of file modules.cpp.

-

00511 {
-00512         WriteServ(Socket,"%s",s.c_str());
-00513 }
+
00513 {
+00514         WriteServ(Socket,"%s",s.c_str());
+00515 }
 
@@ -2913,22 +2913,22 @@ The format will become:

:localserver TEXT

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

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

-References connection::fd. -

-

00521 {
-00522         if (!Source)
-00523         {
-00524                 // if source is NULL, then the message originates from the local server
-00525                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
-00526         }
-00527         else
-00528         {
-00529                 // otherwise it comes from the user specified
-00530                 WriteTo(Source,Dest,"%s",s.c_str());
-00531         }
-00532 }
+Definition at line 522 of file modules.cpp.
+

+References connection::fd. +

+

00523 {
+00524         if (!Source)
+00525         {
+00526                 // if source is NULL, then the message originates from the local server
+00527                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
+00528         }
+00529         else
+00530         {
+00531                 // otherwise it comes from the user specified
+00532                 WriteTo(Source,Dest,"%s",s.c_str());
+00533         }
+00534 }
 
@@ -2979,11 +2979,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 435 of file modules.cpp. +Definition at line 437 of file modules.cpp.

-

00436 {
-00437         WriteMode(modes.c_str(),flags,"%s",text.c_str());
-00438 }
+
00438 {
+00439         WriteMode(modes.c_str(),flags,"%s",text.c_str());
+00440 }
 
@@ -3026,11 +3026,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 563 of file modules.cpp. +Definition at line 565 of file modules.cpp.

-

00564 {
-00565         WriteWallOps(User,false,"%s",text.c_str());
-00566 }
+
00566 {
+00567         WriteWallOps(User,false,"%s",text.c_str());
+00568 }
 
@@ -3073,23 +3073,23 @@ 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 654 of file modules.cpp. +Definition at line 656 of file modules.cpp.

-References connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. +References connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident.

-

00655 {
-00656         unsigned int old_fd = user->fd;
-00657         user->fd = FD_MAGIC_NUMBER;
-00658         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
-00659         close(old_fd);
-00660         shutdown (old_fd,2);
-00661 }
+
00657 {
+00658         unsigned int old_fd = user->fd;
+00659         user->fd = FD_MAGIC_NUMBER;
+00660         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
+00661         close(old_fd);
+00662         shutdown (old_fd,2);
+00663 }
 

The documentation for this class was generated from the following files: -
Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:51 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 dcd323e7c..bfdff0636 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 Wed Apr 20 15:47:13 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 3a20119ae..3312bb364 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -221,7 +221,7 @@ Definition at line 114 of
The documentation for this class was generated from the following files: -
Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:52 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 8a209081a..62610243f 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 Wed Apr 20 15:47:13 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index a5e56766b..9eb242dd5 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -171,7 +171,7 @@ Definition at line 48 of fi
The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:52 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 228e29749..69aced718 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 Wed Apr 20 15:47:13 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index 59cf6690f..ef8261a20 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -82,7 +82,7 @@ Definition at line 103 of f
The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:52 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 0773498b1..068b05362 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -6,34 +6,42 @@

chanrec Member List

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

Generated on Wed Apr 20 15:47:01 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index a24f0aad2..9ad664151 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -27,10 +27,28 @@ Inherits Extensible. std::string GetModeParameter (char mode)  Returns the parameter for a custom mode on a channel.

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


-virtual ~chanrec () + Increment the channel "user counter" The channel user counter is a reference counter which holds the number of users on the channel.


+void DecUserCounter () + + Decrement the channel "user counter" The channel user counter is a reference counter which holds the number of users on the channel.


+long GetUserCounter () + + 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) + + 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) + + 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 ()

Public Attributes

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


-char topic [MAXBUF] +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 + Channel topic.


+time_t created - Creation time.


-time_t topicset + Creation time.


+time_t topicset - Time topic was set.


-char setby [NICKMAX] + Time topic was set.


+char setby [NICKMAX] - The last user to set the topic.


-long limit + The last user to set the topic.


+long limit - Contains the channel user limit.


-char key [32] + Contains the channel user limit.


+char key [32] - Contains the channel key.


-short int topiclock + Contains the channel key.


+short int topiclock - Nonzero if the mode +t is set.


-short int noexternal + Nonzero if the mode +t is set.


+short int noexternal - Nonzero if the mode +n is set.


-short int inviteonly + Nonzero if the mode +n is set.


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


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


+short int moderated - Nonzero if the mode +m is set.


-short int secret + Nonzero if the mode +m is set.


+short int secret - Nonzero if the mode +s is set.


-short int c_private + Nonzero if the mode +s is set.


+short int c_private - Nonzero if the mode +p is set.


-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. @@ -87,7 +111,7 @@ This class represents a channel, and contains its name, modes, time created, top

Definition at line 94 of file channels.h.


Constructor & Destructor Documentation

-

+

@@ -118,7 +142,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, inviteonly, key, limit, moderated, name, noexternal, secret, setby, topic, topiclock, and topicset. +References c_private, created, custom_modes, internal_userlist, inviteonly, key, limit, moderated, name, noexternal, secret, setby, topic, topiclock, topicset, and users.

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

+

@@ -159,13 +184,144 @@ References c_private,

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

-

00185 { /* stub */ }
+
00240 { /* stub */ }
 


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
void chanrec::AddUser char *  castuser  ) 
+
+ + + + + +
+   + + +

+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 220 of file channels.cpp. +

+References DEBUG, and internal_userlist. +

+

00221 {
+00222         internal_userlist.push_back(castuser);
+00223         log(DEBUG,"Added casted user to channel's internal list");
+00224 }
+
+

+ + + + +
+ + + + + + + + + +
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. +

+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 208 of file channels.cpp. +

+References DEBUG, name, and users. +

+

00209 {
+00210         if (this->users > 0)
+00211                 this->users--;
+00212         log(DEBUG,"Decremented channel user count for %s to %lu",name,(unsigned long)users);
+00213 }
+
+

+ + + + +
+ + + + + + + + + + +
void chanrec::DelUser 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. +

+ +

+Definition at line 226 of file channels.cpp. +

+References DEBUG, internal_userlist, and name. +

+

00227 {
+00228         for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++)
+00229         {
+00230                 if (*a == castuser)
+00231                 {
+00232                         log(DEBUG,"Removed casted user from channel's internal list");
+00233                         internal_userlist.erase(a);
+00234                         return;
+00235                 }
+00236         }
+00237         log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
+00238 }
+

@@ -196,23 +352,141 @@ Returns the parameter for a custom mode on a channel.

For example if "+L #foo" is set, and you pass this method 'L', it will return '#foo'. If the mode is not set on the channel, or the mode has no parameters associated with it, it will return an empty string.

-Definition at line 186 of file channels.cpp. +Definition at line 187 of file channels.cpp.

References custom_mode_params.

-

00187 {
-00188         if (custom_mode_params.size())
-00189         {
-00190                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-00191                 {
-00192                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-00193                         {
-00194                                 return std::string(i->parameter);
-00195                         }
-00196                 }
-00197         }
-00198         return std::string("");
-00199 }
+
00188 {
+00189         if (custom_mode_params.size())
+00190         {
+00191                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
+00192                 {
+00193                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
+00194                         {
+00195                                 return std::string(i->parameter);
+00196                         }
+00197                 }
+00198         }
+00199         return std::string("");
+00200 }
+
+
+
+

+ + + + +
+ + + + + + + + + +
long chanrec::GetUserCounter  ) 
+
+ + + + + +
+   + + +

+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 215 of file channels.cpp. +

+References users. +

+

00216 {
+00217         return (this->users);
+00218 }
+
+

+ + + + +
+ + + + + + + + + +
std::vector< char * > * chanrec::GetUsers  ) 
+
+ + + + + +
+   + + +

+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 240 of file channels.cpp. +

+References internal_userlist. +

+

00241 {
+00242         return &internal_userlist;
+00243 }
+
+

+ + + + +
+ + + + + + + + + +
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. +

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

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

+References DEBUG, name, and users. +

+

00203 {
+00204         this->users++;
+00205         log(DEBUG,"Incremented channel user count for %s to %lu",name,(unsigned long)users);
+00206 }
 
@@ -246,14 +520,14 @@ Returns true if a custom mode is set on a channel.

-Definition at line 180 of file channels.cpp. +Definition at line 181 of file channels.cpp.

References DEBUG.

-

00181 {
-00182         log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes);
-00183         return (strchr(this->custom_modes,mode) != 0);
-00184 }
+
00182 {
+00183         log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes);
+00184         return (strchr(this->custom_modes,mode) != 0);
+00185 }
 
@@ -296,32 +570,32 @@ Sets or unsets a custom mode in the channels info.

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

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

-

00125 {
-00126         if (mode_on) {
-00127                 char m[3];
-00128                 m[0] = mode;
-00129                 m[1] = '\0';
-00130                 if (!strchr(this->custom_modes,mode))
-00131                 {
-00132                         strlcat(custom_modes,m,MAXMODES);
-00133                 }
-00134                 log(DEBUG,"Custom mode %c set",mode);
-00135         }
-00136         else {
-00137 
-00138                 std::string a = this->custom_modes;
-00139                 int pos = a.find(mode);
-00140                 a.erase(pos,1);
-00141                 strncpy(this->custom_modes,a.c_str(),MAXMODES);
-00142 
-00143                 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes);
-00144                 this->SetCustomModeParam(mode,"",false);
-00145         }
-00146 }
+Definition at line 125 of file channels.cpp.
+

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

+

00126 {
+00127         if (mode_on) {
+00128                 char m[3];
+00129                 m[0] = mode;
+00130                 m[1] = '\0';
+00131                 if (!strchr(this->custom_modes,mode))
+00132                 {
+00133                         strlcat(custom_modes,m,MAXMODES);
+00134                 }
+00135                 log(DEBUG,"Custom mode %c set",mode);
+00136         }
+00137         else {
+00138 
+00139                 std::string a = this->custom_modes;
+00140                 int pos = a.find(mode);
+00141                 a.erase(pos,1);
+00142                 strncpy(this->custom_modes,a.c_str(),MAXMODES);
+00143 
+00144                 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes);
+00145                 this->SetCustomModeParam(mode,"",false);
+00146         }
+00147 }
 
@@ -370,52 +644,52 @@ Sets or unsets the parameters for a custom mode in a channels info.

-Definition at line 149 of file channels.cpp. +Definition at line 150 of file channels.cpp.

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

-Referenced by SetCustomMode(). -

-

00150 {
-00151 
-00152         log(DEBUG,"SetCustomModeParam called");
-00153         ModeParameter M;
-00154         M.mode = mode;
-00155         strlcpy(M.channel,this->name,CHANMAX);
-00156         strlcpy(M.parameter,parameter,MAXBUF);
-00157         if (mode_on)
-00158         {
-00159                 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter);
-00160                 custom_mode_params.push_back(M);
-00161         }
-00162         else
-00163         {
-00164                 if (custom_mode_params.size())
-00165                 {
-00166                         for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-00167                         {
-00168                                 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-00169                                 {
-00170                                         log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter);
-00171                                         custom_mode_params.erase(i);
-00172                                         return;
-00173                                 }
-00174                         }
-00175                 }
-00176                 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!");
-00177         }
-00178 }
+Referenced by SetCustomMode().
+

+

00151 {
+00152 
+00153         log(DEBUG,"SetCustomModeParam called");
+00154         ModeParameter M;
+00155         M.mode = mode;
+00156         strlcpy(M.channel,this->name,CHANMAX);
+00157         strlcpy(M.parameter,parameter,MAXBUF);
+00158         if (mode_on)
+00159         {
+00160                 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter);
+00161                 custom_mode_params.push_back(M);
+00162         }
+00163         else
+00164         {
+00165                 if (custom_mode_params.size())
+00166                 {
+00167                         for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
+00168                         {
+00169                                 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
+00170                                 {
+00171                                         log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter);
+00172                                         custom_mode_params.erase(i);
+00173                                         return;
+00174                                 }
+00175                         }
+00176                 }
+00177                 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!");
+00178         }
+00179 }
 

Member Data Documentation

-

+

@@ -432,16 +706,16 @@ The list of all bans set on the channel.

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

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

+

@@ -456,20 +730,20 @@ Definition at line 159 o

Nonzero if the mode +p is set.

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

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

Referenced by chanrec().

-
short int chanrec::c_private + short int chanrec::c_private
-

+

@@ -486,7 +760,7 @@ Creation time.

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

Referenced by chanrec(). @@ -516,16 +790,44 @@ Plugins may use this field in any way they see fit.

Definition at line 103 of file channels.h.

-Referenced by chanrec(), and SetCustomMode(). +Referenced by chanrec(), and SetCustomMode(). + +

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

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

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

+ +

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

+Referenced by AddUser(), chanrec(), DelUser(), and GetUsers().

-

+

@@ -542,18 +844,18 @@ Nonzero if the mode +i is set.

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

Referenced by chanrec().

-
short int chanrec::inviteonly + short int chanrec::inviteonly
-

+

@@ -570,18 +872,18 @@ Contains the channel key.

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

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

Referenced by chanrec().

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

+

@@ -598,18 +900,18 @@ Contains the channel user limit.

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

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

Referenced by chanrec().

-
long chanrec::limit + long chanrec::limit
-

+

@@ -626,7 +928,7 @@ Nonzero if the mode +m is set.

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

Referenced by chanrec(). @@ -656,16 +958,16 @@ The channels name.

Definition at line 99 of file channels.h.

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

-
short int chanrec::moderated + short int chanrec::moderated
-

+

@@ -682,18 +984,18 @@ Nonzero if the mode +n is set.

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

Referenced by chanrec().

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

+

@@ -708,20 +1010,20 @@ Referenced by chanrec() Nonzero if the mode +s is set.

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

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

Referenced by chanrec().

-
short int chanrec::secret + short int chanrec::secret
-

+

@@ -738,18 +1040,18 @@ The last user to set the topic.

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

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

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

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

+

@@ -766,18 +1068,18 @@ Channel topic.

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

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

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

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

+

@@ -794,18 +1096,18 @@ Nonzero if the mode +t is set.

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

Referenced by chanrec().

-
short int chanrec::topiclock + short int chanrec::topiclock
-

+

@@ -820,16 +1122,44 @@ 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. +

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

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

+ + + + +
+ + +
long chanrec::users +
+
+ + + + +Referenced by chanrec(), DecUserCounter(), GetUserCounter(), and IncUserCounter().
+   + + +

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

+

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

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


The documentation for this class was generated from the following files: -
Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 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 0a1be6072..eb0477ae7 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 Wed Apr 20 15:47:01 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index 1c91ec3f5..e68905f3a 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 Wed Apr 20 15:47:01 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 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 73a148109..3687ae71f 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 Wed Apr 20 15:47:01 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 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 bae7eab98..dfd8774e7 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 Wed Apr 20 15:47:01 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 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 66246c906..c7f4c7f7e 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -30,7 +30,7 @@ internal_portconnection ipconnection lastpingconnection - MeshCookie(char *targethost, int port, long cookie, char *servername)connection + MeshCookie(char *targethost, int port, unsigned long cookie, char *servername)connection npingconnection portconnection RecvPacket(std::deque< std::string > &messages, char *host)connection @@ -41,7 +41,7 @@ stateconnection TerminateLink(char *targethost)connection ~classbase()classbase [inline] -
Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 0666d43be..54e5565f1 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -26,7 +26,7 @@ Inherited by serverrec, and 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, 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) @@ -111,7 +111,7 @@ Please note: classes serverrec and userrec both inherit from class connection.

-Definition at line 166 of file connection.h.


Constructor & Destructor Documentation

+Definition at line 178 of file connection.h.

Constructor & Destructor Documentation

@@ -368,7 +368,7 @@ This function is deprecated and may be removed in a later alpha/beta. - + @@ -535,7 +535,7 @@ Stats counter for bytes inbound.

-Definition at line 187 of file connection.h. +Definition at line 199 of file connection.h.

Referenced by userrec::userrec().

@@ -563,7 +563,7 @@ Stats counter for bytes outbound.

-Definition at line 191 of file connection.h. +Definition at line 203 of file connection.h.

Referenced by userrec::userrec(). @@ -591,7 +591,7 @@ Stats counter for commands inbound.

-Definition at line 195 of file connection.h. +Definition at line 207 of file connection.h.

Referenced by userrec::userrec(). @@ -619,7 +619,7 @@ Stats counter for commands outbound.

-Definition at line 199 of file connection.h. +Definition at line 211 of file connection.h.

Referenced by userrec::userrec(). @@ -647,7 +647,7 @@ With a serverrec, this is a list of all established server connections.

With a userrec this is unused.

-Definition at line 246 of file connection.h. +Definition at line 258 of file connection.h.

long unsigned long  cookie,

@@ -673,9 +673,9 @@ File descriptor of the connection.

-Definition at line 171 of file connection.h. +Definition at line 183 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().

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

-Definition at line 203 of file connection.h. +Definition at line 215 of file connection.h.

Referenced by userrec::userrec(). @@ -729,9 +729,9 @@ Hostname of connection.

Not used if this is a serverrec

-Definition at line 175 of file connection.h. +Definition at line 187 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().

@@ -757,7 +757,7 @@ Time that the connection last sent data, used to calculate idle time.

-Definition at line 229 of file connection.h. +Definition at line 241 of file connection.h.

Referenced by userrec::userrec(). @@ -785,7 +785,7 @@ Inbuf of connection.

Only used for userrec

-Definition at line 183 of file connection.h. +Definition at line 195 of file connection.h.

Referenced by userrec::userrec(). @@ -813,7 +813,7 @@ Unused, will be removed in a future alpha/beta.

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

@@ -839,7 +839,7 @@ Unused, will be removed in a future alpha/beta.

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

@@ -865,7 +865,7 @@ IP of connection.

Reserved for future use.

-Definition at line 179 of file connection.h. +Definition at line 191 of file connection.h.

Referenced by userrec::userrec(). @@ -893,7 +893,7 @@ Time the connection was last pinged.

-Definition at line 221 of file connection.h. +Definition at line 233 of file connection.h.

Referenced by serverrec::serverrec(), and userrec::userrec(). @@ -921,7 +921,7 @@ Used by PING checks with clients.

-Definition at line 233 of file connection.h. +Definition at line 245 of file connection.h.

Referenced by userrec::userrec(). @@ -949,7 +949,7 @@ 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 209 of file connection.h. +Definition at line 221 of file connection.h.

Referenced by userrec::userrec(). @@ -977,7 +977,7 @@ Used by userrec to indicate the registration status of the connection.

-Definition at line 213 of file connection.h. +Definition at line 225 of file connection.h.

Referenced by userrec::userrec(). @@ -1005,7 +1005,7 @@ Time the connection was created, set in the constructor.

-Definition at line 225 of file connection.h. +Definition at line 237 of file connection.h.

Referenced by serverrec::serverrec(), and userrec::userrec(). @@ -1033,12 +1033,12 @@ Reserved for future use.

-Definition at line 217 of file connection.h. +Definition at line 229 of file connection.h.


The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:02 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:47 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index efd1586de..b3c5d1746 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -25,7 +25,7 @@
  Z  
connection   
  G  
ModeParameter   Server   ZLine   
  D  
-GLine   Module   
Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by +GLine   Module   
Generated on Tue Apr 26 17:11:46 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 ae5ada4a2..323460439 100644 --- a/docs/module-doc/classircd__connector-members.html +++ b/docs/module-doc/classircd__connector-members.html @@ -6,13 +6,17 @@

ircd_connector Member List

This is the complete list of members for ircd_connector, including all inherited members. + + + + @@ -20,22 +24,23 @@ - - - - + + + + + - + -
AddBuffer(std::string a)ircd_connector
addrircd_connector [private]
ageclassbase
BufferIsComplete()ircd_connector
classbase()classbase [inline]
ClearBuffer()ircd_connector
CloseConnection()ircd_connector
descriptionircd_connector [private]
Extend(std::string key, char *p)Extensible
fdircd_connector [private]
GetBuffer()ircd_connector
GetDescription()ircd_connector
GetDescriptor()ircd_connector
GetExt(std::string key)Extensible
GetServerName()ircd_connector
GetServerPort()ircd_connector
GetState()ircd_connector
hostircd_connector
MakeOutboundConnection(char *host, int port)ircd_connector
portircd_connector
routesircd_connector
hostircd_connector
ircdbufferircd_connector
MakeOutboundConnection(char *newhost, int newport)ircd_connector
portircd_connector
routesircd_connector
servernameircd_connector [private]
SetDescription(std::string desc)ircd_connector
SetDescriptor(int fd)ircd_connector
SetHostAddress(char *host, int port)ircd_connector [private]
SetHostAndPort(char *host, int port)ircd_connector
SetHostAndPort(char *newhost, int newport)ircd_connector
SetServerName(std::string serv)ircd_connector
SetServerPort(int p)ircd_connector
SetState(int state)ircd_connector
Shrink(std::string key)Extensible
stateircd_connector [private]
~classbase()classbase [inline]

Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 6a366234b..a5acb44f1 100644 --- a/docs/module-doc/classircd__connector.html +++ b/docs/module-doc/classircd__connector.html @@ -15,7 +15,7 @@ Inherits Extensible. List of all members. - + @@ -51,24 +51,35 @@ Inherits Extensible. - + + + + + + + + + - + - - + + - + + + + - + - + @@ -95,7 +106,92 @@ A listening socket that accepts server type connections is represented by one cl

-Definition at line 53 of file connection.h.


Member Function Documentation

+Definition at line 54 of file connection.h.

Member Function Documentation

+

+


Public Member Functions

bool MakeOutboundConnection (char *host, int port)
bool MakeOutboundConnection (char *newhost, int newport)
 Create an outbound connection to a listening socket.

std::string GetServerName ()
void SetServerPort (int p)
 Set the port used by this connection.

bool SetHostAndPort (char *host, int port)
bool SetHostAndPort (char *newhost, int newport)
 Set both the host and the port in one operation for this connection.

void CloseConnection ()
 Close the connection by calling close() on its file descriptor This function call updates no other data.

void AddBuffer (std::string a)
bool BufferIsComplete ()
void ClearBuffer ()
std::string GetBuffer ()

Public Attributes

char host [MAXBUF]
std::string ircdbuffer
 When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference.

int port
 IRCD Buffer for input characters, holds one line.

char host [MAXBUF]
 When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference.

std::vector< std::string > routes
int port
 When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference.

std::vector< std::string > routes
 Server names of servers that this server is linked to So for A->B->C, if this was the record for B it would contain A and C whilever both servers are connected to B.

 Server names of servers that this server is linked to So for A->B->C, if this was the record for B it would contain A and C whilever both servers are connected to B.


Private Member Functions

bool SetHostAddress (char *host, int port)
bool SetHostAddress (char *host, int port)
 PRIVATE function to set the host address and port to connect to.


Private Attributes

+ + + +
+ + + + + + + + + + +
void ircd_connector::AddBuffer std::string  a  ) 
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + +
bool ircd_connector::BufferIsComplete  ) 
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + +
void ircd_connector::ClearBuffer  ) 
+
+ + + + + +
+   + + +

+

@@ -122,6 +218,34 @@ Definition at line 53

Close the connection by calling close() on its file descriptor This function call updates no other data. +

+ +

+
+

+ + + + +
+ + + + + + + + + +
std::string ircd_connector::GetBuffer  ) 
+
+ + + + @@ -315,13 +439,13 @@ Get the state flags for this connection. - + - + @@ -457,13 +581,13 @@ PRIVATE function to set the host address and port to connect to. - + - + @@ -605,7 +729,7 @@ Sockaddr of the outbound ip and port.

-Definition at line 58 of file connection.h. +Definition at line 59 of file connection.h.

+   + +

bool ircd_connector::MakeOutboundConnection char *  host, newhost,
int  port newport
bool ircd_connector::SetHostAndPort char *  host, newhost,
int  port newport

@@ -631,7 +755,7 @@ Definition at line 58

-Definition at line 70 of file connection.h. +Definition at line 71 of file connection.h.

@@ -657,16 +781,16 @@ File descriptor of the connection.

-Definition at line 62 of file connection.h. +Definition at line 63 of file connection.h. -

+

@@ -682,17 +806,43 @@ Definition at line 62 When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference.

+

+Definition at line 94 of file connection.h. + +

-
char ircd_connector::host[MAXBUF] + char ircd_connector::host[MAXBUF]
+

+ + + + +
+ + +
std::string ircd_connector::ircdbuffer +
+
+ + + +
+   + + +

+IRCD Buffer for input characters, holds one line. +

+

Definition at line 87 of file connection.h.

-

+

@@ -709,16 +859,16 @@ When MakeOutboundConnection is called, these public members are filled with the

-Definition at line 93 of file connection.h. +Definition at line 100 of file connection.h.

-
int ircd_connector::port + int ircd_connector::port
-

+

@@ -735,7 +885,7 @@ Definition at line 93

-Definition at line 99 of file connection.h. +Definition at line 106 of file connection.h.

-
std::vector<std::string> ircd_connector::routes + std::vector<std::string> ircd_connector::routes

@@ -761,7 +911,7 @@ Definition at line 99

-Definition at line 66 of file connection.h. +Definition at line 67 of file connection.h.

@@ -787,12 +937,12 @@ State.

STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTED

-Definition at line 75 of file connection.h. +Definition at line 76 of file connection.h.


The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:04 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:48 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 ad5c04032..56dabbf32 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -33,7 +33,7 @@ ipconnection jupiterserverrec lastpingconnection - MeshCookie(char *targethost, int port, long cookie, char *servername)connection + MeshCookie(char *targethost, int port, unsigned long cookie, char *servername)connection nameserverrec nickservserverrec npingconnection @@ -55,7 +55,7 @@ versionserverrec ~classbase()classbase [inline] ~serverrec()serverrec -
Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index 219ae6302..8f838c1a7 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -95,7 +95,7 @@ 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);
@@ -159,7 +159,7 @@ 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);
@@ -519,7 +519,7 @@ Referenced by serverrec()
 
The documentation for this class was generated from the following files:
-
Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:51 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 2a781b64c..7a55022ca 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 Wed Apr 20 15:47:11 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 43cd75bff..0d275e0e5 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -34,7 +34,7 @@ The uc_modes member holds a bitmask of which privilages the user has on the chan

-Definition at line 202 of file channels.h.


Constructor & Destructor Documentation

+Definition at line 257 of file channels.h.

Constructor & Destructor Documentation

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

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

-

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

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

-

00216 { /* stub */ }
+
00271 { /* 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 213 of file channels.h. +Definition at line 268 of file channels.h.

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

@@ -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 208 of file channels.h. +Definition at line 263 of file channels.h.

Referenced by userrec::userrec().


The documentation for this class was generated from the following file: -
Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:51 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 07e9dfa18..1fad78737 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -43,11 +43,12 @@ ipconnection IsInvited(char *channel)userrec [virtual] lastpingconnection - MeshCookie(char *targethost, int port, long cookie, char *servername)connection + MeshCookie(char *targethost, int port, unsigned long cookie, char *servername)connection modesuserrec nickuserrec npingconnection operuserrec + passworduserrec pingmaxuserrec portconnection RecvPacket(std::deque< std::string > &messages, char *host)connection @@ -64,7 +65,7 @@ userrec()userrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
Generated on Wed Apr 20 15:47:12 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index d9c581f02..0e698ae74 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -79,6 +79,9 @@ Inherits connection. unsigned long pingmax  Number of seconds between PINGs for this user (set from <connect:allow> tag.

+char password [MAXBUF] + + Password specified by the user when they registered.



Private Attributes

InvitedList invites @@ -121,7 +124,7 @@ Definition at line 93 of fi

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, modes, nick, connection::nping, oper, connection::port, connection::registered, result, server, connection::signon, 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, connection::inbuf, invites, connection::ip, connection::lastping, modes, nick, connection::nping, oper, connection::port, connection::registered, result, server, connection::signon, timeout, and ucrec::uc_modes.

00029 {
 00030         // the PROPER way to do it, AVOID bzero at *ALL* costs
@@ -179,9 +182,9 @@ References awaymsg, 
 
 

-Definition at line 172 of file users.h. +Definition at line 178 of file users.h.

-

00172 {  }
+
00178 {  }
 
@@ -257,7 +260,7 @@ If any form of hostname cloaking is in operation, e.g. through a module, then th

Definition at line 65 of file users.cpp.

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

00066 {
 00067         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host);
@@ -302,54 +305,53 @@ References config_f, a
 

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

Definition at line 127 of file users.h.

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

@@ -693,7 +695,7 @@ The users ident reply.

Definition at line 110 of file users.h.

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

@@ -777,7 +779,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma

Definition at line 106 of file users.h.

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

@@ -808,6 +810,32 @@ Definition at line 160 of f Referenced by userrec(). +

+ + + + +
+ + +
char userrec::password[MAXBUF] +
+
+ + + + + +
+   + + +

+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 174 of file users.h.

@@ -920,7 +948,7 @@ Referenced by userrec().


The documentation for this class was generated from the following files: -
Generated on Wed Apr 20 15:47:12 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:52 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 5ea853b0d..cadb3d3f2 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 Wed Apr 20 15:46:54 2005 for InspIRCd by +

Generated on Tue Apr 26 17:11:43 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 4e948d4f8..578df85d6 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 Wed Apr 20 15:46:57 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:45 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 07a4f3867..52c7221ad 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -34,137 +34,147 @@ 00027 #include <time.h> 00028 #include <vector> 00029 #include <deque> -00030 -00031 #ifndef __CONNECTION_H__ -00032 #define __CONNECTION_H__ -00033 -00034 #define STATE_DISCONNECTED 0 -00035 #define STATE_CONNECTED 1 -00036 #define STATE_SYNC 2 -00037 #define STATE_NOAUTH_INBOUND 3 -00038 #define STATE_NOAUTH_OUTBOUND 4 -00039 #define STATE_SERVICES 5 -00040 -00053 class ircd_connector : public Extensible -00054 { -00055 private: -00058 sockaddr_in addr; -00059 -00062 int fd; -00063 -00066 std::string servername; -00067 -00070 std::string description; -00071 -00075 int state; -00076 -00079 bool SetHostAddress(char* host, int port); -00080 -00081 public: -00082 -00087 char host[MAXBUF]; +00030 #include <sstream> +00031 +00032 #ifndef __CONNECTION_H__ +00033 #define __CONNECTION_H__ +00034 +00035 #define STATE_DISCONNECTED 0 +00036 #define STATE_CONNECTED 1 +00037 #define STATE_SYNC 2 +00038 #define STATE_NOAUTH_INBOUND 3 +00039 #define STATE_NOAUTH_OUTBOUND 4 +00040 #define STATE_SERVICES 5 +00041 +00054 class ircd_connector : public Extensible +00055 { +00056 private: +00059 sockaddr_in addr; +00060 +00063 int fd; +00064 +00067 std::string servername; +00068 +00071 std::string description; +00072 +00076 int state; +00077 +00080 bool SetHostAddress(char* host, int port); +00081 +00082 +00083 public: +00084 +00087 std::string ircdbuffer; 00088 -00093 int port; -00094 -00099 std::vector<std::string> routes; -00100 -00101 -00104 bool MakeOutboundConnection(char* host, int port); -00105 -00108 std::string GetServerName(); -00109 -00112 void SetServerName(std::string serv); -00113 -00116 int GetDescriptor(); -00117 -00120 void SetDescriptor(int fd); -00121 -00124 int GetState(); -00125 -00128 void SetState(int state); -00129 -00132 char* GetServerIP(); -00133 -00136 std::string GetDescription(); -00137 -00140 void SetDescription(std::string desc); -00141 -00147 int GetServerPort(); +00089 +00094 char host[MAXBUF]; +00095 +00100 int port; +00101 +00106 std::vector<std::string> routes; +00107 +00108 +00111 bool MakeOutboundConnection(char* newhost, int newport); +00112 +00115 std::string GetServerName(); +00116 +00119 void SetServerName(std::string serv); +00120 +00123 int GetDescriptor(); +00124 +00127 void SetDescriptor(int fd); +00128 +00131 int GetState(); +00132 +00135 void SetState(int state); +00136 +00139 char* GetServerIP(); +00140 +00143 std::string GetDescription(); +00144 +00147 void SetDescription(std::string desc); 00148 -00151 void SetServerPort(int p); -00152 -00155 bool SetHostAndPort(char* host, int port); -00156 -00160 void CloseConnection(); -00161 }; -00162 -00163 -00166 class connection : public Extensible -00167 { -00168 public: -00171 int fd; -00172 -00175 char host[256]; -00176 -00179 char ip[32]; -00180 -00183 char inbuf[MAXBUF]; +00154 int GetServerPort(); +00155 +00158 void SetServerPort(int p); +00159 +00162 bool SetHostAndPort(char* newhost, int newport); +00163 +00167 void CloseConnection(); +00168 +00169 void AddBuffer(std::string a); +00170 bool BufferIsComplete(); +00171 void ClearBuffer(); +00172 std::string GetBuffer(); +00173 }; +00174 +00175 +00178 class connection : public Extensible +00179 { +00180 public: +00183 int fd; 00184 -00187 long bytes_in; -00188 -00191 long bytes_out; -00192 -00195 long cmds_in; -00196 -00199 long cmds_out; +00187 char host[256]; +00188 +00191 char ip[32]; +00192 +00195 char inbuf[MAXBUF]; +00196 +00199 long bytes_in; 00200 -00203 bool haspassed; +00203 long bytes_out; 00204 -00209 int port; -00210 -00213 int registered; -00214 -00217 short int state; -00218 -00221 time_t lastping; +00207 long cmds_in; +00208 +00211 long cmds_out; +00212 +00215 bool haspassed; +00216 +00221 int port; 00222 -00225 time_t signon; +00225 int registered; 00226 -00229 time_t idle_lastmsg; +00229 short int state; 00230 -00233 time_t nping; +00233 time_t lastping; 00234 -00237 char internal_addr[MAXBUF]; +00237 time_t signon; 00238 -00241 int internal_port; -00242 -00246 std::vector<ircd_connector> connectors; -00247 -00250 connection(); -00251 -00254 bool CreateListener(char* host, int p); -00255 -00258 bool BeginLink(char* targethost, int port, char* password, char* servername, int myport); +00241 time_t idle_lastmsg; +00242 +00245 time_t nping; +00246 +00249 char internal_addr[MAXBUF]; +00250 +00253 int internal_port; +00254 +00258 std::vector<ircd_connector> connectors; 00259 -00262 bool MeshCookie(char* targethost, int port, long cookie, char* servername); +00262 connection(); 00263 -00266 void TerminateLink(char* targethost); +00266 bool CreateListener(char* host, int p); 00267 -00271 bool SendPacket(char *message, const char* host); -00272 -00277 bool RecvPacket(std::deque<std::string> &messages, char* host); -00278 -00281 ircd_connector* FindHost(std::string host); -00282 -00286 bool AddIncoming(int fd,char* targethost, int sourceport); -00287 -00290 long GenKey(); -00291 }; -00292 -00293 -00294 #endif -00295 -

Generated on Wed Apr 20 15:46:54 2005 for InspIRCd by +00270 bool BeginLink(char* targethost, int port, char* password, char* servername, int myport); +00271 +00274 bool MeshCookie(char* targethost, int port, unsigned long cookie, char* servername); +00275 +00278 void TerminateLink(char* targethost); +00279 +00283 bool SendPacket(char *message, const char* host); +00284 +00289 bool RecvPacket(std::deque<std::string> &messages, char* host); +00290 +00293 ircd_connector* FindHost(std::string host); +00294 +00298 bool AddIncoming(int fd,char* targethost, int sourceport); +00299 +00302 long GenKey(); +00303 }; +00304 +00305 +00306 #endif +00307 +

Generated on Tue Apr 26 17:11:43 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 325ee4b36..e3d38e665 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -18,6 +18,7 @@ #include <time.h>
#include <vector>
#include <deque>
+#include <sstream>

Go to the source code of this file. @@ -65,7 +66,7 @@

-Definition at line 35 of file connection.h. +Definition at line 36 of file connection.h.

@@ -89,7 +90,7 @@ Definition at line 35

-Definition at line 34 of file connection.h. +Definition at line 35 of file connection.h.

@@ -113,7 +114,7 @@ Definition at line 34

-Definition at line 37 of file connection.h. +Definition at line 38 of file connection.h.

@@ -137,7 +138,7 @@ Definition at line 37

-Definition at line 38 of file connection.h. +Definition at line 39 of file connection.h.

@@ -161,7 +162,7 @@ Definition at line 38

-Definition at line 39 of file connection.h. +Definition at line 40 of file connection.h.

@@ -185,10 +186,10 @@ Definition at line 39

-Definition at line 36 of file connection.h. +Definition at line 37 of file connection.h. -


Generated on Wed Apr 20 15:46:58 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:45 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 120212277..5d6cf02e2 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 Wed Apr 20 15:46:54 2005 for InspIRCd by +

Generated on Tue Apr 26 17:11:43 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 2eb7d246b..e1c5676a6 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 Wed Apr 20 15:46:58 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:45 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 189c8230d..1ad122520 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -39,11 +39,11 @@ 00035 class DNS 00036 { 00037 private: -00038 char *result; -00039 in_addr *binip; -00040 int t,i; +00038 in_addr *binip; +00039 char* result; +00040 int t; 00041 void dns_init(); -00042 unsigned int fd; +00042 unsigned int fd; 00043 void dns_init_2(const char* dnsserver); 00044 in_addr *dns_aton4(const char * const ipstring); 00045 char *dns_ntoa4(const in_addr * const ip); @@ -70,7 +70,7 @@ 00093 }; 00094 00095 #endif -

Generated on Wed Apr 20 15:46:54 2005 for InspIRCd by +

Generated on Tue Apr 26 17:11:43 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 115ac8c92..2bfda7fe8 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -20,7 +20,7 @@ struct  dns_ip4list -
Generated on Wed Apr 20 15:46:58 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:45 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index c3ffe9d2a..7dc8a974a 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 Wed Apr 20 15:46:53 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:43 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 5c74ffd02..f6d013382 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -13,7 +13,8 @@

Here is a list of all class members with links to the classes they belong to:

- a -

- s -

- u - @@ -374,7 +388,8 @@ 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
  • UserToPseudo() +: userrec
  • users +: chanrec
  • UserToPseudo() : Server

    - v -

      @@ -385,7 +400,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() @@ -397,7 +412,7 @@ Here is a list of all class members with links to the classes they belong to:

        serverrec
      • ~ucrec() : ucrec
      • ~userrec() : userrec
      -
      Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by +
      Generated on Tue Apr 26 17:11:46 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 daf2ea922..41dd60c14 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -13,7 +13,8 @@

      - a -

      - b -

      +: connection
    • BufferIsComplete() +: ircd_connector

    - c -

    - d -

  • - h -

    - i -

    - s -

    - u - @@ -177,12 +179,13 @@ : ucrec
  • use_count : command_t
  • usercount : serverrec
  • usercount_i -: serverrec +: serverrec
  • users +: chanrec

    - v -

    -
    Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:46 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 44697a8c5..f60106e7b 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -334,7 +334,7 @@ Here is a list of all file members with links to the files they belong to:

    zline_make_global() : xline.h
  • zline_set_creation_time() : xline.h -
    Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index 6039f1f85..d8998d96b 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -92,7 +92,7 @@ : modules.h
  • VF_STATIC : modules.h
  • VF_VENDOR : modules.h -
    Generated on Wed Apr 20 15:47:14 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 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 70e34b677..f972c317c 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -211,7 +211,7 @@
  • zline_make_global() : xline.h
  • zline_set_creation_time() : xline.h -
    Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 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 db1d263cf..7b6b38f78 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -26,7 +26,7 @@ : modules.h
  • user_hash : modules.cpp
  • VoidPointer : base.h -
    Generated on Wed Apr 20 15:47:14 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 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 6648b8a35..a9891509e 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -105,7 +105,7 @@ : modules.cpp
  • WHOWAS_MAX : modules.cpp, channels.cpp
  • WHOWAS_STALE : modules.cpp, channels.cpp -
    Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 8abfbf430..f7ca3fd04 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -58,7 +58,7 @@
  • nspace::hash< string >
  • StrHashComp -
    Generated on Wed Apr 20 15:47:00 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:46 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index 60cca8815..2ebb5c84c 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@

    InspIRCd Documentation

    -


    Generated on Wed Apr 20 15:46:53 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:43 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 48542281c..6902ce0e8 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 Wed Apr 20 15:46:54 2005 for InspIRCd by +

    Generated on Tue Apr 26 17:11:43 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 e82d5b940..1407037f2 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().

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

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

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

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

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

    -Referenced by Server::GetUsers(), and Server::IsOnChannel(). +Referenced by Server::GetUsers(), and Server::IsOnChannel().

    @@ -547,7 +547,7 @@ Referenced by Server::GetUs

    -Referenced by Server::GetUsers(), and Server::IsNick(). +Referenced by Server::GetUsers(), and Server::IsNick().

    @@ -674,7 +674,7 @@ Referenced by Server::GetUs

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

    @@ -735,7 +735,7 @@ Referenced by Server::QuitU -


    Generated on Wed Apr 20 15:46:58 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:45 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 493a31b49..3454d6b52 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 Wed Apr 20 15:46:54 2005 for InspIRCd by +

    Generated on Tue Apr 26 17:11:43 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 80bf7906f..07fcd656a 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ -
    Generated on Wed Apr 20 15:46:58 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:45 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 48b1ce27a..6d4455628 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -412,632 +412,634 @@ 00405 int Module::OnMeshToken(char token,string_list params,serverrec* source,serverrec* reply, std::string tcp_host,std::string ipaddr,int port) { return 0; }; 00406 void Module::OnEvent(Event* event) { return; }; 00407 char* Module::OnRequest(Request* request) { return NULL; }; -00408 -00409 -00410 // server is a wrapper class that provides methods to all of the C-style -00411 // exports in the core -00412 // -00413 -00414 Server::Server() -00415 { -00416 } -00417 -00418 Server::~Server() -00419 { -00420 } -00421 -00422 void Server::SendOpers(std::string s) -00423 { -00424 WriteOpers("%s",s.c_str()); -00425 } -00426 -00427 bool Server::MatchText(std::string sliteral, std::string spattern) -00428 { -00429 char literal[MAXBUF],pattern[MAXBUF]; -00430 strlcpy(literal,sliteral.c_str(),MAXBUF); -00431 strlcpy(pattern,spattern.c_str(),MAXBUF); -00432 return match(literal,pattern); -00433 } -00434 -00435 void Server::SendToModeMask(std::string modes, int flags, std::string text) -00436 { -00437 WriteMode(modes.c_str(),flags,"%s",text.c_str()); -00438 } -00439 -00440 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) -00441 { -00442 return add_channel(user,cname.c_str(),key.c_str(),true); -00443 } -00444 -00445 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) -00446 { -00447 return del_channel(user,cname.c_str(),reason.c_str(),false); -00448 } -00449 -00450 chanuserlist Server::GetUsers(chanrec* chan) -00451 { -00452 chanuserlist userl; -00453 userl.clear(); -00454 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) -00455 { -00456 if (i->second) -00457 { -00458 if (has_channel(i->second,chan)) -00459 { -00460 if (isnick(i->second->nick)) -00461 { -00462 userl.push_back(i->second); -00463 } -00464 } -00465 } -00466 } -00467 return userl; -00468 } -00469 void Server::ChangeUserNick(userrec* user, std::string nickname) -00470 { -00471 force_nickchange(user,nickname.c_str()); -00472 } -00473 -00474 void Server::QuitUser(userrec* user, std::string reason) -00475 { -00476 send_network_quit(user->nick,reason.c_str()); -00477 kill_link(user,reason.c_str()); -00478 } -00479 -00480 bool Server::IsUlined(std::string server) -00481 { -00482 return is_uline(server.c_str()); -00483 } -00484 -00485 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) -00486 { -00487 call_handler(commandname.c_str(),parameters,pcnt,user); -00488 } -00489 -00490 void Server::Log(int level, std::string s) -00491 { -00492 log(level,"%s",s.c_str()); -00493 } -00494 -00495 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) -00496 { -00497 createcommand(cmd,f,flags,minparams,source); -00498 } -00499 -00500 void Server::SendMode(char **parameters, int pcnt, userrec *user) -00501 { -00502 server_mode(parameters,pcnt,user); -00503 } -00504 -00505 void Server::Send(int Socket, std::string s) -00506 { -00507 Write(Socket,"%s",s.c_str()); -00508 } -00509 -00510 void Server::SendServ(int Socket, std::string s) -00511 { -00512 WriteServ(Socket,"%s",s.c_str()); -00513 } -00514 -00515 void Server::SendFrom(int Socket, userrec* User, std::string s) -00516 { -00517 WriteFrom(Socket,User,"%s",s.c_str()); -00518 } -00519 -00520 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) -00521 { -00522 if (!Source) -00523 { -00524 // if source is NULL, then the message originates from the local server -00525 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); -00526 } -00527 else -00528 { -00529 // otherwise it comes from the user specified -00530 WriteTo(Source,Dest,"%s",s.c_str()); -00531 } -00532 } -00533 -00534 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00535 { -00536 if (IncludeSender) -00537 { -00538 WriteChannel(Channel,User,"%s",s.c_str()); -00539 } -00540 else -00541 { -00542 ChanExceptSender(Channel,User,"%s",s.c_str()); -00543 } -00544 } -00545 -00546 bool Server::CommonChannels(userrec* u1, userrec* u2) -00547 { -00548 return (common_channels(u1,u2) != 0); -00549 } -00550 -00551 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00552 { -00553 if (IncludeSender) -00554 { -00555 WriteCommon(User,"%s",text.c_str()); -00556 } -00557 else -00558 { -00559 WriteCommonExcept(User,"%s",text.c_str()); -00560 } -00561 } -00562 -00563 void Server::SendWallops(userrec* User, std::string text) -00564 { -00565 WriteWallOps(User,false,"%s",text.c_str()); -00566 } -00567 -00568 void Server::ChangeHost(userrec* user, std::string host) -00569 { -00570 ChangeDisplayedHost(user,host.c_str()); -00571 } -00572 -00573 void Server::ChangeGECOS(userrec* user, std::string gecos) -00574 { -00575 ChangeName(user,gecos.c_str()); -00576 } -00577 -00578 bool Server::IsNick(std::string nick) -00579 { -00580 return (isnick(nick.c_str()) != 0); -00581 } -00582 -00583 userrec* Server::FindNick(std::string nick) -00584 { -00585 return Find(nick); -00586 } -00587 -00588 chanrec* Server::FindChannel(std::string channel) -00589 { -00590 return FindChan(channel.c_str()); -00591 } -00592 -00593 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00594 { -00595 return cmode(User,Chan); -00596 } -00597 -00598 bool Server::IsOnChannel(userrec* User, chanrec* Chan) -00599 { -00600 return has_channel(User,Chan); -00601 } -00602 -00603 std::string Server::GetServerName() -00604 { -00605 return getservername(); -00606 } -00607 -00608 std::string Server::GetNetworkName() -00609 { -00610 return getnetworkname(); -00611 } -00612 -00613 Admin Server::GetAdmin() -00614 { -00615 return Admin(getadminname(),getadminemail(),getadminnick()); -00616 } -00617 -00618 +00408 int Module::OnOperCompare(std::string password, std::string input) { return 0; }; +00409 void Module::OnGlobalOper(userrec* user) { }; +00410 void Module::OnGlobalConnect(userrec* user) { }; +00411 +00412 // server is a wrapper class that provides methods to all of the C-style +00413 // exports in the core +00414 // +00415 +00416 Server::Server() +00417 { +00418 } +00419 +00420 Server::~Server() +00421 { +00422 } +00423 +00424 void Server::SendOpers(std::string s) +00425 { +00426 WriteOpers("%s",s.c_str()); +00427 } +00428 +00429 bool Server::MatchText(std::string sliteral, std::string spattern) +00430 { +00431 char literal[MAXBUF],pattern[MAXBUF]; +00432 strlcpy(literal,sliteral.c_str(),MAXBUF); +00433 strlcpy(pattern,spattern.c_str(),MAXBUF); +00434 return match(literal,pattern); +00435 } +00436 +00437 void Server::SendToModeMask(std::string modes, int flags, std::string text) +00438 { +00439 WriteMode(modes.c_str(),flags,"%s",text.c_str()); +00440 } +00441 +00442 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) +00443 { +00444 return add_channel(user,cname.c_str(),key.c_str(),true); +00445 } +00446 +00447 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) +00448 { +00449 return del_channel(user,cname.c_str(),reason.c_str(),false); +00450 } +00451 +00452 chanuserlist Server::GetUsers(chanrec* chan) +00453 { +00454 chanuserlist userl; +00455 userl.clear(); +00456 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) +00457 { +00458 if (i->second) +00459 { +00460 if (has_channel(i->second,chan)) +00461 { +00462 if (isnick(i->second->nick)) +00463 { +00464 userl.push_back(i->second); +00465 } +00466 } +00467 } +00468 } +00469 return userl; +00470 } +00471 void Server::ChangeUserNick(userrec* user, std::string nickname) +00472 { +00473 force_nickchange(user,nickname.c_str()); +00474 } +00475 +00476 void Server::QuitUser(userrec* user, std::string reason) +00477 { +00478 send_network_quit(user->nick,reason.c_str()); +00479 kill_link(user,reason.c_str()); +00480 } +00481 +00482 bool Server::IsUlined(std::string server) +00483 { +00484 return is_uline(server.c_str()); +00485 } +00486 +00487 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) +00488 { +00489 call_handler(commandname.c_str(),parameters,pcnt,user); +00490 } +00491 +00492 void Server::Log(int level, std::string s) +00493 { +00494 log(level,"%s",s.c_str()); +00495 } +00496 +00497 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) +00498 { +00499 createcommand(cmd,f,flags,minparams,source); +00500 } +00501 +00502 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00503 { +00504 server_mode(parameters,pcnt,user); +00505 } +00506 +00507 void Server::Send(int Socket, std::string s) +00508 { +00509 Write(Socket,"%s",s.c_str()); +00510 } +00511 +00512 void Server::SendServ(int Socket, std::string s) +00513 { +00514 WriteServ(Socket,"%s",s.c_str()); +00515 } +00516 +00517 void Server::SendFrom(int Socket, userrec* User, std::string s) +00518 { +00519 WriteFrom(Socket,User,"%s",s.c_str()); +00520 } +00521 +00522 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00523 { +00524 if (!Source) +00525 { +00526 // if source is NULL, then the message originates from the local server +00527 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); +00528 } +00529 else +00530 { +00531 // otherwise it comes from the user specified +00532 WriteTo(Source,Dest,"%s",s.c_str()); +00533 } +00534 } +00535 +00536 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00537 { +00538 if (IncludeSender) +00539 { +00540 WriteChannel(Channel,User,"%s",s.c_str()); +00541 } +00542 else +00543 { +00544 ChanExceptSender(Channel,User,"%s",s.c_str()); +00545 } +00546 } +00547 +00548 bool Server::CommonChannels(userrec* u1, userrec* u2) +00549 { +00550 return (common_channels(u1,u2) != 0); +00551 } +00552 +00553 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00554 { +00555 if (IncludeSender) +00556 { +00557 WriteCommon(User,"%s",text.c_str()); +00558 } +00559 else +00560 { +00561 WriteCommonExcept(User,"%s",text.c_str()); +00562 } +00563 } +00564 +00565 void Server::SendWallops(userrec* User, std::string text) +00566 { +00567 WriteWallOps(User,false,"%s",text.c_str()); +00568 } +00569 +00570 void Server::ChangeHost(userrec* user, std::string host) +00571 { +00572 ChangeDisplayedHost(user,host.c_str()); +00573 } +00574 +00575 void Server::ChangeGECOS(userrec* user, std::string gecos) +00576 { +00577 ChangeName(user,gecos.c_str()); +00578 } +00579 +00580 bool Server::IsNick(std::string nick) +00581 { +00582 return (isnick(nick.c_str()) != 0); +00583 } +00584 +00585 userrec* Server::FindNick(std::string nick) +00586 { +00587 return Find(nick); +00588 } +00589 +00590 chanrec* Server::FindChannel(std::string channel) +00591 { +00592 return FindChan(channel.c_str()); +00593 } +00594 +00595 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00596 { +00597 return cmode(User,Chan); +00598 } +00599 +00600 bool Server::IsOnChannel(userrec* User, chanrec* Chan) +00601 { +00602 return has_channel(User,Chan); +00603 } +00604 +00605 std::string Server::GetServerName() +00606 { +00607 return getservername(); +00608 } +00609 +00610 std::string Server::GetNetworkName() +00611 { +00612 return getnetworkname(); +00613 } +00614 +00615 Admin Server::GetAdmin() +00616 { +00617 return Admin(getadminname(),getadminemail(),getadminnick()); +00618 } 00619 -00620 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) -00621 { -00622 if (type == MT_SERVER) -00623 { -00624 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); -00625 return false; -00626 } -00627 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -00628 { -00629 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); -00630 return false; -00631 } -00632 if ((params_when_on>1) || (params_when_off>1)) -00633 { -00634 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); -00635 return false; -00636 } -00637 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -00638 } -00639 -00640 bool Server::AddExtendedListMode(char modechar) -00641 { -00642 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -00643 if (res) -00644 ModeMakeList(modechar); -00645 return res; -00646 } -00647 -00648 int Server::CountUsers(chanrec* c) -00649 { -00650 return usercount(c); -00651 } -00652 -00653 -00654 bool Server::UserToPseudo(userrec* user,std::string message) -00655 { -00656 unsigned int old_fd = user->fd; -00657 user->fd = FD_MAGIC_NUMBER; -00658 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); -00659 close(old_fd); -00660 shutdown (old_fd,2); -00661 } -00662 -00663 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) -00664 { -00665 zombie->fd = alive->fd; -00666 alive->fd = FD_MAGIC_NUMBER; -00667 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); -00668 kill_link(alive,message.c_str()); -00669 for (int i = 0; i != MAXCHANS; i++) -00670 { -00671 if (zombie->chans[i].channel != NULL) -00672 { -00673 if (zombie->chans[i].channel->name) -00674 { -00675 chanrec* Ptr = zombie->chans[i].channel; -00676 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); -00677 if (Ptr->topicset) -00678 { -00679 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); -00680 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -00681 } -00682 userlist(zombie,Ptr); -00683 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); -00684 //WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr)); -00685 //WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created); -00686 -00687 } -00688 } -00689 } -00690 -00691 } +00620 +00621 +00622 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) +00623 { +00624 if (type == MT_SERVER) +00625 { +00626 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); +00627 return false; +00628 } +00629 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +00630 { +00631 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); +00632 return false; +00633 } +00634 if ((params_when_on>1) || (params_when_off>1)) +00635 { +00636 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); +00637 return false; +00638 } +00639 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +00640 } +00641 +00642 bool Server::AddExtendedListMode(char modechar) +00643 { +00644 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +00645 if (res) +00646 ModeMakeList(modechar); +00647 return res; +00648 } +00649 +00650 int Server::CountUsers(chanrec* c) +00651 { +00652 return usercount(c); +00653 } +00654 +00655 +00656 bool Server::UserToPseudo(userrec* user,std::string message) +00657 { +00658 unsigned int old_fd = user->fd; +00659 user->fd = FD_MAGIC_NUMBER; +00660 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); +00661 close(old_fd); +00662 shutdown (old_fd,2); +00663 } +00664 +00665 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) +00666 { +00667 zombie->fd = alive->fd; +00668 alive->fd = FD_MAGIC_NUMBER; +00669 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); +00670 kill_link(alive,message.c_str()); +00671 for (int i = 0; i != MAXCHANS; i++) +00672 { +00673 if (zombie->chans[i].channel != NULL) +00674 { +00675 if (zombie->chans[i].channel->name) +00676 { +00677 chanrec* Ptr = zombie->chans[i].channel; +00678 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); +00679 if (Ptr->topicset) +00680 { +00681 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); +00682 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +00683 } +00684 userlist(zombie,Ptr); +00685 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); +00686 //WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr)); +00687 //WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created); +00688 +00689 } +00690 } +00691 } 00692 -00693 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) -00694 { -00695 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00696 } -00697 -00698 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) -00699 { -00700 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -00701 } -00702 -00703 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) -00704 { -00705 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -00706 } -00707 -00708 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) -00709 { -00710 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00711 } -00712 -00713 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) -00714 { -00715 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00716 } -00717 -00718 bool Server::DelGLine(std::string hostmask) -00719 { -00720 del_gline(hostmask.c_str()); -00721 } -00722 -00723 bool Server::DelQLine(std::string nickname) -00724 { -00725 del_qline(nickname.c_str()); -00726 } -00727 -00728 bool Server::DelZLine(std::string ipaddr) -00729 { -00730 del_zline(ipaddr.c_str()); -00731 } -00732 -00733 bool Server::DelKLine(std::string hostmask) -00734 { -00735 del_kline(hostmask.c_str()); -00736 } -00737 -00738 bool Server::DelELine(std::string hostmask) -00739 { -00740 del_eline(hostmask.c_str()); -00741 } -00742 -00743 long Server::CalcDuration(std::string delta) -00744 { -00745 return duration(delta.c_str()); -00746 } -00747 -00748 bool Server::IsValidMask(std::string mask) -00749 { -00750 const char* dest = mask.c_str(); -00751 if (strchr(dest,'!')==0) -00752 return false; -00753 if (strchr(dest,'@')==0) +00693 } +00694 +00695 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) +00696 { +00697 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00698 } +00699 +00700 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) +00701 { +00702 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +00703 } +00704 +00705 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) +00706 { +00707 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +00708 } +00709 +00710 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) +00711 { +00712 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00713 } +00714 +00715 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) +00716 { +00717 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00718 } +00719 +00720 bool Server::DelGLine(std::string hostmask) +00721 { +00722 del_gline(hostmask.c_str()); +00723 } +00724 +00725 bool Server::DelQLine(std::string nickname) +00726 { +00727 del_qline(nickname.c_str()); +00728 } +00729 +00730 bool Server::DelZLine(std::string ipaddr) +00731 { +00732 del_zline(ipaddr.c_str()); +00733 } +00734 +00735 bool Server::DelKLine(std::string hostmask) +00736 { +00737 del_kline(hostmask.c_str()); +00738 } +00739 +00740 bool Server::DelELine(std::string hostmask) +00741 { +00742 del_eline(hostmask.c_str()); +00743 } +00744 +00745 long Server::CalcDuration(std::string delta) +00746 { +00747 return duration(delta.c_str()); +00748 } +00749 +00750 bool Server::IsValidMask(std::string mask) +00751 { +00752 const char* dest = mask.c_str(); +00753 if (strchr(dest,'!')==0) 00754 return false; -00755 for (int i = 0; i < strlen(dest); i++) -00756 if (dest[i] < 32) -00757 return false; -00758 for (int i = 0; i < strlen(dest); i++) -00759 if (dest[i] > 126) -00760 return false; -00761 int c = 0; -00762 for (int i = 0; i < strlen(dest); i++) -00763 if (dest[i] == '!') -00764 c++; -00765 if (c>1) -00766 return false; -00767 c = 0; -00768 for (int i = 0; i < strlen(dest); i++) -00769 if (dest[i] == '@') -00770 c++; -00771 if (c>1) -00772 return false; -00773 -00774 return true; -00775 } -00776 -00777 void Server::MeshSendAll(std::string text) -00778 { -00779 NetSendToAll((char*)text.c_str()); -00780 } -00781 -00782 void Server::MeshSendCommon(userrec* user, std::string text) -00783 { -00784 if (user) -00785 NetSendToCommon(user,(char*)text.c_str()); -00786 } -00787 -00788 void Server::MeshSendAllAlive(std::string text) -00789 { -00790 NetSendToAllAlive((char*)text.c_str()); -00791 } -00792 -00793 void Server::MeshSendUnicast(std::string destination, std::string text) -00794 { -00795 NetSendToOne((char*)destination.c_str(),(char*)text.c_str()); -00796 } -00797 -00798 void Server::MeshSendAllExcept(std::string target, std::string text) -00799 { -00800 NetSendToAllExcept(target.c_str(),(char*)text.c_str()); -00801 } -00802 -00803 bool Server::MeshCheckChan(chanrec *c,std::string servername) -00804 { -00805 if (c) -00806 { -00807 return ChanAnyOnThisServer(c,(char*)servername.c_str()); -00808 } -00809 else return false; -00810 } -00811 -00812 bool Server::MeshCheckCommon(userrec* u,std::string servername) -00813 { -00814 if (u) -00815 { -00816 return CommonOnThisServer(u,(char*)servername.c_str()); -00817 } -00818 else return false; -00819 } -00820 -00821 Module* Server::FindModule(std::string name) -00822 { -00823 for (int i = 0; i <= MODCOUNT; i++) -00824 { -00825 if (module_names[i] == name) -00826 { -00827 return modules[i]; -00828 } -00829 } -00830 return NULL; -00831 } -00832 -00833 ConfigReader::ConfigReader() -00834 { -00835 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00836 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00837 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00838 if (!this->readerror) -00839 this->error = CONF_FILE_NOT_FOUND; -00840 } -00841 -00842 -00843 ConfigReader::~ConfigReader() -00844 { -00845 if (this->cache) -00846 delete this->cache; -00847 if (this->errorlog) -00848 delete this->errorlog; -00849 } -00850 -00851 -00852 ConfigReader::ConfigReader(std::string filename) -00853 { -00854 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00855 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00856 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -00857 if (!this->readerror) -00858 this->error = CONF_FILE_NOT_FOUND; -00859 }; -00860 -00861 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00862 { -00863 char val[MAXBUF]; -00864 char t[MAXBUF]; -00865 char n[MAXBUF]; -00866 strlcpy(t,tag.c_str(),MAXBUF); -00867 strlcpy(n,name.c_str(),MAXBUF); -00868 int res = ReadConf(cache,t,n,index,val); -00869 if (!res) -00870 { -00871 this->error = CONF_VALUE_NOT_FOUND; -00872 return ""; -00873 } -00874 return std::string(val); -00875 } -00876 -00877 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) -00878 { -00879 char val[MAXBUF]; -00880 char t[MAXBUF]; -00881 char n[MAXBUF]; -00882 strlcpy(t,tag.c_str(),MAXBUF); -00883 strlcpy(n,name.c_str(),MAXBUF); -00884 int res = ReadConf(cache,t,n,index,val); -00885 if (!res) -00886 { -00887 this->error = CONF_VALUE_NOT_FOUND; -00888 return false; -00889 } -00890 std::string s = val; -00891 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); -00892 } -00893 -00894 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) -00895 { -00896 char val[MAXBUF]; -00897 char t[MAXBUF]; -00898 char n[MAXBUF]; -00899 strlcpy(t,tag.c_str(),MAXBUF); -00900 strlcpy(n,name.c_str(),MAXBUF); -00901 int res = ReadConf(cache,t,n,index,val); -00902 if (!res) -00903 { -00904 this->error = CONF_VALUE_NOT_FOUND; -00905 return 0; -00906 } -00907 for (int i = 0; i < strlen(val); i++) -00908 { -00909 if (!isdigit(val[i])) -00910 { -00911 this->error = CONF_NOT_A_NUMBER; -00912 return 0; -00913 } -00914 } -00915 if ((needs_unsigned) && (atoi(val)<0)) -00916 { -00917 this->error = CONF_NOT_UNSIGNED; -00918 return 0; -00919 } -00920 return atoi(val); -00921 } -00922 -00923 long ConfigReader::GetError() -00924 { -00925 long olderr = this->error; -00926 this->error = 0; -00927 return olderr; -00928 } -00929 -00930 void ConfigReader::DumpErrors(bool bail, userrec* user) -00931 { -00932 if (bail) -00933 { -00934 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); -00935 exit(0); -00936 } -00937 else -00938 { -00939 char dataline[1024]; -00940 if (user) -00941 { -00942 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); -00943 while (!errorlog->eof()) -00944 { -00945 errorlog->getline(dataline,1024); -00946 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); -00947 } -00948 } -00949 else -00950 { -00951 WriteOpers("There were errors in the configuration file:",user->nick); -00952 while (!errorlog->eof()) -00953 { -00954 errorlog->getline(dataline,1024); -00955 WriteOpers(dataline); -00956 } -00957 } -00958 return; -00959 } -00960 } -00961 -00962 -00963 int ConfigReader::Enumerate(std::string tag) -00964 { -00965 return EnumConf(cache,tag.c_str()); -00966 } -00967 -00968 int ConfigReader::EnumerateValues(std::string tag, int index) -00969 { -00970 return EnumValues(cache, tag.c_str(), index); -00971 } -00972 -00973 bool ConfigReader::Verify() -00974 { -00975 return this->readerror; -00976 } -00977 -00978 -00979 FileReader::FileReader(std::string filename) -00980 { -00981 file_cache c; -00982 readfile(c,filename.c_str()); -00983 this->fc = c; -00984 } -00985 -00986 FileReader::FileReader() -00987 { -00988 } -00989 -00990 void FileReader::LoadFile(std::string filename) -00991 { -00992 file_cache c; -00993 readfile(c,filename.c_str()); -00994 this->fc = c; -00995 } -00996 -00997 -00998 FileReader::~FileReader() -00999 { -01000 } -01001 -01002 bool FileReader::Exists() -01003 { -01004 if (fc.size() == 0) -01005 { -01006 return(false); -01007 } -01008 else -01009 { -01010 return(true); -01011 } -01012 } -01013 -01014 std::string FileReader::GetLine(int x) -01015 { -01016 if ((x<0) || (x>fc.size())) -01017 return ""; -01018 return fc[x]; -01019 } -01020 -01021 int FileReader::FileSize() -01022 { -01023 return fc.size(); -01024 } -01025 -01026 -01027 std::vector<Module*> modules(255); -01028 std::vector<ircd_module*> factory(255); -01029 -01030 int MODCOUNT = -1; +00755 if (strchr(dest,'@')==0) +00756 return false; +00757 for (int i = 0; i < strlen(dest); i++) +00758 if (dest[i] < 32) +00759 return false; +00760 for (int i = 0; i < strlen(dest); i++) +00761 if (dest[i] > 126) +00762 return false; +00763 int c = 0; +00764 for (int i = 0; i < strlen(dest); i++) +00765 if (dest[i] == '!') +00766 c++; +00767 if (c>1) +00768 return false; +00769 c = 0; +00770 for (int i = 0; i < strlen(dest); i++) +00771 if (dest[i] == '@') +00772 c++; +00773 if (c>1) +00774 return false; +00775 +00776 return true; +00777 } +00778 +00779 void Server::MeshSendAll(std::string text) +00780 { +00781 NetSendToAll((char*)text.c_str()); +00782 } +00783 +00784 void Server::MeshSendCommon(userrec* user, std::string text) +00785 { +00786 if (user) +00787 NetSendToCommon(user,(char*)text.c_str()); +00788 } +00789 +00790 void Server::MeshSendAllAlive(std::string text) +00791 { +00792 NetSendToAllAlive((char*)text.c_str()); +00793 } +00794 +00795 void Server::MeshSendUnicast(std::string destination, std::string text) +00796 { +00797 NetSendToOne((char*)destination.c_str(),(char*)text.c_str()); +00798 } +00799 +00800 void Server::MeshSendAllExcept(std::string target, std::string text) +00801 { +00802 NetSendToAllExcept(target.c_str(),(char*)text.c_str()); +00803 } +00804 +00805 bool Server::MeshCheckChan(chanrec *c,std::string servername) +00806 { +00807 if (c) +00808 { +00809 return ChanAnyOnThisServer(c,(char*)servername.c_str()); +00810 } +00811 else return false; +00812 } +00813 +00814 bool Server::MeshCheckCommon(userrec* u,std::string servername) +00815 { +00816 if (u) +00817 { +00818 return CommonOnThisServer(u,(char*)servername.c_str()); +00819 } +00820 else return false; +00821 } +00822 +00823 Module* Server::FindModule(std::string name) +00824 { +00825 for (int i = 0; i <= MODCOUNT; i++) +00826 { +00827 if (module_names[i] == name) +00828 { +00829 return modules[i]; +00830 } +00831 } +00832 return NULL; +00833 } +00834 +00835 ConfigReader::ConfigReader() +00836 { +00837 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00838 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00839 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00840 if (!this->readerror) +00841 this->error = CONF_FILE_NOT_FOUND; +00842 } +00843 +00844 +00845 ConfigReader::~ConfigReader() +00846 { +00847 if (this->cache) +00848 delete this->cache; +00849 if (this->errorlog) +00850 delete this->errorlog; +00851 } +00852 +00853 +00854 ConfigReader::ConfigReader(std::string filename) +00855 { +00856 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00857 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00858 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +00859 if (!this->readerror) +00860 this->error = CONF_FILE_NOT_FOUND; +00861 }; +00862 +00863 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00864 { +00865 char val[MAXBUF]; +00866 char t[MAXBUF]; +00867 char n[MAXBUF]; +00868 strlcpy(t,tag.c_str(),MAXBUF); +00869 strlcpy(n,name.c_str(),MAXBUF); +00870 int res = ReadConf(cache,t,n,index,val); +00871 if (!res) +00872 { +00873 this->error = CONF_VALUE_NOT_FOUND; +00874 return ""; +00875 } +00876 return std::string(val); +00877 } +00878 +00879 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00880 { +00881 char val[MAXBUF]; +00882 char t[MAXBUF]; +00883 char n[MAXBUF]; +00884 strlcpy(t,tag.c_str(),MAXBUF); +00885 strlcpy(n,name.c_str(),MAXBUF); +00886 int res = ReadConf(cache,t,n,index,val); +00887 if (!res) +00888 { +00889 this->error = CONF_VALUE_NOT_FOUND; +00890 return false; +00891 } +00892 std::string s = val; +00893 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); +00894 } +00895 +00896 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00897 { +00898 char val[MAXBUF]; +00899 char t[MAXBUF]; +00900 char n[MAXBUF]; +00901 strlcpy(t,tag.c_str(),MAXBUF); +00902 strlcpy(n,name.c_str(),MAXBUF); +00903 int res = ReadConf(cache,t,n,index,val); +00904 if (!res) +00905 { +00906 this->error = CONF_VALUE_NOT_FOUND; +00907 return 0; +00908 } +00909 for (int i = 0; i < strlen(val); i++) +00910 { +00911 if (!isdigit(val[i])) +00912 { +00913 this->error = CONF_NOT_A_NUMBER; +00914 return 0; +00915 } +00916 } +00917 if ((needs_unsigned) && (atoi(val)<0)) +00918 { +00919 this->error = CONF_NOT_UNSIGNED; +00920 return 0; +00921 } +00922 return atoi(val); +00923 } +00924 +00925 long ConfigReader::GetError() +00926 { +00927 long olderr = this->error; +00928 this->error = 0; +00929 return olderr; +00930 } +00931 +00932 void ConfigReader::DumpErrors(bool bail, userrec* user) +00933 { +00934 if (bail) +00935 { +00936 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); +00937 exit(0); +00938 } +00939 else +00940 { +00941 char dataline[1024]; +00942 if (user) +00943 { +00944 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); +00945 while (!errorlog->eof()) +00946 { +00947 errorlog->getline(dataline,1024); +00948 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); +00949 } +00950 } +00951 else +00952 { +00953 WriteOpers("There were errors in the configuration file:",user->nick); +00954 while (!errorlog->eof()) +00955 { +00956 errorlog->getline(dataline,1024); +00957 WriteOpers(dataline); +00958 } +00959 } +00960 return; +00961 } +00962 } +00963 +00964 +00965 int ConfigReader::Enumerate(std::string tag) +00966 { +00967 return EnumConf(cache,tag.c_str()); +00968 } +00969 +00970 int ConfigReader::EnumerateValues(std::string tag, int index) +00971 { +00972 return EnumValues(cache, tag.c_str(), index); +00973 } +00974 +00975 bool ConfigReader::Verify() +00976 { +00977 return this->readerror; +00978 } +00979 +00980 +00981 FileReader::FileReader(std::string filename) +00982 { +00983 file_cache c; +00984 readfile(c,filename.c_str()); +00985 this->fc = c; +00986 } +00987 +00988 FileReader::FileReader() +00989 { +00990 } +00991 +00992 void FileReader::LoadFile(std::string filename) +00993 { +00994 file_cache c; +00995 readfile(c,filename.c_str()); +00996 this->fc = c; +00997 } +00998 +00999 +01000 FileReader::~FileReader() +01001 { +01002 } +01003 +01004 bool FileReader::Exists() +01005 { +01006 if (fc.size() == 0) +01007 { +01008 return(false); +01009 } +01010 else +01011 { +01012 return(true); +01013 } +01014 } +01015 +01016 std::string FileReader::GetLine(int x) +01017 { +01018 if ((x<0) || (x>fc.size())) +01019 return ""; +01020 return fc[x]; +01021 } +01022 +01023 int FileReader::FileSize() +01024 { +01025 return fc.size(); +01026 } +01027 +01028 +01029 std::vector<Module*> modules(255); +01030 std::vector<ircd_module*> factory(255); 01031 -01032 -

    Generated on Wed Apr 20 15:46:55 2005 for InspIRCd by +01032 int MODCOUNT = -1; +01033 +01034 +

    Generated on Tue Apr 26 17:11:44 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 701a6f0cd..ead727c76 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -416,7 +416,7 @@ Definition at line 277

    References EMode, and ModeDefined().

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

    00278 {
     00279         if (ModeDefined(modechar,type)) {
    @@ -764,7 +764,7 @@ Definition at line 287
     

    References EMode, ExtModeListIter, and MT_CHANNEL.

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

    00288 {
     00289         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    @@ -977,7 +977,7 @@ Definition at line 182
     

    Definition at line 181 of file modules.cpp.

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

    @@ -1387,7 +1387,7 @@ Definition at line 106

    -Definition at line 1030 of file modules.cpp. +Definition at line 1032 of file modules.cpp.

    @@ -1894,7 +1894,7 @@ Definition at line 87 o Definition at line 86 of file modules.cpp. -


    Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:46 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 e76cb5143..c9a740a95 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -79,7 +79,7 @@ 00076 // loaded modules in a readable simple way, e.g.: 00077 // 'FOREACH_MOD OnConnect(user);' 00078 -00079 #define FOREACH_MOD for (int i = 0; i <= MODCOUNT; i++) modules[i]-> +00079 #define FOREACH_MOD for (int _i = 0; _i <= MODCOUNT; _i++) modules[_i]-> 00080 00081 // This define is similar to the one above but returns a result in MOD_RESULT. 00082 // The first module to return a nonzero result is the value to be accepted, @@ -88,8 +88,8 @@ 00085 // ********************************************************************************************* 00086 00087 #define FOREACH_RESULT(x) { MOD_RESULT = 0; \ -00088 for (int i = 0; i <= MODCOUNT; i++) { \ -00089 int res = modules[i]->x ; \ +00088 for (int _i = 0; _i <= MODCOUNT; _i++) { \ +00089 int res = modules[_i]->x ; \ 00090 if (res != 0) { \ 00091 MOD_RESULT = res; \ 00092 break; \ @@ -125,308 +125,318 @@ 00131 // Forward-delacare module for ModuleMessage etc 00132 class Module; 00133 -00138 class ModuleMessage : public classbase -00139 { -00140 public: -00143 virtual char* Send() = 0; -00144 }; -00145 -00151 class Request : public ModuleMessage -00152 { -00153 protected: -00156 char* data; -00160 Module* source; -00163 Module* dest; -00164 public: -00167 Request(char* anydata, Module* src, Module* dst); -00170 char* GetData(); -00173 Module* GetSource(); -00176 Module* GetDest(); -00182 char* Send(); -00183 }; -00184 -00185 -00191 class Event : public ModuleMessage -00192 { -00193 protected: -00196 char* data; -00200 Module* source; -00205 std::string id; -00206 public: -00209 Event(char* anydata, Module* src, std::string eventid); -00212 char* GetData(); -00215 Module* GetSource(); -00219 std::string GetEventID(); -00224 char* Send(); -00225 }; -00226 -00227 -00233 class Module : public classbase -00234 { -00235 public: -00236 -00240 Module(); -00241 -00245 virtual ~Module(); -00246 -00251 virtual Version GetVersion(); -00252 -00256 virtual void OnUserConnect(userrec* user); -00257 -00263 virtual void OnUserQuit(userrec* user); -00264 -00270 virtual void OnUserDisconnect(userrec* user); -00271 -00276 virtual void OnUserJoin(userrec* user, chanrec* channel); -00277 -00282 virtual void OnUserPart(userrec* user, chanrec* channel); -00283 -00289 virtual void OnPacketTransmit(std::string &data, std::string serv); -00290 -00297 virtual void OnPacketReceive(std::string &data, std::string serv); -00298 -00304 virtual void OnRehash(); -00305 -00314 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); -00315 -00325 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); -00326 -00340 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); -00341 -00347 virtual int OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason); -00348 -00353 virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason); -00354 -00359 virtual void OnOper(userrec* user); -00360 -00369 virtual void OnInfo(userrec* user); -00370 -00375 virtual void OnWhois(userrec* source, userrec* dest); -00376 -00382 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); -00383 -00392 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); -00393 -00405 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); -00406 -00414 virtual int OnUserPreNick(userrec* user, std::string newnick); -00415 -00423 virtual void OnUserPostNick(userrec* user, std::string oldnick); -00424 -00446 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); -00447 -00453 virtual string_list OnUserSync(userrec* user); -00454 -00460 virtual string_list OnChannelSync(chanrec* chan); -00461 -00465 virtual void On005Numeric(std::string &output); -00466 -00476 virtual int OnKill(userrec* source, userrec* dest, std::string reason); -00477 -00488 virtual void OnLoadModule(Module* mod,std::string name); -00489 -00495 virtual void OnBackgroundTimer(time_t curtime); -00496 -00504 virtual void OnSendList(userrec* user, chanrec* channel, char mode); -00505 -00516 virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user); -00517 -00526 virtual bool OnCheckReady(userrec* user); -00527 -00535 virtual void OnUserRegister(userrec* user); -00536 -00542 virtual int OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt); -00543 -00549 virtual int OnCheckInvite(userrec* user, chanrec* chan); -00550 -00557 virtual int OnCheckKey(userrec* user, chanrec* chan, std::string keygiven); -00558 -00564 virtual int OnCheckLimit(userrec* user, chanrec* chan); -00565 -00571 virtual int OnCheckBan(userrec* user, chanrec* chan); -00572 -00576 virtual void OnStats(char symbol); -00577 -00581 virtual int OnChangeLocalUserHost(userrec* user, std::string newhost); -00582 -00586 virtual int OnChangeLocalUserGECOS(userrec* user, std::string newhost); -00587 -00591 virtual int OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic); -00592 -00603 virtual int OnMeshToken(char token,string_list params,serverrec* source,serverrec* reply, std::string tcp_host,std::string ipaddr,int port); -00604 -00610 virtual void OnEvent(Event* event); -00611 -00618 virtual char* OnRequest(Request* request); -00619 }; -00620 -00621 -00627 class Server : public classbase -00628 { -00629 public: -00633 Server(); -00637 virtual ~Server(); -00638 -00642 virtual void SendOpers(std::string s); -00647 virtual void Log(int level, std::string s); -00652 virtual void Send(int Socket, std::string s); -00657 virtual void SendServ(int Socket, std::string s); -00662 virtual void SendFrom(int Socket, userrec* User, std::string s); -00677 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -00684 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -00689 virtual bool CommonChannels(userrec* u1, userrec* u2); -00697 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -00702 virtual void SendWallops(userrec* User, std::string text); -00703 -00707 virtual bool IsNick(std::string nick); -00711 virtual int CountUsers(chanrec* c); -00715 virtual userrec* FindNick(std::string nick); -00719 virtual chanrec* FindChannel(std::string channel); -00724 virtual std::string ChanMode(userrec* User, chanrec* Chan); -00728 virtual bool IsOnChannel(userrec* User, chanrec* Chan); -00731 virtual std::string GetServerName(); -00734 virtual std::string GetNetworkName(); -00740 virtual Admin GetAdmin(); -00759 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); -00760 -00782 virtual bool AddExtendedListMode(char modechar); -00783 -00801 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); -00802 -00824 virtual void SendMode(char **parameters, int pcnt, userrec *user); -00825 -00838 virtual void SendToModeMask(std::string modes, int flags, std::string text); -00839 -00845 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); -00846 -00852 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); -00853 -00859 virtual void ChangeUserNick(userrec* user, std::string nickname); -00860 -00871 virtual void QuitUser(userrec* user, std::string reason); -00872 -00877 virtual bool MatchText(std::string sliteral, std::string spattern); +00134 // Thanks to Rob (from anope) for the idea of this message passing API +00135 // (its been done before, but this seemed a very neat and tidy way... +00136 +00141 class ModuleMessage : public classbase +00142 { +00143 public: +00146 virtual char* Send() = 0; +00147 }; +00148 +00154 class Request : public ModuleMessage +00155 { +00156 protected: +00159 char* data; +00163 Module* source; +00166 Module* dest; +00167 public: +00170 Request(char* anydata, Module* src, Module* dst); +00173 char* GetData(); +00176 Module* GetSource(); +00179 Module* GetDest(); +00185 char* Send(); +00186 }; +00187 +00188 +00194 class Event : public ModuleMessage +00195 { +00196 protected: +00199 char* data; +00203 Module* source; +00208 std::string id; +00209 public: +00212 Event(char* anydata, Module* src, std::string eventid); +00215 char* GetData(); +00218 Module* GetSource(); +00222 std::string GetEventID(); +00227 char* Send(); +00228 }; +00229 +00230 +00236 class Module : public classbase +00237 { +00238 public: +00239 +00243 Module(); +00244 +00248 virtual ~Module(); +00249 +00254 virtual Version GetVersion(); +00255 +00259 virtual void OnUserConnect(userrec* user); +00260 +00266 virtual void OnUserQuit(userrec* user); +00267 +00273 virtual void OnUserDisconnect(userrec* user); +00274 +00279 virtual void OnUserJoin(userrec* user, chanrec* channel); +00280 +00285 virtual void OnUserPart(userrec* user, chanrec* channel); +00286 +00292 virtual void OnPacketTransmit(std::string &data, std::string serv); +00293 +00300 virtual void OnPacketReceive(std::string &data, std::string serv); +00301 +00307 virtual void OnRehash(); +00308 +00317 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); +00318 +00328 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); +00329 +00343 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); +00344 +00350 virtual int OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason); +00351 +00356 virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason); +00357 +00362 virtual void OnOper(userrec* user); +00363 +00372 virtual void OnInfo(userrec* user); +00373 +00378 virtual void OnWhois(userrec* source, userrec* dest); +00379 +00385 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); +00386 +00395 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); +00396 +00408 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); +00409 +00417 virtual int OnUserPreNick(userrec* user, std::string newnick); +00418 +00426 virtual void OnUserPostNick(userrec* user, std::string oldnick); +00427 +00449 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); +00450 +00456 virtual string_list OnUserSync(userrec* user); +00457 +00463 virtual string_list OnChannelSync(chanrec* chan); +00464 +00468 virtual void On005Numeric(std::string &output); +00469 +00479 virtual int OnKill(userrec* source, userrec* dest, std::string reason); +00480 +00491 virtual void OnLoadModule(Module* mod,std::string name); +00492 +00498 virtual void OnBackgroundTimer(time_t curtime); +00499 +00507 virtual void OnSendList(userrec* user, chanrec* channel, char mode); +00508 +00519 virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user); +00520 +00529 virtual bool OnCheckReady(userrec* user); +00530 +00538 virtual void OnUserRegister(userrec* user); +00539 +00545 virtual int OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt); +00546 +00552 virtual int OnCheckInvite(userrec* user, chanrec* chan); +00553 +00560 virtual int OnCheckKey(userrec* user, chanrec* chan, std::string keygiven); +00561 +00567 virtual int OnCheckLimit(userrec* user, chanrec* chan); +00568 +00574 virtual int OnCheckBan(userrec* user, chanrec* chan); +00575 +00579 virtual void OnStats(char symbol); +00580 +00584 virtual int OnChangeLocalUserHost(userrec* user, std::string newhost); +00585 +00589 virtual int OnChangeLocalUserGECOS(userrec* user, std::string newhost); +00590 +00594 virtual int OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic); +00595 +00606 virtual int OnMeshToken(char token,string_list params,serverrec* source,serverrec* reply, std::string tcp_host,std::string ipaddr,int port); +00607 +00613 virtual void OnEvent(Event* event); +00614 +00621 virtual char* OnRequest(Request* request); +00622 +00629 virtual int OnOperCompare(std::string password, std::string input); +00630 +00636 virtual void OnGlobalOper(userrec* user); +00637 +00642 virtual void OnGlobalConnect(userrec* user); +00643 +00644 }; +00645 +00646 +00652 class Server : public classbase +00653 { +00654 public: +00658 Server(); +00662 virtual ~Server(); +00663 +00667 virtual void SendOpers(std::string s); +00672 virtual void Log(int level, std::string s); +00677 virtual void Send(int Socket, std::string s); +00682 virtual void SendServ(int Socket, std::string s); +00687 virtual void SendFrom(int Socket, userrec* User, std::string s); +00702 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); +00709 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); +00714 virtual bool CommonChannels(userrec* u1, userrec* u2); +00722 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); +00727 virtual void SendWallops(userrec* User, std::string text); +00728 +00732 virtual bool IsNick(std::string nick); +00736 virtual int CountUsers(chanrec* c); +00740 virtual userrec* FindNick(std::string nick); +00744 virtual chanrec* FindChannel(std::string channel); +00749 virtual std::string ChanMode(userrec* User, chanrec* Chan); +00753 virtual bool IsOnChannel(userrec* User, chanrec* Chan); +00756 virtual std::string GetServerName(); +00759 virtual std::string GetNetworkName(); +00765 virtual Admin GetAdmin(); +00784 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); +00785 +00807 virtual bool AddExtendedListMode(char modechar); +00808 +00826 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +00827 +00849 virtual void SendMode(char **parameters, int pcnt, userrec *user); +00850 +00863 virtual void SendToModeMask(std::string modes, int flags, std::string text); +00864 +00870 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); +00871 +00877 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); 00878 -00890 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); -00891 -00897 virtual void ChangeHost(userrec* user, std::string host); -00898 -00904 virtual void ChangeGECOS(userrec* user, std::string gecos); -00905 -00914 virtual bool IsUlined(std::string server); -00915 -00919 virtual chanuserlist GetUsers(chanrec* chan); -00920 -00927 virtual bool UserToPseudo(userrec* user,std::string message); -00928 -00935 virtual bool PseudoToUser(userrec* alive,userrec* zombie,std::string message); -00936 -00944 virtual void AddGLine(long duration, std::string source, std::string reason, std::string hostmask); +00884 virtual void ChangeUserNick(userrec* user, std::string nickname); +00885 +00896 virtual void QuitUser(userrec* user, std::string reason); +00897 +00902 virtual bool MatchText(std::string sliteral, std::string spattern); +00903 +00915 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); +00916 +00922 virtual void ChangeHost(userrec* user, std::string host); +00923 +00929 virtual void ChangeGECOS(userrec* user, std::string gecos); +00930 +00939 virtual bool IsUlined(std::string server); +00940 +00944 virtual chanuserlist GetUsers(chanrec* chan); 00945 -00953 virtual void AddQLine(long duration, std::string source, std::string reason, std::string nickname); -00954 -00962 virtual void AddZLine(long duration, std::string source, std::string reason, std::string ipaddr); -00963 -00971 virtual void AddKLine(long duration, std::string source, std::string reason, std::string hostmask); -00972 -00980 virtual void AddELine(long duration, std::string source, std::string reason, std::string hostmask); -00981 -00984 virtual bool DelGLine(std::string hostmask); -00985 -00988 virtual bool DelQLine(std::string nickname); -00989 -00992 virtual bool DelZLine(std::string ipaddr); -00993 -00996 virtual bool DelKLine(std::string hostmask); +00952 virtual bool UserToPseudo(userrec* user,std::string message); +00953 +00960 virtual bool PseudoToUser(userrec* alive,userrec* zombie,std::string message); +00961 +00969 virtual void AddGLine(long duration, std::string source, std::string reason, std::string hostmask); +00970 +00978 virtual void AddQLine(long duration, std::string source, std::string reason, std::string nickname); +00979 +00987 virtual void AddZLine(long duration, std::string source, std::string reason, std::string ipaddr); +00988 +00996 virtual void AddKLine(long duration, std::string source, std::string reason, std::string hostmask); 00997 -01000 virtual bool DelELine(std::string hostmask); -01001 -01007 virtual long CalcDuration(std::string duration); -01008 -01011 virtual bool IsValidMask(std::string mask); -01012 -01017 virtual void MeshSendAll(std::string text); +01005 virtual void AddELine(long duration, std::string source, std::string reason, std::string hostmask); +01006 +01009 virtual bool DelGLine(std::string hostmask); +01010 +01013 virtual bool DelQLine(std::string nickname); +01014 +01017 virtual bool DelZLine(std::string ipaddr); 01018 -01025 virtual void MeshSendCommon(userrec* user, std::string text); +01021 virtual bool DelKLine(std::string hostmask); +01022 +01025 virtual bool DelELine(std::string hostmask); 01026 -01029 virtual void MeshSendAllAlive(std::string text); -01030 -01034 virtual void MeshSendUnicast(std::string destination, std::string text); -01035 -01040 virtual void MeshSendAllExcept(std::string target, std::string text); -01041 -01045 virtual bool MeshCheckChan(chanrec *c,std::string servername); -01046 -01050 virtual bool MeshCheckCommon(userrec* u,std::string servername); +01032 virtual long CalcDuration(std::string duration); +01033 +01036 virtual bool IsValidMask(std::string mask); +01037 +01042 virtual void MeshSendAll(std::string text); +01043 +01050 virtual void MeshSendCommon(userrec* user, std::string text); 01051 -01056 virtual Module* FindModule(std::string name); -01057 }; -01058 -01059 -01060 #define CONF_NOT_A_NUMBER 0x000010 -01061 #define CONF_NOT_UNSIGNED 0x000080 -01062 #define CONF_VALUE_NOT_FOUND 0x000100 -01063 #define CONF_FILE_NOT_FOUND 0x000200 -01064 -01065 -01072 class ConfigReader : public classbase -01073 { -01074 protected: -01080 std::stringstream *cache; -01081 std::stringstream *errorlog; -01084 bool readerror; -01085 long error; -01086 -01087 public: -01092 ConfigReader(); // default constructor reads ircd.conf -01096 ConfigReader(std::string filename); // read a module-specific config -01100 ~ConfigReader(); -01105 std::string ReadValue(std::string tag, std::string name, int index); -01111 bool ReadFlag(std::string tag, std::string name, int index); -01120 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); -01125 long GetError(); -01132 int Enumerate(std::string tag); -01137 bool Verify(); -01144 void DumpErrors(bool bail,userrec* user); -01145 -01151 int EnumerateValues(std::string tag, int index); -01152 }; -01153 -01154 -01155 -01161 class FileReader : public classbase -01162 { -01163 file_cache fc; -01164 public: -01169 FileReader(); +01054 virtual void MeshSendAllAlive(std::string text); +01055 +01059 virtual void MeshSendUnicast(std::string destination, std::string text); +01060 +01065 virtual void MeshSendAllExcept(std::string target, std::string text); +01066 +01070 virtual bool MeshCheckChan(chanrec *c,std::string servername); +01071 +01075 virtual bool MeshCheckCommon(userrec* u,std::string servername); +01076 +01081 virtual Module* FindModule(std::string name); +01082 }; +01083 +01084 +01085 #define CONF_NOT_A_NUMBER 0x000010 +01086 #define CONF_NOT_UNSIGNED 0x000080 +01087 #define CONF_VALUE_NOT_FOUND 0x000100 +01088 #define CONF_FILE_NOT_FOUND 0x000200 +01089 +01090 +01097 class ConfigReader : public classbase +01098 { +01099 protected: +01105 std::stringstream *cache; +01106 std::stringstream *errorlog; +01109 bool readerror; +01110 long error; +01111 +01112 public: +01117 ConfigReader(); // default constructor reads ircd.conf +01121 ConfigReader(std::string filename); // read a module-specific config +01125 ~ConfigReader(); +01130 std::string ReadValue(std::string tag, std::string name, int index); +01136 bool ReadFlag(std::string tag, std::string name, int index); +01145 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); +01150 long GetError(); +01157 int Enumerate(std::string tag); +01162 bool Verify(); +01169 void DumpErrors(bool bail,userrec* user); 01170 -01176 FileReader(std::string filename); -01177 -01181 ~FileReader(); -01182 -01188 void LoadFile(std::string filename); -01189 -01193 bool Exists(); -01194 -01199 std::string GetLine(int x); -01200 -01206 int FileSize(); -01207 }; -01208 -01209 -01216 class ModuleFactory : public classbase -01217 { -01218 public: -01219 ModuleFactory() { } -01220 virtual ~ModuleFactory() { } -01225 virtual Module * CreateModule() = 0; -01226 }; -01227 -01228 -01229 typedef DLLFactory<ModuleFactory> ircd_module; -01230 -01231 #endif -

    Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by +01176 int EnumerateValues(std::string tag, int index); +01177 }; +01178 +01179 +01180 +01186 class FileReader : public classbase +01187 { +01188 file_cache fc; +01189 public: +01194 FileReader(); +01195 +01201 FileReader(std::string filename); +01202 +01206 ~FileReader(); +01207 +01213 void LoadFile(std::string filename); +01214 +01218 bool Exists(); +01219 +01224 std::string GetLine(int x); +01225 +01231 int FileSize(); +01232 }; +01233 +01234 +01241 class ModuleFactory : public classbase +01242 { +01243 public: +01244 ModuleFactory() { } +01245 virtual ~ModuleFactory() { } +01250 virtual Module * CreateModule() = 0; +01251 }; +01252 +01253 +01254 typedef DLLFactory<ModuleFactory> ircd_module; +01255 +01256 #endif +

    Generated on Tue Apr 26 17:11:44 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 5c8d5320e..68cb59620 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -95,7 +95,7 @@ #define VF_COMMON   8 -#define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]-> +#define FOREACH_MOD   for (int _i = 0; _i <= MODCOUNT; _i++) modules[_i]-> #define FOREACH_RESULT(x) @@ -438,9 +438,9 @@ Definition at line 38 of

    -Definition at line 1063 of file modules.h. +Definition at line 1088 of file modules.h.

    -Referenced by ConfigReader::ConfigReader(). +Referenced by ConfigReader::ConfigReader().

    @@ -464,9 +464,9 @@ Referenced by ConfigReader:

    -Definition at line 1060 of file modules.h. +Definition at line 1085 of file modules.h.

    -Referenced by ConfigReader::ReadInteger(). +Referenced by ConfigReader::ReadInteger().

    @@ -490,9 +490,9 @@ Referenced by ConfigReader:

    -Definition at line 1061 of file modules.h. +Definition at line 1086 of file modules.h.

    -Referenced by ConfigReader::ReadInteger(). +Referenced by ConfigReader::ReadInteger().

    @@ -516,9 +516,9 @@ Referenced by ConfigReader:

    -Definition at line 1062 of file modules.h. +Definition at line 1087 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(), userrec::HasPermission(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam(). +Referenced by Server::AddExtendedMode(), chanrec::AddUser(), chanrec::DecUserCounter(), chanrec::DelUser(), userrec::HasPermission(), chanrec::IncUserCounter(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam().

    @@ -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().

    @@ -603,7 +603,7 @@ Referenced by Server::Pseud -
    #define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]-> + #define FOREACH_MOD   for (int _i = 0; _i <= MODCOUNT; _i++) modules[_i]->
    @@ -648,8 +648,8 @@ Referenced by
    Event::Send()

    Value:

    { MOD_RESULT = 0; \
    -                        for (int i = 0; i <= MODCOUNT; i++) { \
    -                        int res = modules[i]->x ; \
    +                        for (int _i = 0; _i <= MODCOUNT; _i++) { \
    +                        int res = modules[_i]->x ; \
                             if (res != 0) { \
                                     MOD_RESULT = res; \
                                     break; \
    @@ -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().

    @@ -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().

    @@ -987,7 +987,7 @@ Referenced by FileReader::F

    -Definition at line 1229 of file modules.h. +Definition at line 1254 of file modules.h.

    @@ -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 Wed Apr 20 15:46:59 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:46 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index 8fdcf1610..534867ea7 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ struct  nspace.hash< string > -
    Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index cc0f1f44a..2f246fd98 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -9,7 +9,7 @@ nspace std -
    Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index bd2cb6d21..ccdc6898f 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@
    -
    Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 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 77ca68d38..a5fa077c4 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -63,7 +63,7 @@ 00056 strlcpy(nickserv,"",NICKMAX); 00057 } 00058 -

    Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by +

    Generated on Tue Apr 26 17:11:44 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 6d0638576..0efa69319 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 Wed Apr 20 15:46:59 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:46 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 06f6fe503..2c1befe74 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 Wed Apr 20 15:46:56 2005 for InspIRCd by +

    Generated on Tue Apr 26 17:11:44 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 9ef99c3e3..80556cb11 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 Wed Apr 20 15:46:59 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:46 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 ffde1c222..24f481673 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 Wed Apr 20 15:47:03 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:48 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 74f550c28..b45ca83c3 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -65,7 +65,7 @@ Definition at line 161
    The documentation for this struct was generated from the following file: -
    Generated on Wed Apr 20 15:47:03 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:48 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 f3666a1c3..0c6279dfe 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 Wed Apr 20 15:47:11 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:51 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structStrHashComp.html b/docs/module-doc/structStrHashComp.html index 96baff715..1ea550cd7 100644 --- a/docs/module-doc/structStrHashComp.html +++ b/docs/module-doc/structStrHashComp.html @@ -64,7 +64,7 @@ Definition at line 146
    The documentation for this struct was generated from the following file: -
    Generated on Wed Apr 20 15:47:11 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:51 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 a82af08e8..2296bfd99 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 Wed Apr 20 15:47:02 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:48 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 b0db97214..28b8f7177 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 Wed Apr 20 15:47:02 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:48 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 c5879fc5f..77c30e7f7 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 Wed Apr 20 15:47:13 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 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 2da3718dd..2e34eaa3e 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 119
    The documentation for this struct was generated from the following file: -
    Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 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 feba7abc6..fa3749c8a 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 Wed Apr 20 15:47:13 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 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 fce23c8f2..ab59de41f 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 132
    The documentation for this struct was generated from the following file: -
    Generated on Wed Apr 20 15:47:13 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index dcba28e4f..1d43fea60 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -121,57 +121,56 @@ 00114 bool userrec::HasPermission(char* command) 00115 { 00116 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -00117 char* myclass; -00118 char* mycmd; -00119 char* savept; -00120 char* savept2; -00121 -00122 // are they even an oper at all? -00123 if (strchr(this->modes,'o')) -00124 { -00125 log(DEBUG,"*** HasPermission: %s is an oper",this->nick); -00126 for (int j =0; j < ConfValueEnum("type",&config_f); j++) -00127 { -00128 ConfValue("type","name",j,TypeName,&config_f); -00129 if (!strcmp(TypeName,this->oper)) -00130 { -00131 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); -00132 ConfValue("type","classes",j,Classes,&config_f); -00133 char* myclass = strtok_r(Classes," ",&savept); -00134 while (myclass) -00135 { -00136 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); -00137 for (int k =0; k < ConfValueEnum("class",&config_f); k++) -00138 { -00139 ConfValue("class","name",k,ClassName,&config_f); -00140 if (!strcmp(ClassName,myclass)) -00141 { -00142 ConfValue("class","commands",k,CommandList,&config_f); -00143 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); +00117 char* mycmd; +00118 char* savept; +00119 char* savept2; +00120 +00121 // are they even an oper at all? +00122 if (strchr(this->modes,'o')) +00123 { +00124 log(DEBUG,"*** HasPermission: %s is an oper",this->nick); +00125 for (int j =0; j < ConfValueEnum("type",&config_f); j++) +00126 { +00127 ConfValue("type","name",j,TypeName,&config_f); +00128 if (!strcmp(TypeName,this->oper)) +00129 { +00130 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); +00131 ConfValue("type","classes",j,Classes,&config_f); +00132 char* myclass = strtok_r(Classes," ",&savept); +00133 while (myclass) +00134 { +00135 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); +00136 for (int k =0; k < ConfValueEnum("class",&config_f); k++) +00137 { +00138 ConfValue("class","name",k,ClassName,&config_f); +00139 if (!strcmp(ClassName,myclass)) +00140 { +00141 ConfValue("class","commands",k,CommandList,&config_f); +00142 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); +00143 00144 -00145 -00146 mycmd = strtok_r(CommandList," ",&savept2); -00147 while (mycmd) -00148 { -00149 if (!strcasecmp(mycmd,command)) -00150 { -00151 log(DEBUG,"*** Command %s found, returning true",command); -00152 return true; -00153 } -00154 mycmd = strtok_r(NULL," ",&savept2); -00155 } -00156 } -00157 } -00158 myclass = strtok_r(NULL," ",&savept); -00159 } -00160 } -00161 } -00162 } -00163 return false; -00164 } +00145 mycmd = strtok_r(CommandList," ",&savept2); +00146 while (mycmd) +00147 { +00148 if (!strcasecmp(mycmd,command)) +00149 { +00150 log(DEBUG,"*** Command %s found, returning true",command); +00151 return true; +00152 } +00153 mycmd = strtok_r(NULL," ",&savept2); +00154 } +00155 } +00156 } +00157 myclass = strtok_r(NULL," ",&savept); +00158 } +00159 } +00160 } +00161 } +00162 return false; +00163 } +00164 00165 -00166 -

    Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by +

    Generated on Tue Apr 26 17:11:44 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 83dbec46c..b39702ebe 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 Wed Apr 20 15:46:59 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:46 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 f09962a8b..3427aae77 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -106,27 +106,29 @@ 00165 00168 unsigned long pingmax; 00169 -00170 userrec(); -00171 -00172 virtual ~userrec() { } -00173 -00178 virtual char* GetFullHost(); +00174 char password[MAXBUF]; +00175 +00176 userrec(); +00177 +00178 virtual ~userrec() { } 00179 -00185 virtual char* GetFullRealHost(); -00186 -00189 virtual bool IsInvited(char* channel); -00190 -00193 virtual void InviteTo(char* channel); -00194 -00199 virtual void RemoveInvite(char* channel); +00184 virtual char* GetFullHost(); +00185 +00191 virtual char* GetFullRealHost(); +00192 +00195 virtual bool IsInvited(char* channel); +00196 +00199 virtual void InviteTo(char* channel); 00200 -00205 bool HasPermission(char* command); +00205 virtual void RemoveInvite(char* channel); 00206 -00207 }; -00208 -00209 -00210 #endif -

    Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by +00211 bool HasPermission(char* command); +00212 +00213 }; +00214 +00215 +00216 #endif +

    Generated on Tue Apr 26 17:11:44 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 72821c061..fd23fdc16 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -243,7 +243,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line 79 of file users.h. -
    Generated on Wed Apr 20 15:46:59 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:46 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 374fbd631..a1063db89 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -123,7 +123,7 @@ 00157 void sync_xlines(serverrec* serv, char* tcp_host); 00158 00159 #endif -

    Generated on Wed Apr 20 15:46:56 2005 for InspIRCd by +

    Generated on Tue Apr 26 17:11:44 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 515e50d29..4a903f279 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 Wed Apr 20 15:46:59 2005 for InspIRCd by +
    Generated on Tue Apr 26 17:11:46 2005 for InspIRCd by doxygen 1.3.3
    -- cgit v1.2.3