From 755d67224f033aaa9b4ef3d2dd00f46bb8c19dc2 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 7 Apr 2005 20:15:05 +0000 Subject: New docs to match extra module Version class stuff, etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1008 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/man/man3/Admin.3 | 14 +- docs/man/man3/BanItem.3 | 2 +- docs/man/man3/ConfigReader.3 | 274 ++-- docs/man/man3/ConnectClass.3 | 2 +- docs/man/man3/DNS.3 | 2 +- docs/man/man3/ELine.3 | 2 +- docs/man/man3/ExemptItem.3 | 2 +- docs/man/man3/ExtMode.3 | 18 +- 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 | 22 +- 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 | 114 +- docs/man/man3/ModuleFactory.3 | 12 +- docs/man/man3/QLine.3 | 2 +- docs/man/man3/Server.3 | 412 +++--- docs/man/man3/StrHashComp.3 | 16 +- docs/man/man3/Version.3 | 26 +- 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 | 14 +- docs/man/man3/channels.h.3 | 2 +- docs/man/man3/chanrec.3 | 166 +-- docs/man/man3/classbase.3 | 2 +- docs/man/man3/command_t.3 | 9 +- docs/man/man3/commands.h.3 | 12 +- docs/man/man3/connection.3 | 2 +- docs/man/man3/connection.h.3 | 2 +- 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 | 2 +- docs/man/man3/message.h.3 | 2 +- docs/man/man3/mode.h.3 | 2 +- docs/man/man3/modules.cpp.3 | 260 ++-- docs/man/man3/modules.h.3 | 52 +- docs/man/man3/nspace.3 | 2 +- docs/man/man3/nspace_nspace_hash_ in_addr _.3 | 14 +- docs/man/man3/nspace_nspace_hash_ string _.3 | 18 +- docs/man/man3/packet.3 | 2 +- docs/man/man3/serverrec.3 | 64 +- docs/man/man3/servers.cpp.3 | 14 +- docs/man/man3/servers.h.3 | 2 +- docs/man/man3/std.3 | 2 +- docs/man/man3/ucrec.3 | 2 +- docs/man/man3/userrec.3 | 258 ++-- docs/man/man3/users.cpp.3 | 8 +- 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 | 185 +-- docs/module-doc/channels_8cpp.html | 112 +- docs/module-doc/channels_8h-source.html | 2 +- docs/module-doc/channels_8h.html | 2 +- docs/module-doc/classAdmin-members.html | 2 +- docs/module-doc/classAdmin.html | 14 +- 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 | 2 +- docs/module-doc/classDNS.html | 2 +- docs/module-doc/classELine-members.html | 2 +- docs/module-doc/classELine.html | 2 +- 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 | 30 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 2 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 100 +- 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 | 4 +- 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 | 2 +- docs/module-doc/classModule.html | 130 +- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 12 +- docs/module-doc/classQLine-members.html | 2 +- docs/module-doc/classQLine.html | 2 +- docs/module-doc/classServer-members.html | 4 +- docs/module-doc/classServer.html | 448 +++---- docs/module-doc/classVersion-members.html | 5 +- docs/module-doc/classVersion.html | 52 +- 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 | 2 +- docs/module-doc/classchanrec.html | 216 +-- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 2 +- docs/module-doc/classcommand__t-members.html | 3 +- docs/module-doc/classcommand__t.html | 31 +- docs/module-doc/classconnection-members.html | 2 +- docs/module-doc/classconnection.html | 32 +- docs/module-doc/classes.html | 2 +- docs/module-doc/classircd__connector-members.html | 2 +- docs/module-doc/classircd__connector.html | 2 +- docs/module-doc/classpacket-members.html | 2 +- docs/module-doc/classpacket.html | 2 +- docs/module-doc/classserverrec-members.html | 2 +- docs/module-doc/classserverrec.html | 88 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 6 +- docs/module-doc/classuserrec-members.html | 2 +- docs/module-doc/classuserrec.html | 286 ++-- docs/module-doc/commands_8h-source.html | 64 +- docs/module-doc/commands_8h.html | 202 ++- docs/module-doc/connection_8h-source.html | 2 +- docs/module-doc/connection_8h.html | 2 +- docs/module-doc/ctables_8h-source.html | 11 +- docs/module-doc/ctables_8h.html | 2 +- docs/module-doc/dns_8h-source.html | 2 +- docs/module-doc/dns_8h.html | 2 +- docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 13 +- docs/module-doc/functions_func.html | 2 +- docs/module-doc/functions_vars.html | 7 +- docs/module-doc/globals.html | 207 +-- docs/module-doc/globals_defs.html | 20 +- docs/module-doc/globals_func.html | 82 +- docs/module-doc/globals_type.html | 22 +- docs/module-doc/globals_vars.html | 96 +- 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 | 4 +- docs/module-doc/mode_8h.html | 2 +- docs/module-doc/modules_8cpp-source.html | 1398 ++++++++++---------- docs/module-doc/modules_8cpp.html | 624 ++++----- docs/module-doc/modules_8h-source.html | 471 +++---- docs/module-doc/modules_8h.html | 224 +++- 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 | 70 +- docs/module-doc/servers_8cpp.html | 30 +- 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 | 22 +- docs/module-doc/structStrHashComp-members.html | 2 +- docs/module-doc/structStrHashComp.html | 16 +- 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 | 14 +- ..._1_1nspace_1_1hash_3_01string_01_4-members.html | 2 +- ...ctnspace_1_1nspace_1_1hash_3_01string_01_4.html | 18 +- docs/module-doc/users_8cpp-source.html | 282 ++-- docs/module-doc/users_8cpp.html | 28 +- docs/module-doc/users_8h-source.html | 2 +- docs/module-doc/users_8h.html | 2 +- docs/module-doc/xline_8h-source.html | 2 +- docs/module-doc/xline_8h.html | 2 +- 177 files changed, 4315 insertions(+), 3813 deletions(-) diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3 index 38345d7c9..c98cc1bb4 100644 --- a/docs/man/man3/Admin.3 +++ b/docs/man/man3/Admin.3 @@ -1,4 +1,4 @@ -.TH "Admin" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Admin" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -38,27 +38,27 @@ Holds /ADMIN data This class contains the admin details of the local server. It is constructed by class \fBServer\fP, and has three read-only values, Name, Email and Nick that contain the specified values for the server where the module is running. .PP -Definition at line 114 of file modules.h. +Definition at line 121 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Admin::Admin (std::string name, std::string email, std::string nick)" .PP -Definition at line 302 of file modules.cpp. +Definition at line 304 of file modules.cpp. .PP .nf -302 : Name(name), Email(email), Nick(nick) { }; +304 : Name(name), Email(email), Nick(nick) { }; .fi .SH "Member Data Documentation" .PP .SS "const std::string \fBAdmin::Email\fP" .PP -Definition at line 117 of file modules.h. +Definition at line 124 of file modules.h. .SS "const std::string \fBAdmin::Name\fP" .PP -Definition at line 117 of file modules.h. +Definition at line 124 of file modules.h. .SS "const std::string \fBAdmin::Nick\fP" .PP -Definition at line 117 of file modules.h. +Definition at line 124 of file modules.h. .SH "Author" .PP diff --git a/docs/man/man3/BanItem.3 b/docs/man/man3/BanItem.3 index 5ab1500b3..570c67b82 100644 --- a/docs/man/man3/BanItem.3 +++ b/docs/man/man3/BanItem.3 @@ -1,4 +1,4 @@ -.TH "BanItem" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "BanItem" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3 index f3e02bdb4..78aa3d341 100644 --- a/docs/man/man3/ConfigReader.3 +++ b/docs/man/man3/ConfigReader.3 @@ -1,4 +1,4 @@ -.TH "ConfigReader" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ConfigReader" 3 "7 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 675 of file modules.h. +Definition at line 685 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 577 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 579 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -578 { -579 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -580 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -581 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -582 if (!this->readerror) -583 this->error = CONF_FILE_NOT_FOUND; -584 } +580 { +581 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +582 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +583 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +584 if (!this->readerror) +585 this->error = CONF_FILE_NOT_FOUND; +586 } .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 596 of file modules.cpp. +Overloaded constructor. This constructor initialises the ConfigReader class to read a user-specified config fileDefinition at line 598 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -597 { -598 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -599 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -600 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -601 if (!this->readerror) -602 this->error = CONF_FILE_NOT_FOUND; -603 }; +599 { +600 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +601 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +602 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +603 if (!this->readerror) +604 this->error = CONF_FILE_NOT_FOUND; +605 }; .fi .SS "ConfigReader::~\fBConfigReader\fP ()" .PP -Default destructor. This method destroys the ConfigReader class.Definition at line 587 of file modules.cpp. +Default destructor. This method destroys the ConfigReader class.Definition at line 589 of file modules.cpp. .PP References cache, and errorlog. .PP .nf -588 { -589 if (this->cache) -590 delete this->cache; -591 if (this->errorlog) -592 delete this->errorlog; -593 } +590 { +591 if (this->cache) +592 delete this->cache; +593 if (this->errorlog) +594 delete this->errorlog; +595 } .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 674 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 676 of file modules.cpp. .PP References errorlog, connection::fd, and userrec::nick. .PP .nf -675 { -676 if (bail) -677 { -678 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); -679 exit(0); -680 } -681 else -682 { -683 char dataline[1024]; -684 if (user) -685 { -686 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); -687 while (!errorlog->eof()) -688 { -689 errorlog->getline(dataline,1024); -690 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); -691 } -692 } -693 else -694 { -695 WriteOpers('There were errors in the configuration file:',user->nick); -696 while (!errorlog->eof()) -697 { -698 errorlog->getline(dataline,1024); -699 WriteOpers(dataline); -700 } -701 } -702 return; -703 } -704 } +677 { +678 if (bail) +679 { +680 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); +681 exit(0); +682 } +683 else +684 { +685 char dataline[1024]; +686 if (user) +687 { +688 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); +689 while (!errorlog->eof()) +690 { +691 errorlog->getline(dataline,1024); +692 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); +693 } +694 } +695 else +696 { +697 WriteOpers('There were errors in the configuration file:',user->nick); +698 while (!errorlog->eof()) +699 { +700 errorlog->getline(dataline,1024); +701 WriteOpers(dataline); +702 } +703 } +704 return; +705 } +706 } .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 707 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 709 of file modules.cpp. .PP References cache. .PP .nf -708 { -709 return EnumConf(cache,tag.c_str()); -710 } +710 { +711 return EnumConf(cache,tag.c_str()); +712 } .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 712 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 714 of file modules.cpp. .PP References cache. .PP .nf -713 { -714 return EnumValues(cache, tag.c_str(), index); -715 } +715 { +716 return EnumValues(cache, tag.c_str(), index); +717 } .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 667 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 669 of file modules.cpp. .PP References error. .PP .nf -668 { -669 long olderr = this->error; -670 this->error = 0; -671 return olderr; -672 } +670 { +671 long olderr = this->error; +672 this->error = 0; +673 return olderr; +674 } .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 621 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 623 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -622 { -623 char val[MAXBUF]; -624 char t[MAXBUF]; -625 char n[MAXBUF]; -626 strlcpy(t,tag.c_str(),MAXBUF); -627 strlcpy(n,name.c_str(),MAXBUF); -628 int res = ReadConf(cache,t,n,index,val); -629 if (!res) -630 { -631 this->error = CONF_VALUE_NOT_FOUND; -632 return false; -633 } -634 std::string s = val; -635 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); -636 } +624 { +625 char val[MAXBUF]; +626 char t[MAXBUF]; +627 char n[MAXBUF]; +628 strlcpy(t,tag.c_str(),MAXBUF); +629 strlcpy(n,name.c_str(),MAXBUF); +630 int res = ReadConf(cache,t,n,index,val); +631 if (!res) +632 { +633 this->error = CONF_VALUE_NOT_FOUND; +634 return false; +635 } +636 std::string s = val; +637 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); +638 } .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 638 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 640 of file modules.cpp. .PP References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error. .PP .nf -639 { -640 char val[MAXBUF]; -641 char t[MAXBUF]; -642 char n[MAXBUF]; -643 strlcpy(t,tag.c_str(),MAXBUF); -644 strlcpy(n,name.c_str(),MAXBUF); -645 int res = ReadConf(cache,t,n,index,val); -646 if (!res) -647 { -648 this->error = CONF_VALUE_NOT_FOUND; -649 return 0; -650 } -651 for (int i = 0; i < strlen(val); i++) -652 { -653 if (!isdigit(val[i])) -654 { -655 this->error = CONF_NOT_A_NUMBER; -656 return 0; -657 } -658 } -659 if ((needs_unsigned) && (atoi(val)<0)) -660 { -661 this->error = CONF_NOT_UNSIGNED; -662 return 0; -663 } -664 return atoi(val); -665 } +641 { +642 char val[MAXBUF]; +643 char t[MAXBUF]; +644 char n[MAXBUF]; +645 strlcpy(t,tag.c_str(),MAXBUF); +646 strlcpy(n,name.c_str(),MAXBUF); +647 int res = ReadConf(cache,t,n,index,val); +648 if (!res) +649 { +650 this->error = CONF_VALUE_NOT_FOUND; +651 return 0; +652 } +653 for (int i = 0; i < strlen(val); i++) +654 { +655 if (!isdigit(val[i])) +656 { +657 this->error = CONF_NOT_A_NUMBER; +658 return 0; +659 } +660 } +661 if ((needs_unsigned) && (atoi(val)<0)) +662 { +663 this->error = CONF_NOT_UNSIGNED; +664 return 0; +665 } +666 return atoi(val); +667 } .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 605 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 607 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -606 { -607 char val[MAXBUF]; -608 char t[MAXBUF]; -609 char n[MAXBUF]; -610 strlcpy(t,tag.c_str(),MAXBUF); -611 strlcpy(n,name.c_str(),MAXBUF); -612 int res = ReadConf(cache,t,n,index,val); -613 if (!res) -614 { -615 this->error = CONF_VALUE_NOT_FOUND; -616 return ''; -617 } -618 return std::string(val); -619 } +608 { +609 char val[MAXBUF]; +610 char t[MAXBUF]; +611 char n[MAXBUF]; +612 strlcpy(t,tag.c_str(),MAXBUF); +613 strlcpy(n,name.c_str(),MAXBUF); +614 int res = ReadConf(cache,t,n,index,val); +615 if (!res) +616 { +617 this->error = CONF_VALUE_NOT_FOUND; +618 return ''; +619 } +620 return std::string(val); +621 } .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 717 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 719 of file modules.cpp. .PP References readerror. .PP .nf -718 { -719 return this->readerror; -720 } +720 { +721 return this->readerror; +722 } .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 683 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 693 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 688 of file modules.h. +Definition at line 698 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 684 of file modules.h. +Definition at line 694 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 687 of file modules.h. +Used to store errors. Definition at line 697 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 549784a28..4d8891d60 100644 --- a/docs/man/man3/ConnectClass.3 +++ b/docs/man/man3/ConnectClass.3 @@ -1,4 +1,4 @@ -.TH "ConnectClass" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ConnectClass" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/DNS.3 b/docs/man/man3/DNS.3 index 68f450166..e497d01a0 100644 --- a/docs/man/man3/DNS.3 +++ b/docs/man/man3/DNS.3 @@ -1,4 +1,4 @@ -.TH "DNS" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "DNS" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ELine.3 b/docs/man/man3/ELine.3 index bc8a86094..9ecca8954 100644 --- a/docs/man/man3/ELine.3 +++ b/docs/man/man3/ELine.3 @@ -1,4 +1,4 @@ -.TH "ELine" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ELine" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3 index 170f480cb..fbff2f13c 100644 --- a/docs/man/man3/ExemptItem.3 +++ b/docs/man/man3/ExemptItem.3 @@ -1,4 +1,4 @@ -.TH "ExemptItem" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ExemptItem" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExtMode.3 b/docs/man/man3/ExtMode.3 index 9abd492ad..b32870c12 100644 --- a/docs/man/man3/ExtMode.3 +++ b/docs/man/man3/ExtMode.3 @@ -1,4 +1,4 @@ -.TH "ExtMode" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ExtMode" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -41,41 +41,41 @@ Inherits \fBclassbase\fP. .PP .SS "ExtMode::ExtMode (char mc, int ty, bool oper, int p_on, int p_off)\fC [inline]\fP" .PP -Definition at line 197 of file modules.cpp. +Definition at line 199 of file modules.cpp. .PP References modechar, needsoper, params_when_off, params_when_on, and type. .PP .nf -197 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; +199 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; .fi .SH "Member Data Documentation" .PP .SS "bool \fBExtMode::list\fP" .PP -Definition at line 196 of file modules.cpp. +Definition at line 198 of file modules.cpp. .SS "char \fBExtMode::modechar\fP" .PP -Definition at line 191 of file modules.cpp. +Definition at line 193 of file modules.cpp. .PP Referenced by ExtMode(). .SS "bool \fBExtMode::needsoper\fP" .PP -Definition at line 195 of file modules.cpp. +Definition at line 197 of file modules.cpp. .PP Referenced by ExtMode(). .SS "int \fBExtMode::params_when_off\fP" .PP -Definition at line 194 of file modules.cpp. +Definition at line 196 of file modules.cpp. .PP Referenced by ExtMode(). .SS "int \fBExtMode::params_when_on\fP" .PP -Definition at line 193 of file modules.cpp. +Definition at line 195 of file modules.cpp. .PP Referenced by ExtMode(). .SS "int \fBExtMode::type\fP" .PP -Definition at line 192 of file modules.cpp. +Definition at line 194 of file modules.cpp. .PP Referenced by ExtMode(). diff --git a/docs/man/man3/Extensible.3 b/docs/man/man3/Extensible.3 index 90bb78178..3fc7b5373 100644 --- a/docs/man/man3/Extensible.3 +++ b/docs/man/man3/Extensible.3 @@ -1,4 +1,4 @@ -.TH "Extensible" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Extensible" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3 index 377933336..677e59b5d 100644 --- a/docs/man/man3/FileReader.3 +++ b/docs/man/man3/FileReader.3 @@ -1,4 +1,4 @@ -.TH "FileReader" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "FileReader" 3 "7 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 764 of file modules.h. +Definition at line 774 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 730 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 732 of file modules.cpp. .PP .nf -731 { -732 } +733 { +734 } .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 723 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 725 of file modules.cpp. .PP References fc, and file_cache. .PP .nf -724 { -725 file_cache c; -726 readfile(c,filename.c_str()); -727 this->fc = c; -728 } +726 { +727 file_cache c; +728 readfile(c,filename.c_str()); +729 this->fc = c; +730 } .fi .SS "FileReader::~\fBFileReader\fP ()" .PP -Default destructor. This deletes the memory allocated to the file.Definition at line 742 of file modules.cpp. +Default destructor. This deletes the memory allocated to the file.Definition at line 744 of file modules.cpp. .PP .nf -743 { -744 } +745 { +746 } .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 746 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 748 of file modules.cpp. .PP References fc. .PP .nf -747 { -748 if (fc.size() == 0) -749 { -750 return(false); -751 } -752 else -753 { -754 return(true); -755 } -756 } +749 { +750 if (fc.size() == 0) +751 { +752 return(false); +753 } +754 else +755 { +756 return(true); +757 } +758 } .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 765 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 767 of file modules.cpp. .PP References fc. .PP .nf -766 { -767 return fc.size(); -768 } +768 { +769 return fc.size(); +770 } .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 758 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 760 of file modules.cpp. .PP References fc. .PP .nf -759 { -760 if ((x<0) || (x>fc.size())) -761 return ''; -762 return fc[x]; -763 } +761 { +762 if ((x<0) || (x>fc.size())) +763 return ''; +764 return fc[x]; +765 } .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 734 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 736 of file modules.cpp. .PP References fc, and file_cache. .PP .nf -735 { -736 file_cache c; -737 readfile(c,filename.c_str()); -738 this->fc = c; -739 } +737 { +738 file_cache c; +739 readfile(c,filename.c_str()); +740 this->fc = c; +741 } .fi .SH "Member Data Documentation" .PP .SS "\fBfile_cache\fP \fBFileReader::fc\fP\fC [private]\fP" .PP -Definition at line 766 of file modules.h. +Definition at line 776 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 d55391531..3e02d2bc4 100644 --- a/docs/man/man3/GLine.3 +++ b/docs/man/man3/GLine.3 @@ -1,4 +1,4 @@ -.TH "GLine" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "GLine" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3 index d767c5879..1c833f94d 100644 --- a/docs/man/man3/HostItem.3 +++ b/docs/man/man3/HostItem.3 @@ -1,4 +1,4 @@ -.TH "HostItem" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "HostItem" 3 "7 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 eb1584eaf..47bc468f3 100644 --- a/docs/man/man3/InAddr_HashComp.3 +++ b/docs/man/man3/InAddr_HashComp.3 @@ -1,4 +1,4 @@ -.TH "InAddr_HashComp" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "InAddr_HashComp" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -17,18 +17,18 @@ InAddr_HashComp \- .PP .SS "bool InAddr_HashComp::operator() (const in_addr & s1, const in_addr & s2) const\fC [inline]\fP" .PP -Definition at line 157 of file modules.cpp. +Definition at line 159 of file modules.cpp. .PP .nf -158 { -159 size_t q; -160 size_t p; -161 -162 memcpy(&q,&s1,sizeof(size_t)); -163 memcpy(&p,&s2,sizeof(size_t)); -164 -165 return (q == p); -166 } +160 { +161 size_t q; +162 size_t p; +163 +164 memcpy(&q,&s1,sizeof(size_t)); +165 memcpy(&p,&s2,sizeof(size_t)); +166 +167 return (q == p); +168 } .fi diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3 index 89d36a36a..a03076a3b 100644 --- a/docs/man/man3/InviteItem.3 +++ b/docs/man/man3/InviteItem.3 @@ -1,4 +1,4 @@ -.TH "InviteItem" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "InviteItem" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Invited.3 b/docs/man/man3/Invited.3 index ab1a87bb8..2a47106a2 100644 --- a/docs/man/man3/Invited.3 +++ b/docs/man/man3/Invited.3 @@ -1,4 +1,4 @@ -.TH "Invited" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Invited" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/KLine.3 b/docs/man/man3/KLine.3 index 991453d01..1d7529288 100644 --- a/docs/man/man3/KLine.3 +++ b/docs/man/man3/KLine.3 @@ -1,4 +1,4 @@ -.TH "KLine" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "KLine" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3 index b374643d8..6c8553ede 100644 --- a/docs/man/man3/ModeParameter.3 +++ b/docs/man/man3/ModeParameter.3 @@ -1,4 +1,4 @@ -.TH "ModeParameter" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModeParameter" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3 index 1196ebcaa..04c1c9654 100644 --- a/docs/man/man3/Module.3 +++ b/docs/man/man3/Module.3 @@ -1,4 +1,4 @@ -.TH "Module" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Module" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -130,38 +130,40 @@ Base class for all InspIRCd modules This class is the base class for InspIRCd mo All modules must inherit from this class, its methods will be called when irc server events occur. class inherited from module must be instantiated by the \fBModuleFactory\fP class (see relevent section) for the plugin to be initialised. .PP -Definition at line 126 of file modules.h. +Definition at line 133 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Module::Module ()" .PP -Default constructor creates a module class. Definition at line 304 of file modules.cpp. +Default constructor creates a module class. Definition at line 306 of file modules.cpp. .PP .nf -304 { } +306 { } .fi .SS "Module::~\fBModule\fP ()\fC [virtual]\fP" .PP -Default destructor destroys a module class. Definition at line 305 of file modules.cpp. +Default destructor destroys a module class. Definition at line 307 of file modules.cpp. .PP .nf -305 { } +307 { } .fi .SH "Member Function Documentation" .PP .SS "\fBVersion\fP Module::GetVersion ()\fC [virtual]\fP" .PP -Returns the version number of a Module. The method should return a \fBVersion\fP object with its version information assigned via \fBVersion::Version\fPDefinition at line 316 of file modules.cpp. +Returns the version number of a Module. The method should return a \fBVersion\fP object with its version information assigned via \fBVersion::Version\fPDefinition at line 318 of file modules.cpp. +.PP +References VF_VENDOR. .PP .nf -316 { return Version(1,0,0,0); } +318 { return Version(1,0,0,0,VF_VENDOR); } .fi .SS "void Module::On005Numeric (std::string & output)\fC [virtual]\fP" .PP -Called when a 005 numeric is about to be output. The module should modify the 005 numeric if needed to indicate its features.Definition at line 328 of file modules.cpp. +Called when a 005 numeric is about to be output. The module should modify the 005 numeric if needed to indicate its features.Definition at line 330 of file modules.cpp. .PP .nf -328 { }; +330 { }; .fi .SS "int Module::OnAccessCheck (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel, int access_type)\fC [virtual]\fP" .PP @@ -189,121 +191,121 @@ Called before an action which requires a channel privilage check. This function .br .br - Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined).Definition at line 325 of file modules.cpp. + Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined).Definition at line 327 of file modules.cpp. .PP References ACR_DEFAULT. .PP .nf -325 { return ACR_DEFAULT; }; +327 { return ACR_DEFAULT; }; .fi .SS "\fBstring_list\fP Module::OnChannelSync (\fBchanrec\fP * chan)\fC [virtual]\fP" .PP -Called during a netburst to sync channel data. This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 327 of file modules.cpp. +Called during a netburst to sync channel data. This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 329 of file modules.cpp. .PP References string_list. .PP .nf -327 { string_list empty; return empty; } +329 { string_list empty; return empty; } .fi .SS "int Module::OnExtendedMode (\fBuserrec\fP * user, void * target, char modechar, int type, bool mode_on, \fBstring_list\fP & params)\fC [virtual]\fP" .PP -Called whenever an extended mode is to be processed. The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with \fBServer::AddExtendedMode\fP If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it.Definition at line 315 of file modules.cpp. +Called whenever an extended mode is to be processed. The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with \fBServer::AddExtendedMode\fP If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it.Definition at line 317 of file modules.cpp. .PP .nf -315 { return false; } +317 { return false; } .fi .SS "void Module::OnInfo (\fBuserrec\fP * user)\fC [virtual]\fP" .PP Called whenever a user types /INFO. The userrec will contain the information of the user who typed the command. Modules may use this method to output their own credits in /INFO (which is the ircd's version of an about box). It is purposefully not possible to modify any info that has already been output, or halt the list. You must write a 371 numeric to the user, containing your info in the following format: .PP - :information hereDefinition at line 318 of file modules.cpp. + :information hereDefinition at line 320 of file modules.cpp. .PP .nf -318 { }; +320 { }; .fi .SS "int Module::OnKill (\fBuserrec\fP * source, \fBuserrec\fP * dest, std::string reason)\fC [virtual]\fP" .PP -Called when a client is disconnected by KILL. If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers. If you do so youre risking race conditions, desyncs and worse!Definition at line 329 of file modules.cpp. +Called when a client is disconnected by KILL. If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers. If you do so youre risking race conditions, desyncs and worse!Definition at line 331 of file modules.cpp. .PP .nf -329 { return 0; }; +331 { return 0; }; .fi .SS "void Module::OnLoadModule (\fBModule\fP * mod, std::string name)\fC [virtual]\fP" .PP -Called whenever a module is loaded. mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded 'm_killwidgets.so' with 'm_makewidgets.so'. It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module).Definition at line 330 of file modules.cpp. +Called whenever a module is loaded. mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded 'm_killwidgets.so' with 'm_makewidgets.so'. It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module).Definition at line 332 of file modules.cpp. .PP .nf -330 { }; +332 { }; .fi .SS "void Module::OnOper (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called whenever a user opers locally. The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.Definition at line 317 of file modules.cpp. +Called whenever a user opers locally. The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.Definition at line 319 of file modules.cpp. .PP .nf -317 { }; +319 { }; .fi .SS "void Module::OnPacketReceive (char * p)\fC [virtual]\fP" .PP -Called after a packet is received from another irc server. The packet is represented as a char*, as it should be regarded as a buffer, and not a string. 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 311 of file modules.cpp. +Called after a packet is received from another irc server. The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd.Definition at line 313 of file modules.cpp. .PP .nf -311 { } +313 { } .fi .SS "void Module::OnPacketTransmit (char * p)\fC [virtual]\fP" .PP -Called before a packet is transmitted across the irc network between two irc servers. The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.Definition at line 310 of file modules.cpp. +Called before a packet is transmitted across the irc network between two irc servers. The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.Definition at line 312 of file modules.cpp. .PP .nf -310 { } +312 { } .fi .SS "void Module::OnRehash ()\fC [virtual]\fP" .PP -Called on rehash. This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application.Definition at line 312 of file modules.cpp. +Called on rehash. This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application.Definition at line 314 of file modules.cpp. .PP .nf -312 { } +314 { } .fi .SS "void Module::OnServerRaw (std::string & raw, bool inbound, \fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called when a raw command is transmitted or received. This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter 'raw'. If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets.Definition at line 313 of file modules.cpp. +Called when a raw command is transmitted or received. This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter 'raw'. If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets.Definition at line 315 of file modules.cpp. .PP .nf -313 { } +315 { } .fi .SS "void Module::OnUserConnect (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called when a user connects. The details of the connecting user are available to you in the parameter userrec *userDefinition at line 306 of file modules.cpp. +Called when a user connects. The details of the connecting user are available to you in the parameter userrec *userDefinition at line 308 of file modules.cpp. .PP .nf -306 { } +308 { } .fi .SS "void Module::OnUserJoin (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP" .PP -Called when a user joins a channel. The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channelDefinition at line 308 of file modules.cpp. +Called when a user joins a channel. The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channelDefinition at line 310 of file modules.cpp. .PP .nf -308 { } +310 { } .fi .SS "void Module::OnUserPart (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP" .PP -Called when a user parts a channel. The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channelDefinition at line 309 of file modules.cpp. +Called when a user parts a channel. The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channelDefinition at line 311 of file modules.cpp. .PP .nf -309 { } +311 { } .fi .SS "void Module::OnUserPostNick (\fBuserrec\fP * user, std::string oldnick)\fC [virtual]\fP" .PP -Called after any nickchange, local or remote. This can be used to track users after nickchanges have been applied. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). Because this method is called after the nickchange is taken place, no return values are possible to indicate forbidding of the nick change. Use OnUserPreNick for this. Definition at line 324 of file modules.cpp. +Called after any nickchange, local or remote. This can be used to track users after nickchanges have been applied. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). Because this method is called after the nickchange is taken place, no return values are possible to indicate forbidding of the nick change. Use OnUserPreNick for this. Definition at line 326 of file modules.cpp. .PP .nf -324 { }; +326 { }; .fi .SS "int Module::OnUserPreInvite (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel)\fC [virtual]\fP" .PP -Called whenever a user is about to invite another user into a channel, before any processing is done. Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels.Definition at line 320 of file modules.cpp. +Called whenever a user is about to invite another user into a channel, before any processing is done. Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels.Definition at line 322 of file modules.cpp. .PP .nf -320 { return 0; }; +322 { return 0; }; .fi .SS "int Module::OnUserPreJoin (\fBuserrec\fP * user, \fBchanrec\fP * chan, const char * cname)\fC [virtual]\fP" .PP @@ -311,54 +313,54 @@ Called whenever a user is about to join a channel, before any processing is done .PP IMPORTANT NOTE! .PP -If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.Definition at line 314 of file modules.cpp. +If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.Definition at line 316 of file modules.cpp. .PP .nf -314 { return 0; } +316 { return 0; } .fi .SS "int Module::OnUserPreMessage (\fBuserrec\fP * user, void * dest, int target_type, std::string & text)\fC [virtual]\fP" .PP -Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done. Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.Definition at line 321 of file modules.cpp. +Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done. Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.Definition at line 323 of file modules.cpp. .PP .nf -321 { return 0; }; +323 { return 0; }; .fi .SS "int Module::OnUserPreNick (\fBuserrec\fP * user, std::string newnick)\fC [virtual]\fP" .PP -Called before any nickchange, local or remote. This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.Definition at line 323 of file modules.cpp. +Called before any nickchange, local or remote. This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.Definition at line 325 of file modules.cpp. .PP .nf -323 { return 0; }; +325 { return 0; }; .fi .SS "int Module::OnUserPreNotice (\fBuserrec\fP * user, void * dest, int target_type, std::string & text)\fC [virtual]\fP" .PP -Called whenever a user is about to NOTICE A user or a channel, before any processing is done. Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.Definition at line 322 of file modules.cpp. +Called whenever a user is about to NOTICE A user or a channel, before any processing is done. Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.Definition at line 324 of file modules.cpp. .PP .nf -322 { return 0; }; +324 { return 0; }; .fi .SS "void Module::OnUserQuit (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called when a user quits. The details of the exiting user are available to you in the parameter userrec *userDefinition at line 307 of file modules.cpp. +Called when a user quits. The details of the exiting user are available to you in the parameter userrec *userDefinition at line 309 of file modules.cpp. .PP .nf -307 { } +309 { } .fi .SS "\fBstring_list\fP Module::OnUserSync (\fBuserrec\fP * user)\fC [virtual]\fP" .PP -Called during a netburst to sync user data. This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 326 of file modules.cpp. +Called during a netburst to sync user data. This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 328 of file modules.cpp. .PP References string_list. .PP .nf -326 { string_list empty; return empty; } +328 { string_list empty; return empty; } .fi .SS "void Module::OnWhois (\fBuserrec\fP * source, \fBuserrec\fP * dest)\fC [virtual]\fP" .PP -Called whenever a /WHOIS is performed on a local user. The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.Definition at line 319 of file modules.cpp. +Called whenever a /WHOIS is performed on a local user. The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.Definition at line 321 of file modules.cpp. .PP .nf -319 { }; +321 { }; .fi diff --git a/docs/man/man3/ModuleFactory.3 b/docs/man/man3/ModuleFactory.3 index b17e177bf..18d6bb943 100644 --- a/docs/man/man3/ModuleFactory.3 +++ b/docs/man/man3/ModuleFactory.3 @@ -1,4 +1,4 @@ -.TH "ModuleFactory" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModuleFactory" 3 "7 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 819 of file modules.h. +Definition at line 829 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ModuleFactory::ModuleFactory ()\fC [inline]\fP" .PP -Definition at line 822 of file modules.h. +Definition at line 832 of file modules.h. .PP .nf -822 { } +832 { } .fi .SS "virtual ModuleFactory::~\fBModuleFactory\fP ()\fC [inline, virtual]\fP" .PP -Definition at line 823 of file modules.h. +Definition at line 833 of file modules.h. .PP .nf -823 { } +833 { } .fi .SH "Member Function Documentation" .PP diff --git a/docs/man/man3/QLine.3 b/docs/man/man3/QLine.3 index a90addc4c..f3dbdbea3 100644 --- a/docs/man/man3/QLine.3 +++ b/docs/man/man3/QLine.3 @@ -1,4 +1,4 @@ -.TH "QLine" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "QLine" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3 index 56e6c0252..d3268626a 100644 --- a/docs/man/man3/Server.3 +++ b/docs/man/man3/Server.3 @@ -1,4 +1,4 @@ -.TH "Server" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Server" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -108,7 +108,7 @@ Inherits \fBclassbase\fP. .br .RI "\fIAdds an extended mode letter which is parsed by a module and handled in a list fashion. \fP" .ti -1c -.RI "virtual void \fBAddCommand\fP (char *cmd, handlerfunc f, char flags, int minparams)" +.RI "virtual void \fBAddCommand\fP (char *cmd, handlerfunc f, char flags, int minparams, char *source)" .br .RI "\fIAdds a command to the command table. \fP" .ti -1c @@ -166,41 +166,41 @@ 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 371 of file modules.h. +Definition at line 378 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Server::Server ()" .PP -Default constructor. Creates a Server object.Definition at line 337 of file modules.cpp. +Default constructor. Creates a Server object.Definition at line 339 of file modules.cpp. .PP .nf -338 { -339 } +340 { +341 } .fi .SS "Server::~\fBServer\fP ()\fC [virtual]\fP" .PP -Default destructor. Destroys a Server object.Definition at line 341 of file modules.cpp. +Default destructor. Destroys a Server object.Definition at line 343 of file modules.cpp. .PP .nf -342 { -343 } +344 { +345 } .fi .SH "Member Function Documentation" .PP -.SS "void Server::AddCommand (char * cmd, handlerfunc f, char flags, int minparams)\fC [virtual]\fP" +.SS "void Server::AddCommand (char * cmd, handlerfunc f, char flags, int minparams, char * source)\fC [virtual]\fP" .PP Adds a command to the command table. This allows modules to add extra commands into the command table. You must place a function within your module which is is of type handlerfunc: .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'.Definition at line 418 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 420 of file modules.cpp. .PP References createcommand(). .PP .nf -419 { -420 createcommand(cmd,f,flags,minparams); -421 } +421 { +422 createcommand(cmd,f,flags,minparams,source); +423 } .fi .SS "bool Server::AddExtendedListMode (char modechar)\fC [virtual]\fP" .PP @@ -214,259 +214,259 @@ 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 563 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 565 of file modules.cpp. .PP References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL. .PP .nf -564 { -565 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -566 if (res) -567 ModeMakeList(modechar); -568 return res; -569 } +566 { +567 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +568 if (res) +569 ModeMakeList(modechar); +570 return res; +571 } .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 543 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 545 of file modules.cpp. .PP References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. .PP .nf -544 { -545 if (type == MT_SERVER) -546 { -547 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); -548 return false; -549 } -550 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -551 { -552 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); -553 return false; -554 } -555 if ((params_when_on>1) || (params_when_off>1)) -556 { -557 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); -558 return false; -559 } -560 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -561 } +546 { +547 if (type == MT_SERVER) +548 { +549 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); +550 return false; +551 } +552 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +553 { +554 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); +555 return false; +556 } +557 if ((params_when_on>1) || (params_when_off>1)) +558 { +559 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); +560 return false; +561 } +562 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +563 } .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 408 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 410 of file modules.cpp. .PP .nf -409 { -410 call_handler(commandname.c_str(),parameters,pcnt,user); -411 } +411 { +412 call_handler(commandname.c_str(),parameters,pcnt,user); +413 } .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 496 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 498 of file modules.cpp. .PP References ChangeName(). .PP .nf -497 { -498 ChangeName(user,gecos.c_str()); -499 } +499 { +500 ChangeName(user,gecos.c_str()); +501 } .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 491 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 493 of file modules.cpp. .PP References ChangeDisplayedHost(). .PP .nf -492 { -493 ChangeDisplayedHost(user,host.c_str()); -494 } +494 { +495 ChangeDisplayedHost(user,host.c_str()); +496 } .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 392 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 394 of file modules.cpp. .PP .nf -393 { -394 force_nickchange(user,nickname.c_str()); -395 } +395 { +396 force_nickchange(user,nickname.c_str()); +397 } .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 516 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 518 of file modules.cpp. .PP References cmode(). .PP .nf -517 { -518 return cmode(User,Chan); -519 } +519 { +520 return cmode(User,Chan); +521 } .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 469 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 471 of file modules.cpp. .PP References common_channels(). .PP .nf -470 { -471 return (common_channels(u1,u2) != 0); -472 } +472 { +473 return (common_channels(u1,u2) != 0); +474 } .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 571 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 573 of file modules.cpp. .PP .nf -572 { -573 return usercount(c); -574 } +574 { +575 return usercount(c); +576 } .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 511 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 513 of file modules.cpp. .PP .nf -512 { -513 return FindChan(channel.c_str()); -514 } +514 { +515 return FindChan(channel.c_str()); +516 } .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 506 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 508 of file modules.cpp. .PP .nf -507 { -508 return Find(nick); -509 } +509 { +510 return Find(nick); +511 } .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 536 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 538 of file modules.cpp. .PP .nf -537 { -538 return Admin(getadminname(),getadminemail(),getadminnick()); -539 } +539 { +540 return Admin(getadminname(),getadminemail(),getadminnick()); +541 } .fi .SS "std::string Server::GetNetworkName ()\fC [virtual]\fP" .PP -Returns the network name, global to all linked servers. Definition at line 531 of file modules.cpp. +Returns the network name, global to all linked servers. Definition at line 533 of file modules.cpp. .PP .nf -532 { -533 return getnetworkname(); -534 } +534 { +535 return getnetworkname(); +536 } .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 526 of file modules.cpp. +Returns the server name of the server where the module is loaded. Definition at line 528 of file modules.cpp. .PP .nf -527 { -528 return getservername(); -529 } +529 { +530 return getservername(); +531 } .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 373 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 375 of file modules.cpp. .PP References chanuserlist, clientlist, has_channel(), and isnick(). .PP .nf -374 { -375 chanuserlist userl; -376 userl.clear(); -377 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) -378 { -379 if (i->second) -380 { -381 if (has_channel(i->second,chan)) -382 { -383 if (isnick(i->second->nick)) -384 { -385 userl.push_back(i->second); -386 } -387 } -388 } -389 } -390 return userl; -391 } +376 { +377 chanuserlist userl; +378 userl.clear(); +379 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) +380 { +381 if (i->second) +382 { +383 if (has_channel(i->second,chan)) +384 { +385 if (isnick(i->second->nick)) +386 { +387 userl.push_back(i->second); +388 } +389 } +390 } +391 } +392 return userl; +393 } .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 501 of file modules.cpp. +Returns true if a nick is valid. Nicks for unregistered connections will return false.Definition at line 503 of file modules.cpp. .PP References isnick(). .PP .nf -502 { -503 return (isnick(nick.c_str()) != 0); -504 } +504 { +505 return (isnick(nick.c_str()) != 0); +506 } .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 521 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 523 of file modules.cpp. .PP References has_channel(). .PP .nf -522 { -523 return has_channel(User,Chan); -524 } +524 { +525 return has_channel(User,Chan); +526 } .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 403 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 405 of file modules.cpp. .PP References is_uline(). .PP .nf -404 { -405 return is_uline(server.c_str()); -406 } +406 { +407 return is_uline(server.c_str()); +408 } .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 363 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 365 of file modules.cpp. .PP .nf -364 { -365 return add_channel(user,cname.c_str(),key.c_str(),true); -366 } +366 { +367 return add_channel(user,cname.c_str(),key.c_str(),true); +368 } .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 413 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 415 of file modules.cpp. .PP .nf -414 { -415 log(level,'%s',s.c_str()); -416 } +416 { +417 log(level,'%s',s.c_str()); +418 } .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 350 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 352 of file modules.cpp. .PP .nf -351 { -352 char literal[MAXBUF],pattern[MAXBUF]; -353 strlcpy(literal,sliteral.c_str(),MAXBUF); -354 strlcpy(pattern,spattern.c_str(),MAXBUF); -355 return match(literal,pattern); -356 } +353 { +354 char literal[MAXBUF],pattern[MAXBUF]; +355 strlcpy(literal,sliteral.c_str(),MAXBUF); +356 strlcpy(pattern,spattern.c_str(),MAXBUF); +357 return match(literal,pattern); +358 } .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 368 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 370 of file modules.cpp. .PP .nf -369 { -370 return del_channel(user,cname.c_str(),reason.c_str(),false); -371 } +371 { +372 return del_channel(user,cname.c_str(),reason.c_str(),false); +373 } .fi .SS "void Server::QuitUser (\fBuserrec\fP * user, std::string reason)\fC [virtual]\fP" .PP @@ -474,65 +474,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 397 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 399 of file modules.cpp. .PP References userrec::nick, and send_network_quit(). .PP .nf -398 { -399 send_network_quit(user->nick,reason.c_str()); -400 kill_link(user,reason.c_str()); -401 } +400 { +401 send_network_quit(user->nick,reason.c_str()); +402 kill_link(user,reason.c_str()); +403 } .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 428 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 430 of file modules.cpp. .PP .nf -429 { -430 Write(Socket,'%s',s.c_str()); -431 } +431 { +432 Write(Socket,'%s',s.c_str()); +433 } .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 457 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 459 of file modules.cpp. .PP .nf -458 { -459 if (IncludeSender) -460 { -461 WriteChannel(Channel,User,'%s',s.c_str()); -462 } -463 else -464 { -465 ChanExceptSender(Channel,User,'%s',s.c_str()); -466 } -467 } +460 { +461 if (IncludeSender) +462 { +463 WriteChannel(Channel,User,'%s',s.c_str()); +464 } +465 else +466 { +467 ChanExceptSender(Channel,User,'%s',s.c_str()); +468 } +469 } .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 474 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 476 of file modules.cpp. .PP .nf -475 { -476 if (IncludeSender) -477 { -478 WriteCommon(User,'%s',text.c_str()); -479 } -480 else -481 { -482 WriteCommonExcept(User,'%s',text.c_str()); -483 } -484 } +477 { +478 if (IncludeSender) +479 { +480 WriteCommon(User,'%s',text.c_str()); +481 } +482 else +483 { +484 WriteCommonExcept(User,'%s',text.c_str()); +485 } +486 } .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 438 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 440 of file modules.cpp. .PP .nf -439 { -440 WriteFrom(Socket,User,'%s',s.c_str()); -441 } +441 { +442 WriteFrom(Socket,User,'%s',s.c_str()); +443 } .fi .SS "void Server::SendMode (char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" .PP @@ -550,32 +550,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 423 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 425 of file modules.cpp. .PP References server_mode(). .PP .nf -424 { -425 server_mode(parameters,pcnt,user); -426 } +426 { +427 server_mode(parameters,pcnt,user); +428 } .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 345 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 347 of file modules.cpp. .PP .nf -346 { -347 WriteOpers('%s',s.c_str()); -348 } +348 { +349 WriteOpers('%s',s.c_str()); +350 } .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 433 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 435 of file modules.cpp. .PP .nf -434 { -435 WriteServ(Socket,'%s',s.c_str()); -436 } +436 { +437 WriteServ(Socket,'%s',s.c_str()); +438 } .fi .SS "void Server::SendTo (\fBuserrec\fP * Source, \fBuserrec\fP * Dest, std::string s)\fC [virtual]\fP" .PP @@ -587,23 +587,23 @@ The format will become: .PP :localserver TEXT .PP -Which is useful for numerics and server notices to single users, etc.Definition at line 443 of file modules.cpp. +Which is useful for numerics and server notices to single users, etc.Definition at line 445 of file modules.cpp. .PP References connection::fd. .PP .nf -444 { -445 if (!Source) -446 { -447 // if source is NULL, then the message originates from the local server -448 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); -449 } -450 else -451 { -452 // otherwise it comes from the user specified -453 WriteTo(Source,Dest,'%s',s.c_str()); -454 } -455 } +446 { +447 if (!Source) +448 { +449 // if source is NULL, then the message originates from the local server +450 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); +451 } +452 else +453 { +454 // otherwise it comes from the user specified +455 WriteTo(Source,Dest,'%s',s.c_str()); +456 } +457 } .fi .SS "void Server::SendToModeMask (std::string modes, int flags, std::string text)\fC [virtual]\fP" .PP @@ -611,21 +611,21 @@ 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 358 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 360 of file modules.cpp. .PP .nf -359 { -360 WriteMode(modes.c_str(),flags,'%s',text.c_str()); -361 } +361 { +362 WriteMode(modes.c_str(),flags,'%s',text.c_str()); +363 } .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 486 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 488 of file modules.cpp. .PP .nf -487 { -488 WriteWallOps(User,false,'%s',text.c_str()); -489 } +489 { +490 WriteWallOps(User,false,'%s',text.c_str()); +491 } .fi diff --git a/docs/man/man3/StrHashComp.3 b/docs/man/man3/StrHashComp.3 index 2614d4533..d4bc096fe 100644 --- a/docs/man/man3/StrHashComp.3 +++ b/docs/man/man3/StrHashComp.3 @@ -1,4 +1,4 @@ -.TH "StrHashComp" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "StrHashComp" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -17,15 +17,15 @@ StrHashComp \- .PP .SS "bool StrHashComp::operator() (const string & s1, const string & s2) const\fC [inline]\fP" .PP -Definition at line 144 of file modules.cpp. +Definition at line 146 of file modules.cpp. .PP .nf -145 { -146 char a[MAXBUF],b[MAXBUF]; -147 strlcpy(a,s1.c_str(),MAXBUF); -148 strlcpy(b,s2.c_str(),MAXBUF); -149 return (strcasecmp(a,b) == 0); -150 } +147 { +148 char a[MAXBUF],b[MAXBUF]; +149 strlcpy(a,s1.c_str(),MAXBUF); +150 strlcpy(b,s2.c_str(),MAXBUF); +151 return (strcasecmp(a,b) == 0); +152 } .fi diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3 index 5f4bdea7c..69a2da861 100644 --- a/docs/man/man3/Version.3 +++ b/docs/man/man3/Version.3 @@ -1,4 +1,4 @@ -.TH "Version" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Version" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -16,7 +16,7 @@ Inherits \fBclassbase\fP. .in +1c .ti -1c -.RI "\fBVersion\fP (int major, int minor, int revision, int build)" +.RI "\fBVersion\fP (int major, int minor, int revision, int build, int flags)" .br .in -1c .SS "Public Attributes" @@ -34,6 +34,9 @@ Inherits \fBclassbase\fP. .ti -1c .RI "const int \fBBuild\fP" .br +.ti -1c +.RI "const int \fBFlags\fP" +.br .in -1c .SH "Detailed Description" .PP @@ -41,30 +44,33 @@ Holds a module's Version information The four members (set by the constructor on A class of type Version is returned by the GetVersion method of the \fBModule\fP class. .PP -Definition at line 102 of file modules.h. +Definition at line 109 of file modules.h. .SH "Constructor & Destructor Documentation" .PP -.SS "Version::Version (int major, int minor, int revision, int build)" +.SS "Version::Version (int major, int minor, int revision, int build, int flags)" .PP -Definition at line 298 of file modules.cpp. +Definition at line 300 of file modules.cpp. .PP .nf -298 : Major(major), Minor(minor), Revision(revision), Build(build) { }; +300 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; .fi .SH "Member Data Documentation" .PP .SS "const int \fBVersion::Build\fP" .PP -Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h. +.SS "const int \fBVersion::Flags\fP" +.PP +Definition at line 112 of file modules.h. .SS "const int \fBVersion::Major\fP" .PP -Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h. .SS "const int \fBVersion::Minor\fP" .PP -Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h. .SS "const int \fBVersion::Revision\fP" .PP -Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h. .SH "Author" .PP diff --git a/docs/man/man3/XLine.3 b/docs/man/man3/XLine.3 index c71f4b90e..409aba33f 100644 --- a/docs/man/man3/XLine.3 +++ b/docs/man/man3/XLine.3 @@ -1,4 +1,4 @@ -.TH "XLine" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "XLine" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ZLine.3 b/docs/man/man3/ZLine.3 index 158e01b73..6d71ea0c5 100644 --- a/docs/man/man3/ZLine.3 +++ b/docs/man/man3/ZLine.3 @@ -1,4 +1,4 @@ -.TH "ZLine" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ZLine" 3 "7 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 72bc81322..f07ed0ecd 100644 --- a/docs/man/man3/base.h.3 +++ b/docs/man/man3/base.h.3 @@ -1,4 +1,4 @@ -.TH "base.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "base.h" 3 "7 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 05c9e5ce5..3595b02fb 100644 --- a/docs/man/man3/channels.cpp.3 +++ b/docs/man/man3/channels.cpp.3 @@ -1,4 +1,4 @@ -.TH "channels.cpp" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "channels.cpp" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -195,6 +195,9 @@ channels.cpp \- .RI "FILE * \fBlog_file\fP" .br .ti -1c +.RI "time_t \fBTIME\fP" +.br +.ti -1c .RI "std::vector< \fBModeParameter\fP > \fBcustom_mode_params\fP" .br .in -1c @@ -227,7 +230,7 @@ Definition at line 101 of file channels.cpp. Referenced by userrec::HasPermission(). .SS "std::vector<\fBModeParameter\fP> \fBcustom_mode_params\fP" .PP -Definition at line 110 of file channels.cpp. +Definition at line 111 of file channels.cpp. .PP Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam(). .SS "int \fBdebugging\fP" @@ -268,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 774 of file modules.cpp. +Definition at line 776 of file modules.cpp. .SS "std::vector \fBmodule_names\fP" .PP Definition at line 92 of file channels.cpp. @@ -311,6 +314,11 @@ Definition at line 68 of file channels.cpp. .SS "time_t \fBstartup_time\fP" .PP Definition at line 86 of file channels.cpp. +.SS "time_t \fBTIME\fP" +.PP +Definition at line 107 of file channels.cpp. +.PP +Referenced by serverrec::serverrec(). .SS "int \fBUDPportCount\fP" .PP Definition at line 96 of file channels.cpp. diff --git a/docs/man/man3/channels.h.3 b/docs/man/man3/channels.h.3 index c4717f2e6..6444b221f 100644 --- a/docs/man/man3/channels.h.3 +++ b/docs/man/man3/channels.h.3 @@ -1,4 +1,4 @@ -.TH "channels.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "channels.h" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3 index 4a75dcff5..d76b09c65 100644 --- a/docs/man/man3/chanrec.3 +++ b/docs/man/man3/chanrec.3 @@ -1,4 +1,4 @@ -.TH "chanrec" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "chanrec" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -114,20 +114,20 @@ Definition at line 94 of file channels.h. .PP .SS "chanrec::chanrec ()" .PP -Creates a channel record and initialises it with default values. Definition at line 112 of file channels.cpp. +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. .PP .nf -113 { -114 strcpy(name,''); -115 strcpy(custom_modes,''); -116 strcpy(topic,''); -117 strcpy(setby,''); -118 strcpy(key,''); -119 created = topicset = limit = 0; -120 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; -121 } +114 { +115 strcpy(name,''); +116 strcpy(custom_modes,''); +117 strcpy(topic,''); +118 strcpy(setby,''); +119 strcpy(key,''); +120 created = topicset = limit = 0; +121 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; +122 } .fi .SS "virtual chanrec::~\fBchanrec\fP ()\fC [inline, virtual]\fP" .PP @@ -140,105 +140,105 @@ Definition at line 185 of file channels.h. .PP .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 185 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 186 of file channels.cpp. .PP References custom_mode_params. .PP .nf -186 { -187 if (custom_mode_params.size()) -188 { -189 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -190 { -191 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -192 { -193 return std::string(i->parameter); -194 } -195 } -196 } -197 return std::string(''); -198 } +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 } .fi .SS "bool chanrec::IsCustomModeSet (char mode)" .PP -Returns true if a custom mode is set on a channel. Definition at line 179 of file channels.cpp. +Returns true if a custom mode is set on a channel. Definition at line 180 of file channels.cpp. .PP References DEBUG. .PP .nf -180 { -181 log(DEBUG,'Checking ISCustomModeSet: %c %s',mode,this->custom_modes); -182 return (strchr(this->custom_modes,mode) != 0); -183 } +181 { +182 log(DEBUG,'Checking ISCustomModeSet: %c %s',mode,this->custom_modes); +183 return (strchr(this->custom_modes,mode) != 0); +184 } .fi .SS "void chanrec::SetCustomMode (char mode, bool mode_on)" .PP -Sets or unsets a custom mode in the channels info. Definition at line 123 of file channels.cpp. +Sets or unsets a custom mode in the channels info. Definition at line 124 of file channels.cpp. .PP References custom_modes, DEBUG, and SetCustomModeParam(). .PP .nf -124 { -125 if (mode_on) { -126 char m[3]; -127 m[0] = mode; -128 m[1] = '\0'; -129 if (!strchr(this->custom_modes,mode)) -130 { -131 strlcat(custom_modes,m,MAXMODES); -132 } -133 log(DEBUG,'Custom mode %c set',mode); -134 } -135 else { -136 -137 std::string a = this->custom_modes; -138 int pos = a.find(mode); -139 a.erase(pos,1); -140 strncpy(this->custom_modes,a.c_str(),MAXMODES); -141 -142 log(DEBUG,'Custom mode %c removed: modelist='%s'',mode,this->custom_modes); -143 this->SetCustomModeParam(mode,'',false); -144 } -145 } +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 } .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 148 of file channels.cpp. +Sets or unsets the parameters for a custom mode in a channels info. Definition at line 149 of file channels.cpp. .PP References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter. .PP Referenced by SetCustomMode(). .PP .nf -149 { -150 -151 log(DEBUG,'SetCustomModeParam called'); -152 ModeParameter M; -153 M.mode = mode; -154 strlcpy(M.channel,this->name,CHANMAX); -155 strlcpy(M.parameter,parameter,MAXBUF); -156 if (mode_on) -157 { -158 log(DEBUG,'Custom mode parameter %c %s added',mode,parameter); -159 custom_mode_params.push_back(M); -160 } -161 else -162 { -163 if (custom_mode_params.size()) -164 { -165 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -166 { -167 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -168 { -169 log(DEBUG,'Custom mode parameter %c %s removed',mode,parameter); -170 custom_mode_params.erase(i); -171 return; -172 } -173 } -174 } -175 log(DEBUG,'*** BUG *** Attempt to remove non-existent mode parameter!'); -176 } -177 } +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 } .fi .SH "Member Data Documentation" .PP diff --git a/docs/man/man3/classbase.3 b/docs/man/man3/classbase.3 index a48ba4b2a..c5be3f65e 100644 --- a/docs/man/man3/classbase.3 +++ b/docs/man/man3/classbase.3 @@ -1,4 +1,4 @@ -.TH "classbase" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "classbase" 3 "7 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 30cc7884c..f791b6319 100644 --- a/docs/man/man3/command_t.3 +++ b/docs/man/man3/command_t.3 @@ -1,4 +1,4 @@ -.TH "command_t" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "command_t" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -39,6 +39,10 @@ Inherits \fBExtensible\fP. .RI "long \fBtotal_bytes\fP" .br .RI "\fIused by /stats m \fP" +.ti -1c +.RI "char \fBsource\fP [MAXBUF]" +.br +.RI "\fIused for resource tracking between modules \fP" .in -1c .SH "Detailed Description" .PP @@ -57,6 +61,9 @@ Handler function as in typedef. Definition at line 34 of file ctables.h. .SS "int \fBcommand_t::min_params\fP" .PP Minimum number of parameters command takes. Definition at line 40 of file ctables.h. +.SS "char \fBcommand_t::source\fP[MAXBUF]" +.PP +used for resource tracking between modules Definition at line 49 of file ctables.h. .SS "long \fBcommand_t::total_bytes\fP" .PP used by /stats m Definition at line 46 of file ctables.h. diff --git a/docs/man/man3/commands.h.3 b/docs/man/man3/commands.h.3 index 1862a08e6..d4b6aeec6 100644 --- a/docs/man/man3/commands.h.3 +++ b/docs/man/man3/commands.h.3 @@ -1,4 +1,4 @@ -.TH "commands.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "commands.h" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -172,6 +172,12 @@ commands.h \- .RI "void \fBhandle_server\fP (char **parameters, int pcnt, \fBuserrec\fP *user)" .br .ti -1c +.RI "void \fBhandle_loadmodule\fP (char **parameters, int pcnt, \fBuserrec\fP *user)" +.br +.ti -1c +.RI "void \fBhandle_unloadmodule\fP (char **parameters, int pcnt, \fBuserrec\fP *user)" +.br +.ti -1c .RI "void \fBhandle_link_packet\fP (char *udp_msg, char *tcp_host, \fBserverrec\fP *serv)" .br .RI "\fISpecial functions for processing server to server traffic. \fP" @@ -309,6 +315,8 @@ Special functions for processing server to server traffic. .PP .SS "void handle_list (char ** parameters, int pcnt, \fBuserrec\fP * user)" .PP +.SS "void handle_loadmodule (char ** parameters, int pcnt, \fBuserrec\fP * user)" +.PP .SS "void handle_lusers (char ** parameters, int pcnt, \fBuserrec\fP * user)" .PP .SS "void handle_M (char token, char * params, \fBserverrec\fP * source, \fBserverrec\fP * reply, char * tcp_host)" @@ -379,6 +387,8 @@ Special functions for processing server to server traffic. .PP .SS "void handle_trace (char ** parameters, int pcnt, \fBuserrec\fP * user)" .PP +.SS "void handle_unloadmodule (char ** parameters, int pcnt, \fBuserrec\fP * user)" +.PP .SS "void handle_user (char ** parameters, int pcnt, \fBuserrec\fP * user)" .PP .SS "void handle_userhost (char ** parameters, int pcnt, \fBuserrec\fP * user)" diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3 index 81ec8837b..bb7c727da 100644 --- a/docs/man/man3/connection.3 +++ b/docs/man/man3/connection.3 @@ -1,4 +1,4 @@ -.TH "connection" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "connection" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.h.3 b/docs/man/man3/connection.h.3 index 9e725ed53..d0d5c75f4 100644 --- a/docs/man/man3/connection.h.3 +++ b/docs/man/man3/connection.h.3 @@ -1,4 +1,4 @@ -.TH "connection.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "connection.h" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ctables.h.3 b/docs/man/man3/ctables.h.3 index 1d86c7691..f87098c19 100644 --- a/docs/man/man3/ctables.h.3 +++ b/docs/man/man3/ctables.h.3 @@ -1,4 +1,4 @@ -.TH "ctables.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ctables.h" 3 "7 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 bb90ae447..9943ef834 100644 --- a/docs/man/man3/dns.h.3 +++ b/docs/man/man3/dns.h.3 @@ -1,4 +1,4 @@ -.TH "dns.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "dns.h" 3 "7 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 a6b848650..aadab66bd 100644 --- a/docs/man/man3/dns_ip4list.3 +++ b/docs/man/man3/dns_ip4list.3 @@ -1,4 +1,4 @@ -.TH "dns_ip4list" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "dns_ip4list" 3 "7 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 6589a00e4..594e67b18 100644 --- a/docs/man/man3/ircd_connector.3 +++ b/docs/man/man3/ircd_connector.3 @@ -1,4 +1,4 @@ -.TH "ircd_connector" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ircd_connector" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/message.h.3 b/docs/man/man3/message.h.3 index e9f815aeb..ea9c93645 100644 --- a/docs/man/man3/message.h.3 +++ b/docs/man/man3/message.h.3 @@ -1,4 +1,4 @@ -.TH "message.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "message.h" 3 "7 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 b2411fc99..2a1f7dd48 100644 --- a/docs/man/man3/mode.h.3 +++ b/docs/man/man3/mode.h.3 @@ -1,4 +1,4 @@ -.TH "mode.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "mode.h" 3 "7 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 695648eb0..6504d9eba 100644 --- a/docs/man/man3/modules.cpp.3 +++ b/docs/man/man3/modules.cpp.3 @@ -1,4 +1,4 @@ -.TH "modules.cpp" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "modules.cpp" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -164,6 +164,9 @@ modules.cpp \- .RI "std::vector< \fBircd_module\fP * > \fBfactory\fP" .br .ti -1c +.RI "time_t \fBTIME\fP" +.br +.ti -1c .RI "int \fBLogLevel\fP" .br .ti -1c @@ -296,160 +299,160 @@ Definition at line 59 of file modules.cpp. .PP .SS "typedef nspace::hash_map, \fBInAddr_HashComp\fP> \fBaddress_cache\fP" .PP -Definition at line 173 of file modules.cpp. +Definition at line 175 of file modules.cpp. .SS "typedef nspace::hash_map, \fBStrHashComp\fP> \fBchan_hash\fP" .PP -Definition at line 172 of file modules.cpp. +Definition at line 174 of file modules.cpp. .SS "typedef std::deque<\fBcommand_t\fP> \fBcommand_table\fP" .PP -Definition at line 174 of file modules.cpp. +Definition at line 176 of file modules.cpp. .SS "typedef std::vector<\fBExtMode\fP> \fBExtModeList\fP" .PP -Definition at line 200 of file modules.cpp. +Definition at line 202 of file modules.cpp. .SS "typedef ExtModeList::iterator \fBExtModeListIter\fP" .PP -Definition at line 201 of file modules.cpp. +Definition at line 203 of file modules.cpp. .PP Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). .SS "typedef nspace::hash_map, \fBStrHashComp\fP> \fBuser_hash\fP" .PP -Definition at line 171 of file modules.cpp. +Definition at line 173 of file modules.cpp. .SH "Function Documentation" .PP .SS "bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off)" .PP -Definition at line 273 of file modules.cpp. +Definition at line 275 of file modules.cpp. .PP References EMode, and ModeDefined(). .PP Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode(). .PP .nf -274 { -275 if (ModeDefined(modechar,type)) { -276 return false; -277 } -278 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -279 return true; -280 } +276 { +277 if (ModeDefined(modechar,type)) { +278 return false; +279 } +280 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +281 return true; +282 } .fi .SS "std::vector<\fBircd_module\fP*> factory (255)" .PP .SS "bool ModeDefined (char modechar, int type)" .PP -Definition at line 207 of file modules.cpp. +Definition at line 209 of file modules.cpp. .PP References DEBUG, EMode, and ExtModeListIter. .PP Referenced by DoAddExtendedMode(). .PP .nf -208 { -209 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); -210 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -211 { -212 if ((i->modechar == modechar) && (i->type == type)) -213 { -214 return true; -215 } -216 } -217 return false; -218 } +210 { +211 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); +212 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +213 { +214 if ((i->modechar == modechar) && (i->type == type)) +215 { +216 return true; +217 } +218 } +219 return false; +220 } .fi .SS "int ModeDefinedOff (char modechar, int type)" .PP -Definition at line 260 of file modules.cpp. +Definition at line 262 of file modules.cpp. .PP References EMode, and ExtModeListIter. .PP .nf -261 { -262 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -263 { -264 if ((i->modechar == modechar) && (i->type == type)) -265 { -266 return i->params_when_off; -267 } -268 } -269 return 0; -270 } +263 { +264 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +265 { +266 if ((i->modechar == modechar) && (i->type == type)) +267 { +268 return i->params_when_off; +269 } +270 } +271 return 0; +272 } .fi .SS "int ModeDefinedOn (char modechar, int type)" .PP -Definition at line 247 of file modules.cpp. +Definition at line 249 of file modules.cpp. .PP References EMode, and ExtModeListIter. .PP .nf -248 { -249 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -250 { -251 if ((i->modechar == modechar) && (i->type == type)) -252 { -253 return i->params_when_on; -254 } -255 } -256 return 0; -257 } +250 { +251 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +252 { +253 if ((i->modechar == modechar) && (i->type == type)) +254 { +255 return i->params_when_on; +256 } +257 } +258 return 0; +259 } .fi .SS "bool ModeDefinedOper (char modechar, int type)" .PP -Definition at line 233 of file modules.cpp. +Definition at line 235 of file modules.cpp. .PP References DEBUG, EMode, and ExtModeListIter. .PP .nf -234 { -235 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); -236 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -237 { -238 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -239 { -240 return true; -241 } -242 } -243 return false; -244 } +236 { +237 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); +238 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +239 { +240 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +241 { +242 return true; +243 } +244 } +245 return false; +246 } .fi .SS "bool ModeIsListMode (char modechar, int type)" .PP -Definition at line 220 of file modules.cpp. +Definition at line 222 of file modules.cpp. .PP References DEBUG, EMode, and ExtModeListIter. .PP .nf -221 { -222 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); -223 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -224 { -225 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -226 { -227 return true; -228 } -229 } -230 return false; -231 } +223 { +224 log(DEBUG,'Size of extmodes vector is %d',EMode.size()); +225 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +226 { +227 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +228 { +229 return true; +230 } +231 } +232 return false; +233 } .fi .SS "void ModeMakeList (char modechar)" .PP -Definition at line 283 of file modules.cpp. +Definition at line 285 of file modules.cpp. .PP References EMode, ExtModeListIter, and MT_CHANNEL. .PP Referenced by Server::AddExtendedListMode(). .PP .nf -284 { -285 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -286 { -287 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -288 { -289 i->list = true; -290 return; -291 } -292 } -293 return; -294 } +286 { +287 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +288 { +289 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +290 { +291 i->list = true; +292 return; +293 } +294 } +295 return; +296 } .fi .SS "std::vector<\fBModule\fP*> modules (255)" .PP @@ -457,51 +460,51 @@ Referenced by Server::AddExtendedListMode(). .PP .SS "char \fBAdminEmail\fP[MAXBUF]" .PP -Definition at line 73 of file modules.cpp. +Definition at line 75 of file modules.cpp. .SS "char \fBAdminName\fP[MAXBUF]" .PP -Definition at line 72 of file modules.cpp. +Definition at line 74 of file modules.cpp. .SS "char \fBAdminNick\fP[MAXBUF]" .PP -Definition at line 74 of file modules.cpp. +Definition at line 76 of file modules.cpp. .SS "std::vector \fBauth_cookies\fP" .PP -Definition at line 101 of file modules.cpp. +Definition at line 103 of file modules.cpp. .SS "int \fBboundPortCount\fP" .PP -Definition at line 95 of file modules.cpp. +Definition at line 97 of file modules.cpp. .SS "\fBchan_hash\fP \fBchanlist\fP" .PP -Definition at line 178 of file modules.cpp. +Definition at line 180 of file modules.cpp. .SS "\fBuser_hash\fP \fBclientlist\fP" .PP -Definition at line 177 of file modules.cpp. +Definition at line 179 of file modules.cpp. .PP Referenced by Server::GetUsers(). .SS "\fBcommand_table\fP \fBcmdlist\fP" .PP -Definition at line 180 of file modules.cpp. +Definition at line 182 of file modules.cpp. .SS "std::stringstream \fBconfig_f\fP" .PP -Definition at line 102 of file modules.cpp. +Definition at line 104 of file modules.cpp. .SS "int \fBdebugging\fP" .PP -Definition at line 83 of file modules.cpp. +Definition at line 85 of file modules.cpp. .SS "int \fBdefaultRoute\fP" .PP -Definition at line 99 of file modules.cpp. +Definition at line 101 of file modules.cpp. .SS "int \fBDieDelay\fP" .PP -Definition at line 86 of file modules.cpp. +Definition at line 88 of file modules.cpp. .SS "char \fBdiepass\fP[MAXBUF]" .PP -Definition at line 75 of file modules.cpp. +Definition at line 77 of file modules.cpp. .SS "char \fBDieValue\fP[MAXBUF]" .PP -Definition at line 81 of file modules.cpp. +Definition at line 83 of file modules.cpp. .SS "\fBExtModeList\fP \fBEMode\fP" .PP -Definition at line 204 of file modules.cpp. +Definition at line 206 of file modules.cpp. .PP Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). .SS "std::vector<\fBircd_module\fP*> factory" @@ -509,88 +512,91 @@ Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedO Definition at line 66 of file modules.cpp. .SS "std::vector \fBfd_reap\fP" .PP -Definition at line 92 of file modules.cpp. +Definition at line 94 of file modules.cpp. .SS "\fBaddress_cache\fP \fBIP\fP" .PP -Definition at line 183 of file modules.cpp. +Definition at line 185 of file modules.cpp. .SS "char \fBlist\fP[MAXBUF]" .PP -Definition at line 79 of file modules.cpp. +Definition at line 81 of file modules.cpp. .SS "FILE* \fBlog_file\fP" .PP -Definition at line 106 of file modules.cpp. +Definition at line 108 of file modules.cpp. .SS "int \fBLogLevel\fP" .PP -Definition at line 68 of file modules.cpp. +Definition at line 70 of file modules.cpp. .SS "int \fBMaxWhoResults\fP" .PP -Definition at line 89 of file modules.cpp. +Definition at line 91 of file modules.cpp. .SS "\fBserverrec\fP* \fBme\fP[32]" .PP -Definition at line 104 of file modules.cpp. +Definition at line 106 of file modules.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 774 of file modules.cpp. +Definition at line 776 of file modules.cpp. .SS "std::vector \fBmodule_names\fP" .PP -Definition at line 93 of file modules.cpp. +Definition at line 95 of file modules.cpp. .SS "std::vector<\fBModule\fP*> modules" .PP Definition at line 65 of file modules.cpp. .SS "\fBfile_cache\fP \fBMOTD\fP" .PP -Definition at line 181 of file modules.cpp. +Definition at line 183 of file modules.cpp. .SS "char \fBmotd\fP[MAXBUF]" .PP -Definition at line 77 of file modules.cpp. +Definition at line 79 of file modules.cpp. .SS "time_t \fBnb_start\fP" .PP -Definition at line 90 of file modules.cpp. +Definition at line 92 of file modules.cpp. .SS "int \fBNetBufferSize\fP" .PP -Definition at line 88 of file modules.cpp. +Definition at line 90 of file modules.cpp. .SS "char \fBNetwork\fP[MAXBUF]" .PP -Definition at line 70 of file modules.cpp. +Definition at line 72 of file modules.cpp. .SS "int \fBportCount\fP" .PP -Definition at line 96 of file modules.cpp. +Definition at line 98 of file modules.cpp. .SS "int \fBports\fP[MAXSOCKS]" .PP -Definition at line 98 of file modules.cpp. +Definition at line 100 of file modules.cpp. .SS "char \fBPrefixQuit\fP[MAXBUF]" .PP -Definition at line 80 of file modules.cpp. +Definition at line 82 of file modules.cpp. .SS "char \fBrestartpass\fP[MAXBUF]" .PP -Definition at line 76 of file modules.cpp. +Definition at line 78 of file modules.cpp. .SS "\fBfile_cache\fP \fBRULES\fP" .PP -Definition at line 182 of file modules.cpp. +Definition at line 184 of file modules.cpp. .SS "char \fBrules\fP[MAXBUF]" .PP -Definition at line 78 of file modules.cpp. +Definition at line 80 of file modules.cpp. .SS "char \fBServerDesc\fP[MAXBUF]" .PP -Definition at line 71 of file modules.cpp. +Definition at line 73 of file modules.cpp. .SS "char \fBServerName\fP[MAXBUF]" .PP -Definition at line 69 of file modules.cpp. +Definition at line 71 of file modules.cpp. .SS "time_t \fBstartup_time\fP" .PP -Definition at line 87 of file modules.cpp. +Definition at line 89 of file modules.cpp. +.SS "time_t \fBTIME\fP" +.PP +Definition at line 68 of file modules.cpp. .SS "int \fBUDPportCount\fP" .PP -Definition at line 97 of file modules.cpp. +Definition at line 99 of file modules.cpp. .SS "\fBuser_hash\fP \fBwhowas\fP" .PP -Definition at line 179 of file modules.cpp. +Definition at line 181 of file modules.cpp. .SS "int \fBWHOWAS_MAX\fP" .PP -Definition at line 85 of file modules.cpp. +Definition at line 87 of file modules.cpp. .SS "int \fBWHOWAS_STALE\fP" .PP -Definition at line 84 of file modules.cpp. +Definition at line 86 of file modules.cpp. .SH "Author" .PP Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/modules.h.3 b/docs/man/man3/modules.h.3 index 710ae58f2..6a3ccce31 100644 --- a/docs/man/man3/modules.h.3 +++ b/docs/man/man3/modules.h.3 @@ -1,4 +1,4 @@ -.TH "modules.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "modules.h" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -115,6 +115,18 @@ modules.h \- .RI "#define \fBAC_GENERAL_MODE\fP 8" .br .ti -1c +.RI "#define \fBVF_STATIC\fP 1" +.br +.ti -1c +.RI "#define \fBVF_VENDOR\fP 2" +.br +.ti -1c +.RI "#define \fBVF_SERVICEPROVIDER\fP 4" +.br +.ti -1c +.RI "#define \fBVF_COMMON\fP 8" +.br +.ti -1c .RI "#define \fBFOREACH_MOD\fP for (int i = 0; i <= \fBMODCOUNT\fP; i++) modules[i]->" .br .ti -1c @@ -155,7 +167,7 @@ modules.h \- .in +1c .ti -1c -.RI "void \fBcreatecommand\fP (char *cmd, handlerfunc f, char flags, int minparams)" +.RI "void \fBcreatecommand\fP (char *cmd, handlerfunc f, char flags, int minparams, char *source)" .br .ti -1c .RI "void \fBserver_mode\fP (char **parameters, int pcnt, \fBuserrec\fP *user)" @@ -203,22 +215,22 @@ Referenced by Module::OnAccessCheck(). Definition at line 38 of file modules.h. .SS "#define CONF_FILE_NOT_FOUND 0x000200" .PP -Definition at line 667 of file modules.h. +Definition at line 677 of file modules.h. .PP Referenced by ConfigReader::ConfigReader(). .SS "#define CONF_NOT_A_NUMBER 0x000010" .PP -Definition at line 664 of file modules.h. +Definition at line 674 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_NOT_UNSIGNED 0x000080" .PP -Definition at line 665 of file modules.h. +Definition at line 675 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_VALUE_NOT_FOUND 0x000100" .PP -Definition at line 666 of file modules.h. +Definition at line 676 of file modules.h. .PP Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). .SS "#define DEBUG 10" @@ -231,7 +243,7 @@ Referenced by Server::AddExtendedMode(), userrec::HasPermission(), chanrec::IsCu Definition at line 25 of file modules.h. .SS "#define FOREACH_MOD for (int i = 0; i <= \fBMODCOUNT\fP; i++) modules[i]->" .PP -Definition at line 72 of file modules.h. +Definition at line 79 of file modules.h. .SS "#define FOREACH_RESULT(x)" .PP \fBValue:\fP.nf @@ -246,7 +258,7 @@ Definition at line 72 of file modules.h. } .fi .PP -Definition at line 80 of file modules.h. +Definition at line 87 of file modules.h. .SS "#define MT_CHANNEL 1" .PP Definition at line 31 of file modules.h. @@ -271,29 +283,43 @@ Definition at line 26 of file modules.h. .SS "#define VERBOSE 20" .PP Definition at line 24 of file modules.h. +.SS "#define VF_COMMON 8" +.PP +Definition at line 56 of file modules.h. +.SS "#define VF_SERVICEPROVIDER 4" +.PP +Definition at line 55 of file modules.h. +.SS "#define VF_STATIC 1" +.PP +Definition at line 53 of file modules.h. +.SS "#define VF_VENDOR 2" +.PP +Definition at line 54 of file modules.h. +.PP +Referenced by Module::GetVersion(). .SH "Typedef Documentation" .PP .SS "typedef std::deque<\fBuserrec\fP*> \fBchanuserlist\fP" .PP -Holds a list of users in a channel. Definition at line 65 of file modules.h. +Holds a list of users in a channel. Definition at line 72 of file modules.h. .PP Referenced by Server::GetUsers(). .SS "typedef std::deque \fBfile_cache\fP" .PP -Low level definition of a \fBFileReader\fP classes file cache area. Definition at line 60 of file modules.h. +Low level definition of a \fBFileReader\fP classes file cache area. Definition at line 67 of file modules.h. .PP Referenced by FileReader::FileReader(), and FileReader::LoadFile(). .SS "typedef DLLFactory<\fBModuleFactory\fP> \fBircd_module\fP" .PP -Definition at line 832 of file modules.h. +Definition at line 842 of file modules.h. .SS "typedef \fBfile_cache\fP \fBstring_list\fP" .PP -Definition at line 61 of file modules.h. +Definition at line 68 of file modules.h. .PP Referenced by Module::OnChannelSync(), and Module::OnUserSync(). .SH "Function Documentation" .PP -.SS "void createcommand (char * cmd, handlerfunc f, char flags, int minparams)" +.SS "void createcommand (char * cmd, handlerfunc f, char flags, int minparams, char * source)" .PP Referenced by Server::AddCommand(). .SS "void server_mode (char ** parameters, int pcnt, \fBuserrec\fP * user)" diff --git a/docs/man/man3/nspace.3 b/docs/man/man3/nspace.3 index 8c2952b8c..38a8c655d 100644 --- a/docs/man/man3/nspace.3 +++ b/docs/man/man3/nspace.3 @@ -1,4 +1,4 @@ -.TH "nspace" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace" 3 "7 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 b7c3416ae..f01f2ea77 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 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace::nspace::hash< in_addr >" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -20,14 +20,14 @@ nspace::nspace::hash< in_addr > \- .PP .SS "size_t nspace::hash< in_addr >::operator() (const struct in_addr & a) const\fC [inline]\fP" .PP -Definition at line 117 of file modules.cpp. +Definition at line 119 of file modules.cpp. .PP .nf -118 { -119 size_t q; -120 memcpy(&q,&a,sizeof(size_t)); -121 return q; -122 } +120 { +121 size_t q; +122 memcpy(&q,&a,sizeof(size_t)); +123 return q; +124 } .fi diff --git a/docs/man/man3/nspace_nspace_hash_ string _.3 b/docs/man/man3/nspace_nspace_hash_ string _.3 index 8b1d756c9..024bdfe5c 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 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace::nspace::hash< string >" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -20,16 +20,16 @@ nspace::nspace::hash< string > \- .PP .SS "size_t nspace::hash< string >::operator() (const string & s) const\fC [inline]\fP" .PP -Definition at line 130 of file modules.cpp. +Definition at line 132 of file modules.cpp. .PP .nf -131 { -132 char a[MAXBUF]; -133 static struct hash strhash; -134 strlcpy(a,s.c_str(),MAXBUF); -135 strlower(a); -136 return strhash(a); -137 } +133 { +134 char a[MAXBUF]; +135 static struct hash strhash; +136 strlcpy(a,s.c_str(),MAXBUF); +137 strlower(a); +138 return strhash(a); +139 } .fi diff --git a/docs/man/man3/packet.3 b/docs/man/man3/packet.3 index 9341780fb..d351617e7 100644 --- a/docs/man/man3/packet.3 +++ b/docs/man/man3/packet.3 @@ -1,4 +1,4 @@ -.TH "packet" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "packet" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/serverrec.3 b/docs/man/man3/serverrec.3 index 1453b9af0..5db6846d2 100644 --- a/docs/man/man3/serverrec.3 +++ b/docs/man/man3/serverrec.3 @@ -1,4 +1,4 @@ -.TH "serverrec" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "serverrec" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -82,51 +82,51 @@ A class that defines the local server or a remote server. Definition at line 30 .PP .SS "serverrec::serverrec ()" .PP -Constructor. Definition at line 24 of file servers.cpp. +Constructor. Definition at line 26 of file servers.cpp. .PP -References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, pingtime, connection::signon, sync_soon, 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. .PP .nf -25 { -26 strlcpy(name,'',256); -27 pingtime = 0; -28 lastping = time(NULL); -29 usercount_i = usercount = opercount = version = 0; -30 hops_away = 1; -31 signon = time(NULL); -32 jupiter = false; -33 fd = 0; -34 sync_soon = false; -35 strlcpy(nickserv,'',NICKMAX); -36 } +27 { +28 strlcpy(name,'',256); +29 pingtime = 0; +30 lastping = TIME; +31 usercount_i = usercount = opercount = version = 0; +32 hops_away = 1; +33 signon = TIME; +34 jupiter = false; +35 fd = 0; +36 sync_soon = false; +37 strlcpy(nickserv,'',NICKMAX); +38 } .fi .SS "serverrec::serverrec (char * n, long ver, bool jupe)" .PP -Constructor which initialises some of the main variables. Definition at line 43 of file servers.cpp. +Constructor which initialises some of the main variables. Definition at line 45 of file servers.cpp. .PP -References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, connection::signon, sync_soon, 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. .PP .nf -44 { -45 strlcpy(name,n,256); -46 lastping = time(NULL); -47 usercount_i = usercount = opercount = 0; -48 version = ver; -49 hops_away = 1; -50 signon = time(NULL); -51 jupiter = jupe; -52 fd = 0; -53 sync_soon = false; -54 strlcpy(nickserv,'',NICKMAX); -55 } +46 { +47 strlcpy(name,n,256); +48 lastping = TIME; +49 usercount_i = usercount = opercount = 0; +50 version = ver; +51 hops_away = 1; +52 signon = TIME; +53 jupiter = jupe; +54 fd = 0; +55 sync_soon = false; +56 strlcpy(nickserv,'',NICKMAX); +57 } .fi .SS "serverrec::~\fBserverrec\fP ()" .PP -Destructor. Definition at line 39 of file servers.cpp. +Destructor. Definition at line 41 of file servers.cpp. .PP .nf -40 { -41 } +42 { +43 } .fi .SH "Member Data Documentation" .PP diff --git a/docs/man/man3/servers.cpp.3 b/docs/man/man3/servers.cpp.3 index bb2c03249..f975694d8 100644 --- a/docs/man/man3/servers.cpp.3 +++ b/docs/man/man3/servers.cpp.3 @@ -1,4 +1,4 @@ -.TH "servers.cpp" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "servers.cpp" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -19,6 +19,18 @@ servers.cpp \- \fC#include 'inspstring.h'\fP .br +.SS "Variables" + +.in +1c +.ti -1c +.RI "time_t \fBTIME\fP" +.br +.in -1c +.SH "Variable Documentation" +.PP +.SS "time_t \fBTIME\fP" +.PP +Definition at line 24 of file servers.cpp. .SH "Author" .PP Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/servers.h.3 b/docs/man/man3/servers.h.3 index bcc9682d3..73b812f67 100644 --- a/docs/man/man3/servers.h.3 +++ b/docs/man/man3/servers.h.3 @@ -1,4 +1,4 @@ -.TH "servers.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "servers.h" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/std.3 b/docs/man/man3/std.3 index e6219e93d..015cc75e9 100644 --- a/docs/man/man3/std.3 +++ b/docs/man/man3/std.3 @@ -1,4 +1,4 @@ -.TH "std" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "std" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3 index 821b53864..97567e926 100644 --- a/docs/man/man3/ucrec.3 +++ b/docs/man/man3/ucrec.3 @@ -1,4 +1,4 @@ -.TH "ucrec" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ucrec" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3 index c0b101d3b..f223c145d 100644 --- a/docs/man/man3/userrec.3 +++ b/docs/man/man3/userrec.3 @@ -1,4 +1,4 @@ -.TH "userrec" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "userrec" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -120,37 +120,37 @@ Definition at line 89 of file users.h. .PP .SS "userrec::userrec ()" .PP -Definition at line 26 of file users.cpp. +Definition at line 28 of file users.cpp. .PP References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, connection::inbuf, invites, connection::ip, connection::lastping, modes, nick, connection::nping, oper, connection::port, connection::registered, result, server, connection::signon, timeout, and ucrec::uc_modes. .PP .nf -27 { -28 // the PROPER way to do it, AVOID bzero at *ALL* costs -29 strcpy(nick,''); -30 strcpy(ip,'127.0.0.1'); -31 timeout = 0; -32 strcpy(ident,''); -33 strcpy(host,''); -34 strcpy(dhost,''); -35 strcpy(fullname,''); -36 strcpy(modes,''); -37 strcpy(inbuf,''); -38 strcpy(server,''); -39 strcpy(awaymsg,''); -40 strcpy(oper,''); -41 fd = lastping = signon = idle_lastmsg = nping = registered = 0; -42 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; -43 haspassed = false; -44 dns_done = false; -45 strcpy(result,''); -46 for (int i = 0; i < MAXCHANS; i++) -47 { -48 this->chans[i].channel = NULL; -49 this->chans[i].uc_modes = 0; -50 } -51 invites.clear(); -52 } +29 { +30 // the PROPER way to do it, AVOID bzero at *ALL* costs +31 strcpy(nick,''); +32 strcpy(ip,'127.0.0.1'); +33 timeout = 0; +34 strcpy(ident,''); +35 strcpy(host,''); +36 strcpy(dhost,''); +37 strcpy(fullname,''); +38 strcpy(modes,''); +39 strcpy(inbuf,''); +40 strcpy(server,''); +41 strcpy(awaymsg,''); +42 strcpy(oper,''); +43 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +44 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +45 haspassed = false; +46 dns_done = false; +47 strcpy(result,''); +48 for (int i = 0; i < MAXCHANS; i++) +49 { +50 this->chans[i].channel = NULL; +51 this->chans[i].uc_modes = 0; +52 } +53 invites.clear(); +54 } .fi .SS "virtual userrec::~\fBuserrec\fP ()\fC [inline, virtual]\fP" .PP @@ -163,146 +163,146 @@ Definition at line 164 of file users.h. .PP .SS "char * userrec::GetFullHost ()\fC [virtual]\fP" .PP -Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. Definition at line 56 of file users.cpp. +Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. Definition at line 58 of file users.cpp. .PP References dhost, ident, nick, and result. .PP .nf -57 { -58 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,dhost); -59 return result; -60 } +59 { +60 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,dhost); +61 return result; +62 } .fi .SS "char * userrec::GetFullRealHost ()\fC [virtual]\fP" .PP -Returns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.Definition at line 63 of file users.cpp. +Returns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.Definition at line 65 of file users.cpp. .PP References connection::host, ident, nick, and result. .PP .nf -64 { -65 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,host); -66 return result; -67 } +66 { +67 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,host); +68 return result; +69 } .fi .SS "bool userrec::HasPermission (char * command)" .PP -Returns true or false for if a user can execute a privilaged oper command. This is done by looking up their oper type from \fBuserrec::oper\fP, then referencing this to their oper classes and checking the commands they can execute.Definition at line 112 of file users.cpp. +Returns true or false for if a user can execute a privilaged oper command. This is done by looking up their oper type from \fBuserrec::oper\fP, then referencing this to their oper classes and checking the commands they can execute.Definition at line 114 of file users.cpp. .PP References config_f, and DEBUG. .PP .nf -113 { -114 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -115 char* myclass; -116 char* mycmd; -117 char* savept; -118 char* savept2; -119 -120 // are they even an oper at all? -121 if (strchr(this->modes,'o')) -122 { -123 log(DEBUG,'*** HasPermission: %s is an oper',this->nick); -124 for (int j =0; j < ConfValueEnum('type',&config_f); j++) -125 { -126 ConfValue('type','name',j,TypeName,&config_f); -127 if (!strcmp(TypeName,this->oper)) -128 { -129 log(DEBUG,'*** HasPermission: %s is an oper of type '%s'',this->nick,this->oper); -130 ConfValue('type','classes',j,Classes,&config_f); -131 char* myclass = strtok_r(Classes,' ',&savept); -132 while (myclass) -133 { -134 log(DEBUG,'*** HasPermission: checking classtype '%s'',myclass); -135 for (int k =0; k < ConfValueEnum('class',&config_f); k++) -136 { -137 ConfValue('class','name',k,ClassName,&config_f); -138 if (!strcmp(ClassName,myclass)) -139 { -140 ConfValue('class','commands',k,CommandList,&config_f); -141 log(DEBUG,'*** HasPermission: found class named %s with commands: '%s'',ClassName,CommandList); -142 -143 -144 mycmd = strtok_r(CommandList,' ',&savept2); -145 while (mycmd) -146 { -147 if (!strcasecmp(mycmd,command)) -148 { -149 log(DEBUG,'*** Command %s found, returning true',command); -150 return true; -151 } -152 mycmd = strtok_r(NULL,' ',&savept2); -153 } -154 } -155 } -156 myclass = strtok_r(NULL,' ',&savept); -157 } -158 } -159 } -160 } -161 return false; -162 } +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); +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 } .fi .SS "void userrec::InviteTo (char * channel)\fC [virtual]\fP" .PP -Adds a channel to a users invite list (invites them to a channel). Definition at line 83 of file users.cpp. +Adds a channel to a users invite list (invites them to a channel). Definition at line 85 of file users.cpp. .PP References Invited::channel, and invites. .PP .nf -84 { -85 Invited i; -86 strlcpy(i.channel,channel,CHANMAX); -87 invites.push_back(i); -88 } +86 { +87 Invited i; +88 strlcpy(i.channel,channel,CHANMAX); +89 invites.push_back(i); +90 } .fi .SS "bool userrec::IsInvited (char * channel)\fC [virtual]\fP" .PP -Returns true if a user is invited to a channel. Definition at line 69 of file users.cpp. +Returns true if a user is invited to a channel. Definition at line 71 of file users.cpp. .PP References invites. .PP .nf -70 { -71 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -72 { -73 if (i->channel) { -74 if (!strcasecmp(i->channel,channel)) -75 { -76 return true; -77 } -78 } -79 } -80 return false; -81 } +72 { +73 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +74 { +75 if (i->channel) { +76 if (!strcasecmp(i->channel,channel)) +77 { +78 return true; +79 } +80 } +81 } +82 return false; +83 } .fi .SS "void userrec::RemoveInvite (char * channel)\fC [virtual]\fP" .PP -Removes a channel from a users invite list. This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.Definition at line 90 of file users.cpp. +Removes a channel from a users invite list. This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.Definition at line 92 of file users.cpp. .PP References DEBUG, and invites. .PP .nf -91 { -92 log(DEBUG,'Removing invites'); -93 if (channel) -94 { -95 if (invites.size()) -96 { -97 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -98 { -99 if (i->channel) -100 { -101 if (!strcasecmp(i->channel,channel)) -102 { -103 invites.erase(i); -104 return; -105 } -106 } -107 } -108 } -109 } -110 } +93 { +94 log(DEBUG,'Removing invites'); +95 if (channel) +96 { +97 if (invites.size()) +98 { +99 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +100 { +101 if (i->channel) +102 { +103 if (!strcasecmp(i->channel,channel)) +104 { +105 invites.erase(i); +106 return; +107 } +108 } +109 } +110 } +111 } +112 } .fi .SH "Member Data Documentation" .PP diff --git a/docs/man/man3/users.cpp.3 b/docs/man/man3/users.cpp.3 index a59c5fc6b..f33f24c81 100644 --- a/docs/man/man3/users.cpp.3 +++ b/docs/man/man3/users.cpp.3 @@ -1,4 +1,4 @@ -.TH "users.cpp" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "users.cpp" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -25,12 +25,18 @@ users.cpp \- .ti -1c .RI "std::stringstream \fBconfig_f\fP" .br +.ti -1c +.RI "time_t \fBTIME\fP" +.br .in -1c .SH "Variable Documentation" .PP .SS "std::stringstream \fBconfig_f\fP" .PP Definition at line 24 of file users.cpp. +.SS "time_t \fBTIME\fP" +.PP +Definition at line 26 of file users.cpp. .SH "Author" .PP Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3 index ab692bb35..c9c548862 100644 --- a/docs/man/man3/users.h.3 +++ b/docs/man/man3/users.h.3 @@ -1,4 +1,4 @@ -.TH "users.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "users.h" 3 "7 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 b0cf4684b..738d84d05 100644 --- a/docs/man/man3/xline.h.3 +++ b/docs/man/man3/xline.h.3 @@ -1,4 +1,4 @@ -.TH "xline.h" 3 "4 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "xline.h" 3 "7 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 4cd59f25a..1438f3cb2 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -44,7 +44,7 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 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 48cb44eb5..af71f42fa 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 Mon Apr 4 18:12:47 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:20 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 b59c1eabb..b063e805d 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 Mon Apr 4 18:12:48 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:21 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 cf89697dc..d95edbda6 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -111,99 +111,100 @@ 00104 00105 extern FILE *log_file; 00106 -00107 -00108 using namespace std; -00109 -00110 std::vector<ModeParameter> custom_mode_params; -00111 -00112 chanrec::chanrec() -00113 { -00114 strcpy(name,""); -00115 strcpy(custom_modes,""); -00116 strcpy(topic,""); -00117 strcpy(setby,""); -00118 strcpy(key,""); -00119 created = topicset = limit = 0; -00120 topiclock = noexternal = inviteonly = moderated = secret = c_private = false; -00121 } -00122 -00123 void chanrec::SetCustomMode(char mode,bool mode_on) -00124 { -00125 if (mode_on) { -00126 char m[3]; -00127 m[0] = mode; -00128 m[1] = '\0'; -00129 if (!strchr(this->custom_modes,mode)) -00130 { -00131 strlcat(custom_modes,m,MAXMODES); -00132 } -00133 log(DEBUG,"Custom mode %c set",mode); -00134 } -00135 else { -00136 -00137 std::string a = this->custom_modes; -00138 int pos = a.find(mode); -00139 a.erase(pos,1); -00140 strncpy(this->custom_modes,a.c_str(),MAXMODES); -00141 -00142 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes); -00143 this->SetCustomModeParam(mode,"",false); -00144 } -00145 } -00146 +00107 extern time_t TIME; +00108 +00109 using namespace std; +00110 +00111 std::vector<ModeParameter> custom_mode_params; +00112 +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 -00148 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) -00149 { -00150 -00151 log(DEBUG,"SetCustomModeParam called"); -00152 ModeParameter M; -00153 M.mode = mode; -00154 strlcpy(M.channel,this->name,CHANMAX); -00155 strlcpy(M.parameter,parameter,MAXBUF); -00156 if (mode_on) -00157 { -00158 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter); -00159 custom_mode_params.push_back(M); -00160 } -00161 else -00162 { -00163 if (custom_mode_params.size()) -00164 { -00165 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00166 { -00167 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00168 { -00169 log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter); -00170 custom_mode_params.erase(i); -00171 return; -00172 } -00173 } -00174 } -00175 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!"); -00176 } -00177 } -00178 -00179 bool chanrec::IsCustomModeSet(char mode) -00180 { -00181 log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes); -00182 return (strchr(this->custom_modes,mode) != 0); -00183 } -00184 -00185 std::string chanrec::GetModeParameter(char mode) -00186 { -00187 if (custom_mode_params.size()) -00188 { -00189 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00190 { -00191 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00192 { -00193 return std::string(i->parameter); -00194 } -00195 } -00196 } -00197 return std::string(""); -00198 } -
Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +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 Thu Apr 7 20:14:20 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 f83023011..2fac5b2e9 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -51,7 +51,7 @@ std::vector< Module * > modules -std::vector< ircd_module * > factory +std::vector< ircd_module * > factory int LogLevel @@ -119,7 +119,9 @@ FILE * log_file -std::vector< ModeParametercustom_mode_params +time_t TIME + +std::vector< ModeParametercustom_mode_params

Define Documentation

@@ -154,7 +156,7 @@ Definition at line 58 -
char AdminEmail[MAXBUF] + char AdminEmail[MAXBUF]
@@ -178,7 +180,7 @@ Definition at line 72 -
char AdminName[MAXBUF] + char AdminName[MAXBUF]
@@ -202,7 +204,7 @@ Definition at line 71 -
char AdminNick[MAXBUF] + char AdminNick[MAXBUF]
@@ -226,7 +228,7 @@ Definition at line 73 -
std::vector<long> auth_cookies + std::vector<long> auth_cookies
@@ -250,7 +252,7 @@ Definition at line 100 -
int boundPortCount + int boundPortCount
@@ -291,16 +293,16 @@ Definition at line 94

Definition at line 101 of file channels.cpp.

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

+

@@ -315,9 +317,9 @@ Referenced by userrec::HasPer

-Definition at line 110 of file channels.cpp. +Definition at line 111 of file channels.cpp.

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

-
std::vector<ModeParameter> custom_mode_params + std::vector<ModeParameter> custom_mode_params

@@ -326,7 +328,7 @@ Referenced by chanrec::Get -
int debugging + int debugging
@@ -350,7 +352,7 @@ Definition at line
82 -
int defaultRoute + int defaultRoute
@@ -374,7 +376,7 @@ Definition at line 98 -
int DieDelay + int DieDelay
@@ -398,7 +400,7 @@ Definition at line 85 -
char diepass[MAXBUF] + char diepass[MAXBUF]
@@ -422,7 +424,7 @@ Definition at line 74 -
char DieValue[MAXBUF] + char DieValue[MAXBUF]
@@ -446,7 +448,7 @@ Definition at line 80 -
std::vector<ircd_module*> factory + std::vector<ircd_module*> factory
@@ -470,7 +472,7 @@ Definition at line 65 -
std::vector<int> fd_reap + std::vector<int> fd_reap
@@ -494,7 +496,7 @@ Definition at line 91 -
char list[MAXBUF] + char list[MAXBUF]
@@ -518,7 +520,7 @@ Definition at line 78 -
FILE* log_file + FILE* log_file
@@ -542,7 +544,7 @@ Definition at line 105 -
int LogLevel + int LogLevel
@@ -566,7 +568,7 @@ Definition at line 67 -
int MaxWhoResults + int MaxWhoResults
@@ -590,7 +592,7 @@ Definition at line 88 -
serverrec* me[32] + serverrec* me[32]
@@ -629,7 +631,7 @@ Definition at line 103

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

@@ -638,7 +640,7 @@ Definition at line 774 -
std::vector<std::string> module_names + std::vector<std::string> module_names
@@ -686,7 +688,7 @@ Definition at line 64 -
char motd[MAXBUF] + char motd[MAXBUF]
@@ -710,7 +712,7 @@ Definition at line 76 -
time_t nb_start + time_t nb_start
@@ -734,7 +736,7 @@ Definition at line 89 -
int NetBufferSize + int NetBufferSize
@@ -758,7 +760,7 @@ Definition at line 87 -
char Network[MAXBUF] + char Network[MAXBUF]
@@ -782,7 +784,7 @@ Definition at line 69 -
int portCount + int portCount
@@ -806,7 +808,7 @@ Definition at line 95 -
int ports[MAXSOCKS] + int ports[MAXSOCKS]
@@ -830,7 +832,7 @@ Definition at line 97 -
char PrefixQuit[MAXBUF] + char PrefixQuit[MAXBUF]
@@ -854,7 +856,7 @@ Definition at line 79 -
char restartpass[MAXBUF] + char restartpass[MAXBUF]
@@ -878,7 +880,7 @@ Definition at line 75 -
char rules[MAXBUF] + char rules[MAXBUF]
@@ -902,7 +904,7 @@ Definition at line 77 -
char ServerDesc[MAXBUF] + char ServerDesc[MAXBUF]
@@ -926,7 +928,7 @@ Definition at line 70 -
char ServerName[MAXBUF] + char ServerName[MAXBUF]
@@ -950,7 +952,7 @@ Definition at line 68 -
time_t startup_time + time_t startup_time
@@ -968,13 +970,39 @@ Definition at line 68 Definition at line 86 of file channels.cpp. +

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

+ +

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

+Referenced by serverrec::serverrec().

@@ -998,7 +1026,7 @@ Definition at line 96 @@ -1022,7 +1050,7 @@ Definition at line 84 @@ -1040,7 +1068,7 @@ Definition at line 84 Definition at line 83 of file channels.cpp.
-
int UDPportCount + int UDPportCount
-
int WHOWAS_MAX + int WHOWAS_MAX
-
int WHOWAS_STALE + int WHOWAS_STALE
-


Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:21 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 4f24f617b..66c796da2 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -139,7 +139,7 @@ 00218 00219 #endif 00220 -
Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:20 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 42434f60e..b168d6565 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -258,7 +258,7 @@ Holds a complete invite list. Definition at line 88 of file channels.h. -
Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:21 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 82d9ab2bb..66fbe5327 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 Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 6fa6ccd7d..a86dcdd4d 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -32,7 +32,7 @@ It is constructed by class Server, and

-Definition at line 114 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 121 of file modules.h.

Constructor & Destructor Documentation

@@ -76,9 +76,9 @@ Definition at line 114 of

-Definition at line 302 of file modules.cpp. +Definition at line 304 of file modules.cpp.

-

00302 : Name(name), Email(email), Nick(nick) { };
+
00304 : Name(name), Email(email), Nick(nick) { };
 
@@ -104,7 +104,7 @@ Definition at line 302

-Definition at line 117 of file modules.h. +Definition at line 124 of file modules.h.

@@ -128,7 +128,7 @@ Definition at line 117 of

-Definition at line 117 of file modules.h. +Definition at line 124 of file modules.h.

@@ -152,12 +152,12 @@ Definition at line 117 of

-Definition at line 117 of file modules.h. +Definition at line 124 of file modules.h.


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 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 6e5a2d10b..855c7f10b 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 Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 59ad4e0d0..772b1277b 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 Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 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 fd9766ec8..525b690ae 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index f5785a066..7ece1927f 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 675 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 685 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 577 of file modules.cpp. +Definition at line 579 of file modules.cpp.

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

-

00578 {
-00579         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00580         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00581         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
-00582         if (!this->readerror)
-00583                 this->error = CONF_FILE_NOT_FOUND;
-00584 }
+
00580 {
+00581         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00582         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00583         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
+00584         if (!this->readerror)
+00585                 this->error = CONF_FILE_NOT_FOUND;
+00586 }
 
@@ -141,17 +141,17 @@ Overloaded constructor.

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

-Definition at line 596 of file modules.cpp. +Definition at line 598 of file modules.cpp.

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

-

00597 {
-00598         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00599         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00600         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
-00601         if (!this->readerror)
-00602                 this->error = CONF_FILE_NOT_FOUND;
-00603 };
+
00599 {
+00600         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00601         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00602         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
+00603         if (!this->readerror)
+00604                 this->error = CONF_FILE_NOT_FOUND;
+00605 };
 
@@ -184,16 +184,16 @@ Default destructor.

This method destroys the ConfigReader class.

-Definition at line 587 of file modules.cpp. +Definition at line 589 of file modules.cpp.

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

-

00588 {
-00589         if (this->cache)
-00590                 delete this->cache;
-00591         if (this->errorlog)
-00592                 delete this->errorlog;
-00593 }
+
00590 {
+00591         if (this->cache)
+00592                 delete this->cache;
+00593         if (this->errorlog)
+00594                 delete this->errorlog;
+00595 }
 
@@ -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 674 of file modules.cpp. -

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

-

00675 {
-00676         if (bail)
-00677         {
-00678                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
-00679                 exit(0);
-00680         }
-00681         else
-00682         {
-00683                 char dataline[1024];
-00684                 if (user)
-00685                 {
-00686                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
-00687                         while (!errorlog->eof())
-00688                         {
-00689                                 errorlog->getline(dataline,1024);
-00690                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
-00691                         }
-00692                 }
-00693                 else
-00694                 {
-00695                         WriteOpers("There were errors in the configuration file:",user->nick);
-00696                         while (!errorlog->eof())
-00697                         {
-00698                                 errorlog->getline(dataline,1024);
-00699                                 WriteOpers(dataline);
-00700                         }
-00701                 }
-00702                 return;
-00703         }
-00704 }
+Definition at line 676 of file modules.cpp.
+

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

+

00677 {
+00678         if (bail)
+00679         {
+00680                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
+00681                 exit(0);
+00682         }
+00683         else
+00684         {
+00685                 char dataline[1024];
+00686                 if (user)
+00687                 {
+00688                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
+00689                         while (!errorlog->eof())
+00690                         {
+00691                                 errorlog->getline(dataline,1024);
+00692                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
+00693                         }
+00694                 }
+00695                 else
+00696                 {
+00697                         WriteOpers("There were errors in the configuration file:",user->nick);
+00698                         while (!errorlog->eof())
+00699                         {
+00700                                 errorlog->getline(dataline,1024);
+00701                                 WriteOpers(dataline);
+00702                         }
+00703                 }
+00704                 return;
+00705         }
+00706 }
 
@@ -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 707 of file modules.cpp. +Definition at line 709 of file modules.cpp.

-References cache. +References cache.

-

00708 {
-00709         return EnumConf(cache,tag.c_str());
-00710 }
+
00710 {
+00711         return EnumConf(cache,tag.c_str());
+00712 }
 
@@ -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 712 of file modules.cpp. +Definition at line 714 of file modules.cpp.

-References cache. +References cache.

-

00713 {
-00714         return EnumValues(cache, tag.c_str(), index);
-00715 }
+
00715 {
+00716         return EnumValues(cache, tag.c_str(), index);
+00717 }
 
@@ -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 667 of file modules.cpp. +Definition at line 669 of file modules.cpp.

-References error. +References error.

-

00668 {
-00669         long olderr = this->error;
-00670         this->error = 0;
-00671         return olderr;
-00672 }
+
00670 {
+00671         long olderr = this->error;
+00672         this->error = 0;
+00673         return olderr;
+00674 }
 
@@ -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 621 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

00622 {
-00623         char val[MAXBUF];
-00624         char t[MAXBUF];
-00625         char n[MAXBUF];
-00626         strlcpy(t,tag.c_str(),MAXBUF);
-00627         strlcpy(n,name.c_str(),MAXBUF);
-00628         int res = ReadConf(cache,t,n,index,val);
-00629         if (!res)
-00630         {
-00631                 this->error = CONF_VALUE_NOT_FOUND;
-00632                 return false;
-00633         }
-00634         std::string s = val;
-00635         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
-00636 }
+Definition at line 623 of file modules.cpp.
+

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

00624 {
+00625         char val[MAXBUF];
+00626         char t[MAXBUF];
+00627         char n[MAXBUF];
+00628         strlcpy(t,tag.c_str(),MAXBUF);
+00629         strlcpy(n,name.c_str(),MAXBUF);
+00630         int res = ReadConf(cache,t,n,index,val);
+00631         if (!res)
+00632         {
+00633                 this->error = CONF_VALUE_NOT_FOUND;
+00634                 return false;
+00635         }
+00636         std::string s = val;
+00637         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
+00638 }
 
@@ -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 638 of file modules.cpp. -

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

-

00639 {
-00640         char val[MAXBUF];
-00641         char t[MAXBUF];
-00642         char n[MAXBUF];
-00643         strlcpy(t,tag.c_str(),MAXBUF);
-00644         strlcpy(n,name.c_str(),MAXBUF);
-00645         int res = ReadConf(cache,t,n,index,val);
-00646         if (!res)
-00647         {
-00648                 this->error = CONF_VALUE_NOT_FOUND;
-00649                 return 0;
-00650         }
-00651         for (int i = 0; i < strlen(val); i++)
-00652         {
-00653                 if (!isdigit(val[i]))
-00654                 {
-00655                         this->error = CONF_NOT_A_NUMBER;
-00656                         return 0;
-00657                 }
-00658         }
-00659         if ((needs_unsigned) && (atoi(val)<0))
-00660         {
-00661                 this->error = CONF_NOT_UNSIGNED;
-00662                 return 0;
-00663         }
-00664         return atoi(val);
-00665 }
+Definition at line 640 of file modules.cpp.
+

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

+

00641 {
+00642         char val[MAXBUF];
+00643         char t[MAXBUF];
+00644         char n[MAXBUF];
+00645         strlcpy(t,tag.c_str(),MAXBUF);
+00646         strlcpy(n,name.c_str(),MAXBUF);
+00647         int res = ReadConf(cache,t,n,index,val);
+00648         if (!res)
+00649         {
+00650                 this->error = CONF_VALUE_NOT_FOUND;
+00651                 return 0;
+00652         }
+00653         for (int i = 0; i < strlen(val); i++)
+00654         {
+00655                 if (!isdigit(val[i]))
+00656                 {
+00657                         this->error = CONF_NOT_A_NUMBER;
+00658                         return 0;
+00659                 }
+00660         }
+00661         if ((needs_unsigned) && (atoi(val)<0))
+00662         {
+00663                 this->error = CONF_NOT_UNSIGNED;
+00664                 return 0;
+00665         }
+00666         return atoi(val);
+00667 }
 
@@ -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 605 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

00606 {
-00607         char val[MAXBUF];
-00608         char t[MAXBUF];
-00609         char n[MAXBUF];
-00610         strlcpy(t,tag.c_str(),MAXBUF);
-00611         strlcpy(n,name.c_str(),MAXBUF);
-00612         int res = ReadConf(cache,t,n,index,val);
-00613         if (!res)
-00614         {
-00615                 this->error = CONF_VALUE_NOT_FOUND;
-00616                 return "";
-00617         }
-00618         return std::string(val);
-00619 }
+Definition at line 607 of file modules.cpp.
+

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

00608 {
+00609         char val[MAXBUF];
+00610         char t[MAXBUF];
+00611         char n[MAXBUF];
+00612         strlcpy(t,tag.c_str(),MAXBUF);
+00613         strlcpy(n,name.c_str(),MAXBUF);
+00614         int res = ReadConf(cache,t,n,index,val);
+00615         if (!res)
+00616         {
+00617                 this->error = CONF_VALUE_NOT_FOUND;
+00618                 return "";
+00619         }
+00620         return std::string(val);
+00621 }
 
@@ -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 717 of file modules.cpp. +Definition at line 719 of file modules.cpp.

-References readerror. +References readerror.

-

00718 {
-00719         return this->readerror;
-00720 }
+
00720 {
+00721         return this->readerror;
+00722 }
 
@@ -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 683 of file modules.h. +Definition at line 693 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 688 of file modules.h. +Definition at line 698 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 684 of file modules.h. +Definition at line 694 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 687 of file modules.h. +Definition at line 697 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 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 2bc578f18..cc3585988 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -15,7 +15,7 @@ registration_timeoutConnectClass typeConnectClass ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index f0cb52875..67b9187fe 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -221,7 +221,7 @@ Definition at line 50 of fi
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 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 0cffc538a..87a31deb7 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -33,7 +33,7 @@ ReverseLookup(std::string ip)DNS tDNS [private] ~DNS()DNS -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 13e92c334..4ae31e5bf 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -885,7 +885,7 @@ Definition at line 40 of file
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 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 61d32e586..1fc38092c 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index 115ba2bc8..155546871 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 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 4724c1315..f8347d9ea 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index f1a540a50..d1860b10d 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 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 de190c242..4ada07153 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index b10a04490..f89b5e606 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -82,11 +82,11 @@

-Definition at line 197 of file modules.cpp. +Definition at line 199 of file modules.cpp.

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

-

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

-Definition at line 196 of file modules.cpp. +Definition at line 198 of file modules.cpp.

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

-Definition at line 191 of file modules.cpp. +Definition at line 193 of file modules.cpp.

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

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

-Definition at line 195 of file modules.cpp. +Definition at line 197 of file modules.cpp.

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

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

-Definition at line 194 of file modules.cpp. +Definition at line 196 of file modules.cpp.

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

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

-Definition at line 193 of file modules.cpp. +Definition at line 195 of file modules.cpp.

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

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

-Definition at line 192 of file modules.cpp. +Definition at line 194 of file modules.cpp.

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


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 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 32368b3f8..adf9debc0 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 60c2132c3..15857b812 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 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 7e2ada15e..42da61751 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 3055133a9..486a4d4ab 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -37,7 +37,7 @@ Inherits classbase.  Returns the size of the file in lines.


Private Attributes

-file_cache fc +file_cache fc

Detailed Description

@@ -47,7 +47,7 @@ This class contains methods for read-only manipulation of a text file in memory.

-Definition at line 764 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 774 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 730 of file modules.cpp. +Definition at line 732 of file modules.cpp.

-

00731 {
-00732 }
+
00733 {
+00734 }
 
@@ -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 723 of file modules.cpp. +Definition at line 725 of file modules.cpp.

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

-

00724 {
-00725         file_cache c;
-00726         readfile(c,filename.c_str());
-00727         this->fc = c;
-00728 }
+
00726 {
+00727         file_cache c;
+00728         readfile(c,filename.c_str());
+00729         this->fc = c;
+00730 }
 
@@ -155,10 +155,10 @@ Default destructor.

This deletes the memory allocated to the file.

-Definition at line 742 of file modules.cpp. +Definition at line 744 of file modules.cpp.

-

00743 {
-00744 }
+
00745 {
+00746 }
 
@@ -192,20 +192,20 @@ Returns true if the file exists This function will return false if the file coul

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

-References fc. +References fc.

-

00747 {
-00748         if (fc.size() == 0)
-00749         {
-00750                 return(false);
-00751         }
-00752         else
-00753         {
-00754                 return(true);
-00755         }
-00756 }
+
00749 {
+00750         if (fc.size() == 0)
+00751         {
+00752                 return(false);
+00753         }
+00754         else
+00755         {
+00756                 return(true);
+00757         }
+00758 }
 
@@ -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 765 of file modules.cpp. +Definition at line 767 of file modules.cpp.

-References fc. +References fc.

-

00766 {
-00767         return fc.size();
-00768 }
+
00768 {
+00769         return fc.size();
+00770 }
 
@@ -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 758 of file modules.cpp. +Definition at line 760 of file modules.cpp.

-References fc. +References fc.

-

00759 {
-00760         if ((x<0) || (x>fc.size()))
-00761                 return "";
-00762         return fc[x];
-00763 }
+
00761 {
+00762         if ((x<0) || (x>fc.size()))
+00763                 return "";
+00764         return fc[x];
+00765 }
 
@@ -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 734 of file modules.cpp. +Definition at line 736 of file modules.cpp.

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

-

00735 {
-00736         file_cache c;
-00737         readfile(c,filename.c_str());
-00738         this->fc = c;
-00739 }
+
00737 {
+00738         file_cache c;
+00739         readfile(c,filename.c_str());
+00740         this->fc = c;
+00741 }
 
@@ -339,7 +339,7 @@ References fc, and -
file_cache FileReader::fc [private] + file_cache FileReader::fc [private]
@@ -354,14 +354,14 @@ References
fc, and

-Definition at line 766 of file modules.h. +Definition at line 776 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 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 447761d46..bc630fbca 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index c7c328e9c..ad6d0ac46 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 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 776db944b..119eeacf6 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index b5d48a2db..a0698360b 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 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 252e99679..7275e3124 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 2ebef6183..8ca096712 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 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 6dbff63da..a6f7712f8 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index c90c28b66..06d1b61a6 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -47,12 +47,12 @@ Definition at line 36 of fi

Definition at line 39 of file users.h.

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


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 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 8ff604d55..0810cb873 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index 89989fb0e..93f667d2a 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 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 819e4cf6b..ecbde9365 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index 0cc47c796..079eab0cd 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 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 2f3a78996..ed580f75a 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -36,7 +36,7 @@ OnWhois(userrec *source, userrec *dest)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 527a07eb2..1d3fc1699 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -48,7 +48,7 @@ Inherits classbase. virtual void OnServerRaw (std::string &raw, bool inbound, userrec *user)  Called when a raw command is transmitted or received.

-virtual int OnExtendedMode (userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params) +virtual int OnExtendedMode (userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)  Called whenever an extended mode is to be processed.


virtual int OnUserPreJoin (userrec *user, chanrec *chan, const char *cname) @@ -81,10 +81,10 @@ Inherits classbase. virtual int OnAccessCheck (userrec *source, userrec *dest, chanrec *channel, int access_type)  Called before an action which requires a channel privilage check.


-virtual string_list OnUserSync (userrec *user) +virtual string_list OnUserSync (userrec *user)  Called during a netburst to sync user data.


-virtual string_list OnChannelSync (chanrec *chan) +virtual string_list OnChannelSync (chanrec *chan)  Called during a netburst to sync channel data.


virtual void On005Numeric (std::string &output) @@ -104,7 +104,7 @@ All modules must inherit from this class, its methods will be called when irc se

-Definition at line 126 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 133 of file modules.h.

Constructor & Destructor Documentation

@@ -134,9 +134,9 @@ Default constructor creates a module class.

-Definition at line 304 of file modules.cpp. +Definition at line 306 of file modules.cpp.

-

00304 { }
+
00306 { }
 
@@ -169,9 +169,9 @@ Default destructor destroys a module class.

-Definition at line 305 of file modules.cpp. +Definition at line 307 of file modules.cpp.

-

00305 { }
+
00307 { }
 
@@ -205,9 +205,11 @@ Returns the version number of a Module.

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

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

+References VF_VENDOR.

-

00316 { return Version(1,0,0,0); }
+
00318 { return Version(1,0,0,0,VF_VENDOR); }
 
@@ -241,9 +243,9 @@ Called when a 005 numeric is about to be output.

The module should modify the 005 numeric if needed to indicate its features.

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

-

00328 { };
+
00330 { };
 
@@ -310,11 +312,11 @@ This function is called before many functions which check a users status on a ch
Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined).

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

References ACR_DEFAULT.

-

00325 { return ACR_DEFAULT; };
+
00327 { return ACR_DEFAULT; };
 
@@ -324,7 +326,7 @@ References ACR_DEFAULT. - + @@ -348,11 +350,11 @@ Called during a netburst to sync channel data.

This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.

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

-References string_list. +References string_list.

-

00327 { string_list empty; return empty; }
+
00329 { string_list empty; return empty; }
 
string_list Module::OnChannelSync string_list Module::OnChannelSync chanrec chan
@@ -394,7 +396,7 @@ References string_list. - string_list &  + string_listparams @@ -419,9 +421,9 @@ Called whenever an extended mode is to be processed.

The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with Server::AddExtendedMode If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it.

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

-

00315 { return false; }
+
00317 { return false; }
 
@@ -456,9 +458,9 @@ Called whenever a user types /INFO. The userrec will contain the information of the user who typed the command. Modules may use this method to output their own credits in /INFO (which is the ircd's version of an about box). It is purposefully not possible to modify any info that has already been output, or halt the list. You must write a 371 numeric to the user, containing your info in the following format:

<nick> :information here

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

-

00318 { };
+
00320 { };
 
@@ -507,9 +509,9 @@ Called when a client is disconnected by KILL.

If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers. If you do so youre risking race conditions, desyncs and worse!

-Definition at line 329 of file modules.cpp. +Definition at line 331 of file modules.cpp.

-

00329 { return 0; };
+
00331 { return 0; };
 
@@ -552,9 +554,9 @@ Called whenever a module is loaded.

mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded "m_killwidgets.so" with "m_makewidgets.so". It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module).

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

-

00330 { };
+
00332 { };
 
@@ -588,9 +590,9 @@ Called whenever a user opers locally.

The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.

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

-

00317 { };
+
00319 { };
 
@@ -624,9 +626,9 @@ Called after a packet is received from another irc server.

The packet is represented as a char*, as it should be regarded as a buffer, and not a string. 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 311 of file modules.cpp. +Definition at line 313 of file modules.cpp.

-

00311 { }
+
00313 { }
 
@@ -660,9 +662,9 @@ Called before a packet is transmitted across the irc network between two irc ser

The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.

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

-

00310 { }
+
00312 { }
 
@@ -695,9 +697,9 @@ Called on rehash.

This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application.

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

-

00312 { }
+
00314 { }
 
@@ -746,9 +748,9 @@ Called when a raw command is transmitted or received.

This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter "raw". If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets.

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

-

00313 { }
+
00315 { }
 
@@ -782,9 +784,9 @@ Called when a user connects.

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

-Definition at line 306 of file modules.cpp. +Definition at line 308 of file modules.cpp.

-

00306 { }
+
00308 { }
 
@@ -827,9 +829,9 @@ Called when a user joins a channel.

The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channel

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

-

00308 { }
+
00310 { }
 
@@ -872,9 +874,9 @@ Called when a user parts a channel.

The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channel

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

-

00309 { }
+
00311 { }
 
@@ -917,9 +919,9 @@ Called after any nickchange, local or remote.

This can be used to track users after nickchanges have been applied. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). Because this method is called after the nickchange is taken place, no return values are possible to indicate forbidding of the nick change. Use OnUserPreNick for this.

-Definition at line 324 of file modules.cpp. +Definition at line 326 of file modules.cpp.

-

00324 { };
+
00326 { };
 
@@ -968,9 +970,9 @@ Called whenever a user is about to invite another user into a channel, before an

Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels.

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

-

00320 { return 0; };
+
00322 { return 0; };
 
@@ -1021,9 +1023,9 @@ Returning a value of 1 from this function stops the process immediately, causing IMPORTANT NOTE!

If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.

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

-

00314 { return 0; }
+
00316 { return 0; }
 
@@ -1078,9 +1080,9 @@ Called whenever a user is about to PRIVMSG A user or a channel, before any proce

Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.

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

-

00321 { return 0; };
+
00323 { return 0; };
 
@@ -1123,9 +1125,9 @@ Called before any nickchange, local or remote.

This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.

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

-

00323 { return 0; };
+
00325 { return 0; };
 
@@ -1180,9 +1182,9 @@ Called whenever a user is about to NOTICE A user or a channel, before any proces

Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.

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

-

00322 { return 0; };
+
00324 { return 0; };
 
@@ -1216,9 +1218,9 @@ Called when a user quits.

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

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

-

00307 { }
+
00309 { }
 
@@ -1228,7 +1230,7 @@ Definition at line 307 - + @@ -1252,11 +1254,11 @@ Called during a netburst to sync user data.

This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.

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

-References string_list. +References string_list.

-

00326 { string_list empty; return empty; }
+
00328 { string_list empty; return empty; }
 
string_list Module::OnUserSync string_list Module::OnUserSync userrec user
@@ -1299,15 +1301,15 @@ Called whenever a /WHOIS is performed on a local user.

The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.

-Definition at line 319 of file modules.cpp. +Definition at line 321 of file modules.cpp.

-

00319 { };
+
00321 { };
 

The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 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 7f64a72c2..d22e64210 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 Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 2146d55b5..f7abc4b3f 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 819 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 829 of file modules.h.

Constructor & Destructor Documentation

@@ -58,9 +58,9 @@ Definition at line 819 of

-Definition at line 822 of file modules.h. +Definition at line 832 of file modules.h.

-

00822 { }
+
00832 { }
 
@@ -91,9 +91,9 @@ Definition at line 822 of

-Definition at line 823 of file modules.h. +Definition at line 833 of file modules.h.

-

00823 { }
+
00833 { }
 
@@ -130,7 +130,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 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 65fabcd6d..a9e407220 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 Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index dfe01a725..9a5de4ee5 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 Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 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 75226da12..b96842b07 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -6,7 +6,7 @@

Server Member List

This is the complete list of members for Server, including all inherited members. - + @@ -45,7 +45,7 @@ -
AddCommand(char *cmd, handlerfunc f, char flags, int minparams)Server [virtual]
AddCommand(char *cmd, handlerfunc f, char flags, int minparams, char *source)Server [virtual]
AddExtendedListMode(char modechar)Server [virtual]
AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)Server [virtual]
ageclassbase
Server()Server
~classbase()classbase [inline]
~Server()Server [virtual]

Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 23971e233..c126dc81a 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -84,7 +84,7 @@ Inherits classbase. virtual bool AddExtendedListMode (char modechar)  Adds an extended mode letter which is parsed by a module and handled in a list fashion.

-virtual void AddCommand (char *cmd, handlerfunc f, char flags, int minparams) +virtual void AddCommand (char *cmd, handlerfunc f, char flags, int minparams, char *source)  Adds a command to the command table.


virtual void SendMode (char **parameters, int pcnt, userrec *user) @@ -120,7 +120,7 @@ Inherits classbase. virtual bool IsUlined (std::string server)  Returns true if the servername you give is ulined.


-virtual chanuserlist GetUsers (chanrec *chan) +virtual chanuserlist GetUsers (chanrec *chan)  Fetches the userlist of a channel.


@@ -131,7 +131,7 @@ All modules should instantiate at least one copy of this class, and use its memb

-Definition at line 371 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 378 of file modules.h.

Constructor & Destructor Documentation

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

Creates a Server object.

-Definition at line 337 of file modules.cpp. +Definition at line 339 of file modules.cpp.

-

00338 {
-00339 }
+
00340 {
+00341 }
 
@@ -197,10 +197,10 @@ Default destructor.

Destroys a Server object.

-Definition at line 341 of file modules.cpp. +Definition at line 343 of file modules.cpp.

-

00342 {
-00343 }
+
00344 {
+00345 }
 
@@ -232,7 +232,13 @@ Definition at line 341 int  - minparams + minparams, + + + + + char *  + source @@ -256,15 +262,15 @@ Adds a command to the command table.

This allows modules to add extra commands into the command table. You must place a function within your module which is is of type handlerfunc:

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'. +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 418 of file modules.cpp. +Definition at line 420 of file modules.cpp.

-References createcommand(). +References createcommand().

-

00419 {
-00420         createcommand(cmd,f,flags,minparams);
-00421 }
+
00421 {
+00422         createcommand(cmd,f,flags,minparams,source);
+00423 }
 
@@ -303,16 +309,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 563 of file modules.cpp. +Definition at line 565 of file modules.cpp.

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

-

00564 {
-00565         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
-00566         if (res)
-00567                 ModeMakeList(modechar);
-00568         return res;
-00569 }
+
00566 {
+00567         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
+00568         if (res)
+00569                 ModeMakeList(modechar);
+00570         return res;
+00571 }
 
@@ -373,28 +379,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 543 of file modules.cpp. -

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

-

00544 {
-00545         if (type == MT_SERVER)
-00546         {
-00547                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
-00548                 return false;
-00549         }
-00550         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
-00551         {
-00552                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
-00553                 return false;
-00554         }
-00555         if ((params_when_on>1) || (params_when_off>1))
-00556         {
-00557                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
-00558                 return false;
-00559         }
-00560         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
-00561 }
+Definition at line 545 of file modules.cpp.
+

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

+

00546 {
+00547         if (type == MT_SERVER)
+00548         {
+00549                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
+00550                 return false;
+00551         }
+00552         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
+00553         {
+00554                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
+00555                 return false;
+00556         }
+00557         if ((params_when_on>1) || (params_when_off>1))
+00558         {
+00559                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
+00560                 return false;
+00561         }
+00562         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
+00563 }
 
@@ -450,11 +456,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 408 of file modules.cpp. +Definition at line 410 of file modules.cpp.

-

00409 {
-00410         call_handler(commandname.c_str(),parameters,pcnt,user);
-00411 }
+
00411 {
+00412         call_handler(commandname.c_str(),parameters,pcnt,user);
+00413 }
 
@@ -497,13 +503,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 496 of file modules.cpp. +Definition at line 498 of file modules.cpp.

References ChangeName().

-

00497 {
-00498         ChangeName(user,gecos.c_str());
-00499 }
+
00499 {
+00500         ChangeName(user,gecos.c_str());
+00501 }
 
@@ -546,13 +552,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 491 of file modules.cpp. +Definition at line 493 of file modules.cpp.

References ChangeDisplayedHost().

-

00492 {
-00493         ChangeDisplayedHost(user,host.c_str());
-00494 }
+
00494 {
+00495         ChangeDisplayedHost(user,host.c_str());
+00496 }
 
@@ -595,11 +601,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 392 of file modules.cpp. +Definition at line 394 of file modules.cpp.

-

00393 {
-00394         force_nickchange(user,nickname.c_str());
-00395 }
+
00395 {
+00396         force_nickchange(user,nickname.c_str());
+00397 }
 
@@ -642,13 +648,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 516 of file modules.cpp. +Definition at line 518 of file modules.cpp.

References cmode().

-

00517 {
-00518         return cmode(User,Chan);
-00519 }
+
00519 {
+00520         return cmode(User,Chan);
+00521 }
 
@@ -691,13 +697,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 469 of file modules.cpp. +Definition at line 471 of file modules.cpp.

References common_channels().

-

00470 {
-00471         return (common_channels(u1,u2) != 0);
-00472 }
+
00472 {
+00473         return (common_channels(u1,u2) != 0);
+00474 }
 
@@ -731,11 +737,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 571 of file modules.cpp. +Definition at line 573 of file modules.cpp.

-

00572 {
-00573         return usercount(c);
-00574 }
+
00574 {
+00575         return usercount(c);
+00576 }
 
@@ -769,11 +775,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 511 of file modules.cpp. +Definition at line 513 of file modules.cpp.

-

00512 {
-00513         return FindChan(channel.c_str());
-00514 }
+
00514 {
+00515         return FindChan(channel.c_str());
+00516 }
 
@@ -807,11 +813,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 506 of file modules.cpp. +Definition at line 508 of file modules.cpp.

-

00507 {
-00508         return Find(nick);
-00509 }
+
00509 {
+00510         return Find(nick);
+00511 }
 
@@ -844,11 +850,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 536 of file modules.cpp. +Definition at line 538 of file modules.cpp.

-

00537 {
-00538         return Admin(getadminname(),getadminemail(),getadminnick());
-00539 }
+
00539 {
+00540         return Admin(getadminname(),getadminemail(),getadminnick());
+00541 }
 
@@ -881,11 +887,11 @@ Returns the network name, global to all linked servers.

-Definition at line 531 of file modules.cpp. +Definition at line 533 of file modules.cpp.

-

00532 {
-00533         return getnetworkname();
-00534 }
+
00534 {
+00535         return getnetworkname();
+00536 }
 
@@ -918,11 +924,11 @@ Returns the server name of the server where the module is loaded.

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

-

00527 {
-00528         return getservername();
-00529 }
+
00529 {
+00530         return getservername();
+00531 }
 
@@ -932,7 +938,7 @@ Definition at line 526 - + @@ -956,28 +962,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 373 of file modules.cpp. -

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

-

00374 {
-00375         chanuserlist userl;
-00376         userl.clear();
-00377         for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
-00378         {
-00379                 if (i->second)
-00380                 {
-00381                         if (has_channel(i->second,chan))
-00382                         {
-00383                                 if (isnick(i->second->nick))
-00384                                 {
-00385                                         userl.push_back(i->second);
-00386                                 }
-00387                         }
-00388                 }
-00389         }
-00390         return userl;
-00391 }
+Definition at line 375 of file modules.cpp.
+

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

+

00376 {
+00377         chanuserlist userl;
+00378         userl.clear();
+00379         for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
+00380         {
+00381                 if (i->second)
+00382                 {
+00383                         if (has_channel(i->second,chan))
+00384                         {
+00385                                 if (isnick(i->second->nick))
+00386                                 {
+00387                                         userl.push_back(i->second);
+00388                                 }
+00389                         }
+00390                 }
+00391         }
+00392         return userl;
+00393 }
 
chanuserlist Server::GetUsers chanuserlist Server::GetUsers chanrec chan
@@ -1011,13 +1017,13 @@ Returns true if a nick is valid.

Nicks for unregistered connections will return false.

-Definition at line 501 of file modules.cpp. +Definition at line 503 of file modules.cpp.

References isnick().

-

00502 {
-00503         return (isnick(nick.c_str()) != 0);
-00504 }
+
00504 {
+00505         return (isnick(nick.c_str()) != 0);
+00506 }
 
@@ -1060,13 +1066,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 521 of file modules.cpp. +Definition at line 523 of file modules.cpp.

References has_channel().

-

00522 {
-00523         return has_channel(User,Chan);
-00524 }
+
00524 {
+00525         return has_channel(User,Chan);
+00526 }
 
@@ -1100,13 +1106,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 403 of file modules.cpp. +Definition at line 405 of file modules.cpp.

-References is_uline(). +References is_uline().

-

00404 {
-00405         return is_uline(server.c_str());
-00406 }
+
00406 {
+00407         return is_uline(server.c_str());
+00408 }
 
@@ -1155,11 +1161,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 363 of file modules.cpp. +Definition at line 365 of file modules.cpp.

-

00364 {
-00365         return add_channel(user,cname.c_str(),key.c_str(),true);
-00366 }
+
00366 {
+00367         return add_channel(user,cname.c_str(),key.c_str(),true);
+00368 }
 
@@ -1202,11 +1208,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 413 of file modules.cpp. +Definition at line 415 of file modules.cpp.

-

00414 {
-00415         log(level,"%s",s.c_str());
-00416 }
+
00416 {
+00417         log(level,"%s",s.c_str());
+00418 }
 
@@ -1249,14 +1255,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 350 of file modules.cpp. +Definition at line 352 of file modules.cpp.

-

00351 {
-00352         char literal[MAXBUF],pattern[MAXBUF];
-00353         strlcpy(literal,sliteral.c_str(),MAXBUF);
-00354         strlcpy(pattern,spattern.c_str(),MAXBUF);
-00355         return match(literal,pattern);
-00356 }
+
00353 {
+00354         char literal[MAXBUF],pattern[MAXBUF];
+00355         strlcpy(literal,sliteral.c_str(),MAXBUF);
+00356         strlcpy(pattern,spattern.c_str(),MAXBUF);
+00357         return match(literal,pattern);
+00358 }
 
@@ -1305,11 +1311,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 368 of file modules.cpp. +Definition at line 370 of file modules.cpp.

-

00369 {
-00370         return del_channel(user,cname.c_str(),reason.c_str(),false);
-00371 }
+
00371 {
+00372         return del_channel(user,cname.c_str(),reason.c_str(),false);
+00373 }
 
@@ -1354,14 +1360,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 397 of file modules.cpp. +Definition at line 399 of file modules.cpp.

References userrec::nick, and send_network_quit().

-

00398 {
-00399         send_network_quit(user->nick,reason.c_str());
-00400         kill_link(user,reason.c_str());
-00401 }
+
00400 {
+00401         send_network_quit(user->nick,reason.c_str());
+00402         kill_link(user,reason.c_str());
+00403 }
 
@@ -1404,11 +1410,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 428 of file modules.cpp. +Definition at line 430 of file modules.cpp.

-

00429 {
-00430         Write(Socket,"%s",s.c_str());
-00431 }
+
00431 {
+00432         Write(Socket,"%s",s.c_str());
+00433 }
 
@@ -1463,18 +1469,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 457 of file modules.cpp. -

-

00458 {
-00459         if (IncludeSender)
-00460         {
-00461                 WriteChannel(Channel,User,"%s",s.c_str());
-00462         }
-00463         else
-00464         {
-00465                 ChanExceptSender(Channel,User,"%s",s.c_str());
-00466         }
-00467 }
+Definition at line 459 of file modules.cpp.
+

+

00460 {
+00461         if (IncludeSender)
+00462         {
+00463                 WriteChannel(Channel,User,"%s",s.c_str());
+00464         }
+00465         else
+00466         {
+00467                 ChanExceptSender(Channel,User,"%s",s.c_str());
+00468         }
+00469 }
 
@@ -1523,18 +1529,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 474 of file modules.cpp. -

-

00475 {
-00476         if (IncludeSender)
-00477         {
-00478                 WriteCommon(User,"%s",text.c_str());
-00479         }
-00480         else
-00481         {
-00482                 WriteCommonExcept(User,"%s",text.c_str());
-00483         }
-00484 }
+Definition at line 476 of file modules.cpp.
+

+

00477 {
+00478         if (IncludeSender)
+00479         {
+00480                 WriteCommon(User,"%s",text.c_str());
+00481         }
+00482         else
+00483         {
+00484                 WriteCommonExcept(User,"%s",text.c_str());
+00485         }
+00486 }
 
@@ -1583,11 +1589,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 438 of file modules.cpp. +Definition at line 440 of file modules.cpp.

-

00439 {
-00440         WriteFrom(Socket,User,"%s",s.c_str());
-00441 }
+
00441 {
+00442         WriteFrom(Socket,User,"%s",s.c_str());
+00443 }
 
@@ -1643,13 +1649,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 423 of file modules.cpp. +Definition at line 425 of file modules.cpp.

-References server_mode(). +References server_mode().

-

00424 {
-00425         server_mode(parameters,pcnt,user);
-00426 }
+
00426 {
+00427         server_mode(parameters,pcnt,user);
+00428 }
 
@@ -1683,11 +1689,11 @@ Sends text to all opers.

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

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

-

00346 {
-00347         WriteOpers("%s",s.c_str());
-00348 }
+
00348 {
+00349         WriteOpers("%s",s.c_str());
+00350 }
 
@@ -1730,11 +1736,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 433 of file modules.cpp. +Definition at line 435 of file modules.cpp.

-

00434 {
-00435         WriteServ(Socket,"%s",s.c_str());
-00436 }
+
00436 {
+00437         WriteServ(Socket,"%s",s.c_str());
+00438 }
 
@@ -1787,22 +1793,22 @@ The format will become:

:localserver TEXT

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

-Definition at line 443 of file modules.cpp. +Definition at line 445 of file modules.cpp.

References connection::fd.

-

00444 {
-00445         if (!Source)
-00446         {
-00447                 // if source is NULL, then the message originates from the local server
-00448                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
-00449         }
-00450         else
-00451         {
-00452                 // otherwise it comes from the user specified
-00453                 WriteTo(Source,Dest,"%s",s.c_str());
-00454         }
-00455 }
+
00446 {
+00447         if (!Source)
+00448         {
+00449                 // if source is NULL, then the message originates from the local server
+00450                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
+00451         }
+00452         else
+00453         {
+00454                 // otherwise it comes from the user specified
+00455                 WriteTo(Source,Dest,"%s",s.c_str());
+00456         }
+00457 }
 
@@ -1853,11 +1859,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 358 of file modules.cpp. +Definition at line 360 of file modules.cpp.

-

00359 {
-00360         WriteMode(modes.c_str(),flags,"%s",text.c_str());
-00361 }
+
00361 {
+00362         WriteMode(modes.c_str(),flags,"%s",text.c_str());
+00363 }
 
@@ -1900,17 +1906,17 @@ 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 486 of file modules.cpp. +Definition at line 488 of file modules.cpp.

-

00487 {
-00488         WriteWallOps(User,false,"%s",text.c_str());
-00489 }
+
00489 {
+00490         WriteWallOps(User,false,"%s",text.c_str());
+00491 }
 

The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 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 9b517dc80..7d5e8ee8f 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -9,12 +9,13 @@ ageclassbase BuildVersion classbase()classbase [inline] + FlagsVersion MajorVersion MinorVersion RevisionVersion - Version(int major, int minor, int revision, int build)Version + Version(int major, int minor, int revision, int build, int flags)Version ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 165a74c82..46528e46a 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -15,7 +15,7 @@ Inherits classbase. List of all members. - + @@ -26,6 +26,8 @@ Inherits classbase. + +

Public Member Functions

 Version (int major, int minor, int revision, int build)
 Version (int major, int minor, int revision, int build, int flags)

Public Attributes

const int Major
const int Build
const int Flags

Detailed Description

Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module. @@ -34,7 +36,7 @@ A class of type Version is returned by the GetVersion method of the 102 of file modules.h.

Constructor & Destructor Documentation

+Definition at line 109 of file modules.h.

Constructor & Destructor Documentation

@@ -62,7 +64,13 @@ Definition at line 102 of - + + + + + + + @@ -84,9 +92,9 @@ Definition at line 102 of

-Definition at line 298 of file modules.cpp. +Definition at line 300 of file modules.cpp.

-

00298 : Major(major), Minor(minor), Revision(revision), Build(build) { };
+
00300 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
 
int  build build,
int  flags
@@ -112,7 +120,31 @@ Definition at line 298

-Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h. + + +

+ + + + +
+ + +
const int Version::Flags +
+
+ + + +
+   + + +

+ +

+Definition at line 112 of file modules.h.

@@ -136,7 +168,7 @@ Definition at line 105 of

-Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h.

@@ -160,7 +192,7 @@ Definition at line 105 of

-Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h.

@@ -184,12 +216,12 @@ Definition at line 105 of

-Definition at line 105 of file modules.h. +Definition at line 112 of file modules.h.


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 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 6adda8c2a..4f68e11f3 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 Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 29339e3bc..da64d6a00 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 Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 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 e255f32c5..9637edfe7 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 Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index 310335b58..7400fcd87 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 Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 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 e7a73c026..c114639dc 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -33,7 +33,7 @@ topicsetchanrec ~chanrec()chanrec [inline, virtual] ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 500221ee4..f3090de19 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -116,19 +116,19 @@ Creates a channel record and initialises it with default values.

-Definition at line 112 of file channels.cpp. +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.

-

00113 {
-00114         strcpy(name,"");
-00115         strcpy(custom_modes,"");
-00116         strcpy(topic,"");
-00117         strcpy(setby,"");
-00118         strcpy(key,"");
-00119         created = topicset = limit = 0;
-00120         topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
-00121 }
+
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 }
 
@@ -196,23 +196,23 @@ 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 185 of file channels.cpp. -

-References custom_mode_params. -

-

00186 {
-00187         if (custom_mode_params.size())
-00188         {
-00189                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-00190                 {
-00191                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-00192                         {
-00193                                 return std::string(i->parameter);
-00194                         }
-00195                 }
-00196         }
-00197         return std::string("");
-00198 }
+Definition at line 186 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 }
 
@@ -246,14 +246,14 @@ Returns true if a custom mode is set on a channel.

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

References DEBUG.

-

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

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

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

-

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

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

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

-Referenced by SetCustomMode(). -

-

00149 {
-00150 
-00151         log(DEBUG,"SetCustomModeParam called");
-00152         ModeParameter M;
-00153         M.mode = mode;
-00154         strlcpy(M.channel,this->name,CHANMAX);
-00155         strlcpy(M.parameter,parameter,MAXBUF);
-00156         if (mode_on)
-00157         {
-00158                 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter);
-00159                 custom_mode_params.push_back(M);
-00160         }
-00161         else
-00162         {
-00163                 if (custom_mode_params.size())
-00164                 {
-00165                         for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-00166                         {
-00167                                 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-00168                                 {
-00169                                         log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter);
-00170                                         custom_mode_params.erase(i);
-00171                                         return;
-00172                                 }
-00173                         }
-00174                 }
-00175                 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!");
-00176         }
-00177 }
+Definition at line 149 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 }
 
@@ -460,7 +460,7 @@ This value cannot be set at the same time as 155 of file channels.h.

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

@@ -488,7 +488,7 @@ Creation time.

Definition at line 111 of file channels.h.

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

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

@@ -544,7 +544,7 @@ Nonzero if the mode +i is set.

Definition at line 141 of file channels.h.

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

@@ -572,7 +572,7 @@ If this value is an empty string, there is no channel key in place.

Definition at line 129 of file channels.h.

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

@@ -600,7 +600,7 @@ If this value is zero, there is no limit in place.

Definition at line 124 of file channels.h.

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

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

Definition at line 145 of file channels.h.

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

@@ -656,7 +656,7 @@ The channels name.

Definition at line 99 of file channels.h.

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

@@ -684,7 +684,7 @@ Nonzero if the mode +n is set.

Definition at line 137 of file channels.h.

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

@@ -712,7 +712,7 @@ This value cannot be set at the same time as 150 of file channels.h.

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

@@ -740,7 +740,7 @@ If this member is an empty string, no topic was ever set.

Definition at line 119 of file channels.h.

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

@@ -768,7 +768,7 @@ If this is an empty string, no channel topic is set.

Definition at line 108 of file channels.h.

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

@@ -796,7 +796,7 @@ Nonzero if the mode +t is set.

Definition at line 133 of file channels.h.

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

@@ -824,12 +824,12 @@ If no topic was ever set, this will be equal to 115 of file channels.h.

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


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 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 b592d0499..f9dae7a73 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 Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index 00af10405..37ec77e2a 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 Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 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 03013e5f6..6671f8a76 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -15,10 +15,11 @@ handler_functioncommand_t min_paramscommand_t Shrink(std::string key)Extensible + sourcecommand_t total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 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 8f88460a4..4a8d75d74 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -33,6 +33,9 @@ Inherits Extensible. long total_bytes  used by /stats m

+char source [MAXBUF] + + used for resource tracking between modules



Detailed Description

A structure that defines a command. @@ -144,6 +147,32 @@ Minimum number of parameters command takes. Definition at line 40 of file ctables.h. +

+ + + + +
+ + +
char command_t::source[MAXBUF] +
+
+ + + + + +
+   + + +

+used for resource tracking between modules +

+ +

+Definition at line 49 of file ctables.h.

@@ -198,7 +227,7 @@ Definition at line 43 of


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 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 2159fac9b..f986d3f59 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -41,7 +41,7 @@ stateconnection TerminateLink(char *targethost)connection ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 2350d6f2c..ae9342e55 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -537,7 +537,7 @@ Stats counter for bytes inbound.

Definition at line 194 of file connection.h.

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

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

Definition at line 198 of file connection.h.

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

@@ -593,7 +593,7 @@ Stats counter for commands inbound.

Definition at line 202 of file connection.h.

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

@@ -621,7 +621,7 @@ Stats counter for commands outbound.

Definition at line 206 of file connection.h.

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

@@ -675,7 +675,7 @@ File descriptor of the connection.

Definition at line 178 of file connection.h.

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

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

Definition at line 210 of file connection.h.

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

@@ -731,7 +731,7 @@ Not used if this is a serverrec

Definition at line 182 of file connection.h.

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

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

Definition at line 236 of file connection.h.

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

@@ -787,7 +787,7 @@ Only used for userrec

Definition at line 190 of file connection.h.

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

@@ -867,7 +867,7 @@ Reserved for future use.

Definition at line 186 of file connection.h.

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

@@ -895,7 +895,7 @@ Time the connection was last pinged.

Definition at line 228 of file connection.h.

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

@@ -923,7 +923,7 @@ Used by PING checks with clients.

Definition at line 240 of file connection.h.

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

@@ -951,7 +951,7 @@ For a serverrec this is the current listening port of the serverrec object.

Definition at line 216 of file connection.h.

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

@@ -979,7 +979,7 @@ Used by userrec to indicate the registration status of the connection.

Definition at line 220 of file connection.h.

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

@@ -1007,7 +1007,7 @@ Time the connection was created, set in the constructor.

Definition at line 232 of file connection.h.

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

@@ -1038,7 +1038,7 @@ Definition at line 224


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 5d1bdb706..915179245 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -25,7 +25,7 @@
  S  
  Z  
connection   GLine   ModeParameter   Server   ZLine   
  D  
-
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:23 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 0728e3b21..ae2656666 100644 --- a/docs/module-doc/classircd__connector-members.html +++ b/docs/module-doc/classircd__connector-members.html @@ -35,7 +35,7 @@ Shrink(std::string key)Extensible stateircd_connector [private] ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 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 db1d38877..9a8a2802d 100644 --- a/docs/module-doc/classircd__connector.html +++ b/docs/module-doc/classircd__connector.html @@ -792,7 +792,7 @@ Definition at line 75
The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classpacket-members.html b/docs/module-doc/classpacket-members.html index 2039fe3ce..2076fad17 100644 --- a/docs/module-doc/classpacket-members.html +++ b/docs/module-doc/classpacket-members.html @@ -9,7 +9,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classpacket.html b/docs/module-doc/classpacket.html index 7586d3523..bf2cde3d4 100644 --- a/docs/module-doc/classpacket.html +++ b/docs/module-doc/classpacket.html @@ -24,7 +24,7 @@ This declaration is preserved here to maintain documentation only.

Definition at line 167 of file connection.h.


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:25 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 355406ed8..7ceec4d8d 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -55,7 +55,7 @@ versionserverrec ~classbase()classbase [inline] ~serverrec()serverrec -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index a2a10308f..d3deb179c 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -93,22 +93,22 @@ Constructor.

-Definition at line 24 of file servers.cpp. -

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

-

00025 {
-00026         strlcpy(name,"",256);
-00027         pingtime = 0;
-00028         lastping = time(NULL);
-00029         usercount_i = usercount = opercount = version = 0;
-00030         hops_away = 1;
-00031         signon = time(NULL);
-00032         jupiter = false;
-00033         fd = 0;
-00034         sync_soon = false;
-00035         strlcpy(nickserv,"",NICKMAX);
-00036 }
+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. +

+

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

-Definition at line 43 of file servers.cpp. +Definition at line 45 of file servers.cpp.

-References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, connection::signon, sync_soon, 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.

-

00044 {
-00045         strlcpy(name,n,256);
-00046         lastping = time(NULL);
-00047         usercount_i = usercount = opercount = 0;
-00048         version = ver;
-00049         hops_away = 1;
-00050         signon = time(NULL);
-00051         jupiter = jupe;
-00052         fd = 0;
-00053         sync_soon = false;
-00054         strlcpy(nickserv,"",NICKMAX);
-00055 }
+
00046 {
+00047         strlcpy(name,n,256);
+00048         lastping = TIME;
+00049         usercount_i = usercount = opercount = 0;
+00050         version = ver;
+00051         hops_away = 1;
+00052         signon = TIME;
+00053         jupiter = jupe;
+00054         fd = 0;
+00055         sync_soon = false;
+00056         strlcpy(nickserv,"",NICKMAX);
+00057 }
 
@@ -205,10 +205,10 @@ Destructor.

-Definition at line 39 of file servers.cpp. +Definition at line 41 of file servers.cpp.

-

00040 {
-00041 }
+
00042 {
+00043 }
 
@@ -264,7 +264,7 @@ number of hops away (for quick access)

Definition at line 51 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -292,7 +292,7 @@ is a JUPE server (faked to enforce a server ban)

Definition at line 57 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -320,7 +320,7 @@ server name

Definition at line 36 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -348,7 +348,7 @@ Holds nickserv's name on U:lined (services) servers (this is a kludge for ircser

Definition at line 65 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -376,7 +376,7 @@ opers on server

Definition at line 48 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -404,7 +404,7 @@ last ping response (ms)

Definition at line 39 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -430,7 +430,7 @@ Referenced by serverrec() Definition at line 67 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -458,7 +458,7 @@ non-invisible users on server

Definition at line 45 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -486,7 +486,7 @@ invisible users on server

Definition at line 42 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().

@@ -514,12 +514,12 @@ ircd version

Definition at line 54 of file servers.h.

-Referenced by serverrec(). +Referenced by serverrec().


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 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 ded768059..9cb025c22 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 Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 65046d31e..0981ed714 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -127,7 +127,7 @@ If the record is not in use, this value will be NULL.

Definition at line 213 of file channels.h.

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

@@ -155,12 +155,12 @@ UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon th

Definition at line 208 of file channels.h.

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


The documentation for this class was generated from the following file: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:26 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 61528cf42..f30c93eea 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -63,7 +63,7 @@ userrec()userrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index e37a6dc18..849d914eb 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -116,36 +116,36 @@ Definition at line 89 of fi

-Definition at line 26 of file users.cpp. +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.

-

00027 {
-00028         // the PROPER way to do it, AVOID bzero at *ALL* costs
-00029         strcpy(nick,"");
-00030         strcpy(ip,"127.0.0.1");
-00031         timeout = 0;
-00032         strcpy(ident,"");
-00033         strcpy(host,"");
-00034         strcpy(dhost,"");
-00035         strcpy(fullname,"");
-00036         strcpy(modes,"");
-00037         strcpy(inbuf,"");
-00038         strcpy(server,"");
-00039         strcpy(awaymsg,"");
-00040         strcpy(oper,"");
-00041         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
-00042         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
-00043         haspassed = false;
-00044         dns_done = false;
-00045         strcpy(result,"");
-00046         for (int i = 0; i < MAXCHANS; i++)
-00047         {
-00048                 this->chans[i].channel = NULL;
-00049                 this->chans[i].uc_modes = 0;
-00050         }
-00051         invites.clear();
-00052 }
+
00029 {
+00030         // the PROPER way to do it, AVOID bzero at *ALL* costs
+00031         strcpy(nick,"");
+00032         strcpy(ip,"127.0.0.1");
+00033         timeout = 0;
+00034         strcpy(ident,"");
+00035         strcpy(host,"");
+00036         strcpy(dhost,"");
+00037         strcpy(fullname,"");
+00038         strcpy(modes,"");
+00039         strcpy(inbuf,"");
+00040         strcpy(server,"");
+00041         strcpy(awaymsg,"");
+00042         strcpy(oper,"");
+00043         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
+00044         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
+00045         haspassed = false;
+00046         dns_done = false;
+00047         strcpy(result,"");
+00048         for (int i = 0; i < MAXCHANS; i++)
+00049         {
+00050                 this->chans[i].channel = NULL;
+00051                 this->chans[i].uc_modes = 0;
+00052         }
+00053         invites.clear();
+00054 }
 
@@ -212,14 +212,14 @@ Returns the full displayed host of the user This member function returns the hos

-Definition at line 56 of file users.cpp. +Definition at line 58 of file users.cpp.

References dhost, ident, nick, and result.

-

00057 {
-00058         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
-00059         return result;
-00060 }
+
00059 {
+00060         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
+00061         return result;
+00062 }
 
@@ -252,14 +252,14 @@ Returns the full real host of the user This member function returns the hostname

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

-Definition at line 63 of file users.cpp. +Definition at line 65 of file users.cpp.

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

-

00064 {
-00065         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host);
-00066         return result;
-00067 }
+
00066 {
+00067         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host);
+00068         return result;
+00069 }
 
@@ -293,60 +293,60 @@ Returns true or false for if a user can execute a privilaged oper command.

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

-Definition at line 112 of file users.cpp. +Definition at line 114 of file users.cpp.

References config_f, and DEBUG.

-

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

-Definition at line 83 of file users.cpp. +Definition at line 85 of file users.cpp.

References Invited::channel, and invites.

-

00084 {
-00085         Invited i;
-00086         strlcpy(i.channel,channel,CHANMAX);
-00087         invites.push_back(i);
-00088 }
+
00086 {
+00087         Invited i;
+00088         strlcpy(i.channel,channel,CHANMAX);
+00089         invites.push_back(i);
+00090 }
 
@@ -422,22 +422,22 @@ Returns true if a user is invited to a channel.

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

References invites.

-

00070 {
-00071         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00072         {
-00073                 if (i->channel) {
-00074                         if (!strcasecmp(i->channel,channel))
-00075                         {
-00076                                 return true;
-00077                         }
-00078                 }
-00079         }
-00080         return false;
-00081 }
+
00072 {
+00073         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+00074         {
+00075                 if (i->channel) {
+00076                         if (!strcasecmp(i->channel,channel))
+00077                         {
+00078                                 return true;
+00079                         }
+00080                 }
+00081         }
+00082         return false;
+00083 }
 
@@ -471,30 +471,30 @@ Removes a channel from a users invite list.

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

-Definition at line 90 of file users.cpp. +Definition at line 92 of file users.cpp.

References DEBUG, and invites.

-

00091 {
-00092         log(DEBUG,"Removing invites");
-00093         if (channel)
-00094         {
-00095                 if (invites.size())
-00096                 {
-00097                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00098                         {
-00099                                 if (i->channel)
-00100                                 {
-00101                                         if (!strcasecmp(i->channel,channel))
-00102                                         {
-00103                                                 invites.erase(i);
-00104                                                 return;
-00105                                         }
-00106                                 }
-00107                         }
-00108                 }
-00109         }
-00110 }
+
00093 {
+00094         log(DEBUG,"Removing invites");
+00095         if (channel)
+00096         {
+00097                 if (invites.size())
+00098                 {
+00099                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+00100                         {
+00101                                 if (i->channel)
+00102                                 {
+00103                                         if (!strcasecmp(i->channel,channel))
+00104                                         {
+00105                                                 invites.erase(i);
+00106                                                 return;
+00107                                         }
+00108                                 }
+00109                         }
+00110                 }
+00111         }
+00112 }
 
@@ -524,7 +524,7 @@ If this string is empty, the user is not marked as away.

Definition at line 132 of file users.h.

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

@@ -550,7 +550,7 @@ Referenced by userrec().

Definition at line 123 of file users.h.

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

@@ -578,7 +578,7 @@ This usually matches the value of u

Definition at line 111 of file users.h.

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

@@ -606,7 +606,7 @@ True when DNS lookups are completed.

Definition at line 160 of file users.h.

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

@@ -634,7 +634,7 @@ Number of lines the user can place into the buffer (up to the global NetBufferSi

Definition at line 143 of file users.h.

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

@@ -662,7 +662,7 @@ The users full name.

Definition at line 115 of file users.h.

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

@@ -690,7 +690,7 @@ The users ident reply.

Definition at line 106 of file users.h.

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

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

Definition at line 95 of file users.h.

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

@@ -746,7 +746,7 @@ This may contain any of the following RFC characters: o, w, s, i Your module may

Definition at line 121 of file users.h.

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

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

Definition at line 102 of file users.h.

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

@@ -802,7 +802,7 @@ This is used to check permissions in operclasses, so that we can say 'yay' or 'n

Definition at line 156 of file users.h.

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

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

Definition at line 137 of file users.h.

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

@@ -858,7 +858,7 @@ The server the user is connected to.

Definition at line 127 of file users.h.

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

@@ -886,12 +886,12 @@ Number of seconds this user is given to send USER/NICK If they do not send their

Definition at line 149 of file users.h.

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


The documentation for this class was generated from the following files: -
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:27 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 c7d69f256..2796b60d8 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -84,37 +84,39 @@ 00079 void handle_qline(char **parameters, int pcnt, userrec *user); 00080 void handle_eline(char **parameters, int pcnt, userrec *user); 00081 void handle_server(char **parameters, int pcnt, userrec *user); -00082 -00085 void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv); -00086 void process_restricted_commands(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host,char* ipaddr,int port); -00087 -00090 void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00091 void handle_dollar(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00092 void handle_J(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00093 void handle_R(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00094 void handle_plus(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00095 void handle_b(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00096 void handle_a(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00097 void handle_F(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00098 void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00099 void handle_AT(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00100 void handle_k(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00101 void handle_n(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00102 void handle_Q(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00103 void handle_K(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00104 void handle_L(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00105 void handle_m(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00106 void handle_M(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00107 void handle_T(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00108 void handle_t(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00109 void handle_i(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00110 void handle_P(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00111 void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -00112 -00115 bool is_uline(const char* server); -00116 -00117 #endif -

Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +00082 void handle_loadmodule(char **parameters, int pcnt, userrec *user); +00083 void handle_unloadmodule(char **parameters, int pcnt, userrec *user); +00084 +00087 void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv); +00088 void process_restricted_commands(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host,char* ipaddr,int port); +00089 +00092 void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00093 void handle_dollar(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00094 void handle_J(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00095 void handle_R(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00096 void handle_plus(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00097 void handle_b(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00098 void handle_a(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00099 void handle_F(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00100 void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00101 void handle_AT(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00102 void handle_k(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00103 void handle_n(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00104 void handle_Q(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00105 void handle_K(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00106 void handle_L(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00107 void handle_m(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00108 void handle_M(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00109 void handle_T(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00110 void handle_t(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00111 void handle_i(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00112 void handle_P(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00113 void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00114 +00117 bool is_uline(const char* server); +00118 +00119 #endif +

Generated on Thu Apr 7 20:14:20 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 dbf9eb9f7..09e7aca04 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -115,62 +115,66 @@ void handle_server (char **parameters, int pcnt, userrec *user) -void handle_link_packet (char *udp_msg, char *tcp_host, serverrec *serv) +void handle_loadmodule (char **parameters, int pcnt, userrec *user) - Special functions for processing server to server traffic.

-void process_restricted_commands (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *ipaddr, int port) +void handle_unloadmodule (char **parameters, int pcnt, userrec *user) -void handle_amp (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_link_packet (char *udp_msg, char *tcp_host, serverrec *serv) - These are the handlers for server commands (tokens).


-void handle_dollar (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) + Special functions for processing server to server traffic.


+void process_restricted_commands (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *ipaddr, int port) -void handle_J (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_amp (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_R (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) + These are the handlers for server commands (tokens).


+void handle_dollar (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_plus (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_J (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_b (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_R (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_a (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_plus (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_F (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_b (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_N (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_a (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_AT (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_F (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_k (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_N (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_n (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_AT (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_Q (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_k (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_K (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_n (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_L (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_Q (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_m (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_K (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_M (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_L (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_T (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_m (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_t (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_M (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_i (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_T (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_P (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_t (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -void handle_V (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) +void handle_i (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) -bool is_uline (const char *server) +void handle_P (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) - Functions for u:lined servers.


+void handle_V (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) + +bool is_uline (const char *server) + + Functions for u:lined servers.



Function Documentation

-

+

@@ -270,7 +274,7 @@
-

+

@@ -328,7 +332,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -428,7 +432,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -572,7 +576,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -672,7 +676,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -772,7 +776,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -960,7 +964,7 @@ These are the handlers for server commands (tokens).
-

+

@@ -1062,7 +1066,7 @@ These are the handlers for user commands.
-

+

@@ -1118,7 +1122,7 @@ These are the handlers for user commands.
-

+

@@ -1306,7 +1310,7 @@ These are the handlers for user commands.
-

+

@@ -1362,7 +1366,7 @@ These are the handlers for user commands.
-

+

+ +
@@ -1492,6 +1496,50 @@ Special functions for processing server to server traffic. +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void handle_loadmodule char **  parameters,
int  pcnt,
userrec user
+
+ + + + @@ -1540,7 +1588,7 @@ Special functions for processing server to server traffic.
+   + +

-

+

@@ -1596,7 +1644,7 @@ Special functions for processing server to server traffic.
-

+

@@ -1784,7 +1832,7 @@ Special functions for processing server to server traffic.
-

+

@@ -1840,7 +1888,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2072,7 +2120,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2260,7 +2308,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2404,7 +2452,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2548,7 +2596,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2912,7 +2960,7 @@ Special functions for processing server to server traffic.
-

+

@@ -2968,7 +3016,7 @@ Special functions for processing server to server traffic.
-

+

+ +
@@ -3152,6 +3200,50 @@ Special functions for processing server to server traffic. +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void handle_unloadmodule char **  parameters,
int  pcnt,
userrec user
+
+ + + + @@ -3288,7 +3380,7 @@ Special functions for processing server to server traffic.
+   + +

-

+

@@ -3564,7 +3656,7 @@ Special functions for processing server to server traffic.
-

+

+Referenced by Server::IsUlined().
@@ -3594,10 +3686,10 @@ Functions for u:lined servers.

-Referenced by Server::IsUlined().

-

+

@@ -3665,7 +3757,7 @@ Referenced by Server::IsUli
-


Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:22 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 db4a23d38..529253b4d 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -168,7 +168,7 @@ 00300 00301 #endif 00302 -

Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +

Generated on Thu Apr 7 20:14:20 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 45445700a..5c0e7c65c 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -191,7 +191,7 @@ Definition at line 39 Definition at line 36 of file connection.h. -
Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:22 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 cb44a9bb7..5a494dec2 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -37,11 +37,12 @@ 00040 int min_params; 00043 long use_count; 00046 long total_bytes; -00047 }; -00048 -00049 #endif -00050 -

Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +00049 char source[MAXBUF]; +00050 }; +00051 +00052 #endif +00053 +

Generated on Thu Apr 7 20:14:20 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 f5b54eb9b..dd6873135 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 Mon Apr 4 18:12:49 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:22 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 1f86c06cd..bdb67706e 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -69,7 +69,7 @@ 00092 }; 00093 00094 #endif -

Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +

Generated on Thu Apr 7 20:14:20 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 601b39633..6ef986b05 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -20,7 +20,7 @@ struct  dns_ip4list -
Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 199cc96e4..7787eb326 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 Mon Apr 4 18:12:47 2005 for InspIRCd by +
Generated on Thu Apr 7 20:14:20 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 1bd992f14..b65c317a9 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -104,7 +104,8 @@ Here is a list of all class members with links to the classes they belong to:

FileReader
  • FindChannel() : Server
  • FindHost() : connection
  • FindNick() -: Server
  • flags_needed +: Server
  • Flags +: Version
  • flags_needed : command_t
  • flood : userrec, ConnectClass
  • ForwardLookup() : DNS
  • fullname @@ -281,9 +282,9 @@ Here is a list of all class members with links to the classes they belong to:

    Server
  • SendTo() : Server
  • SendToModeMask() : Server
  • SendWallops() -: Server
  • Server() -: Server
  • server -: userrec
  • servername +: Server
  • server +: userrec
  • Server() +: Server
  • servername : ircd_connector
  • serverrec() : serverrec
  • set_by : HostItem
  • set_time @@ -300,7 +301,7 @@ Here is a list of all class members with links to the classes they belong to:

    ircd_connector
  • Shrink() : Extensible
  • signon : connection
  • source -: XLine
  • state +: XLine, command_t
  • state : connection, ircd_connector
  • sync_soon : serverrec

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

    serverrec
  • ~ucrec() : ucrec
  • ~userrec() : userrec -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 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 5fd0af4b8..4aa12e5c3 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -231,7 +231,7 @@ : serverrec
  • ~ucrec() : ucrec
  • ~userrec() : userrec -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index 5f0209a6b..cb0115aac 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -57,7 +57,8 @@
  • @@ -154,7 +155,7 @@ : XLine, HostItem
  • setby : chanrec
  • signon : connection
  • source -: XLine
  • state +: XLine, command_t
  • state : connection, ircd_connector
  • sync_soon : serverrec

    - t - @@ -178,7 +179,7 @@

    -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 341598a04..d5af87be0 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -32,79 +32,79 @@ Here is a list of all file members with links to the files they belong to:

    xline.h
  • add_qline() : xline.h
  • add_zline() : xline.h
  • address_cache -: modules.cpp
  • AdminEmail -: modules.cpp, channels.cpp
  • AdminName -: modules.cpp, channels.cpp
  • AdminNick -: modules.cpp, channels.cpp
  • allowed_umode() +: modules.cpp
  • AdminEmail +: modules.cpp, channels.cpp
  • AdminName +: modules.cpp, channels.cpp
  • AdminNick +: modules.cpp, channels.cpp
  • allowed_umode() : mode.h
  • apply_lines() : xline.h
  • auth_cookies -: modules.cpp, channels.cpp +: modules.cpp, channels.cpp

    - b -

    +: modules.cpp, channels.cpp

    - c -

    +: channels.cpp

    - d -

    +: modules.cpp, channels.cpp
  • diepass +: modules.cpp, channels.cpp
  • DieValue +: modules.cpp, channels.cpp
  • DoAddExtendedMode() +: modules.cpp

    - e -

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

    - f -

    +: modules.cpp, channels.cpp
  • fd_reap +: modules.cpp, channels.cpp
  • file_cache +: modules.h
  • FOREACH_MOD +: modules.h
  • FOREACH_RESULT +: modules.h

    - g -

    +: modules.cpp, channels.cpp
  • log_file +: modules.cpp, channels.cpp
  • LogLevel +: modules.cpp, channels.cpp

    - m -

    - n -

    - p -

    +: commands.h

    - q -

    - s -

    - t -

      @@ -298,7 +300,8 @@ Here is a list of all file members with links to the files they belong to:

      mode.h
    • take_voice() : mode.h
    • TidyBan() : message.h
    • tidystring() -: message.h
    +: message.h
  • TIME +: users.cpp, servers.cpp, modules.cpp, channels.cpp

    - u -

    +: modules.cpp, channels.cpp
  • user_hash +: modules.cpp

    - v -

    - w -

    +: modules.cpp
  • WHOWAS_MAX +: modules.cpp, channels.cpp
  • WHOWAS_STALE +: modules.cpp, channels.cpp

    - z -

    -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 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 6e861d151..9622ea633 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -31,10 +31,10 @@
  • CC_ALLOW : users.h
  • CC_DENY : users.h
  • CONF_FILE_NOT_FOUND -: modules.h
  • CONF_NOT_A_NUMBER -: modules.h
  • CONF_NOT_UNSIGNED -: modules.h
  • CONF_VALUE_NOT_FOUND -: modules.h +: modules.h
  • CONF_NOT_A_NUMBER +: modules.h
  • CONF_NOT_UNSIGNED +: modules.h
  • CONF_VALUE_NOT_FOUND +: modules.h

    - d -

    - l -

    +
    Generated on Thu Apr 7 20:14:27 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 77d980b66..5bbe5eeab 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -37,7 +37,7 @@ : message.h
  • cmode() : message.h
  • common_channels() : message.h
  • createcommand() -: modules.h
  • cstatus() +: modules.h
  • cstatus() : message.h

    - d -

    +: modules.cpp

    - e -

    - g -

    - n -

    • NonBlocking() @@ -172,7 +174,7 @@
    • process_modes() : mode.h
    • process_module_umode() : mode.h
    • process_restricted_commands() -: commands.h
    +: commands.h

    - q -

    -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 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 4f8651a3a..7d5f2a301 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -10,23 +10,23 @@

    -
    Generated on Mon Apr 4 18:12:55 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 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 a4764fd01..f3ed933dd 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | i | l | m | n | p | r | s | u | w
    +
    a | b | c | d | e | f | i | l | m | n | p | r | s | t | u | w

    @@ -14,94 +14,98 @@

    - a -

    +: modules.cpp, channels.cpp
  • AdminName +: modules.cpp, channels.cpp
  • AdminNick +: modules.cpp, channels.cpp
  • auth_cookies +: modules.cpp, channels.cpp

    - b -

    +: modules.cpp, channels.cpp

    - c -

    +: modules.cpp
  • clientlist +: modules.cpp
  • cmdlist +: modules.cpp
  • config_f +: users.cpp, modules.cpp, channels.cpp
  • custom_mode_params +: channels.cpp

    - d -

    +: modules.cpp, channels.cpp
  • defaultRoute +: modules.cpp, channels.cpp
  • DieDelay +: modules.cpp, channels.cpp
  • diepass +: modules.cpp, channels.cpp
  • DieValue +: modules.cpp, channels.cpp

    - e -

    +: modules.cpp

    - f -

    +: modules.cpp, channels.cpp
  • fd_reap +: modules.cpp, channels.cpp

    - i -

    +: modules.cpp

    - l -

    +: modules.cpp, channels.cpp
  • log_file +: modules.cpp, channels.cpp
  • LogLevel +: modules.cpp, channels.cpp

    - m -

    +: modules.cpp, channels.cpp
  • modules +: modules.cpp, channels.cpp
  • MOTD +: modules.cpp
  • motd +: modules.cpp, channels.cpp

    - n -

    +: modules.cpp, channels.cpp
  • NetBufferSize +: modules.cpp, channels.cpp
  • Network +: modules.cpp, channels.cpp

    - p -

    +: modules.cpp, channels.cpp
  • ports +: modules.cpp, channels.cpp
  • PrefixQuit +: modules.cpp, channels.cpp

    - r -

    +: modules.cpp, channels.cpp
  • rules +: modules.cpp, channels.cpp
  • RULES +: modules.cpp

    - s -

    +: modules.cpp, channels.cpp
  • ServerName +: modules.cpp, channels.cpp
  • startup_time +: modules.cpp, channels.cpp +

    - t - +

    - u -

    +: modules.cpp, channels.cpp

    - w -

    -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +: modules.cpp
  • WHOWAS_MAX +: modules.cpp, channels.cpp
  • WHOWAS_STALE +: modules.cpp, channels.cpp +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 442453cb0..d0e0061f7 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -54,7 +54,7 @@
  • nspace::hash< string >
  • StrHashComp -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index c94c45c29..384976574 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@

    InspIRCd Documentation

    -


    Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:20 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 abbd2bd81..9a90fcde4 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 Mon Apr 4 18:12:47 2005 for InspIRCd by +

    Generated on Thu Apr 7 20:14:20 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 d07ea2c5d..09077536a 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 Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 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 3a8bbcd18..3752ef460 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -47,13 +47,13 @@ 00040 bool allowed_umode(char umode, char* sourcemodes,bool adding); 00041 bool process_module_umode(char umode, userrec* source, void* dest, bool adding); 00042 void handle_mode(char **parameters, int pcnt, userrec *user); -00043 void server_mode(char **parameters, int pcnt, userrec *user); +00043 void server_mode(char **parameters, int pcnt, userrec *user); 00044 void merge_mode(char **parameters, int pcnt); 00045 void merge_mode2(char **parameters, int pcnt, userrec* user); 00046 00047 00048 #endif -

    Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by +

    Generated on Thu Apr 7 20:14:20 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 9b8672283..42b01b489 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ -
    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 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 8b4297c73..5079fa4a4 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -72,716 +72,718 @@ 00065 extern std::vector<Module*> modules; 00066 extern std::vector<ircd_module*> factory; 00067 -00068 extern int LogLevel; -00069 extern char ServerName[MAXBUF]; -00070 extern char Network[MAXBUF]; -00071 extern char ServerDesc[MAXBUF]; -00072 extern char AdminName[MAXBUF]; -00073 extern char AdminEmail[MAXBUF]; -00074 extern char AdminNick[MAXBUF]; -00075 extern char diepass[MAXBUF]; -00076 extern char restartpass[MAXBUF]; -00077 extern char motd[MAXBUF]; -00078 extern char rules[MAXBUF]; -00079 extern char list[MAXBUF]; -00080 extern char PrefixQuit[MAXBUF]; -00081 extern char DieValue[MAXBUF]; -00082 -00083 extern int debugging; -00084 extern int WHOWAS_STALE; -00085 extern int WHOWAS_MAX; -00086 extern int DieDelay; -00087 extern time_t startup_time; -00088 extern int NetBufferSize; -00089 extern int MaxWhoResults; -00090 extern time_t nb_start; -00091 -00092 extern std::vector<int> fd_reap; -00093 extern std::vector<std::string> module_names; -00094 -00095 extern int boundPortCount; -00096 extern int portCount; -00097 extern int UDPportCount; -00098 extern int ports[MAXSOCKS]; -00099 extern int defaultRoute; -00100 -00101 extern std::vector<long> auth_cookies; -00102 extern std::stringstream config_f; -00103 -00104 extern serverrec* me[32]; +00068 extern time_t TIME; +00069 +00070 extern int LogLevel; +00071 extern char ServerName[MAXBUF]; +00072 extern char Network[MAXBUF]; +00073 extern char ServerDesc[MAXBUF]; +00074 extern char AdminName[MAXBUF]; +00075 extern char AdminEmail[MAXBUF]; +00076 extern char AdminNick[MAXBUF]; +00077 extern char diepass[MAXBUF]; +00078 extern char restartpass[MAXBUF]; +00079 extern char motd[MAXBUF]; +00080 extern char rules[MAXBUF]; +00081 extern char list[MAXBUF]; +00082 extern char PrefixQuit[MAXBUF]; +00083 extern char DieValue[MAXBUF]; +00084 +00085 extern int debugging; +00086 extern int WHOWAS_STALE; +00087 extern int WHOWAS_MAX; +00088 extern int DieDelay; +00089 extern time_t startup_time; +00090 extern int NetBufferSize; +00091 extern int MaxWhoResults; +00092 extern time_t nb_start; +00093 +00094 extern std::vector<int> fd_reap; +00095 extern std::vector<std::string> module_names; +00096 +00097 extern int boundPortCount; +00098 extern int portCount; +00099 extern int UDPportCount; +00100 extern int ports[MAXSOCKS]; +00101 extern int defaultRoute; +00102 +00103 extern std::vector<long> auth_cookies; +00104 extern std::stringstream config_f; 00105 -00106 extern FILE *log_file; +00106 extern serverrec* me[32]; 00107 -00108 -00109 namespace nspace -00110 { -00111 #ifdef GCC34 -00112 template<> struct hash<in_addr> -00113 #else -00114 template<> struct nspace::hash<in_addr> -00115 #endif -00116 { -00117 size_t operator()(const struct in_addr &a) const -00118 { -00119 size_t q; -00120 memcpy(&q,&a,sizeof(size_t)); -00121 return q; -00122 } -00123 }; -00124 #ifdef GCC34 -00125 template<> struct hash<string> -00126 #else -00127 template<> struct nspace::hash<string> -00128 #endif -00129 { -00130 size_t operator()(const string &s) const -00131 { -00132 char a[MAXBUF]; -00133 static struct hash<const char *> strhash; -00134 strlcpy(a,s.c_str(),MAXBUF); -00135 strlower(a); -00136 return strhash(a); -00137 } -00138 }; -00139 } -00140 -00141 struct StrHashComp -00142 { -00143 -00144 bool operator()(const string& s1, const string& s2) const -00145 { -00146 char a[MAXBUF],b[MAXBUF]; -00147 strlcpy(a,s1.c_str(),MAXBUF); -00148 strlcpy(b,s2.c_str(),MAXBUF); -00149 return (strcasecmp(a,b) == 0); -00150 } -00151 -00152 }; +00108 extern FILE *log_file; +00109 +00110 +00111 namespace nspace +00112 { +00113 #ifdef GCC34 +00114 template<> struct hash<in_addr> +00115 #else +00116 template<> struct nspace::hash<in_addr> +00117 #endif +00118 { +00119 size_t operator()(const struct in_addr &a) const +00120 { +00121 size_t q; +00122 memcpy(&q,&a,sizeof(size_t)); +00123 return q; +00124 } +00125 }; +00126 #ifdef GCC34 +00127 template<> struct hash<string> +00128 #else +00129 template<> struct nspace::hash<string> +00130 #endif +00131 { +00132 size_t operator()(const string &s) const +00133 { +00134 char a[MAXBUF]; +00135 static struct hash<const char *> strhash; +00136 strlcpy(a,s.c_str(),MAXBUF); +00137 strlower(a); +00138 return strhash(a); +00139 } +00140 }; +00141 } +00142 +00143 struct StrHashComp +00144 { +00145 +00146 bool operator()(const string& s1, const string& s2) const +00147 { +00148 char a[MAXBUF],b[MAXBUF]; +00149 strlcpy(a,s1.c_str(),MAXBUF); +00150 strlcpy(b,s2.c_str(),MAXBUF); +00151 return (strcasecmp(a,b) == 0); +00152 } 00153 -00154 struct InAddr_HashComp -00155 { -00156 -00157 bool operator()(const in_addr &s1, const in_addr &s2) const -00158 { -00159 size_t q; -00160 size_t p; -00161 -00162 memcpy(&q,&s1,sizeof(size_t)); -00163 memcpy(&p,&s2,sizeof(size_t)); -00164 -00165 return (q == p); -00166 } -00167 -00168 }; +00154 }; +00155 +00156 struct InAddr_HashComp +00157 { +00158 +00159 bool operator()(const in_addr &s1, const in_addr &s2) const +00160 { +00161 size_t q; +00162 size_t p; +00163 +00164 memcpy(&q,&s1,sizeof(size_t)); +00165 memcpy(&p,&s2,sizeof(size_t)); +00166 +00167 return (q == p); +00168 } 00169 -00170 -00171 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; -00172 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; -00173 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache; -00174 typedef std::deque<command_t> command_table; -00175 -00176 -00177 extern user_hash clientlist; -00178 extern chan_hash chanlist; -00179 extern user_hash whowas; -00180 extern command_table cmdlist; -00181 extern file_cache MOTD; -00182 extern file_cache RULES; -00183 extern address_cache IP; -00184 -00185 -00186 // class type for holding an extended mode character - internal to core +00170 }; +00171 +00172 +00173 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, StrHashComp> user_hash; +00174 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, StrHashComp> chan_hash; +00175 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, InAddr_HashComp> address_cache; +00176 typedef std::deque<command_t> command_table; +00177 +00178 +00179 extern user_hash clientlist; +00180 extern chan_hash chanlist; +00181 extern user_hash whowas; +00182 extern command_table cmdlist; +00183 extern file_cache MOTD; +00184 extern file_cache RULES; +00185 extern address_cache IP; +00186 00187 -00188 class ExtMode : public classbase -00189 { -00190 public: -00191 char modechar; -00192 int type; -00193 int params_when_on; -00194 int params_when_off; -00195 bool needsoper; -00196 bool list; -00197 ExtMode(char mc, int ty, bool oper, int p_on, int p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; -00198 }; -00199 -00200 typedef std::vector<ExtMode> ExtModeList; -00201 typedef ExtModeList::iterator ExtModeListIter; -00202 -00203 -00204 ExtModeList EMode; +00188 // class type for holding an extended mode character - internal to core +00189 +00190 class ExtMode : public classbase +00191 { +00192 public: +00193 char modechar; +00194 int type; +00195 int params_when_on; +00196 int params_when_off; +00197 bool needsoper; +00198 bool list; +00199 ExtMode(char mc, int ty, bool oper, int p_on, int p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; +00200 }; +00201 +00202 typedef std::vector<ExtMode> ExtModeList; +00203 typedef ExtModeList::iterator ExtModeListIter; +00204 00205 -00206 // returns true if an extended mode character is in use -00207 bool ModeDefined(char modechar, int type) -00208 { -00209 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); -00210 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00211 { -00212 if ((i->modechar == modechar) && (i->type == type)) -00213 { -00214 return true; -00215 } -00216 } -00217 return false; -00218 } -00219 -00220 bool ModeIsListMode(char modechar, int type) -00221 { -00222 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); -00223 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00224 { -00225 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -00226 { -00227 return true; -00228 } -00229 } -00230 return false; -00231 } -00232 -00233 bool ModeDefinedOper(char modechar, int type) -00234 { -00235 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); -00236 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00237 { -00238 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -00239 { -00240 return true; -00241 } -00242 } -00243 return false; -00244 } -00245 -00246 // returns number of parameters for a custom mode when it is switched on -00247 int ModeDefinedOn(char modechar, int type) -00248 { -00249 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00250 { -00251 if ((i->modechar == modechar) && (i->type == type)) -00252 { -00253 return i->params_when_on; -00254 } -00255 } -00256 return 0; -00257 } -00258 -00259 // returns number of parameters for a custom mode when it is switched on -00260 int ModeDefinedOff(char modechar, int type) -00261 { -00262 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00263 { -00264 if ((i->modechar == modechar) && (i->type == type)) -00265 { -00266 return i->params_when_off; -00267 } -00268 } -00269 return 0; -00270 } -00271 -00272 // returns true if an extended mode character is in use -00273 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) -00274 { -00275 if (ModeDefined(modechar,type)) { -00276 return false; -00277 } -00278 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -00279 return true; -00280 } -00281 -00282 // turns a mode into a listmode -00283 void ModeMakeList(char modechar) -00284 { -00285 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00286 { -00287 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -00288 { -00289 i->list = true; -00290 return; -00291 } -00292 } -00293 return; -00294 } -00295 -00296 // version is a simple class for holding a modules version number +00206 ExtModeList EMode; +00207 +00208 // returns true if an extended mode character is in use +00209 bool ModeDefined(char modechar, int type) +00210 { +00211 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); +00212 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00213 { +00214 if ((i->modechar == modechar) && (i->type == type)) +00215 { +00216 return true; +00217 } +00218 } +00219 return false; +00220 } +00221 +00222 bool ModeIsListMode(char modechar, int type) +00223 { +00224 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); +00225 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00226 { +00227 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +00228 { +00229 return true; +00230 } +00231 } +00232 return false; +00233 } +00234 +00235 bool ModeDefinedOper(char modechar, int type) +00236 { +00237 log(DEBUG,"Size of extmodes vector is %d",EMode.size()); +00238 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00239 { +00240 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +00241 { +00242 return true; +00243 } +00244 } +00245 return false; +00246 } +00247 +00248 // returns number of parameters for a custom mode when it is switched on +00249 int ModeDefinedOn(char modechar, int type) +00250 { +00251 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00252 { +00253 if ((i->modechar == modechar) && (i->type == type)) +00254 { +00255 return i->params_when_on; +00256 } +00257 } +00258 return 0; +00259 } +00260 +00261 // returns number of parameters for a custom mode when it is switched on +00262 int ModeDefinedOff(char modechar, int type) +00263 { +00264 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00265 { +00266 if ((i->modechar == modechar) && (i->type == type)) +00267 { +00268 return i->params_when_off; +00269 } +00270 } +00271 return 0; +00272 } +00273 +00274 // returns true if an extended mode character is in use +00275 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) +00276 { +00277 if (ModeDefined(modechar,type)) { +00278 return false; +00279 } +00280 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +00281 return true; +00282 } +00283 +00284 // turns a mode into a listmode +00285 void ModeMakeList(char modechar) +00286 { +00287 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00288 { +00289 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +00290 { +00291 i->list = true; +00292 return; +00293 } +00294 } +00295 return; +00296 } 00297 -00298 Version::Version(int major, int minor, int revision, int build) : Major(major), Minor(minor), Revision(revision), Build(build) { }; +00298 // version is a simple class for holding a modules version number 00299 -00300 // admin is a simple class for holding a server's administrative info +00300 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; 00301 -00302 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; +00302 // admin is a simple class for holding a server's administrative info 00303 -00304 Module::Module() { } -00305 Module::~Module() { } -00306 void Module::OnUserConnect(userrec* user) { } -00307 void Module::OnUserQuit(userrec* user) { } -00308 void Module::OnUserJoin(userrec* user, chanrec* channel) { } -00309 void Module::OnUserPart(userrec* user, chanrec* channel) { } -00310 void Module::OnPacketTransmit(char *p) { } -00311 void Module::OnPacketReceive(char *p) { } -00312 void Module::OnRehash() { } -00313 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } -00314 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } -00315 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } -00316 Version Module::GetVersion() { return Version(1,0,0,0); } -00317 void Module::OnOper(userrec* user) { }; -00318 void Module::OnInfo(userrec* user) { }; -00319 void Module::OnWhois(userrec* source, userrec* dest) { }; -00320 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; -00321 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00322 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00323 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; -00324 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; -00325 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; -00326 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } -00327 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } -00328 void Module::On005Numeric(std::string &output) { }; -00329 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; -00330 void Module::OnLoadModule(Module* mod,std::string name) { }; -00331 -00332 -00333 // server is a wrapper class that provides methods to all of the C-style -00334 // exports in the core -00335 // -00336 -00337 Server::Server() -00338 { -00339 } -00340 -00341 Server::~Server() -00342 { -00343 } -00344 -00345 void Server::SendOpers(std::string s) -00346 { -00347 WriteOpers("%s",s.c_str()); -00348 } -00349 -00350 bool Server::MatchText(std::string sliteral, std::string spattern) -00351 { -00352 char literal[MAXBUF],pattern[MAXBUF]; -00353 strlcpy(literal,sliteral.c_str(),MAXBUF); -00354 strlcpy(pattern,spattern.c_str(),MAXBUF); -00355 return match(literal,pattern); -00356 } -00357 -00358 void Server::SendToModeMask(std::string modes, int flags, std::string text) -00359 { -00360 WriteMode(modes.c_str(),flags,"%s",text.c_str()); -00361 } -00362 -00363 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) -00364 { -00365 return add_channel(user,cname.c_str(),key.c_str(),true); -00366 } -00367 -00368 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) -00369 { -00370 return del_channel(user,cname.c_str(),reason.c_str(),false); -00371 } -00372 -00373 chanuserlist Server::GetUsers(chanrec* chan) -00374 { -00375 chanuserlist userl; -00376 userl.clear(); -00377 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) -00378 { -00379 if (i->second) -00380 { -00381 if (has_channel(i->second,chan)) -00382 { -00383 if (isnick(i->second->nick)) -00384 { -00385 userl.push_back(i->second); -00386 } -00387 } -00388 } -00389 } -00390 return userl; -00391 } -00392 void Server::ChangeUserNick(userrec* user, std::string nickname) -00393 { -00394 force_nickchange(user,nickname.c_str()); -00395 } -00396 -00397 void Server::QuitUser(userrec* user, std::string reason) -00398 { -00399 send_network_quit(user->nick,reason.c_str()); -00400 kill_link(user,reason.c_str()); -00401 } -00402 -00403 bool Server::IsUlined(std::string server) -00404 { -00405 return is_uline(server.c_str()); -00406 } -00407 -00408 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) -00409 { -00410 call_handler(commandname.c_str(),parameters,pcnt,user); -00411 } -00412 -00413 void Server::Log(int level, std::string s) -00414 { -00415 log(level,"%s",s.c_str()); -00416 } -00417 -00418 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams) -00419 { -00420 createcommand(cmd,f,flags,minparams); -00421 } -00422 -00423 void Server::SendMode(char **parameters, int pcnt, userrec *user) -00424 { -00425 server_mode(parameters,pcnt,user); -00426 } -00427 -00428 void Server::Send(int Socket, std::string s) -00429 { -00430 Write(Socket,"%s",s.c_str()); -00431 } -00432 -00433 void Server::SendServ(int Socket, std::string s) -00434 { -00435 WriteServ(Socket,"%s",s.c_str()); -00436 } -00437 -00438 void Server::SendFrom(int Socket, userrec* User, std::string s) -00439 { -00440 WriteFrom(Socket,User,"%s",s.c_str()); -00441 } -00442 -00443 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) -00444 { -00445 if (!Source) -00446 { -00447 // if source is NULL, then the message originates from the local server -00448 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); -00449 } -00450 else -00451 { -00452 // otherwise it comes from the user specified -00453 WriteTo(Source,Dest,"%s",s.c_str()); -00454 } -00455 } -00456 -00457 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00458 { -00459 if (IncludeSender) -00460 { -00461 WriteChannel(Channel,User,"%s",s.c_str()); -00462 } -00463 else -00464 { -00465 ChanExceptSender(Channel,User,"%s",s.c_str()); -00466 } -00467 } -00468 -00469 bool Server::CommonChannels(userrec* u1, userrec* u2) -00470 { -00471 return (common_channels(u1,u2) != 0); -00472 } -00473 -00474 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00475 { -00476 if (IncludeSender) -00477 { -00478 WriteCommon(User,"%s",text.c_str()); -00479 } -00480 else -00481 { -00482 WriteCommonExcept(User,"%s",text.c_str()); -00483 } -00484 } -00485 -00486 void Server::SendWallops(userrec* User, std::string text) -00487 { -00488 WriteWallOps(User,false,"%s",text.c_str()); -00489 } -00490 -00491 void Server::ChangeHost(userrec* user, std::string host) -00492 { -00493 ChangeDisplayedHost(user,host.c_str()); -00494 } -00495 -00496 void Server::ChangeGECOS(userrec* user, std::string gecos) -00497 { -00498 ChangeName(user,gecos.c_str()); -00499 } -00500 -00501 bool Server::IsNick(std::string nick) -00502 { -00503 return (isnick(nick.c_str()) != 0); -00504 } -00505 -00506 userrec* Server::FindNick(std::string nick) -00507 { -00508 return Find(nick); -00509 } -00510 -00511 chanrec* Server::FindChannel(std::string channel) -00512 { -00513 return FindChan(channel.c_str()); -00514 } -00515 -00516 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00517 { -00518 return cmode(User,Chan); -00519 } -00520 -00521 bool Server::IsOnChannel(userrec* User, chanrec* Chan) -00522 { -00523 return has_channel(User,Chan); -00524 } -00525 -00526 std::string Server::GetServerName() -00527 { -00528 return getservername(); -00529 } -00530 -00531 std::string Server::GetNetworkName() -00532 { -00533 return getnetworkname(); -00534 } -00535 -00536 Admin Server::GetAdmin() -00537 { -00538 return Admin(getadminname(),getadminemail(),getadminnick()); -00539 } -00540 -00541 +00304 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; +00305 +00306 Module::Module() { } +00307 Module::~Module() { } +00308 void Module::OnUserConnect(userrec* user) { } +00309 void Module::OnUserQuit(userrec* user) { } +00310 void Module::OnUserJoin(userrec* user, chanrec* channel) { } +00311 void Module::OnUserPart(userrec* user, chanrec* channel) { } +00312 void Module::OnPacketTransmit(char *p) { } +00313 void Module::OnPacketReceive(char *p) { } +00314 void Module::OnRehash() { } +00315 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } +00316 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } +00317 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } +00318 Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } +00319 void Module::OnOper(userrec* user) { }; +00320 void Module::OnInfo(userrec* user) { }; +00321 void Module::OnWhois(userrec* source, userrec* dest) { }; +00322 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; +00323 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00324 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00325 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; +00326 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; +00327 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; +00328 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } +00329 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } +00330 void Module::On005Numeric(std::string &output) { }; +00331 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; +00332 void Module::OnLoadModule(Module* mod,std::string name) { }; +00333 +00334 +00335 // server is a wrapper class that provides methods to all of the C-style +00336 // exports in the core +00337 // +00338 +00339 Server::Server() +00340 { +00341 } +00342 +00343 Server::~Server() +00344 { +00345 } +00346 +00347 void Server::SendOpers(std::string s) +00348 { +00349 WriteOpers("%s",s.c_str()); +00350 } +00351 +00352 bool Server::MatchText(std::string sliteral, std::string spattern) +00353 { +00354 char literal[MAXBUF],pattern[MAXBUF]; +00355 strlcpy(literal,sliteral.c_str(),MAXBUF); +00356 strlcpy(pattern,spattern.c_str(),MAXBUF); +00357 return match(literal,pattern); +00358 } +00359 +00360 void Server::SendToModeMask(std::string modes, int flags, std::string text) +00361 { +00362 WriteMode(modes.c_str(),flags,"%s",text.c_str()); +00363 } +00364 +00365 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) +00366 { +00367 return add_channel(user,cname.c_str(),key.c_str(),true); +00368 } +00369 +00370 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) +00371 { +00372 return del_channel(user,cname.c_str(),reason.c_str(),false); +00373 } +00374 +00375 chanuserlist Server::GetUsers(chanrec* chan) +00376 { +00377 chanuserlist userl; +00378 userl.clear(); +00379 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) +00380 { +00381 if (i->second) +00382 { +00383 if (has_channel(i->second,chan)) +00384 { +00385 if (isnick(i->second->nick)) +00386 { +00387 userl.push_back(i->second); +00388 } +00389 } +00390 } +00391 } +00392 return userl; +00393 } +00394 void Server::ChangeUserNick(userrec* user, std::string nickname) +00395 { +00396 force_nickchange(user,nickname.c_str()); +00397 } +00398 +00399 void Server::QuitUser(userrec* user, std::string reason) +00400 { +00401 send_network_quit(user->nick,reason.c_str()); +00402 kill_link(user,reason.c_str()); +00403 } +00404 +00405 bool Server::IsUlined(std::string server) +00406 { +00407 return is_uline(server.c_str()); +00408 } +00409 +00410 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) +00411 { +00412 call_handler(commandname.c_str(),parameters,pcnt,user); +00413 } +00414 +00415 void Server::Log(int level, std::string s) +00416 { +00417 log(level,"%s",s.c_str()); +00418 } +00419 +00420 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) +00421 { +00422 createcommand(cmd,f,flags,minparams,source); +00423 } +00424 +00425 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00426 { +00427 server_mode(parameters,pcnt,user); +00428 } +00429 +00430 void Server::Send(int Socket, std::string s) +00431 { +00432 Write(Socket,"%s",s.c_str()); +00433 } +00434 +00435 void Server::SendServ(int Socket, std::string s) +00436 { +00437 WriteServ(Socket,"%s",s.c_str()); +00438 } +00439 +00440 void Server::SendFrom(int Socket, userrec* User, std::string s) +00441 { +00442 WriteFrom(Socket,User,"%s",s.c_str()); +00443 } +00444 +00445 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00446 { +00447 if (!Source) +00448 { +00449 // if source is NULL, then the message originates from the local server +00450 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); +00451 } +00452 else +00453 { +00454 // otherwise it comes from the user specified +00455 WriteTo(Source,Dest,"%s",s.c_str()); +00456 } +00457 } +00458 +00459 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00460 { +00461 if (IncludeSender) +00462 { +00463 WriteChannel(Channel,User,"%s",s.c_str()); +00464 } +00465 else +00466 { +00467 ChanExceptSender(Channel,User,"%s",s.c_str()); +00468 } +00469 } +00470 +00471 bool Server::CommonChannels(userrec* u1, userrec* u2) +00472 { +00473 return (common_channels(u1,u2) != 0); +00474 } +00475 +00476 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00477 { +00478 if (IncludeSender) +00479 { +00480 WriteCommon(User,"%s",text.c_str()); +00481 } +00482 else +00483 { +00484 WriteCommonExcept(User,"%s",text.c_str()); +00485 } +00486 } +00487 +00488 void Server::SendWallops(userrec* User, std::string text) +00489 { +00490 WriteWallOps(User,false,"%s",text.c_str()); +00491 } +00492 +00493 void Server::ChangeHost(userrec* user, std::string host) +00494 { +00495 ChangeDisplayedHost(user,host.c_str()); +00496 } +00497 +00498 void Server::ChangeGECOS(userrec* user, std::string gecos) +00499 { +00500 ChangeName(user,gecos.c_str()); +00501 } +00502 +00503 bool Server::IsNick(std::string nick) +00504 { +00505 return (isnick(nick.c_str()) != 0); +00506 } +00507 +00508 userrec* Server::FindNick(std::string nick) +00509 { +00510 return Find(nick); +00511 } +00512 +00513 chanrec* Server::FindChannel(std::string channel) +00514 { +00515 return FindChan(channel.c_str()); +00516 } +00517 +00518 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00519 { +00520 return cmode(User,Chan); +00521 } +00522 +00523 bool Server::IsOnChannel(userrec* User, chanrec* Chan) +00524 { +00525 return has_channel(User,Chan); +00526 } +00527 +00528 std::string Server::GetServerName() +00529 { +00530 return getservername(); +00531 } +00532 +00533 std::string Server::GetNetworkName() +00534 { +00535 return getnetworkname(); +00536 } +00537 +00538 Admin Server::GetAdmin() +00539 { +00540 return Admin(getadminname(),getadminemail(),getadminnick()); +00541 } 00542 -00543 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) -00544 { -00545 if (type == MT_SERVER) -00546 { -00547 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); -00548 return false; -00549 } -00550 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -00551 { -00552 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); -00553 return false; -00554 } -00555 if ((params_when_on>1) || (params_when_off>1)) -00556 { -00557 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); -00558 return false; -00559 } -00560 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -00561 } -00562 -00563 bool Server::AddExtendedListMode(char modechar) -00564 { -00565 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -00566 if (res) -00567 ModeMakeList(modechar); -00568 return res; -00569 } -00570 -00571 int Server::CountUsers(chanrec* c) -00572 { -00573 return usercount(c); -00574 } -00575 -00576 -00577 ConfigReader::ConfigReader() -00578 { -00579 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00580 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00581 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00582 if (!this->readerror) -00583 this->error = CONF_FILE_NOT_FOUND; -00584 } -00585 -00586 -00587 ConfigReader::~ConfigReader() -00588 { -00589 if (this->cache) -00590 delete this->cache; -00591 if (this->errorlog) -00592 delete this->errorlog; -00593 } -00594 -00595 -00596 ConfigReader::ConfigReader(std::string filename) -00597 { -00598 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00599 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00600 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -00601 if (!this->readerror) -00602 this->error = CONF_FILE_NOT_FOUND; -00603 }; -00604 -00605 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00606 { -00607 char val[MAXBUF]; -00608 char t[MAXBUF]; -00609 char n[MAXBUF]; -00610 strlcpy(t,tag.c_str(),MAXBUF); -00611 strlcpy(n,name.c_str(),MAXBUF); -00612 int res = ReadConf(cache,t,n,index,val); -00613 if (!res) -00614 { -00615 this->error = CONF_VALUE_NOT_FOUND; -00616 return ""; -00617 } -00618 return std::string(val); -00619 } -00620 -00621 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) -00622 { -00623 char val[MAXBUF]; -00624 char t[MAXBUF]; -00625 char n[MAXBUF]; -00626 strlcpy(t,tag.c_str(),MAXBUF); -00627 strlcpy(n,name.c_str(),MAXBUF); -00628 int res = ReadConf(cache,t,n,index,val); -00629 if (!res) -00630 { -00631 this->error = CONF_VALUE_NOT_FOUND; -00632 return false; -00633 } -00634 std::string s = val; -00635 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); -00636 } -00637 -00638 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) -00639 { -00640 char val[MAXBUF]; -00641 char t[MAXBUF]; -00642 char n[MAXBUF]; -00643 strlcpy(t,tag.c_str(),MAXBUF); -00644 strlcpy(n,name.c_str(),MAXBUF); -00645 int res = ReadConf(cache,t,n,index,val); -00646 if (!res) -00647 { -00648 this->error = CONF_VALUE_NOT_FOUND; -00649 return 0; -00650 } -00651 for (int i = 0; i < strlen(val); i++) -00652 { -00653 if (!isdigit(val[i])) -00654 { -00655 this->error = CONF_NOT_A_NUMBER; -00656 return 0; -00657 } -00658 } -00659 if ((needs_unsigned) && (atoi(val)<0)) -00660 { -00661 this->error = CONF_NOT_UNSIGNED; -00662 return 0; -00663 } -00664 return atoi(val); -00665 } -00666 -00667 long ConfigReader::GetError() -00668 { -00669 long olderr = this->error; -00670 this->error = 0; -00671 return olderr; -00672 } -00673 -00674 void ConfigReader::DumpErrors(bool bail, userrec* user) -00675 { -00676 if (bail) -00677 { -00678 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); -00679 exit(0); -00680 } -00681 else -00682 { -00683 char dataline[1024]; -00684 if (user) -00685 { -00686 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); -00687 while (!errorlog->eof()) -00688 { -00689 errorlog->getline(dataline,1024); -00690 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); -00691 } -00692 } -00693 else -00694 { -00695 WriteOpers("There were errors in the configuration file:",user->nick); -00696 while (!errorlog->eof()) -00697 { -00698 errorlog->getline(dataline,1024); -00699 WriteOpers(dataline); -00700 } -00701 } -00702 return; -00703 } -00704 } -00705 -00706 -00707 int ConfigReader::Enumerate(std::string tag) -00708 { -00709 return EnumConf(cache,tag.c_str()); -00710 } -00711 -00712 int ConfigReader::EnumerateValues(std::string tag, int index) -00713 { -00714 return EnumValues(cache, tag.c_str(), index); -00715 } -00716 -00717 bool ConfigReader::Verify() -00718 { -00719 return this->readerror; -00720 } -00721 -00722 -00723 FileReader::FileReader(std::string filename) -00724 { -00725 file_cache c; -00726 readfile(c,filename.c_str()); -00727 this->fc = c; -00728 } -00729 -00730 FileReader::FileReader() -00731 { -00732 } -00733 -00734 void FileReader::LoadFile(std::string filename) -00735 { -00736 file_cache c; -00737 readfile(c,filename.c_str()); -00738 this->fc = c; -00739 } -00740 -00741 -00742 FileReader::~FileReader() -00743 { -00744 } -00745 -00746 bool FileReader::Exists() -00747 { -00748 if (fc.size() == 0) -00749 { -00750 return(false); -00751 } -00752 else -00753 { -00754 return(true); -00755 } -00756 } -00757 -00758 std::string FileReader::GetLine(int x) -00759 { -00760 if ((x<0) || (x>fc.size())) -00761 return ""; -00762 return fc[x]; -00763 } -00764 -00765 int FileReader::FileSize() -00766 { -00767 return fc.size(); -00768 } -00769 -00770 -00771 std::vector<Module*> modules(255); -00772 std::vector<ircd_module*> factory(255); -00773 -00774 int MODCOUNT = -1; +00543 +00544 +00545 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) +00546 { +00547 if (type == MT_SERVER) +00548 { +00549 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); +00550 return false; +00551 } +00552 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +00553 { +00554 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); +00555 return false; +00556 } +00557 if ((params_when_on>1) || (params_when_off>1)) +00558 { +00559 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); +00560 return false; +00561 } +00562 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +00563 } +00564 +00565 bool Server::AddExtendedListMode(char modechar) +00566 { +00567 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +00568 if (res) +00569 ModeMakeList(modechar); +00570 return res; +00571 } +00572 +00573 int Server::CountUsers(chanrec* c) +00574 { +00575 return usercount(c); +00576 } +00577 +00578 +00579 ConfigReader::ConfigReader() +00580 { +00581 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00582 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00583 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00584 if (!this->readerror) +00585 this->error = CONF_FILE_NOT_FOUND; +00586 } +00587 +00588 +00589 ConfigReader::~ConfigReader() +00590 { +00591 if (this->cache) +00592 delete this->cache; +00593 if (this->errorlog) +00594 delete this->errorlog; +00595 } +00596 +00597 +00598 ConfigReader::ConfigReader(std::string filename) +00599 { +00600 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00601 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00602 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +00603 if (!this->readerror) +00604 this->error = CONF_FILE_NOT_FOUND; +00605 }; +00606 +00607 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00608 { +00609 char val[MAXBUF]; +00610 char t[MAXBUF]; +00611 char n[MAXBUF]; +00612 strlcpy(t,tag.c_str(),MAXBUF); +00613 strlcpy(n,name.c_str(),MAXBUF); +00614 int res = ReadConf(cache,t,n,index,val); +00615 if (!res) +00616 { +00617 this->error = CONF_VALUE_NOT_FOUND; +00618 return ""; +00619 } +00620 return std::string(val); +00621 } +00622 +00623 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00624 { +00625 char val[MAXBUF]; +00626 char t[MAXBUF]; +00627 char n[MAXBUF]; +00628 strlcpy(t,tag.c_str(),MAXBUF); +00629 strlcpy(n,name.c_str(),MAXBUF); +00630 int res = ReadConf(cache,t,n,index,val); +00631 if (!res) +00632 { +00633 this->error = CONF_VALUE_NOT_FOUND; +00634 return false; +00635 } +00636 std::string s = val; +00637 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); +00638 } +00639 +00640 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00641 { +00642 char val[MAXBUF]; +00643 char t[MAXBUF]; +00644 char n[MAXBUF]; +00645 strlcpy(t,tag.c_str(),MAXBUF); +00646 strlcpy(n,name.c_str(),MAXBUF); +00647 int res = ReadConf(cache,t,n,index,val); +00648 if (!res) +00649 { +00650 this->error = CONF_VALUE_NOT_FOUND; +00651 return 0; +00652 } +00653 for (int i = 0; i < strlen(val); i++) +00654 { +00655 if (!isdigit(val[i])) +00656 { +00657 this->error = CONF_NOT_A_NUMBER; +00658 return 0; +00659 } +00660 } +00661 if ((needs_unsigned) && (atoi(val)<0)) +00662 { +00663 this->error = CONF_NOT_UNSIGNED; +00664 return 0; +00665 } +00666 return atoi(val); +00667 } +00668 +00669 long ConfigReader::GetError() +00670 { +00671 long olderr = this->error; +00672 this->error = 0; +00673 return olderr; +00674 } +00675 +00676 void ConfigReader::DumpErrors(bool bail, userrec* user) +00677 { +00678 if (bail) +00679 { +00680 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); +00681 exit(0); +00682 } +00683 else +00684 { +00685 char dataline[1024]; +00686 if (user) +00687 { +00688 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); +00689 while (!errorlog->eof()) +00690 { +00691 errorlog->getline(dataline,1024); +00692 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); +00693 } +00694 } +00695 else +00696 { +00697 WriteOpers("There were errors in the configuration file:",user->nick); +00698 while (!errorlog->eof()) +00699 { +00700 errorlog->getline(dataline,1024); +00701 WriteOpers(dataline); +00702 } +00703 } +00704 return; +00705 } +00706 } +00707 +00708 +00709 int ConfigReader::Enumerate(std::string tag) +00710 { +00711 return EnumConf(cache,tag.c_str()); +00712 } +00713 +00714 int ConfigReader::EnumerateValues(std::string tag, int index) +00715 { +00716 return EnumValues(cache, tag.c_str(), index); +00717 } +00718 +00719 bool ConfigReader::Verify() +00720 { +00721 return this->readerror; +00722 } +00723 +00724 +00725 FileReader::FileReader(std::string filename) +00726 { +00727 file_cache c; +00728 readfile(c,filename.c_str()); +00729 this->fc = c; +00730 } +00731 +00732 FileReader::FileReader() +00733 { +00734 } +00735 +00736 void FileReader::LoadFile(std::string filename) +00737 { +00738 file_cache c; +00739 readfile(c,filename.c_str()); +00740 this->fc = c; +00741 } +00742 +00743 +00744 FileReader::~FileReader() +00745 { +00746 } +00747 +00748 bool FileReader::Exists() +00749 { +00750 if (fc.size() == 0) +00751 { +00752 return(false); +00753 } +00754 else +00755 { +00756 return(true); +00757 } +00758 } +00759 +00760 std::string FileReader::GetLine(int x) +00761 { +00762 if ((x<0) || (x>fc.size())) +00763 return ""; +00764 return fc[x]; +00765 } +00766 +00767 int FileReader::FileSize() +00768 { +00769 return fc.size(); +00770 } +00771 +00772 +00773 std::vector<Module*> modules(255); +00774 std::vector<ircd_module*> factory(255); 00775 -00776 -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +00776 int MODCOUNT = -1; +00777 +00778 +

    Generated on Thu Apr 7 20:14:21 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 1d49c4368..1874e8024 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -57,129 +57,131 @@

    Typedefs

    typedef nspace::hash_map<
    std::string, userrec *, nspace::hash<
    - string >, StrHashCompuser_hash + string >, StrHashCompuser_hash typedef nspace::hash_map<
    std::string, chanrec *, nspace::hash<
    - string >, StrHashCompchan_hash + string >, StrHashCompchan_hash typedef nspace::hash_map<
    in_addr, string *, nspace::hash<
    - in_addr >, InAddr_HashCompaddress_cache + in_addr >, InAddr_HashCompaddress_cache -typedef std::deque< command_tcommand_table +typedef std::deque< command_tcommand_table -typedef std::vector< ExtModeExtModeList +typedef std::vector< ExtModeExtModeList -typedef ExtModeList::iterator ExtModeListIter +typedef ExtModeList::iterator ExtModeListIter

    Functions

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

    Variables

    int MODCOUNT = -1 std::vector< Module * > modules -std::vector< ircd_module * > factory +std::vector< ircd_module * > factory -int LogLevel +time_t TIME -char ServerName [MAXBUF] +int LogLevel -char Network [MAXBUF] +char ServerName [MAXBUF] -char ServerDesc [MAXBUF] +char Network [MAXBUF] -char AdminName [MAXBUF] +char ServerDesc [MAXBUF] -char AdminEmail [MAXBUF] +char AdminName [MAXBUF] -char AdminNick [MAXBUF] +char AdminEmail [MAXBUF] -char diepass [MAXBUF] +char AdminNick [MAXBUF] -char restartpass [MAXBUF] +char diepass [MAXBUF] -char motd [MAXBUF] +char restartpass [MAXBUF] -char rules [MAXBUF] +char motd [MAXBUF] -char list [MAXBUF] +char rules [MAXBUF] -char PrefixQuit [MAXBUF] +char list [MAXBUF] -char DieValue [MAXBUF] +char PrefixQuit [MAXBUF] -int debugging +char DieValue [MAXBUF] -int WHOWAS_STALE +int debugging -int WHOWAS_MAX +int WHOWAS_STALE -int DieDelay +int WHOWAS_MAX -time_t startup_time +int DieDelay -int NetBufferSize +time_t startup_time -int MaxWhoResults +int NetBufferSize -time_t nb_start +int MaxWhoResults -std::vector< int > fd_reap +time_t nb_start -std::vector< std::string > module_names +std::vector< int > fd_reap -int boundPortCount +std::vector< std::string > module_names -int portCount +int boundPortCount -int UDPportCount +int portCount -int ports [MAXSOCKS] +int UDPportCount -int defaultRoute +int ports [MAXSOCKS] -std::vector< long > auth_cookies +int defaultRoute -std::stringstream config_f +std::vector< long > auth_cookies -serverrecme [32] +std::stringstream config_f -FILE * log_file +serverrecme [32] -user_hash clientlist +FILE * log_file -chan_hash chanlist +user_hash clientlist -user_hash whowas +chan_hash chanlist -command_table cmdlist +user_hash whowas -file_cache MOTD +command_table cmdlist -file_cache RULES +file_cache MOTD -address_cache IP +file_cache RULES -ExtModeList EMode +address_cache IP + +ExtModeList EMode

    Define Documentation

    @@ -208,13 +210,13 @@ Definition at line 59 o

    Typedef Documentation

    -

    +

    @@ -229,16 +231,16 @@ Definition at line 59 o

    -Definition at line 173 of file modules.cpp. +Definition at line 175 of file modules.cpp.

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

    +

    @@ -253,16 +255,16 @@ Definition at line 173

    -Definition at line 172 of file modules.cpp. +Definition at line 174 of file modules.cpp.

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

    +

    @@ -277,16 +279,16 @@ Definition at line 172

    -Definition at line 174 of file modules.cpp. +Definition at line 176 of file modules.cpp.

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

    +

    @@ -301,16 +303,16 @@ Definition at line 174

    -Definition at line 200 of file modules.cpp. +Definition at line 202 of file modules.cpp.

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

    +

    @@ -325,18 +327,18 @@ Definition at line 200

    -Definition at line 201 of file modules.cpp. +Definition at line 203 of file modules.cpp.

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

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

    +

    @@ -351,11 +353,11 @@ Referenced by ModeDefined()

    -Definition at line 171 of file modules.cpp. +Definition at line 173 of file modules.cpp.

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


    Function Documentation

    -

    +

    @@ -410,29 +412,29 @@ Definition at line 171

    -Definition at line 273 of file modules.cpp. +Definition at line 275 of file modules.cpp.

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

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

    -

    00274 {
    -00275         if (ModeDefined(modechar,type)) {
    -00276                 return false;
    -00277         }
    -00278         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    -00279         return true;
    -00280 }
    +
    00276 {
    +00277         if (ModeDefined(modechar,type)) {
    +00278                 return false;
    +00279         }
    +00280         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    +00281         return true;
    +00282 }
     
    -

    +

    @@ -1196,13 +1198,13 @@ Referenced by DoAddExtended Definition at line 66 of file modules.cpp.
    - + @@ -455,7 +457,7 @@ Referenced by Server::AddEx
    std::vector<ircd_module*> factory std::vector<ircd_module*> factory 255 
    -

    +

    @@ -492,27 +494,27 @@ Referenced by Server::AddEx

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

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

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

    -

    00208 {
    -00209         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
    -00210         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00211         {
    -00212                 if ((i->modechar == modechar) && (i->type == type))
    -00213                 {
    -00214                         return true;
    -00215                 }
    -00216         }
    -00217         return false;
    -00218 }
    +
    00210 {
    +00211         log(DEBUG,"Size of extmodes vector is %d",EMode.size());
    +00212         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00213         {
    +00214                 if ((i->modechar == modechar) && (i->type == type))
    +00215                 {
    +00216                         return true;
    +00217                 }
    +00218         }
    +00219         return false;
    +00220 }
     
    -

    +

    @@ -549,24 +551,24 @@ Referenced by DoAddExtended

    -Definition at line 260 of file modules.cpp. +Definition at line 262 of file modules.cpp.

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

    -

    00261 {
    -00262         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00263         {
    -00264                 if ((i->modechar == modechar) && (i->type == type))
    -00265                 {
    -00266                         return i->params_when_off;
    -00267                 }
    -00268         }
    -00269         return 0;
    -00270 }
    +
    00263 {
    +00264         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00265         {
    +00266                 if ((i->modechar == modechar) && (i->type == type))
    +00267                 {
    +00268                         return i->params_when_off;
    +00269                 }
    +00270         }
    +00271         return 0;
    +00272 }
     
    -

    +

    @@ -603,24 +605,24 @@ References EMode, and <

    -Definition at line 247 of file modules.cpp. +Definition at line 249 of file modules.cpp.

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

    -

    00248 {
    -00249         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00250         {
    -00251                 if ((i->modechar == modechar) && (i->type == type))
    -00252                 {
    -00253                         return i->params_when_on;
    -00254                 }
    -00255         }
    -00256         return 0;
    -00257 }
    +
    00250 {
    +00251         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00252         {
    +00253                 if ((i->modechar == modechar) && (i->type == type))
    +00254                 {
    +00255                         return i->params_when_on;
    +00256                 }
    +00257         }
    +00258         return 0;
    +00259 }
     
    -

    +

    @@ -657,25 +659,25 @@ References EMode, and <

    -Definition at line 233 of file modules.cpp. +Definition at line 235 of file modules.cpp.

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

    -

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

    +

    @@ -712,25 +714,25 @@ References DEBUG,

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

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

    -

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

    +

    @@ -758,27 +760,27 @@ References DEBUG,

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

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

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

    -

    00284 {
    -00285         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00286         {
    -00287                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    -00288                 {
    -00289                         i->list = true;
    -00290                         return;
    -00291                 }
    -00292         }
    -00293         return;
    -00294 }
    +
    00286 {
    +00287         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00288         {
    +00289                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    +00290                 {
    +00291                         i->list = true;
    +00292                         return;
    +00293                 }
    +00294         }
    +00295         return;
    +00296 }
     
    -

    +

    @@ -808,13 +810,13 @@ Referenced by Server::AddEx


    Variable Documentation

    -

    +

    @@ -829,16 +831,16 @@ Referenced by Server::AddEx

    -Definition at line 73 of file modules.cpp. +Definition at line 75 of file modules.cpp.

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

    +

    @@ -853,16 +855,16 @@ Definition at line 73 o

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

    -
    char AdminName[MAXBUF] + char AdminName[MAXBUF]
    -

    +

    @@ -877,16 +879,16 @@ Definition at line 72 o

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

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

    +

    @@ -901,16 +903,16 @@ Definition at line 74 o

    -Definition at line 101 of file modules.cpp. +Definition at line 103 of file modules.cpp.

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

    +

    @@ -925,16 +927,16 @@ Definition at line 101

    -Definition at line 95 of file modules.cpp. +Definition at line 97 of file modules.cpp.

    -
    int boundPortCount + int boundPortCount
    -

    +

    @@ -949,16 +951,16 @@ Definition at line 95 o

    -Definition at line 178 of file modules.cpp. +Definition at line 180 of file modules.cpp.

    -
    chan_hash chanlist + chan_hash chanlist
    -

    +

    @@ -973,18 +975,18 @@ Definition at line 178

    -Definition at line 177 of file modules.cpp. +Definition at line 179 of file modules.cpp.

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

    -
    user_hash clientlist + user_hash clientlist
    -

    +

    @@ -999,10 +1001,10 @@ Referenced by Server::GetUs

    -Definition at line 180 of file modules.cpp. +Definition at line 182 of file modules.cpp.

    -
    command_table cmdlist + command_table cmdlist
    -

    +

    +Definition at line 104 of file modules.cpp.
    @@ -1023,16 +1025,16 @@ Definition at line 180

    -Definition at line 102 of file modules.cpp.

    -

    +

    @@ -1047,16 +1049,16 @@ Definition at line 102

    -Definition at line 83 of file modules.cpp. +Definition at line 85 of file modules.cpp.

    -
    int debugging + int debugging
    -

    +

    @@ -1071,16 +1073,16 @@ Definition at line 83 o

    -Definition at line 99 of file modules.cpp. +Definition at line 101 of file modules.cpp.

    -
    int defaultRoute + int defaultRoute
    -

    +

    @@ -1095,16 +1097,16 @@ Definition at line 99 o

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

    -
    int DieDelay + int DieDelay
    -

    +

    @@ -1119,16 +1121,16 @@ Definition at line 86 o

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

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

    +

    @@ -1143,16 +1145,16 @@ Definition at line 75 o

    -Definition at line 81 of file modules.cpp. +Definition at line 83 of file modules.cpp.

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

    +

    @@ -1167,9 +1169,9 @@ Definition at line 81 o

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

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

    -
    ExtModeList EMode + ExtModeList EMode

    @@ -1178,7 +1180,7 @@ Referenced by DoAddExtended

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

    +

    @@ -1217,16 +1219,16 @@ Definition at line 66 o

    -Definition at line 92 of file modules.cpp. +Definition at line 94 of file modules.cpp.

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

    +

    @@ -1241,16 +1243,16 @@ Definition at line 92 o

    -Definition at line 183 of file modules.cpp. +Definition at line 185 of file modules.cpp.

    -
    address_cache IP + address_cache IP
    -

    +

    @@ -1265,16 +1267,16 @@ Definition at line 183

    -Definition at line 79 of file modules.cpp. +Definition at line 81 of file modules.cpp.

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

    +

    @@ -1289,16 +1291,16 @@ Definition at line 79 o

    -Definition at line 106 of file modules.cpp. +Definition at line 108 of file modules.cpp.

    -
    FILE* log_file + FILE* log_file
    -

    +

    @@ -1313,16 +1315,16 @@ Definition at line 106

    -Definition at line 68 of file modules.cpp. +Definition at line 70 of file modules.cpp.

    -
    int LogLevel + int LogLevel
    -

    +

    @@ -1337,16 +1339,16 @@ Definition at line 68 o

    -Definition at line 89 of file modules.cpp. +Definition at line 91 of file modules.cpp.

    -
    int MaxWhoResults + int MaxWhoResults
    -

    +

    @@ -1361,7 +1363,7 @@ Definition at line 89 o

    -Definition at line 104 of file modules.cpp. +Definition at line 106 of file modules.cpp.

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

    @@ -1385,16 +1387,16 @@ Definition at line 104

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

    +

    @@ -1409,7 +1411,7 @@ Definition at line 774

    -Definition at line 93 of file modules.cpp. +Definition at line 95 of file modules.cpp.

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

    @@ -1436,13 +1438,13 @@ Definition at line 93 o Definition at line 65 of file modules.cpp. -

    +

    @@ -1457,16 +1459,16 @@ Definition at line 65 o

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

    -
    file_cache MOTD + file_cache MOTD
    -

    +

    @@ -1481,16 +1483,40 @@ Definition at line 181

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

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

    +

    + +
    -
    time_t nb_start + time_t nb_start +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 92 of file modules.cpp.

    +

    + + + @@ -1508,13 +1534,13 @@ Definition at line 77 o Definition at line 90 of file modules.cpp.
    + + +
    int NetBufferSize
    -

    +

    @@ -1529,16 +1555,16 @@ Definition at line 90 o

    -Definition at line 88 of file modules.cpp. +Definition at line 72 of file modules.cpp.

    -
    int NetBufferSize + char Network[MAXBUF]
    -

    +

    @@ -1553,16 +1579,16 @@ Definition at line 88 o

    -Definition at line 70 of file modules.cpp. +Definition at line 98 of file modules.cpp.

    -
    char Network[MAXBUF] + int portCount
    -

    +

    @@ -1577,16 +1603,16 @@ Definition at line 70 o

    -Definition at line 96 of file modules.cpp. +Definition at line 100 of file modules.cpp.

    -
    int portCount + int ports[MAXSOCKS]
    -

    +

    @@ -1601,16 +1627,16 @@ Definition at line 96 o

    -Definition at line 98 of file modules.cpp. +Definition at line 82 of file modules.cpp.

    -
    int ports[MAXSOCKS] + char PrefixQuit[MAXBUF]
    -

    +

    @@ -1625,16 +1651,16 @@ Definition at line 98 o

    -Definition at line 80 of file modules.cpp. +Definition at line 78 of file modules.cpp.

    -
    char PrefixQuit[MAXBUF] + char restartpass[MAXBUF]
    -

    +

    @@ -1649,16 +1675,16 @@ Definition at line 80 o

    -Definition at line 76 of file modules.cpp. +Definition at line 184 of file modules.cpp.

    -
    char restartpass[MAXBUF] + file_cache RULES
    -

    +

    @@ -1673,16 +1699,16 @@ Definition at line 76 o

    -Definition at line 182 of file modules.cpp. +Definition at line 80 of file modules.cpp.

    -
    file_cache RULES + char rules[MAXBUF]
    -

    +

    @@ -1697,16 +1723,16 @@ Definition at line 182

    -Definition at line 78 of file modules.cpp. +Definition at line 73 of file modules.cpp.

    -
    char rules[MAXBUF] + char ServerDesc[MAXBUF]
    -

    +

    @@ -1724,13 +1750,13 @@ Definition at line 78 o Definition at line 71 of file modules.cpp.
    -
    char ServerDesc[MAXBUF] + char ServerName[MAXBUF]
    -

    +

    @@ -1745,16 +1771,16 @@ Definition at line 71 o

    -Definition at line 69 of file modules.cpp. +Definition at line 89 of file modules.cpp.

    -
    char ServerName[MAXBUF] + time_t startup_time
    -

    +

    @@ -1769,16 +1795,16 @@ Definition at line 69 o

    -Definition at line 87 of file modules.cpp. +Definition at line 68 of file modules.cpp.

    -
    time_t startup_time + time_t TIME
    -

    +

    @@ -1793,16 +1819,16 @@ Definition at line 87 o

    -Definition at line 97 of file modules.cpp. +Definition at line 99 of file modules.cpp.

    -
    int UDPportCount + int UDPportCount
    -

    +

    @@ -1817,16 +1843,16 @@ Definition at line 97 o

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

    -
    user_hash whowas + user_hash whowas
    -

    +

    @@ -1841,16 +1867,16 @@ Definition at line 179

    -Definition at line 85 of file modules.cpp. +Definition at line 87 of file modules.cpp.

    -
    int WHOWAS_MAX + int WHOWAS_MAX
    -

    +

    @@ -1865,10 +1891,10 @@ Definition at line 85 o

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

    -
    int WHOWAS_STALE + int WHOWAS_STALE
    -


    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 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 af553f1c7..80f93ef15 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -55,245 +55,252 @@ 00048 #define AC_INVITE 7 // a user is being invited 00049 #define AC_GENERAL_MODE 8 // a user channel mode is being changed 00050 -00051 #include "dynamic.h" -00052 #include "base.h" -00053 #include "ctables.h" -00054 #include <string> -00055 #include <deque> -00056 #include <sstream> -00057 -00060 typedef std::deque<std::string> file_cache; -00061 typedef file_cache string_list; -00062 -00065 typedef std::deque<userrec*> chanuserlist; -00066 -00067 -00068 // This #define allows us to call a method in all -00069 // loaded modules in a readable simple way, e.g.: -00070 // 'FOREACH_MOD OnConnect(user);' -00071 -00072 #define FOREACH_MOD for (int i = 0; i <= MODCOUNT; i++) modules[i]-> -00073 -00074 // This define is similar to the one above but returns a result in MOD_RESULT. -00075 // The first module to return a nonzero result is the value to be accepted, -00076 // and any modules after are ignored. -00077 -00078 // ********************************************************************************************* -00079 -00080 #define FOREACH_RESULT(x) { MOD_RESULT = 0; \ -00081 for (int i = 0; i <= MODCOUNT; i++) { \ -00082 int res = modules[i]->x ; \ -00083 if (res != 0) { \ -00084 MOD_RESULT = res; \ -00085 break; \ -00086 } \ -00087 } \ -00088 } -00089 -00090 // ********************************************************************************************* -00091 -00092 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams); -00093 extern void server_mode(char **parameters, int pcnt, userrec *user); -00094 -00095 // class Version holds the version information of a Module, returned -00096 // by Module::GetVersion (thanks RD) -00097 -00102 class Version : public classbase -00103 { -00104 public: -00105 const int Major, Minor, Revision, Build; -00106 Version(int major, int minor, int revision, int build); -00107 }; -00108 -00114 class Admin : public classbase -00115 { -00116 public: -00117 const std::string Name, Email, Nick; -00118 Admin(std::string name, std::string email, std::string nick); -00119 }; -00120 -00126 class Module : public classbase -00127 { -00128 public: -00129 -00133 Module(); -00134 -00138 virtual ~Module(); -00139 -00144 virtual Version GetVersion(); -00145 -00149 virtual void OnUserConnect(userrec* user); -00150 -00154 virtual void OnUserQuit(userrec* user); -00155 -00160 virtual void OnUserJoin(userrec* user, chanrec* channel); -00161 -00166 virtual void OnUserPart(userrec* user, chanrec* channel); -00167 -00174 virtual void OnPacketTransmit(char *p); -00175 -00183 virtual void OnPacketReceive(char *p); -00184 -00190 virtual void OnRehash(); +00051 // used to define a set of behavior bits for a module +00052 +00053 #define VF_STATIC 1 // module is static, cannot be /unloadmodule'd +00054 #define VF_VENDOR 2 // module is a vendor module (came in the original tarball, not 3rd party) +00055 #define VF_SERVICEPROVIDER 4 // module provides a service to other modules (can be a dependency) +00056 #define VF_COMMON 8 // module needs to be common on all servers in a mesh to link +00057 +00058 #include "dynamic.h" +00059 #include "base.h" +00060 #include "ctables.h" +00061 #include <string> +00062 #include <deque> +00063 #include <sstream> +00064 +00067 typedef std::deque<std::string> file_cache; +00068 typedef file_cache string_list; +00069 +00072 typedef std::deque<userrec*> chanuserlist; +00073 +00074 +00075 // This #define allows us to call a method in all +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]-> +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, +00083 // and any modules after are ignored. +00084 +00085 // ********************************************************************************************* +00086 +00087 #define FOREACH_RESULT(x) { MOD_RESULT = 0; \ +00088 for (int i = 0; i <= MODCOUNT; i++) { \ +00089 int res = modules[i]->x ; \ +00090 if (res != 0) { \ +00091 MOD_RESULT = res; \ +00092 break; \ +00093 } \ +00094 } \ +00095 } +00096 +00097 // ********************************************************************************************* +00098 +00099 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +00100 extern void server_mode(char **parameters, int pcnt, userrec *user); +00101 +00102 // class Version holds the version information of a Module, returned +00103 // by Module::GetVersion (thanks RD) +00104 +00109 class Version : public classbase +00110 { +00111 public: +00112 const int Major, Minor, Revision, Build, Flags; +00113 Version(int major, int minor, int revision, int build, int flags); +00114 }; +00115 +00121 class Admin : public classbase +00122 { +00123 public: +00124 const std::string Name, Email, Nick; +00125 Admin(std::string name, std::string email, std::string nick); +00126 }; +00127 +00133 class Module : public classbase +00134 { +00135 public: +00136 +00140 Module(); +00141 +00145 virtual ~Module(); +00146 +00151 virtual Version GetVersion(); +00152 +00156 virtual void OnUserConnect(userrec* user); +00157 +00161 virtual void OnUserQuit(userrec* user); +00162 +00167 virtual void OnUserJoin(userrec* user, chanrec* channel); +00168 +00173 virtual void OnUserPart(userrec* user, chanrec* channel); +00174 +00181 virtual void OnPacketTransmit(char *p); +00182 +00190 virtual void OnPacketReceive(char *p); 00191 -00200 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); -00201 -00211 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); -00212 -00226 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); -00227 -00228 -00233 virtual void OnOper(userrec* user); +00197 virtual void OnRehash(); +00198 +00207 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); +00208 +00218 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); +00219 +00233 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); 00234 -00243 virtual void OnInfo(userrec* user); -00244 -00249 virtual void OnWhois(userrec* source, userrec* dest); -00250 -00256 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); +00235 +00240 virtual void OnOper(userrec* user); +00241 +00250 virtual void OnInfo(userrec* user); +00251 +00256 virtual void OnWhois(userrec* source, userrec* dest); 00257 -00266 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); -00267 -00279 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); -00280 -00288 virtual int OnUserPreNick(userrec* user, std::string newnick); -00289 -00297 virtual void OnUserPostNick(userrec* user, std::string oldnick); -00298 -00320 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); -00321 -00327 virtual string_list OnUserSync(userrec* user); +00263 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); +00264 +00273 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); +00274 +00286 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); +00287 +00295 virtual int OnUserPreNick(userrec* user, std::string newnick); +00296 +00304 virtual void OnUserPostNick(userrec* user, std::string oldnick); +00305 +00327 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); 00328 -00334 virtual string_list OnChannelSync(chanrec* chan); +00334 virtual string_list OnUserSync(userrec* user); 00335 -00339 virtual void On005Numeric(std::string &output); -00340 -00350 virtual int OnKill(userrec* source, userrec* dest, std::string reason); -00351 -00362 virtual void OnLoadModule(Module* mod,std::string name); -00363 }; -00364 -00365 -00371 class Server : public classbase -00372 { -00373 public: -00377 Server(); -00381 virtual ~Server(); -00382 -00386 virtual void SendOpers(std::string s); -00391 virtual void Log(int level, std::string s); -00396 virtual void Send(int Socket, std::string s); -00401 virtual void SendServ(int Socket, std::string s); -00406 virtual void SendFrom(int Socket, userrec* User, std::string s); -00421 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -00428 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -00433 virtual bool CommonChannels(userrec* u1, userrec* u2); -00441 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -00446 virtual void SendWallops(userrec* User, std::string text); -00447 -00451 virtual bool IsNick(std::string nick); -00455 virtual int CountUsers(chanrec* c); -00459 virtual userrec* FindNick(std::string nick); -00463 virtual chanrec* FindChannel(std::string channel); -00468 virtual std::string ChanMode(userrec* User, chanrec* Chan); -00472 virtual bool IsOnChannel(userrec* User, chanrec* Chan); -00475 virtual std::string GetServerName(); -00478 virtual std::string GetNetworkName(); -00484 virtual Admin GetAdmin(); -00503 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); -00504 -00526 virtual bool AddExtendedListMode(char modechar); -00527 -00542 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams); -00543 -00565 virtual void SendMode(char **parameters, int pcnt, userrec *user); -00566 -00579 virtual void SendToModeMask(std::string modes, int flags, std::string text); -00580 -00586 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); -00587 -00593 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); -00594 -00600 virtual void ChangeUserNick(userrec* user, std::string nickname); -00601 -00612 virtual void QuitUser(userrec* user, std::string reason); -00613 -00618 virtual bool MatchText(std::string sliteral, std::string spattern); -00619 -00631 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); -00632 -00638 virtual void ChangeHost(userrec* user, std::string host); -00639 -00645 virtual void ChangeGECOS(userrec* user, std::string gecos); -00646 -00655 virtual bool IsUlined(std::string server); +00341 virtual string_list OnChannelSync(chanrec* chan); +00342 +00346 virtual void On005Numeric(std::string &output); +00347 +00357 virtual int OnKill(userrec* source, userrec* dest, std::string reason); +00358 +00369 virtual void OnLoadModule(Module* mod,std::string name); +00370 }; +00371 +00372 +00378 class Server : public classbase +00379 { +00380 public: +00384 Server(); +00388 virtual ~Server(); +00389 +00393 virtual void SendOpers(std::string s); +00398 virtual void Log(int level, std::string s); +00403 virtual void Send(int Socket, std::string s); +00408 virtual void SendServ(int Socket, std::string s); +00413 virtual void SendFrom(int Socket, userrec* User, std::string s); +00428 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); +00435 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); +00440 virtual bool CommonChannels(userrec* u1, userrec* u2); +00448 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); +00453 virtual void SendWallops(userrec* User, std::string text); +00454 +00458 virtual bool IsNick(std::string nick); +00462 virtual int CountUsers(chanrec* c); +00466 virtual userrec* FindNick(std::string nick); +00470 virtual chanrec* FindChannel(std::string channel); +00475 virtual std::string ChanMode(userrec* User, chanrec* Chan); +00479 virtual bool IsOnChannel(userrec* User, chanrec* Chan); +00482 virtual std::string GetServerName(); +00485 virtual std::string GetNetworkName(); +00491 virtual Admin GetAdmin(); +00510 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); +00511 +00533 virtual bool AddExtendedListMode(char modechar); +00534 +00552 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +00553 +00575 virtual void SendMode(char **parameters, int pcnt, userrec *user); +00576 +00589 virtual void SendToModeMask(std::string modes, int flags, std::string text); +00590 +00596 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); +00597 +00603 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); +00604 +00610 virtual void ChangeUserNick(userrec* user, std::string nickname); +00611 +00622 virtual void QuitUser(userrec* user, std::string reason); +00623 +00628 virtual bool MatchText(std::string sliteral, std::string spattern); +00629 +00641 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); +00642 +00648 virtual void ChangeHost(userrec* user, std::string host); +00649 +00655 virtual void ChangeGECOS(userrec* user, std::string gecos); 00656 -00660 virtual chanuserlist GetUsers(chanrec* chan); -00661 -00662 }; -00663 -00664 #define CONF_NOT_A_NUMBER 0x000010 -00665 #define CONF_NOT_UNSIGNED 0x000080 -00666 #define CONF_VALUE_NOT_FOUND 0x000100 -00667 #define CONF_FILE_NOT_FOUND 0x000200 -00668 -00675 class ConfigReader : public classbase -00676 { -00677 protected: -00683 std::stringstream *cache; -00684 std::stringstream *errorlog; -00687 bool readerror; -00688 long error; -00689 -00690 public: -00695 ConfigReader(); // default constructor reads ircd.conf -00699 ConfigReader(std::string filename); // read a module-specific config -00703 ~ConfigReader(); -00708 std::string ReadValue(std::string tag, std::string name, int index); -00714 bool ReadFlag(std::string tag, std::string name, int index); -00723 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); -00728 long GetError(); -00735 int Enumerate(std::string tag); -00740 bool Verify(); -00747 void DumpErrors(bool bail,userrec* user); -00748 -00754 int EnumerateValues(std::string tag, int index); -00755 }; -00756 -00757 +00665 virtual bool IsUlined(std::string server); +00666 +00670 virtual chanuserlist GetUsers(chanrec* chan); +00671 +00672 }; +00673 +00674 #define CONF_NOT_A_NUMBER 0x000010 +00675 #define CONF_NOT_UNSIGNED 0x000080 +00676 #define CONF_VALUE_NOT_FOUND 0x000100 +00677 #define CONF_FILE_NOT_FOUND 0x000200 +00678 +00685 class ConfigReader : public classbase +00686 { +00687 protected: +00693 std::stringstream *cache; +00694 std::stringstream *errorlog; +00697 bool readerror; +00698 long error; +00699 +00700 public: +00705 ConfigReader(); // default constructor reads ircd.conf +00709 ConfigReader(std::string filename); // read a module-specific config +00713 ~ConfigReader(); +00718 std::string ReadValue(std::string tag, std::string name, int index); +00724 bool ReadFlag(std::string tag, std::string name, int index); +00733 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); +00738 long GetError(); +00745 int Enumerate(std::string tag); +00750 bool Verify(); +00757 void DumpErrors(bool bail,userrec* user); 00758 -00764 class FileReader : public classbase -00765 { -00766 file_cache fc; -00767 public: -00772 FileReader(); -00773 -00779 FileReader(std::string filename); -00780 -00784 ~FileReader(); -00785 -00791 void LoadFile(std::string filename); -00792 -00796 bool Exists(); -00797 -00802 std::string GetLine(int x); -00803 -00809 int FileSize(); -00810 }; -00811 -00812 -00819 class ModuleFactory : public classbase -00820 { -00821 public: -00822 ModuleFactory() { } -00823 virtual ~ModuleFactory() { } -00828 virtual Module * CreateModule() = 0; -00829 }; -00830 -00831 -00832 typedef DLLFactory<ModuleFactory> ircd_module; -00833 -00834 #endif -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +00764 int EnumerateValues(std::string tag, int index); +00765 }; +00766 +00767 +00768 +00774 class FileReader : public classbase +00775 { +00776 file_cache fc; +00777 public: +00782 FileReader(); +00783 +00789 FileReader(std::string filename); +00790 +00794 ~FileReader(); +00795 +00801 void LoadFile(std::string filename); +00802 +00806 bool Exists(); +00807 +00812 std::string GetLine(int x); +00813 +00819 int FileSize(); +00820 }; +00821 +00822 +00829 class ModuleFactory : public classbase +00830 { +00831 public: +00832 ModuleFactory() { } +00833 virtual ~ModuleFactory() { } +00838 virtual Module * CreateModule() = 0; +00839 }; +00840 +00841 +00842 typedef DLLFactory<ModuleFactory> ircd_module; +00843 +00844 #endif +

    Generated on Thu Apr 7 20:14:21 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 6110e3423..0c3cb75fd 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -78,33 +78,41 @@ #define AC_GENERAL_MODE   8 -#define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]-> +#define VF_STATIC   1 -#define FOREACH_RESULT(x) +#define VF_VENDOR   2 -#define CONF_NOT_A_NUMBER   0x000010 +#define VF_SERVICEPROVIDER   4 -#define CONF_NOT_UNSIGNED   0x000080 +#define VF_COMMON   8 -#define CONF_VALUE_NOT_FOUND   0x000100 +#define FOREACH_MOD   for (int i = 0; i <= MODCOUNT; i++) modules[i]-> -#define CONF_FILE_NOT_FOUND   0x000200 +#define FOREACH_RESULT(x) + +#define CONF_NOT_A_NUMBER   0x000010 + +#define CONF_NOT_UNSIGNED   0x000080 + +#define CONF_VALUE_NOT_FOUND   0x000100 + +#define CONF_FILE_NOT_FOUND   0x000200

    Typedefs

    -typedef std::deque< std::string > file_cache +typedef std::deque< std::string > file_cache - Low level definition of a FileReader classes file cache area.


    -typedef file_cache string_list + Low level definition of a FileReader classes file cache area.


    +typedef file_cache string_list -typedef std::deque< userrec * > chanuserlist +typedef std::deque< userrec * > chanuserlist - Holds a list of users in a channel.


    -typedef DLLFactory< ModuleFactoryircd_module + Holds a list of users in a channel.


    +typedef DLLFactory< ModuleFactoryircd_module

    Functions

    -void createcommand (char *cmd, handlerfunc f, char flags, int minparams) +void createcommand (char *cmd, handlerfunc f, char flags, int minparams, char *source) -void server_mode (char **parameters, int pcnt, userrec *user) +void server_mode (char **parameters, int pcnt, userrec *user)

    Define Documentation

    @@ -371,7 +379,7 @@ Definition at line 39 of

    Definition at line 37 of file modules.h.

    -Referenced by Module::OnAccessCheck(). +Referenced by Module::OnAccessCheck().

    @@ -398,7 +406,7 @@ Referenced by Module::OnAcc Definition at line 38 of file modules.h. -

    +

    +Referenced by ConfigReader::ConfigReader().
    @@ -419,12 +427,12 @@ Definition at line 38 of

    -Definition at line 667 of file modules.h. +Definition at line 677 of file modules.h.

    -Referenced by ConfigReader::ConfigReader().

    -

    +

    +Referenced by ConfigReader::ReadInteger().
    @@ -445,12 +453,12 @@ Referenced by ConfigReader:

    -Definition at line 664 of file modules.h. +Definition at line 674 of file modules.h.

    -Referenced by ConfigReader::ReadInteger().

    -

    +

    +Referenced by ConfigReader::ReadInteger().
    @@ -471,12 +479,12 @@ Referenced by ConfigReader:

    -Definition at line 665 of file modules.h. +Definition at line 675 of file modules.h.

    -Referenced by ConfigReader::ReadInteger().

    -

    +

    +Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue().
    @@ -497,9 +505,9 @@ Referenced by ConfigReader:

    -Definition at line 666 of file modules.h. +Definition at line 676 of file modules.h.

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

    @@ -525,7 +533,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(), userrec::HasPermission(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam().

    @@ -552,7 +560,7 @@ Referenced by Server::AddEx Definition at line 25 of file modules.h. -

    +

    +Definition at line 79 of file modules.h.
    @@ -573,10 +581,10 @@ Definition at line 25 of

    -Definition at line 72 of file modules.h.

    -

    +

    +Definition at line 87 of file modules.h.
    @@ -611,7 +619,7 @@ Definition at line 72 of }

    -Definition at line 80 of file modules.h.

    @@ -637,7 +645,7 @@ Definition at line 80 of

    Definition at line 31 of file modules.h.

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

    @@ -663,7 +671,7 @@ Referenced by Server::AddEx

    Definition at line 32 of file modules.h.

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

    @@ -689,7 +697,7 @@ Referenced by Server::AddEx

    Definition at line 33 of file modules.h.

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

    @@ -764,14 +772,112 @@ Definition at line 26 of Definition at line 24 of file modules.h. +

    + + + + +
    + + +
    #define VF_COMMON   8 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 56 of file modules.h.

    +

    + + + + +
    + + +
    #define VF_SERVICEPROVIDER   4 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 55 of file modules.h.

    +

    + + + + +
    + + +
    #define VF_STATIC   1 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 53 of file modules.h.

    +

    + + + + +
    + + +
    #define VF_VENDOR   2 +
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 54 of file modules.h. +

    +Referenced by Module::GetVersion().


    Typedef Documentation

    -

    +

    @@ -788,18 +894,18 @@ Holds a list of users in a channel.

    -Definition at line 65 of file modules.h. +Definition at line 72 of file modules.h.

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

    -
    typedef std::deque<userrec*> chanuserlist + typedef std::deque<userrec*> chanuserlist
    -

    +

    @@ -816,18 +922,18 @@ Low level definition of a FileReader

    -Definition at line 60 of file modules.h. +Definition at line 67 of file modules.h.

    -Referenced by FileReader::FileReader(), and FileReader::LoadFile(). +Referenced by FileReader::FileReader(), and FileReader::LoadFile().

    -
    typedef std::deque<std::string> file_cache + typedef std::deque<std::string> file_cache
    -

    +

    @@ -842,16 +948,16 @@ Referenced by FileReader::F

    -Definition at line 832 of file modules.h. +Definition at line 842 of file modules.h.

    -
    typedef DLLFactory<ModuleFactory> ircd_module + typedef DLLFactory<ModuleFactory> ircd_module
    -

    +

    @@ -866,13 +972,13 @@ Definition at line 832 of

    -Definition at line 61 of file modules.h. +Definition at line 68 of file modules.h.

    -Referenced by Module::OnChannelSync(), and Module::OnUserSync(). +Referenced by Module::OnChannelSync(), and Module::OnUserSync().

    -
    typedef file_cache string_list + typedef file_cache string_list


    Function Documentation

    -

    +

    - + + + + + + + @@ -921,10 +1033,10 @@ Referenced by Module::OnCha

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

    @@ -899,7 +1005,13 @@ Referenced by Module::OnCha int  minparams minparams,
    char *  source
    -

    +

    +Referenced by Server::SendMode().
    @@ -967,10 +1079,10 @@ Referenced by Server::AddCo

    -Referenced by Server::SendMode().

    -


    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index e09ffb727..eacc175e8 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ struct  nspace.hash< string > -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index 8a147e855..925faa407 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -9,7 +9,7 @@ nspace std -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index 290626e8f..75432f2a8 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@
    -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 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 69c2744fc..1a690ebdd 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -28,40 +28,42 @@ 00021 #include <map> 00022 #include "inspstring.h" 00023 -00024 serverrec::serverrec() -00025 { -00026 strlcpy(name,"",256); -00027 pingtime = 0; -00028 lastping = time(NULL); -00029 usercount_i = usercount = opercount = version = 0; -00030 hops_away = 1; -00031 signon = time(NULL); -00032 jupiter = false; -00033 fd = 0; -00034 sync_soon = false; -00035 strlcpy(nickserv,"",NICKMAX); -00036 } -00037 -00038 -00039 serverrec::~serverrec() -00040 { -00041 } -00042 -00043 serverrec::serverrec(char* n, long ver, bool jupe) -00044 { -00045 strlcpy(name,n,256); -00046 lastping = time(NULL); -00047 usercount_i = usercount = opercount = 0; -00048 version = ver; -00049 hops_away = 1; -00050 signon = time(NULL); -00051 jupiter = jupe; -00052 fd = 0; -00053 sync_soon = false; -00054 strlcpy(nickserv,"",NICKMAX); -00055 } -00056 -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +00024 extern time_t TIME; +00025 +00026 serverrec::serverrec() +00027 { +00028 strlcpy(name,"",256); +00029 pingtime = 0; +00030 lastping = TIME; +00031 usercount_i = usercount = opercount = version = 0; +00032 hops_away = 1; +00033 signon = TIME; +00034 jupiter = false; +00035 fd = 0; +00036 sync_soon = false; +00037 strlcpy(nickserv,"",NICKMAX); +00038 } +00039 +00040 +00041 serverrec::~serverrec() +00042 { +00043 } +00044 +00045 serverrec::serverrec(char* n, long ver, bool jupe) +00046 { +00047 strlcpy(name,n,256); +00048 lastping = TIME; +00049 usercount_i = usercount = opercount = 0; +00050 version = ver; +00051 hops_away = 1; +00052 signon = TIME; +00053 jupiter = jupe; +00054 fd = 0; +00055 sync_soon = false; +00056 strlcpy(nickserv,"",NICKMAX); +00057 } +00058 +

    Generated on Thu Apr 7 20:14:21 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 107be2edd..b5ef5a5e7 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -15,8 +15,36 @@

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

    Variables

    time_t TIME
    +


    Variable Documentation

    +

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

    + +

    +Definition at line 24 of file servers.cpp.

    -


    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 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 a6b8ae022..8972bef23 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 Mon Apr 4 18:12:48 2005 for InspIRCd by +

    Generated on Thu Apr 7 20:14:21 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 940178e64..97a73164a 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 Mon Apr 4 18:12:49 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:22 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 6c46a44db..5735a0091 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 Mon Apr 4 18:12:52 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:25 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 1bd5ecbe2..366f0ee03 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -49,23 +49,23 @@

    -Definition at line 157 of file modules.cpp. +Definition at line 159 of file modules.cpp.

    -

    00158         {
    -00159                 size_t q;
    -00160                 size_t p;
    -00161                 
    -00162                 memcpy(&q,&s1,sizeof(size_t));
    -00163                 memcpy(&p,&s2,sizeof(size_t));
    -00164                 
    -00165                 return (q == p);
    -00166         }
    +
    00160         {
    +00161                 size_t q;
    +00162                 size_t p;
    +00163                 
    +00164                 memcpy(&q,&s1,sizeof(size_t));
    +00165                 memcpy(&p,&s2,sizeof(size_t));
    +00166                 
    +00167                 return (q == p);
    +00168         }
     

    The documentation for this struct was generated from the following file: -
    Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:25 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 178105df5..ea17c72a8 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 Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:26 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structStrHashComp.html b/docs/module-doc/structStrHashComp.html index 16f2091dc..f2d42b2f7 100644 --- a/docs/module-doc/structStrHashComp.html +++ b/docs/module-doc/structStrHashComp.html @@ -49,20 +49,20 @@

    -Definition at line 144 of file modules.cpp. +Definition at line 146 of file modules.cpp.

    -

    00145         {
    -00146                 char a[MAXBUF],b[MAXBUF];
    -00147                 strlcpy(a,s1.c_str(),MAXBUF);
    -00148                 strlcpy(b,s2.c_str(),MAXBUF);
    -00149                 return (strcasecmp(a,b) == 0);
    -00150         }
    +
    00147         {
    +00148                 char a[MAXBUF],b[MAXBUF];
    +00149                 strlcpy(a,s1.c_str(),MAXBUF);
    +00150                 strlcpy(b,s2.c_str(),MAXBUF);
    +00151                 return (strcasecmp(a,b) == 0);
    +00152         }
     

    The documentation for this struct was generated from the following file: -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:26 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 b93619f7f..e9cdf6d70 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:24 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 9a03eba11..6cdf0a31f 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 Mon Apr 4 18:12:51 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:24 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 a8fc64f74..20361aba1 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 Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 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 76fba1003..b6869fd8a 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 @@ -43,19 +43,19 @@

    -Definition at line 117 of file modules.cpp. +Definition at line 119 of file modules.cpp.

    -

    00118                 {
    -00119                         size_t q;
    -00120                         memcpy(&q,&a,sizeof(size_t));
    -00121                         return q;
    -00122                 }
    +
    00120                 {
    +00121                         size_t q;
    +00122                         memcpy(&q,&a,sizeof(size_t));
    +00123                         return q;
    +00124                 }
     

    The documentation for this struct was generated from the following file: -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 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 cb5db4820..dc30990da 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 Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 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 bcbf0d2c1..48c6a65b4 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 @@ -43,21 +43,21 @@

    -Definition at line 130 of file modules.cpp. +Definition at line 132 of file modules.cpp.

    -

    00131                 {
    -00132                         char a[MAXBUF];
    -00133                         static struct hash<const char *> strhash;
    -00134                         strlcpy(a,s.c_str(),MAXBUF);
    -00135                         strlower(a);
    -00136                         return strhash(a);
    -00137                 }
    +
    00133                 {
    +00134                         char a[MAXBUF];
    +00135                         static struct hash<const char *> strhash;
    +00136                         strlcpy(a,s.c_str(),MAXBUF);
    +00137                         strlower(a);
    +00138                         return strhash(a);
    +00139                 }
     

    The documentation for this struct was generated from the following file: -
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:27 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 fb42722e2..c528e87c3 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -30,146 +30,148 @@ 00023 00024 extern std::stringstream config_f; 00025 -00026 userrec::userrec() -00027 { -00028 // the PROPER way to do it, AVOID bzero at *ALL* costs -00029 strcpy(nick,""); -00030 strcpy(ip,"127.0.0.1"); -00031 timeout = 0; -00032 strcpy(ident,""); -00033 strcpy(host,""); -00034 strcpy(dhost,""); -00035 strcpy(fullname,""); -00036 strcpy(modes,""); -00037 strcpy(inbuf,""); -00038 strcpy(server,""); -00039 strcpy(awaymsg,""); -00040 strcpy(oper,""); -00041 fd = lastping = signon = idle_lastmsg = nping = registered = 0; -00042 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; -00043 haspassed = false; -00044 dns_done = false; -00045 strcpy(result,""); -00046 for (int i = 0; i < MAXCHANS; i++) -00047 { -00048 this->chans[i].channel = NULL; -00049 this->chans[i].uc_modes = 0; -00050 } -00051 invites.clear(); -00052 } -00053 -00054 -00055 -00056 char* userrec::GetFullHost() -00057 { -00058 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost); -00059 return result; -00060 } -00061 -00062 -00063 char* userrec::GetFullRealHost() -00064 { -00065 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host); -00066 return result; -00067 } -00068 -00069 bool userrec::IsInvited(char* channel) -00070 { -00071 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00072 { -00073 if (i->channel) { -00074 if (!strcasecmp(i->channel,channel)) -00075 { -00076 return true; -00077 } -00078 } -00079 } -00080 return false; -00081 } -00082 -00083 void userrec::InviteTo(char* channel) -00084 { -00085 Invited i; -00086 strlcpy(i.channel,channel,CHANMAX); -00087 invites.push_back(i); -00088 } -00089 -00090 void userrec::RemoveInvite(char* channel) -00091 { -00092 log(DEBUG,"Removing invites"); -00093 if (channel) -00094 { -00095 if (invites.size()) -00096 { -00097 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00098 { -00099 if (i->channel) -00100 { -00101 if (!strcasecmp(i->channel,channel)) -00102 { -00103 invites.erase(i); -00104 return; -00105 } -00106 } -00107 } -00108 } -00109 } -00110 } -00111 -00112 bool userrec::HasPermission(char* command) -00113 { -00114 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -00115 char* myclass; -00116 char* mycmd; -00117 char* savept; -00118 char* savept2; -00119 -00120 // are they even an oper at all? -00121 if (strchr(this->modes,'o')) -00122 { -00123 log(DEBUG,"*** HasPermission: %s is an oper",this->nick); -00124 for (int j =0; j < ConfValueEnum("type",&config_f); j++) -00125 { -00126 ConfValue("type","name",j,TypeName,&config_f); -00127 if (!strcmp(TypeName,this->oper)) -00128 { -00129 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); -00130 ConfValue("type","classes",j,Classes,&config_f); -00131 char* myclass = strtok_r(Classes," ",&savept); -00132 while (myclass) -00133 { -00134 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); -00135 for (int k =0; k < ConfValueEnum("class",&config_f); k++) -00136 { -00137 ConfValue("class","name",k,ClassName,&config_f); -00138 if (!strcmp(ClassName,myclass)) -00139 { -00140 ConfValue("class","commands",k,CommandList,&config_f); -00141 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); -00142 -00143 -00144 mycmd = strtok_r(CommandList," ",&savept2); -00145 while (mycmd) -00146 { -00147 if (!strcasecmp(mycmd,command)) -00148 { -00149 log(DEBUG,"*** Command %s found, returning true",command); -00150 return true; -00151 } -00152 mycmd = strtok_r(NULL," ",&savept2); -00153 } -00154 } -00155 } -00156 myclass = strtok_r(NULL," ",&savept); -00157 } -00158 } -00159 } -00160 } -00161 return false; -00162 } -00163 -00164 -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +00026 extern time_t TIME; +00027 +00028 userrec::userrec() +00029 { +00030 // the PROPER way to do it, AVOID bzero at *ALL* costs +00031 strcpy(nick,""); +00032 strcpy(ip,"127.0.0.1"); +00033 timeout = 0; +00034 strcpy(ident,""); +00035 strcpy(host,""); +00036 strcpy(dhost,""); +00037 strcpy(fullname,""); +00038 strcpy(modes,""); +00039 strcpy(inbuf,""); +00040 strcpy(server,""); +00041 strcpy(awaymsg,""); +00042 strcpy(oper,""); +00043 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +00044 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +00045 haspassed = false; +00046 dns_done = false; +00047 strcpy(result,""); +00048 for (int i = 0; i < MAXCHANS; i++) +00049 { +00050 this->chans[i].channel = NULL; +00051 this->chans[i].uc_modes = 0; +00052 } +00053 invites.clear(); +00054 } +00055 +00056 +00057 +00058 char* userrec::GetFullHost() +00059 { +00060 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost); +00061 return result; +00062 } +00063 +00064 +00065 char* userrec::GetFullRealHost() +00066 { +00067 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host); +00068 return result; +00069 } +00070 +00071 bool userrec::IsInvited(char* channel) +00072 { +00073 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00074 { +00075 if (i->channel) { +00076 if (!strcasecmp(i->channel,channel)) +00077 { +00078 return true; +00079 } +00080 } +00081 } +00082 return false; +00083 } +00084 +00085 void userrec::InviteTo(char* channel) +00086 { +00087 Invited i; +00088 strlcpy(i.channel,channel,CHANMAX); +00089 invites.push_back(i); +00090 } +00091 +00092 void userrec::RemoveInvite(char* channel) +00093 { +00094 log(DEBUG,"Removing invites"); +00095 if (channel) +00096 { +00097 if (invites.size()) +00098 { +00099 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00100 { +00101 if (i->channel) +00102 { +00103 if (!strcasecmp(i->channel,channel)) +00104 { +00105 invites.erase(i); +00106 return; +00107 } +00108 } +00109 } +00110 } +00111 } +00112 } +00113 +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); +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 } +00165 +00166 +

    Generated on Thu Apr 7 20:14:21 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 33f785662..409351083 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -18,6 +18,8 @@

    Variables

    std::stringstream config_f +time_t TIME +

    Variable Documentation

    @@ -44,7 +46,31 @@ Definition at line 24 of file users.cpp. -


    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by +

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

    + +

    +Definition at line 26 of file users.cpp.

    +


    Generated on Thu Apr 7 20:14:22 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 3cf8bf716..2d8c0ff66 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -122,7 +122,7 @@ 00200 00201 00202 #endif -

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by +

    Generated on Thu Apr 7 20:14:21 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 19d6f7743..947e2a64d 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 75 of file users.h. -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 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 14c8d74da..fd67b7564 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 Mon Apr 4 18:12:48 2005 for InspIRCd by +

    Generated on Thu Apr 7 20:14:21 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 b14c53e16..5bac88ff6 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -1075,7 +1075,7 @@ -
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by +
    Generated on Thu Apr 7 20:14:23 2005 for InspIRCd by doxygen 1.3.3
    -- cgit v1.2.3