diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-13 12:41:46 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-13 12:41:46 +0000 |
commit | c0f731e19d61a971af5cf26d073ccd25bfc5c91c (patch) | |
tree | cb070a261330b5110d30ecbcf4e446e1419886e2 | |
parent | 58f076212f6330429e027576eb32cfc75bde82ae (diff) |
Added Server::AddGLine
Added Server::AddKLine
Added Server::AddZLine
Added Server::AddQLine
Added Server::AddELine
Added Server::DelGLine
Added Server::DelKLine
Added Server::DelZLine
Added Server::DelQLine
Added Server::DelELine
Added Server::Duration
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1071 e03df62e-2008-0410-955e-edbf42e46eb7
183 files changed, 2712 insertions, 1267 deletions
diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3 index 1f7b31c41..54a99fd1f 100644 --- a/docs/man/man3/Admin.3 +++ b/docs/man/man3/Admin.3 @@ -1,4 +1,4 @@ -.TH "Admin" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Admin" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -38,7 +38,7 @@ 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 121 of file modules.h. +Definition at line 123 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Admin::Admin (std::string name, std::string email, std::string nick)" @@ -52,13 +52,13 @@ Definition at line 304 of file modules.cpp. .PP .SS "const std::string \fBAdmin::Email\fP" .PP -Definition at line 124 of file modules.h. +Definition at line 126 of file modules.h. .SS "const std::string \fBAdmin::Name\fP" .PP -Definition at line 124 of file modules.h. +Definition at line 126 of file modules.h. .SS "const std::string \fBAdmin::Nick\fP" .PP -Definition at line 124 of file modules.h. +Definition at line 126 of file modules.h. .SH "Author" .PP diff --git a/docs/man/man3/BanItem.3 b/docs/man/man3/BanItem.3 index 3458f2aaa..650e388d1 100644 --- a/docs/man/man3/BanItem.3 +++ b/docs/man/man3/BanItem.3 @@ -1,4 +1,4 @@ -.TH "BanItem" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "BanItem" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3 index a2a9afaf2..7891a2773 100644 --- a/docs/man/man3/ConfigReader.3 +++ b/docs/man/man3/ConfigReader.3 @@ -1,4 +1,4 @@ -.TH "ConfigReader" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ConfigReader" 3 "13 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 683 of file modules.h. +Definition at line 780 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 579 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 674 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -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 } +675 { +676 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +677 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +678 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +679 if (!this->readerror) +680 this->error = CONF_FILE_NOT_FOUND; +681 } .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 598 of file modules.cpp. +Overloaded constructor. This constructor initialises the ConfigReader class to read a user-specified config fileDefinition at line 693 of file modules.cpp. .PP References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. .PP .nf -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 }; +694 { +695 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +696 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +697 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +698 if (!this->readerror) +699 this->error = CONF_FILE_NOT_FOUND; +700 }; .fi .SS "ConfigReader::~\fBConfigReader\fP ()" .PP -Default destructor. This method destroys the ConfigReader class.Definition at line 589 of file modules.cpp. +Default destructor. This method destroys the ConfigReader class.Definition at line 684 of file modules.cpp. .PP References cache, and errorlog. .PP .nf -590 { -591 if (this->cache) -592 delete this->cache; -593 if (this->errorlog) -594 delete this->errorlog; -595 } +685 { +686 if (this->cache) +687 delete this->cache; +688 if (this->errorlog) +689 delete this->errorlog; +690 } .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 676 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 771 of file modules.cpp. .PP References errorlog, connection::fd, and userrec::nick. .PP .nf -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 } +772 { +773 if (bail) +774 { +775 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); +776 exit(0); +777 } +778 else +779 { +780 char dataline[1024]; +781 if (user) +782 { +783 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); +784 while (!errorlog->eof()) +785 { +786 errorlog->getline(dataline,1024); +787 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); +788 } +789 } +790 else +791 { +792 WriteOpers('There were errors in the configuration file:',user->nick); +793 while (!errorlog->eof()) +794 { +795 errorlog->getline(dataline,1024); +796 WriteOpers(dataline); +797 } +798 } +799 return; +800 } +801 } .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 709 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 804 of file modules.cpp. .PP References cache. .PP .nf -710 { -711 return EnumConf(cache,tag.c_str()); -712 } +805 { +806 return EnumConf(cache,tag.c_str()); +807 } .fi .SS "int ConfigReader::EnumerateValues (std::string tag, int index)" .PP -Returns the number of items within a tag. For example if the tag was <test tag='blah' data='foo'> then this function would return 2. Spaces and newlines both qualify as valid seperators between values.Definition at line 714 of file modules.cpp. +Returns the number of items within a tag. For example if the tag was <test tag='blah' data='foo'> then this function would return 2. Spaces and newlines both qualify as valid seperators between values.Definition at line 809 of file modules.cpp. .PP References cache. .PP .nf -715 { -716 return EnumValues(cache, tag.c_str(), index); -717 } +810 { +811 return EnumValues(cache, tag.c_str(), index); +812 } .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 669 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 764 of file modules.cpp. .PP References error. .PP .nf -670 { -671 long olderr = this->error; -672 this->error = 0; -673 return olderr; -674 } +765 { +766 long olderr = this->error; +767 this->error = 0; +768 return olderr; +769 } .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 623 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 718 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -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 } +719 { +720 char val[MAXBUF]; +721 char t[MAXBUF]; +722 char n[MAXBUF]; +723 strlcpy(t,tag.c_str(),MAXBUF); +724 strlcpy(n,name.c_str(),MAXBUF); +725 int res = ReadConf(cache,t,n,index,val); +726 if (!res) +727 { +728 this->error = CONF_VALUE_NOT_FOUND; +729 return false; +730 } +731 std::string s = val; +732 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); +733 } .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 640 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 735 of file modules.cpp. .PP References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error. .PP .nf -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 } +736 { +737 char val[MAXBUF]; +738 char t[MAXBUF]; +739 char n[MAXBUF]; +740 strlcpy(t,tag.c_str(),MAXBUF); +741 strlcpy(n,name.c_str(),MAXBUF); +742 int res = ReadConf(cache,t,n,index,val); +743 if (!res) +744 { +745 this->error = CONF_VALUE_NOT_FOUND; +746 return 0; +747 } +748 for (int i = 0; i < strlen(val); i++) +749 { +750 if (!isdigit(val[i])) +751 { +752 this->error = CONF_NOT_A_NUMBER; +753 return 0; +754 } +755 } +756 if ((needs_unsigned) && (atoi(val)<0)) +757 { +758 this->error = CONF_NOT_UNSIGNED; +759 return 0; +760 } +761 return atoi(val); +762 } .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 607 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 702 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, and error. .PP .nf -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 } +703 { +704 char val[MAXBUF]; +705 char t[MAXBUF]; +706 char n[MAXBUF]; +707 strlcpy(t,tag.c_str(),MAXBUF); +708 strlcpy(n,name.c_str(),MAXBUF); +709 int res = ReadConf(cache,t,n,index,val); +710 if (!res) +711 { +712 this->error = CONF_VALUE_NOT_FOUND; +713 return ''; +714 } +715 return std::string(val); +716 } .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 719 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 814 of file modules.cpp. .PP References readerror. .PP .nf -720 { -721 return this->readerror; -722 } +815 { +816 return this->readerror; +817 } .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 691 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 788 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 696 of file modules.h. +Definition at line 793 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 692 of file modules.h. +Definition at line 789 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 695 of file modules.h. +Used to store errors. Definition at line 792 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 baa288a3f..1b1aaa11f 100644 --- a/docs/man/man3/ConnectClass.3 +++ b/docs/man/man3/ConnectClass.3 @@ -1,4 +1,4 @@ -.TH "ConnectClass" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ConnectClass" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/DNS.3 b/docs/man/man3/DNS.3 index 4e842b60d..7bfa95a50 100644 --- a/docs/man/man3/DNS.3 +++ b/docs/man/man3/DNS.3 @@ -1,4 +1,4 @@ -.TH "DNS" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "DNS" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -45,6 +45,9 @@ DNS \- The DNS class allows fast nonblocking resolution of hostnames and ip addr .RI "int \fBGetFD\fP ()" .br .RI "\fIThis method returns the file handle used by the dns query socket or zero if the query is invalid for some reason, e.g. \fP" +.ti -1c +.RI "void \fBSetNS\fP (std::string dnsserver)" +.br .in -1c .SS "Private Member Functions" @@ -174,6 +177,8 @@ This method will return true when the lookup is completed. It uses poll internal .SS "bool DNS::ReverseLookup (std::string ip)" .PP This method will start the reverse lookup of an ip given in dotted decimal format, e.g. 1.2.3.4, and returns true if the lookup was successfully initiated. +.SS "void DNS::SetNS (std::string dnsserver)" +.PP .SH "Member Data Documentation" .PP .SS "in_addr* \fBDNS::binip\fP\fC [private]\fP" diff --git a/docs/man/man3/ELine.3 b/docs/man/man3/ELine.3 index 7d54fe534..a15d813e8 100644 --- a/docs/man/man3/ELine.3 +++ b/docs/man/man3/ELine.3 @@ -1,4 +1,4 @@ -.TH "ELine" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ELine" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3 index d6bde382b..0024f7798 100644 --- a/docs/man/man3/ExemptItem.3 +++ b/docs/man/man3/ExemptItem.3 @@ -1,4 +1,4 @@ -.TH "ExemptItem" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ExemptItem" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExtMode.3 b/docs/man/man3/ExtMode.3 index e3dcb371c..21ef48092 100644 --- a/docs/man/man3/ExtMode.3 +++ b/docs/man/man3/ExtMode.3 @@ -1,4 +1,4 @@ -.TH "ExtMode" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ExtMode" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Extensible.3 b/docs/man/man3/Extensible.3 index 5d21ed164..3e1a79557 100644 --- a/docs/man/man3/Extensible.3 +++ b/docs/man/man3/Extensible.3 @@ -1,4 +1,4 @@ -.TH "Extensible" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Extensible" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3 index 0b9e07501..bcc5f2c28 100644 --- a/docs/man/man3/FileReader.3 +++ b/docs/man/man3/FileReader.3 @@ -1,4 +1,4 @@ -.TH "FileReader" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "FileReader" 3 "13 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 772 of file modules.h. +Definition at line 869 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 732 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 827 of file modules.cpp. .PP .nf -733 { -734 } +828 { +829 } .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 725 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 820 of file modules.cpp. .PP References fc, and file_cache. .PP .nf -726 { -727 file_cache c; -728 readfile(c,filename.c_str()); -729 this->fc = c; -730 } +821 { +822 file_cache c; +823 readfile(c,filename.c_str()); +824 this->fc = c; +825 } .fi .SS "FileReader::~\fBFileReader\fP ()" .PP -Default destructor. This deletes the memory allocated to the file.Definition at line 744 of file modules.cpp. +Default destructor. This deletes the memory allocated to the file.Definition at line 839 of file modules.cpp. .PP .nf -745 { -746 } +840 { +841 } .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 748 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 843 of file modules.cpp. .PP References fc. .PP .nf -749 { -750 if (fc.size() == 0) -751 { -752 return(false); -753 } -754 else -755 { -756 return(true); -757 } -758 } +844 { +845 if (fc.size() == 0) +846 { +847 return(false); +848 } +849 else +850 { +851 return(true); +852 } +853 } .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 767 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 862 of file modules.cpp. .PP References fc. .PP .nf -768 { -769 return fc.size(); -770 } +863 { +864 return fc.size(); +865 } .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 760 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 855 of file modules.cpp. .PP References fc. .PP .nf -761 { -762 if ((x<0) || (x>fc.size())) -763 return ''; -764 return fc[x]; -765 } +856 { +857 if ((x<0) || (x>fc.size())) +858 return ''; +859 return fc[x]; +860 } .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 736 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 831 of file modules.cpp. .PP References fc, and file_cache. .PP .nf -737 { -738 file_cache c; -739 readfile(c,filename.c_str()); -740 this->fc = c; -741 } +832 { +833 file_cache c; +834 readfile(c,filename.c_str()); +835 this->fc = c; +836 } .fi .SH "Member Data Documentation" .PP .SS "\fBfile_cache\fP \fBFileReader::fc\fP\fC [private]\fP" .PP -Definition at line 774 of file modules.h. +Definition at line 871 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 2cf341141..9483f2aca 100644 --- a/docs/man/man3/GLine.3 +++ b/docs/man/man3/GLine.3 @@ -1,4 +1,4 @@ -.TH "GLine" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "GLine" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3 index 2571be4b8..4f32f7ae2 100644 --- a/docs/man/man3/HostItem.3 +++ b/docs/man/man3/HostItem.3 @@ -1,4 +1,4 @@ -.TH "HostItem" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "HostItem" 3 "13 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 94ba034da..fbea99847 100644 --- a/docs/man/man3/InAddr_HashComp.3 +++ b/docs/man/man3/InAddr_HashComp.3 @@ -1,4 +1,4 @@ -.TH "InAddr_HashComp" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "InAddr_HashComp" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3 index bd77e0626..bec559e8a 100644 --- a/docs/man/man3/InviteItem.3 +++ b/docs/man/man3/InviteItem.3 @@ -1,4 +1,4 @@ -.TH "InviteItem" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "InviteItem" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Invited.3 b/docs/man/man3/Invited.3 index fab638087..976db7b6d 100644 --- a/docs/man/man3/Invited.3 +++ b/docs/man/man3/Invited.3 @@ -1,4 +1,4 @@ -.TH "Invited" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Invited" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/KLine.3 b/docs/man/man3/KLine.3 index b9a460657..ceaba5127 100644 --- a/docs/man/man3/KLine.3 +++ b/docs/man/man3/KLine.3 @@ -1,4 +1,4 @@ -.TH "KLine" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "KLine" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3 index 3401d36cb..513cc7a6f 100644 --- a/docs/man/man3/ModeParameter.3 +++ b/docs/man/man3/ModeParameter.3 @@ -1,4 +1,4 @@ -.TH "ModeParameter" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModeParameter" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3 index d7837affb..326d33cec 100644 --- a/docs/man/man3/Module.3 +++ b/docs/man/man3/Module.3 @@ -1,4 +1,4 @@ -.TH "Module" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Module" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -123,6 +123,10 @@ Inherits \fBclassbase\fP. .RI "virtual void \fBOnLoadModule\fP (\fBModule\fP *mod, std::string name)" .br .RI "\fICalled whenever a module is loaded. \fP" +.ti -1c +.RI "virtual void \fBOnBackgroundTimer\fP (time_t curtime)" +.br +.RI "\fICalled once every five seconds for background processing. \fP" .in -1c .SH "Detailed Description" .PP @@ -130,7 +134,7 @@ Base class for all InspIRCd modules This class is the base class for InspIRCd mo All modules must inherit from this class, its methods will be called when irc server events occur. class inherited from module must be instantiated by the \fBModuleFactory\fP class (see relevent section) for the plugin to be initialised. .PP -Definition at line 133 of file modules.h. +Definition at line 135 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Module::Module ()" @@ -198,6 +202,13 @@ References ACR_DEFAULT. .nf 327 { return ACR_DEFAULT; }; .fi +.SS "void Module::OnBackgroundTimer (time_t curtime)\fC [virtual]\fP" +.PP +Called once every five seconds for background processing. This timer can be used to control timed features. Its period is not accurate enough to be used as a clock, but it is gauranteed to be called at least once in any five second period, directly from the main loop of the server.Definition at line 333 of file modules.cpp. +.PP +.nf +333 { }; +.fi .SS "\fBstring_list\fP Module::OnChannelSync (\fBchanrec\fP * chan)\fC [virtual]\fP" .PP Called during a netburst to sync channel data. This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 329 of file modules.cpp. diff --git a/docs/man/man3/ModuleFactory.3 b/docs/man/man3/ModuleFactory.3 index 45d5e2207..4b153bd9c 100644 --- a/docs/man/man3/ModuleFactory.3 +++ b/docs/man/man3/ModuleFactory.3 @@ -1,4 +1,4 @@ -.TH "ModuleFactory" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ModuleFactory" 3 "13 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 827 of file modules.h. +Definition at line 924 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ModuleFactory::ModuleFactory ()\fC [inline]\fP" .PP -Definition at line 830 of file modules.h. +Definition at line 927 of file modules.h. .PP .nf -830 { } +927 { } .fi .SS "virtual ModuleFactory::~\fBModuleFactory\fP ()\fC [inline, virtual]\fP" .PP -Definition at line 831 of file modules.h. +Definition at line 928 of file modules.h. .PP .nf -831 { } +928 { } .fi .SH "Member Function Documentation" .PP diff --git a/docs/man/man3/QLine.3 b/docs/man/man3/QLine.3 index efda7f1a9..7803a9c44 100644 --- a/docs/man/man3/QLine.3 +++ b/docs/man/man3/QLine.3 @@ -1,4 +1,4 @@ -.TH "QLine" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "QLine" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3 index eaa423117..8da159dc2 100644 --- a/docs/man/man3/Server.3 +++ b/docs/man/man3/Server.3 @@ -1,4 +1,4 @@ -.TH "Server" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Server" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -159,6 +159,58 @@ Inherits \fBclassbase\fP. .RI "virtual \fBchanuserlist\fP \fBGetUsers\fP (\fBchanrec\fP *chan)" .br .RI "\fIFetches the userlist of a channel. \fP" +.ti -1c +.RI "virtual bool \fBUserToPseudo\fP (\fBuserrec\fP *user, std::string message)" +.br +.RI "\fIRemove a user's connection to the irc server, but leave their client in existence in the user hash. \fP" +.ti -1c +.RI "virtual bool \fBPseudoToUser\fP (\fBuserrec\fP *alive, \fBuserrec\fP *zombie, std::string message)" +.br +.RI "\fIThis user takes one user, and switches their file descriptor with another user, so that one user 'becomes' the other. \fP" +.ti -1c +.RI "virtual void \fBAddGLine\fP (long duration, std::string source, std::string reason, std::string hostmask)" +.br +.RI "\fIAdds a G-line The G-line is propogated to all of the servers in the mesh and enforced as soon as it is added. \fP" +.ti -1c +.RI "virtual void \fBAddQLine\fP (long duration, std::string source, std::string reason, std::string nickname)" +.br +.RI "\fIAdds a Q-line The Q-line is propogated to all of the servers in the mesh and enforced as soon as it is added. \fP" +.ti -1c +.RI "virtual void \fBAddZLine\fP (long duration, std::string source, std::string reason, std::string ipaddr)" +.br +.RI "\fIAdds a Z-line The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added. \fP" +.ti -1c +.RI "virtual void \fBAddKLine\fP (long duration, std::string source, std::string reason, std::string hostmask)" +.br +.RI "\fIAdds a K-line The K-line is enforced as soon as it is added. \fP" +.ti -1c +.RI "virtual void \fBAddELine\fP (long duration, std::string source, std::string reason, std::string hostmask)" +.br +.RI "\fIAdds a E-line The E-line is enforced as soon as it is added. \fP" +.ti -1c +.RI "virtual bool \fBDelGLine\fP (std::string hostmask)" +.br +.RI "\fIDeletes a G-Line from all servers on the mesh. \fP" +.ti -1c +.RI "virtual bool \fBDelQLine\fP (std::string nickname)" +.br +.RI "\fIDeletes a Q-Line from all servers on the mesh. \fP" +.ti -1c +.RI "virtual bool \fBDelZLine\fP (std::string ipaddr)" +.br +.RI "\fIDeletes a Z-Line from all servers on the mesh. \fP" +.ti -1c +.RI "virtual bool \fBDelKLine\fP (std::string hostmask)" +.br +.RI "\fIDeletes a local K-Line. \fP" +.ti -1c +.RI "virtual bool \fBDelELine\fP (std::string hostmask)" +.br +.RI "\fIDeletes a local E-Line. \fP" +.ti -1c +.RI "virtual long \fBCalcDuration\fP (std::string duration)" +.br +.RI "\fICalculates a duration This method will take a string containing a formatted duration (e.g. \fP" .in -1c .SH "Detailed Description" .PP @@ -166,7 +218,7 @@ Allows server output and query functions This class contains methods which allow All modules should instantiate at least one copy of this class, and use its member functions to perform their tasks. .PP -Definition at line 376 of file modules.h. +Definition at line 385 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Server::Server ()" @@ -202,6 +254,17 @@ References createcommand(). 422 createcommand(cmd,f,flags,minparams,source); 423 } .fi +.SS "void Server::AddELine (long duration, std::string source, std::string reason, std::string hostmask)\fC [virtual]\fP" +.PP +Adds a E-line The E-line is enforced as soon as it is added. The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. Definition at line 638 of file modules.cpp. +.PP +References add_eline(), and duration(). +.PP +.nf +639 { +640 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +641 } +.fi .SS "bool Server::AddExtendedListMode (char modechar)\fC [virtual]\fP" .PP Adds an extended mode letter which is parsed by a module and handled in a list fashion. This call is used to implement modes like +q and +a. The characteristics of these modes are as follows: @@ -252,6 +315,61 @@ References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. 562 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); 563 } .fi +.SS "void Server::AddGLine (long duration, std::string source, std::string reason, std::string hostmask)\fC [virtual]\fP" +.PP +Adds a G-line The G-line is propogated to all of the servers in the mesh and enforced as soon as it is added. The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.Definition at line 618 of file modules.cpp. +.PP +References add_gline(), and duration(). +.PP +.nf +619 { +620 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +621 } +.fi +.SS "void Server::AddKLine (long duration, std::string source, std::string reason, std::string hostmask)\fC [virtual]\fP" +.PP +Adds a K-line The K-line is enforced as soon as it is added. The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. Definition at line 633 of file modules.cpp. +.PP +References add_kline(), and duration(). +.PP +.nf +634 { +635 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +636 } +.fi +.SS "void Server::AddQLine (long duration, std::string source, std::string reason, std::string nickname)\fC [virtual]\fP" +.PP +Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enforced as soon as it is added. The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. Definition at line 623 of file modules.cpp. +.PP +References add_qline(), and duration(). +.PP +.nf +624 { +625 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +626 } +.fi +.SS "void Server::AddZLine (long duration, std::string source, std::string reason, std::string ipaddr)\fC [virtual]\fP" +.PP +Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added. The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. Definition at line 628 of file modules.cpp. +.PP +References add_zline(), and duration(). +.PP +.nf +629 { +630 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +631 } +.fi +.SS "long Server::CalcDuration (std::string duration)\fC [virtual]\fP" +.PP +Calculates a duration This method will take a string containing a formatted duration (e.g. '1w2d') and return its value as a total number of seconds. This is the same function used internally by /GLINE etc to set the ban times.Definition at line 668 of file modules.cpp. +.PP +References duration(). +.PP +.nf +669 { +670 return duration(delta.c_str()); +671 } +.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 @@ -325,6 +443,61 @@ Returns a count of the number of users on a channel. This will NEVER be 0, as if 575 return usercount(c); 576 } .fi +.SS "bool Server::DelELine (std::string hostmask)\fC [virtual]\fP" +.PP +Deletes a local E-Line. Definition at line 663 of file modules.cpp. +.PP +References del_eline(). +.PP +.nf +664 { +665 del_eline(hostmask.c_str()); +666 } +.fi +.SS "bool Server::DelGLine (std::string hostmask)\fC [virtual]\fP" +.PP +Deletes a G-Line from all servers on the mesh. Definition at line 643 of file modules.cpp. +.PP +References del_gline(). +.PP +.nf +644 { +645 del_gline(hostmask.c_str()); +646 } +.fi +.SS "bool Server::DelKLine (std::string hostmask)\fC [virtual]\fP" +.PP +Deletes a local K-Line. Definition at line 658 of file modules.cpp. +.PP +References del_kline(). +.PP +.nf +659 { +660 del_kline(hostmask.c_str()); +661 } +.fi +.SS "bool Server::DelQLine (std::string nickname)\fC [virtual]\fP" +.PP +Deletes a Q-Line from all servers on the mesh. Definition at line 648 of file modules.cpp. +.PP +References del_qline(). +.PP +.nf +649 { +650 del_qline(nickname.c_str()); +651 } +.fi +.SS "bool Server::DelZLine (std::string ipaddr)\fC [virtual]\fP" +.PP +Deletes a Z-Line from all servers on the mesh. Definition at line 653 of file modules.cpp. +.PP +References del_zline(). +.PP +.nf +654 { +655 del_zline(ipaddr.c_str()); +656 } +.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 513 of file modules.cpp. @@ -468,6 +641,42 @@ Forces a user to part a channel. This is similar to svspart and can be used to i 372 return del_channel(user,cname.c_str(),reason.c_str(),false); 373 } .fi +.SS "bool Server::PseudoToUser (\fBuserrec\fP * alive, \fBuserrec\fP * zombie, std::string message)\fC [virtual]\fP" +.PP +This user takes one user, and switches their file descriptor with another user, so that one user 'becomes' the other. The user in 'alive' is booted off the server with the given message. The user referred to by 'zombie' should have previously been locked with Server::ZombifyUser, otherwise stale sockets and file descriptor leaks can occur. After this call, the pointer to alive will be invalid, and the pointer to zombie will be equivalent in effect to the old pointer to alive.Definition at line 588 of file modules.cpp. +.PP +References ucrec::channel, userrec::chans, chanrec::created, connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. +.PP +.nf +589 { +590 zombie->fd = alive->fd; +591 alive->fd = FD_MAGIC_NUMBER; +592 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); +593 kill_link(alive,message.c_str()); +594 for (int i = 0; i != MAXCHANS; i++) +595 { +596 if (zombie->chans[i].channel != NULL) +597 { +598 if (zombie->chans[i].channel->name) +599 { +600 chanrec* Ptr = zombie->chans[i].channel; +601 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); +602 if (Ptr->topicset) +603 { +604 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); +605 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +606 } +607 userlist(zombie,Ptr); +608 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); +609 WriteServ(zombie->fd,'324 %s %s +%s',zombie->nick, Ptr->name,chanmodes(Ptr)); +610 WriteServ(zombie->fd,'329 %s %s %d', zombie->nick, Ptr->name, Ptr->created); +611 +612 } +613 } +614 } +615 +616 } +.fi .SS "void Server::QuitUser (\fBuserrec\fP * user, std::string reason)\fC [virtual]\fP" .PP Forces a user to quit with the specified reason. To the user, it will appear as if they typed /QUIT themselves, except for the fact that this function may bypass the quit prefix specified in the config file. @@ -627,6 +836,21 @@ Sends a WALLOPS message. This method writes a WALLOPS message to all users with 490 WriteWallOps(User,false,'%s',text.c_str()); 491 } .fi +.SS "bool Server::UserToPseudo (\fBuserrec\fP * user, std::string message)\fC [virtual]\fP" +.PP +Remove a user's connection to the irc server, but leave their client in existence in the user hash. When you call this function, the user's file descriptor will be replaced with the value of FD_MAGIC_NUMBER and their old file descriptor will be closed. This idle client will remain until it is restored with a valid file descriptor, or is removed from IRC by an operator After this call, the pointer to user will be invalid.Definition at line 579 of file modules.cpp. +.PP +References connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. +.PP +.nf +580 { +581 unsigned int old_fd = user->fd; +582 user->fd = FD_MAGIC_NUMBER; +583 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); +584 close(old_fd); +585 shutdown (old_fd,2); +586 } +.fi .SH "Author" diff --git a/docs/man/man3/StrHashComp.3 b/docs/man/man3/StrHashComp.3 index 8ca9ffb81..5f2a1b098 100644 --- a/docs/man/man3/StrHashComp.3 +++ b/docs/man/man3/StrHashComp.3 @@ -1,4 +1,4 @@ -.TH "StrHashComp" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "StrHashComp" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3 index c0d4fd052..3488e1cb2 100644 --- a/docs/man/man3/Version.3 +++ b/docs/man/man3/Version.3 @@ -1,4 +1,4 @@ -.TH "Version" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "Version" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -44,7 +44,7 @@ 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 109 of file modules.h. +Definition at line 111 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Version::Version (int major, int minor, int revision, int build, int flags)" @@ -58,19 +58,19 @@ Definition at line 300 of file modules.cpp. .PP .SS "const int \fBVersion::Build\fP" .PP -Definition at line 112 of file modules.h. +Definition at line 114 of file modules.h. .SS "const int \fBVersion::Flags\fP" .PP -Definition at line 112 of file modules.h. +Definition at line 114 of file modules.h. .SS "const int \fBVersion::Major\fP" .PP -Definition at line 112 of file modules.h. +Definition at line 114 of file modules.h. .SS "const int \fBVersion::Minor\fP" .PP -Definition at line 112 of file modules.h. +Definition at line 114 of file modules.h. .SS "const int \fBVersion::Revision\fP" .PP -Definition at line 112 of file modules.h. +Definition at line 114 of file modules.h. .SH "Author" .PP diff --git a/docs/man/man3/XLine.3 b/docs/man/man3/XLine.3 index 3d9909619..84bf188f0 100644 --- a/docs/man/man3/XLine.3 +++ b/docs/man/man3/XLine.3 @@ -1,4 +1,4 @@ -.TH "XLine" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "XLine" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ZLine.3 b/docs/man/man3/ZLine.3 index 940be822d..47d573b2b 100644 --- a/docs/man/man3/ZLine.3 +++ b/docs/man/man3/ZLine.3 @@ -1,4 +1,4 @@ -.TH "ZLine" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ZLine" 3 "13 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 ad0974665..0b9f1c214 100644 --- a/docs/man/man3/base.h.3 +++ b/docs/man/man3/base.h.3 @@ -1,4 +1,4 @@ -.TH "base.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "base.h" 3 "13 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 3ece27eb2..f6e000195 100644 --- a/docs/man/man3/channels.cpp.3 +++ b/docs/man/man3/channels.cpp.3 @@ -1,4 +1,4 @@ -.TH "channels.cpp" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "channels.cpp" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -271,7 +271,7 @@ Definition at line 88 of file channels.cpp. Definition at line 103 of file channels.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 776 of file modules.cpp. +Definition at line 871 of file modules.cpp. .SS "std::vector<std::string> \fBmodule_names\fP" .PP Definition at line 92 of file channels.cpp. diff --git a/docs/man/man3/channels.h.3 b/docs/man/man3/channels.h.3 index 0c2273556..4b671c2fc 100644 --- a/docs/man/man3/channels.h.3 +++ b/docs/man/man3/channels.h.3 @@ -1,4 +1,4 @@ -.TH "channels.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "channels.h" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3 index 2039c3025..b73d9dbed 100644 --- a/docs/man/man3/chanrec.3 +++ b/docs/man/man3/chanrec.3 @@ -1,4 +1,4 @@ -.TH "chanrec" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "chanrec" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -254,7 +254,7 @@ Referenced by chanrec(). .PP Creation time. Definition at line 111 of file channels.h. .PP -Referenced by chanrec(). +Referenced by chanrec(), and Server::PseudoToUser(). .SS "char \fBchanrec::custom_modes\fP[MAXMODES]" .PP Custom modes for the channel. Plugins may use this field in any way they see fit.Definition at line 103 of file channels.h. @@ -284,7 +284,7 @@ Referenced by chanrec(). .PP The channels name. Definition at line 99 of file channels.h. .PP -Referenced by chanrec(). +Referenced by chanrec(), and Server::PseudoToUser(). .SS "short int \fBchanrec::noexternal\fP" .PP Nonzero if the mode +n is set. Definition at line 137 of file channels.h. @@ -299,12 +299,12 @@ Referenced by chanrec(). .PP The last user to set the topic. If this member is an empty string, no topic was ever set.Definition at line 119 of file channels.h. .PP -Referenced by chanrec(). +Referenced by chanrec(), and Server::PseudoToUser(). .SS "char \fBchanrec::topic\fP[MAXBUF]" .PP Channel topic. If this is an empty string, no channel topic is set.Definition at line 108 of file channels.h. .PP -Referenced by chanrec(). +Referenced by chanrec(), and Server::PseudoToUser(). .SS "short int \fBchanrec::topiclock\fP" .PP Nonzero if the mode +t is set. Definition at line 133 of file channels.h. @@ -314,7 +314,7 @@ Referenced by chanrec(). .PP Time topic was set. If no topic was ever set, this will be equal to \fBchanrec::created\fPDefinition at line 115 of file channels.h. .PP -Referenced by chanrec(). +Referenced by chanrec(), and Server::PseudoToUser(). .SH "Author" .PP diff --git a/docs/man/man3/classbase.3 b/docs/man/man3/classbase.3 index fba93b6cd..ef67bcf19 100644 --- a/docs/man/man3/classbase.3 +++ b/docs/man/man3/classbase.3 @@ -1,4 +1,4 @@ -.TH "classbase" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "classbase" 3 "13 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 ebaa41001..379f83fbe 100644 --- a/docs/man/man3/command_t.3 +++ b/docs/man/man3/command_t.3 @@ -1,4 +1,4 @@ -.TH "command_t" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "command_t" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/commands.h.3 b/docs/man/man3/commands.h.3 index ff2b363b8..4618f4a0f 100644 --- a/docs/man/man3/commands.h.3 +++ b/docs/man/man3/commands.h.3 @@ -1,4 +1,4 @@ -.TH "commands.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "commands.h" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -255,9 +255,16 @@ commands.h \- .RI "bool \fBis_uline\fP (const char *server)" .br .RI "\fIFunctions for u:lined servers. \fP" +.ti -1c +.RI "long \fBduration\fP (const char *str)" +.br +.RI "\fIOther useful functions. \fP" .in -1c .SH "Function Documentation" .PP +.SS "long duration (const char * str)" +.PP +Other useful functions. Referenced by Server::AddELine(), Server::AddGLine(), Server::AddKLine(), Server::AddQLine(), Server::AddZLine(), and Server::CalcDuration(). .SS "void handle_a (char token, char * params, \fBserverrec\fP * source, \fBserverrec\fP * reply, char * tcp_host)" .PP .SS "void handle_admin (char ** parameters, int pcnt, \fBuserrec\fP * user)" diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3 index 1db27f5e4..d1c103cab 100644 --- a/docs/man/man3/connection.3 +++ b/docs/man/man3/connection.3 @@ -1,4 +1,4 @@ -.TH "connection" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "connection" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -204,7 +204,7 @@ With a serverrec, this is a list of all established server connections. With a u .PP File descriptor of the connection. Definition at line 178 of file connection.h. .PP -Referenced by ConfigReader::DumpErrors(), Server::SendTo(), serverrec::serverrec(), and userrec::userrec(). +Referenced by ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo(). .SS "bool \fBconnection::haspassed\fP" .PP True if server/user has authenticated, false if otherwise. Definition at line 210 of file connection.h. @@ -214,7 +214,7 @@ Referenced by userrec::userrec(). .PP Hostname of connection. Not used if this is a serverrecDefinition at line 182 of file connection.h. .PP -Referenced by userrec::GetFullRealHost(), and userrec::userrec(). +Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo(). .SS "time_t \fBconnection::idle_lastmsg\fP" .PP Time that the connection last sent data, used to calculate idle time. Definition at line 236 of file connection.h. diff --git a/docs/man/man3/connection.h.3 b/docs/man/man3/connection.h.3 index d0e85f663..154c35673 100644 --- a/docs/man/man3/connection.h.3 +++ b/docs/man/man3/connection.h.3 @@ -1,4 +1,4 @@ -.TH "connection.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "connection.h" 3 "13 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 ba0c82f2a..4b4c2705c 100644 --- a/docs/man/man3/ctables.h.3 +++ b/docs/man/man3/ctables.h.3 @@ -1,4 +1,4 @@ -.TH "ctables.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ctables.h" 3 "13 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 3f7b577b6..1b8a88000 100644 --- a/docs/man/man3/dns.h.3 +++ b/docs/man/man3/dns.h.3 @@ -1,4 +1,4 @@ -.TH "dns.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "dns.h" 3 "13 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 c8d7792b1..2e974e79d 100644 --- a/docs/man/man3/dns_ip4list.3 +++ b/docs/man/man3/dns_ip4list.3 @@ -1,4 +1,4 @@ -.TH "dns_ip4list" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "dns_ip4list" 3 "13 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 fbccfe8c9..fa7c1f269 100644 --- a/docs/man/man3/ircd_connector.3 +++ b/docs/man/man3/ircd_connector.3 @@ -1,4 +1,4 @@ -.TH "ircd_connector" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ircd_connector" 3 "13 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 502c9d479..d3e4e1ea4 100644 --- a/docs/man/man3/message.h.3 +++ b/docs/man/man3/message.h.3 @@ -1,4 +1,4 @@ -.TH "message.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "message.h" 3 "13 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 3a4f2395d..4c95c9b68 100644 --- a/docs/man/man3/mode.h.3 +++ b/docs/man/man3/mode.h.3 @@ -1,4 +1,4 @@ -.TH "mode.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "mode.h" 3 "13 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 6bacc994d..855e8a16f 100644 --- a/docs/man/man3/modules.cpp.3 +++ b/docs/man/man3/modules.cpp.3 @@ -1,4 +1,4 @@ -.TH "modules.cpp" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "modules.cpp" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -533,7 +533,7 @@ Definition at line 91 of file modules.cpp. Definition at line 106 of file modules.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 776 of file modules.cpp. +Definition at line 871 of file modules.cpp. .SS "std::vector<std::string> \fBmodule_names\fP" .PP Definition at line 95 of file modules.cpp. diff --git a/docs/man/man3/modules.h.3 b/docs/man/man3/modules.h.3 index 2a1924d97..092567805 100644 --- a/docs/man/man3/modules.h.3 +++ b/docs/man/man3/modules.h.3 @@ -1,4 +1,4 @@ -.TH "modules.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "modules.h" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -133,6 +133,9 @@ modules.h \- .RI "#define \fBFOREACH_RESULT\fP(x)" .br .ti -1c +.RI "#define \fBFD_MAGIC_NUMBER\fP -42" +.br +.ti -1c .RI "#define \fBCONF_NOT_A_NUMBER\fP 0x000010" .br .ti -1c @@ -215,22 +218,22 @@ Referenced by Module::OnAccessCheck(). Definition at line 38 of file modules.h. .SS "#define CONF_FILE_NOT_FOUND 0x000200" .PP -Definition at line 675 of file modules.h. +Definition at line 772 of file modules.h. .PP Referenced by ConfigReader::ConfigReader(). .SS "#define CONF_NOT_A_NUMBER 0x000010" .PP -Definition at line 672 of file modules.h. +Definition at line 769 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_NOT_UNSIGNED 0x000080" .PP -Definition at line 673 of file modules.h. +Definition at line 770 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_VALUE_NOT_FOUND 0x000100" .PP -Definition at line 674 of file modules.h. +Definition at line 771 of file modules.h. .PP Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). .SS "#define DEBUG 10" @@ -241,6 +244,11 @@ Referenced by Server::AddExtendedMode(), userrec::HasPermission(), chanrec::IsCu .SS "#define DEFAULT 30" .PP Definition at line 25 of file modules.h. +.SS "#define FD_MAGIC_NUMBER -42" +.PP +Definition at line 99 of file modules.h. +.PP +Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). .SS "#define FOREACH_MOD for (int i = 0; i <= \fBMODCOUNT\fP; i++) modules[i]->" .PP Definition at line 79 of file modules.h. @@ -311,7 +319,7 @@ Low level definition of a \fBFileReader\fP classes file cache area. Definition a Referenced by FileReader::FileReader(), and FileReader::LoadFile(). .SS "typedef DLLFactory<\fBModuleFactory\fP> \fBircd_module\fP" .PP -Definition at line 840 of file modules.h. +Definition at line 937 of file modules.h. .SS "typedef \fBfile_cache\fP \fBstring_list\fP" .PP Definition at line 68 of file modules.h. diff --git a/docs/man/man3/nspace.3 b/docs/man/man3/nspace.3 index 2a2ce73e7..68bf04bab 100644 --- a/docs/man/man3/nspace.3 +++ b/docs/man/man3/nspace.3 @@ -1,4 +1,4 @@ -.TH "nspace" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace" 3 "13 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 af95e6cd0..57071a8cf 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 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace::nspace::hash< in_addr >" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_nspace_hash_ string _.3 b/docs/man/man3/nspace_nspace_hash_ string _.3 index 69cfab153..b5b512f46 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 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "nspace::nspace::hash< string >" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/packet.3 b/docs/man/man3/packet.3 index 8c40129a4..fc5710d66 100644 --- a/docs/man/man3/packet.3 +++ b/docs/man/man3/packet.3 @@ -1,4 +1,4 @@ -.TH "packet" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "packet" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/serverrec.3 b/docs/man/man3/serverrec.3 index a9c894df0..94189878d 100644 --- a/docs/man/man3/serverrec.3 +++ b/docs/man/man3/serverrec.3 @@ -1,4 +1,4 @@ -.TH "serverrec" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "serverrec" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/servers.cpp.3 b/docs/man/man3/servers.cpp.3 index d0677ae0a..d47ff592e 100644 --- a/docs/man/man3/servers.cpp.3 +++ b/docs/man/man3/servers.cpp.3 @@ -1,4 +1,4 @@ -.TH "servers.cpp" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "servers.cpp" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/servers.h.3 b/docs/man/man3/servers.h.3 index b19bfffc1..a1d16729a 100644 --- a/docs/man/man3/servers.h.3 +++ b/docs/man/man3/servers.h.3 @@ -1,4 +1,4 @@ -.TH "servers.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "servers.h" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/std.3 b/docs/man/man3/std.3 index 5e60136f9..79c07bd19 100644 --- a/docs/man/man3/std.3 +++ b/docs/man/man3/std.3 @@ -1,4 +1,4 @@ -.TH "std" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "std" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3 index 9525851b8..c56008f7a 100644 --- a/docs/man/man3/ucrec.3 +++ b/docs/man/man3/ucrec.3 @@ -1,4 +1,4 @@ -.TH "ucrec" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "ucrec" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -63,7 +63,7 @@ Definition at line 216 of file channels.h. .PP Points to the channel record where the given modes apply. If the record is not in use, this value will be NULL.Definition at line 213 of file channels.h. .PP -Referenced by userrec::userrec(). +Referenced by Server::PseudoToUser(), and userrec::userrec(). .SS "long \fBucrec::uc_modes\fP" .PP Contains a bitmask of the UCMODE_OP ... UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel.Definition at line 208 of file channels.h. diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3 index 51e5d70e5..ce305ed8b 100644 --- a/docs/man/man3/userrec.3 +++ b/docs/man/man3/userrec.3 @@ -1,4 +1,4 @@ -.TH "userrec" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "userrec" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -319,7 +319,7 @@ Referenced by userrec(). .PP Definition at line 127 of file users.h. .PP -Referenced by userrec(). +Referenced by Server::PseudoToUser(), and userrec(). .SS "char \fBuserrec::dhost\fP[256]" .PP The host displayed to non-opers (used for cloaking etc). This usually matches the value of \fBuserrec::host\fP.Definition at line 115 of file users.h. @@ -344,7 +344,7 @@ Referenced by userrec(). .PP The users ident reply. Definition at line 110 of file users.h. .PP -Referenced by GetFullHost(), GetFullRealHost(), and userrec(). +Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo(). .SS "\fBInvitedList\fP \fBuserrec::invites\fP\fC [private]\fP" .PP A list of channels the user has a pending invite to. Definition at line 99 of file users.h. @@ -359,7 +359,7 @@ Referenced by userrec(). .PP The users nickname. An invalid nickname indicates an unregistered connection prior to the NICK command.Definition at line 106 of file users.h. .PP -Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::QuitUser(), and userrec(). +Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), Server::QuitUser(), and userrec(). .SS "char \fBuserrec::oper\fP[NICKMAX]" .PP The oper type they logged in as, if they are an oper. This is used to check permissions in operclasses, so that we can say 'yay' or 'nay' to any commands they issue. The value of this is the value of a valid 'type name=' tag.Definition at line 160 of file users.h. diff --git a/docs/man/man3/users.cpp.3 b/docs/man/man3/users.cpp.3 index dac38dea5..841d30d6b 100644 --- a/docs/man/man3/users.cpp.3 +++ b/docs/man/man3/users.cpp.3 @@ -1,4 +1,4 @@ -.TH "users.cpp" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "users.cpp" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3 index c515cd5de..344634924 100644 --- a/docs/man/man3/users.h.3 +++ b/docs/man/man3/users.h.3 @@ -1,4 +1,4 @@ -.TH "users.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "users.h" 3 "13 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 d25646cd9..f5bd289ba 100644 --- a/docs/man/man3/xline.h.3 +++ b/docs/man/man3/xline.h.3 @@ -1,4 +1,4 @@ -.TH "xline.h" 3 "9 Apr 2005" "InspIRCd" \" -*- nroff -*- +.TH "xline.h" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -57,34 +57,34 @@ xline.h \- .RI "void \fBread_xline_defaults\fP ()" .br .ti -1c -.RI "void \fBadd_gline\fP (long duration, char *source, char *reason, char *hostmask)" +.RI "void \fBadd_gline\fP (long duration, const char *source, const char *reason, const char *hostmask)" .br .ti -1c -.RI "void \fBadd_qline\fP (long duration, char *source, char *reason, char *nickname)" +.RI "void \fBadd_qline\fP (long duration, const char *source, const char *reason, const char *nickname)" .br .ti -1c -.RI "void \fBadd_zline\fP (long duration, char *source, char *reason, char *ipaddr)" +.RI "void \fBadd_zline\fP (long duration, const char *source, const char *reason, const char *ipaddr)" .br .ti -1c -.RI "void \fBadd_kline\fP (long duration, char *source, char *reason, char *hostmask)" +.RI "void \fBadd_kline\fP (long duration, const char *source, const char *reason, const char *hostmask)" .br .ti -1c -.RI "void \fBadd_eline\fP (long duration, char *source, char *reason, char *hostmask)" +.RI "void \fBadd_eline\fP (long duration, const char *source, const char *reason, const char *hostmask)" .br .ti -1c -.RI "bool \fBdel_gline\fP (char *hostmask)" +.RI "bool \fBdel_gline\fP (const char *hostmask)" .br .ti -1c -.RI "bool \fBdel_qline\fP (char *nickname)" +.RI "bool \fBdel_qline\fP (const char *nickname)" .br .ti -1c -.RI "bool \fBdel_zline\fP (char *ipaddr)" +.RI "bool \fBdel_zline\fP (const char *ipaddr)" .br .ti -1c -.RI "bool \fBdel_kline\fP (char *hostmask)" +.RI "bool \fBdel_kline\fP (const char *hostmask)" .br .ti -1c -.RI "bool \fBdel_eline\fP (char *hostmask)" +.RI "bool \fBdel_eline\fP (const char *hostmask)" .br .ti -1c .RI "char * \fBmatches_qline\fP (const char *nick)" @@ -132,10 +132,10 @@ xline.h \- .RI "void \fBzline_set_creation_time\fP (char *ip, time_t create_time)" .br .ti -1c -.RI "bool \fBzline_make_global\fP (char *ipaddr)" +.RI "bool \fBzline_make_global\fP (const char *ipaddr)" .br .ti -1c -.RI "bool \fBqline_make_global\fP (char *nickname)" +.RI "bool \fBqline_make_global\fP (const char *nickname)" .br .ti -1c .RI "void \fBsync_xlines\fP (\fBserverrec\fP *serv, char *tcp_host)" @@ -143,28 +143,38 @@ xline.h \- .in -1c .SH "Function Documentation" .PP -.SS "void add_eline (long duration, char * source, char * reason, char * hostmask)" +.SS "void add_eline (long duration, const char * source, const char * reason, const char * hostmask)" .PP -.SS "void add_gline (long duration, char * source, char * reason, char * hostmask)" +Referenced by Server::AddELine(). +.SS "void add_gline (long duration, const char * source, const char * reason, const char * hostmask)" .PP -.SS "void add_kline (long duration, char * source, char * reason, char * hostmask)" +Referenced by Server::AddGLine(). +.SS "void add_kline (long duration, const char * source, const char * reason, const char * hostmask)" .PP -.SS "void add_qline (long duration, char * source, char * reason, char * nickname)" +Referenced by Server::AddKLine(). +.SS "void add_qline (long duration, const char * source, const char * reason, const char * nickname)" .PP -.SS "void add_zline (long duration, char * source, char * reason, char * ipaddr)" +Referenced by Server::AddQLine(). +.SS "void add_zline (long duration, const char * source, const char * reason, const char * ipaddr)" .PP +Referenced by Server::AddZLine(). .SS "void apply_lines ()" .PP -.SS "bool del_eline (char * hostmask)" +.SS "bool del_eline (const char * hostmask)" .PP -.SS "bool del_gline (char * hostmask)" +Referenced by Server::DelELine(). +.SS "bool del_gline (const char * hostmask)" .PP -.SS "bool del_kline (char * hostmask)" +Referenced by Server::DelGLine(). +.SS "bool del_kline (const char * hostmask)" .PP -.SS "bool del_qline (char * nickname)" +Referenced by Server::DelKLine(). +.SS "bool del_qline (const char * nickname)" .PP -.SS "bool del_zline (char * ipaddr)" +Referenced by Server::DelQLine(). +.SS "bool del_zline (const char * ipaddr)" .PP +Referenced by Server::DelZLine(). .SS "void expire_lines ()" .PP .SS "void gline_set_creation_time (char * host, time_t create_time)" @@ -179,7 +189,7 @@ xline.h \- .PP .SS "char* matches_zline (const char * ipaddr)" .PP -.SS "bool qline_make_global (char * nickname)" +.SS "bool qline_make_global (const char * nickname)" .PP .SS "void qline_set_creation_time (char * nick, time_t create_time)" .PP @@ -197,7 +207,7 @@ xline.h \- .PP .SS "void sync_xlines (\fBserverrec\fP * serv, char * tcp_host)" .PP -.SS "bool zline_make_global (char * ipaddr)" +.SS "bool zline_make_global (const char * ipaddr)" .PP .SS "void zline_set_creation_time (char * ip, time_t create_time)" .PP diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 7d840de4b..a286b898e 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -44,7 +44,7 @@ <tr><td class="indexkey"><a class="el" href="classXLine.html">XLine</a></td><td class="indexvalue">XLine is the base class for ban lines such as G lines and K lines </td></tr> <tr><td class="indexkey"><a class="el" href="classZLine.html">ZLine</a></td><td class="indexvalue">ZLine class </td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index d6d2e318f..165212158 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -55,7 +55,7 @@ 00079 00080 <span class="preprocessor">#endif</span> 00081 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index cace50581..f00eb40e6 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -49,7 +49,7 @@ Definition at line <a class="el" href="base_8h-source.html#l00025">25</a> of file <a class="el" href="base_8h-source.html">base.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index 960e756a1..cc6c02574 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -204,7 +204,7 @@ 00197 } 00198 <span class="keywordflow">return</span> std::string(<span class="stringliteral">""</span>); 00199 } -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 97b081aa4..9405c9d8a 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -51,7 +51,7 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="classModule.html">Module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="channels_8cpp.html#a2">modules</a></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="modules_8h.html#a33">ircd_module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="channels_8cpp.html#a3">factory</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="modules_8h.html#a34">ircd_module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="channels_8cpp.html#a3">factory</a></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="channels_8cpp.html#a4">LogLevel</a></td></tr> @@ -448,7 +448,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00080">80</a> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> std::vector<<a class="el" href="modules_8h.html#a33">ircd_module</a>*> factory + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="modules_8h.html#a34">ircd_module</a>*> factory </table> </td> </tr> @@ -631,7 +631,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00103">103</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00776">776</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00871">871</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a27" doxytag="channels.cpp::module_names"></a><p> @@ -1068,7 +1068,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00084">84</a> Definition at line <a class="el" href="channels_8cpp-source.html#l00083">83</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:18 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index 9b07650e1..4d6de2cc9 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -139,7 +139,7 @@ 00218 00219 <span class="preprocessor">#endif</span> 00220 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 4533c7ad5..8c03d404e 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -258,7 +258,7 @@ Holds a complete invite list. Definition at line <a class="el" href="channels_8h-source.html#l00088">88</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:18 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 63d13061d..10523942f 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classAdmin.html#o0">Name</a></td><td><a class="el" href="classAdmin.html">Admin</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classAdmin.html#o2">Nick</a></td><td><a class="el" href="classAdmin.html">Admin</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 80d4e0528..00ed8aea1 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -32,7 +32,7 @@ It is constructed by class <a class="el" href="classServer.html">Server</a>, and <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00121">121</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00123">123</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Admin::Admin"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -104,7 +104,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00304">304</a> <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00124">124</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00126">126</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a name="o0" doxytag="Admin::Name"></a><p> @@ -128,7 +128,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00124">124</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00124">124</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00126">126</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a name="o2" doxytag="Admin::Nick"></a><p> @@ -152,12 +152,12 @@ Definition at line <a class="el" href="modules_8h-source.html#l00124">124</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00124">124</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00126">126</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 8ded16b35..4660e0cf8 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#o0">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#a1">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 4433b9418..af0823eec 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -22,7 +22,7 @@ A subclass of <a class="el" href="classHostItem.html">HostItem</a> designed to h <p> Definition at line <a class="el" href="channels_8h-source.html#l00045">45</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index f44a6fc45..a4c081883 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -24,7 +24,7 @@ <tr class="memlist"><td><a class="el" href="classConfigReader.html#a8">Verify</a>()</td><td><a class="el" href="classConfigReader.html">ConfigReader</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classConfigReader.html#a2">~ConfigReader</a>()</td><td><a class="el" href="classConfigReader.html">ConfigReader</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 63eabbd82..76cdeb810 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -67,7 +67,7 @@ It may either be instantiated with one parameter or none. Constructing the class <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00683">683</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00780">780</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="ConfigReader::ConfigReader"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -97,17 +97,17 @@ Default constructor. <p> This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00579">579</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00674">674</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00675">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00696">error</a>, <a class="el" href="modules_8h-source.html#l00692">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00695">readerror</a>. +References <a class="el" href="modules_8h-source.html#l00788">cache</a>, <a class="el" href="modules_8h-source.html#l00772">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00793">error</a>, <a class="el" href="modules_8h-source.html#l00789">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00792">readerror</a>. <p> -<div class="fragment"><pre>00580 { -00581 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00582 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00583 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00584 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00585 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_FILE_NOT_FOUND</a>; -00586 } +<div class="fragment"><pre>00675 { +00676 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00677 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00678 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00679 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00680 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; +00681 } </pre></div> </td> </tr> </table> @@ -141,17 +141,17 @@ Overloaded constructor. <p> This constructor initialises the ConfigReader class to read a user-specified config file <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00598">598</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00693">693</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00675">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00696">error</a>, <a class="el" href="modules_8h-source.html#l00692">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00695">readerror</a>. +References <a class="el" href="modules_8h-source.html#l00788">cache</a>, <a class="el" href="modules_8h-source.html#l00772">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00793">error</a>, <a class="el" href="modules_8h-source.html#l00789">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00792">readerror</a>. <p> -<div class="fragment"><pre>00599 { -00600 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00601 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00602 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); -00603 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00604 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_FILE_NOT_FOUND</a>; -00605 }; +<div class="fragment"><pre>00694 { +00695 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00696 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00697 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); +00698 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00699 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; +00700 }; </pre></div> </td> </tr> </table> @@ -184,16 +184,16 @@ Default destructor. <p> This method destroys the ConfigReader class. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00589">589</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00684">684</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00691">cache</a>, and <a class="el" href="modules_8h-source.html#l00692">errorlog</a>. +References <a class="el" href="modules_8h-source.html#l00788">cache</a>, and <a class="el" href="modules_8h-source.html#l00789">errorlog</a>. <p> -<div class="fragment"><pre>00590 { -00591 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) -00592 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; -00593 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) -00594 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; -00595 } +<div class="fragment"><pre>00685 { +00686 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) +00687 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; +00688 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) +00689 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; +00690 } </pre></div> </td> </tr> </table> @@ -237,40 +237,40 @@ Dumps the list of errors in a config file to an output location. <p> If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00676">676</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00692">errorlog</a>, <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00106">userrec::nick</a>. -<p> -<div class="fragment"><pre>00677 { -00678 <span class="keywordflow">if</span> (bail) -00679 { -00680 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); -00681 exit(0); -00682 } -00683 <span class="keywordflow">else</span> -00684 { -00685 <span class="keywordtype">char</span> dataline[1024]; -00686 <span class="keywordflow">if</span> (user) -00687 { -00688 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00689 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00690 { -00691 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00692 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); -00693 } -00694 } -00695 <span class="keywordflow">else</span> -00696 { -00697 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00698 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00699 { -00700 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00701 WriteOpers(dataline); -00702 } -00703 } -00704 <span class="keywordflow">return</span>; -00705 } -00706 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00771">771</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00789">errorlog</a>, <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00106">userrec::nick</a>. +<p> +<div class="fragment"><pre>00772 { +00773 <span class="keywordflow">if</span> (bail) +00774 { +00775 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); +00776 exit(0); +00777 } +00778 <span class="keywordflow">else</span> +00779 { +00780 <span class="keywordtype">char</span> dataline[1024]; +00781 <span class="keywordflow">if</span> (user) +00782 { +00783 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00784 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00785 { +00786 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00787 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); +00788 } +00789 } +00790 <span class="keywordflow">else</span> +00791 { +00792 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00793 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00794 { +00795 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00796 WriteOpers(dataline); +00797 } +00798 } +00799 <span class="keywordflow">return</span>; +00800 } +00801 } </pre></div> </td> </tr> </table> @@ -304,13 +304,13 @@ Counts the number of times a given tag appears in the config file. <p> This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of <a class="el" href="classConfigReader.html#a3">ConfigReader::ReadValue</a> to loop through all copies of a multiple instance tag. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00709">709</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00804">804</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00691">cache</a>. +References <a class="el" href="modules_8h-source.html#l00788">cache</a>. <p> -<div class="fragment"><pre>00710 { -00711 <span class="keywordflow">return</span> EnumConf(cache,tag.c_str()); -00712 } +<div class="fragment"><pre>00805 { +00806 <span class="keywordflow">return</span> EnumConf(cache,tag.c_str()); +00807 } </pre></div> </td> </tr> </table> @@ -353,13 +353,13 @@ Returns the number of items within a tag. <p> For example if the tag was <test tag="blah" data="foo"> then this function would return 2. Spaces and newlines both qualify as valid seperators between values. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00714">714</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00809">809</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00691">cache</a>. +References <a class="el" href="modules_8h-source.html#l00788">cache</a>. <p> -<div class="fragment"><pre>00715 { -00716 <span class="keywordflow">return</span> EnumValues(cache, tag.c_str(), index); -00717 } +<div class="fragment"><pre>00810 { +00811 <span class="keywordflow">return</span> EnumValues(cache, tag.c_str(), index); +00812 } </pre></div> </td> </tr> </table> @@ -392,15 +392,15 @@ Returns the last error to occur. <p> Valid errors can be found by looking in <a class="el" href="modules_8h.html">modules.h</a>. Any nonzero value indicates an error condition. A call to <a class="el" href="classConfigReader.html#a6">GetError()</a> resets the error flag back to 0. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00669">669</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00764">764</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00696">error</a>. +References <a class="el" href="modules_8h-source.html#l00793">error</a>. <p> -<div class="fragment"><pre>00670 { -00671 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; -00672 this->error = 0; -00673 <span class="keywordflow">return</span> olderr; -00674 } +<div class="fragment"><pre>00765 { +00766 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; +00767 this->error = 0; +00768 <span class="keywordflow">return</span> olderr; +00769 } </pre></div> </td> </tr> </table> @@ -449,25 +449,25 @@ Retrieves a boolean value from the config file. <p> This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values "1", "yes" and "true" in the config file count as true to ReadFlag, and any other value counts as false. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00623">623</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00674">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00696">error</a>. -<p> -<div class="fragment"><pre>00624 { -00625 <span class="keywordtype">char</span> val[MAXBUF]; -00626 <span class="keywordtype">char</span> t[MAXBUF]; -00627 <span class="keywordtype">char</span> n[MAXBUF]; -00628 strlcpy(t,tag.c_str(),MAXBUF); -00629 strlcpy(n,name.c_str(),MAXBUF); -00630 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); -00631 <span class="keywordflow">if</span> (!res) -00632 { -00633 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>; -00634 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00635 } -00636 std::string s = val; -00637 <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>)); -00638 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00718">718</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00788">cache</a>, <a class="el" href="modules_8h-source.html#l00771">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00793">error</a>. +<p> +<div class="fragment"><pre>00719 { +00720 <span class="keywordtype">char</span> val[MAXBUF]; +00721 <span class="keywordtype">char</span> t[MAXBUF]; +00722 <span class="keywordtype">char</span> n[MAXBUF]; +00723 strlcpy(t,tag.c_str(),MAXBUF); +00724 strlcpy(n,name.c_str(),MAXBUF); +00725 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); +00726 <span class="keywordflow">if</span> (!res) +00727 { +00728 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00729 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00730 } +00731 std::string s = val; +00732 <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>)); +00733 } </pre></div> </td> </tr> </table> @@ -522,37 +522,37 @@ Retrieves an integer value from the config file. <p> This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to <a class="el" href="classConfigReader.html#a6">GetError()</a> will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and <a class="el" href="classConfigReader.html#a6">GetError()</a> will return CONF_NOT_UNSIGNED <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00640">640</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00672">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l00673">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l00674">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00696">error</a>. -<p> -<div class="fragment"><pre>00641 { -00642 <span class="keywordtype">char</span> val[MAXBUF]; -00643 <span class="keywordtype">char</span> t[MAXBUF]; -00644 <span class="keywordtype">char</span> n[MAXBUF]; -00645 strlcpy(t,tag.c_str(),MAXBUF); -00646 strlcpy(n,name.c_str(),MAXBUF); -00647 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); -00648 <span class="keywordflow">if</span> (!res) -00649 { -00650 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>; -00651 <span class="keywordflow">return</span> 0; -00652 } -00653 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) -00654 { -00655 <span class="keywordflow">if</span> (!isdigit(val[i])) -00656 { -00657 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a26">CONF_NOT_A_NUMBER</a>; -00658 <span class="keywordflow">return</span> 0; -00659 } -00660 } -00661 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) -00662 { -00663 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_UNSIGNED</a>; -00664 <span class="keywordflow">return</span> 0; -00665 } -00666 <span class="keywordflow">return</span> atoi(val); -00667 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00735">735</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00788">cache</a>, <a class="el" href="modules_8h-source.html#l00769">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l00770">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l00771">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00793">error</a>. +<p> +<div class="fragment"><pre>00736 { +00737 <span class="keywordtype">char</span> val[MAXBUF]; +00738 <span class="keywordtype">char</span> t[MAXBUF]; +00739 <span class="keywordtype">char</span> n[MAXBUF]; +00740 strlcpy(t,tag.c_str(),MAXBUF); +00741 strlcpy(n,name.c_str(),MAXBUF); +00742 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); +00743 <span class="keywordflow">if</span> (!res) +00744 { +00745 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00746 <span class="keywordflow">return</span> 0; +00747 } +00748 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) +00749 { +00750 <span class="keywordflow">if</span> (!isdigit(val[i])) +00751 { +00752 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_A_NUMBER</a>; +00753 <span class="keywordflow">return</span> 0; +00754 } +00755 } +00756 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) +00757 { +00758 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_NOT_UNSIGNED</a>; +00759 <span class="keywordflow">return</span> 0; +00760 } +00761 <span class="keywordflow">return</span> atoi(val); +00762 } </pre></div> </td> </tr> </table> @@ -601,24 +601,24 @@ Retrieves a value from the config file. <p> This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00607">607</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00674">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00696">error</a>. -<p> -<div class="fragment"><pre>00608 { -00609 <span class="keywordtype">char</span> val[MAXBUF]; -00610 <span class="keywordtype">char</span> t[MAXBUF]; -00611 <span class="keywordtype">char</span> n[MAXBUF]; -00612 strlcpy(t,tag.c_str(),MAXBUF); -00613 strlcpy(n,name.c_str(),MAXBUF); -00614 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); -00615 <span class="keywordflow">if</span> (!res) -00616 { -00617 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>; -00618 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00619 } -00620 <span class="keywordflow">return</span> std::string(val); -00621 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00702">702</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00788">cache</a>, <a class="el" href="modules_8h-source.html#l00771">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00793">error</a>. +<p> +<div class="fragment"><pre>00703 { +00704 <span class="keywordtype">char</span> val[MAXBUF]; +00705 <span class="keywordtype">char</span> t[MAXBUF]; +00706 <span class="keywordtype">char</span> n[MAXBUF]; +00707 strlcpy(t,tag.c_str(),MAXBUF); +00708 strlcpy(n,name.c_str(),MAXBUF); +00709 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); +00710 <span class="keywordflow">if</span> (!res) +00711 { +00712 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00713 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00714 } +00715 <span class="keywordflow">return</span> std::string(val); +00716 } </pre></div> </td> </tr> </table> @@ -651,13 +651,13 @@ Returns true if a config file is valid. <p> This method is partially implemented and will only return false if the config file does not exist or could not be opened. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00719">719</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00814">814</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00695">readerror</a>. +References <a class="el" href="modules_8h-source.html#l00792">readerror</a>. <p> -<div class="fragment"><pre>00720 { -00721 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; -00722 } +<div class="fragment"><pre>00815 { +00816 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; +00817 } </pre></div> </td> </tr> </table> @@ -685,9 +685,9 @@ The contents of the configuration file This protected member should never be acc <p> It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it. <p> -Definition at line <a class="el" href="modules_8h-source.html#l00691">691</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00788">788</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00709">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00714">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00623">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00640">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00607">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00589">~ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00674">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00804">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00809">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00718">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00735">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00702">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00684">~ConfigReader()</a>. </td> </tr> </table> <a name="p3" doxytag="ConfigReader::error"></a><p> @@ -711,9 +711,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader( <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00696">696</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00793">793</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00669">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00623">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00640">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00607">ReadValue()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00674">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00764">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00718">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00735">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00702">ReadValue()</a>. </td> </tr> </table> <a name="p1" doxytag="ConfigReader::errorlog"></a><p> @@ -737,9 +737,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader( <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00692">692</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00789">789</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00676">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00589">~ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00674">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00771">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00684">~ConfigReader()</a>. </td> </tr> </table> <a name="p2" doxytag="ConfigReader::readerror"></a><p> @@ -765,14 +765,14 @@ Used to store errors. <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00695">695</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00792">792</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00719">Verify()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00674">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00814">Verify()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index fe2d857a5..fde6d664e 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classConnectClass.html#o1">registration_timeout</a></td><td><a class="el" href="classConnectClass.html">ConnectClass</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classConnectClass.html#o0">type</a></td><td><a class="el" href="classConnectClass.html">ConnectClass</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index 4b3679552..b2c89b4c6 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -253,7 +253,7 @@ Definition at line <a class="el" href="users_8h-source.html#l00050">50</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="users_8h-source.html">users.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classDNS-members.html b/docs/module-doc/classDNS-members.html index dfb648263..39fbbd41a 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -31,9 +31,10 @@ <tr class="memlist"><td><a class="el" href="classDNS.html#r3">i</a></td><td><a class="el" href="classDNS.html">DNS</a></td><td><code> [private]</code></td></tr> <tr class="memlist"><td><a class="el" href="classDNS.html#r0">result</a></td><td><a class="el" href="classDNS.html">DNS</a></td><td><code> [private]</code></td></tr> <tr class="memlist"><td><a class="el" href="classDNS.html#a3">ReverseLookup</a>(std::string ip)</td><td><a class="el" href="classDNS.html">DNS</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classDNS.html#a8">SetNS</a>(std::string dnsserver)</td><td><a class="el" href="classDNS.html">DNS</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classDNS.html#r2">t</a></td><td><a class="el" href="classDNS.html">DNS</a></td><td><code> [private]</code></td></tr> <tr class="memlist"><td><a class="el" href="classDNS.html#a2">~DNS</a>()</td><td><a class="el" href="classDNS.html">DNS</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index c61f39b8c..26dfe9f05 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -37,6 +37,8 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classDNS.html#a7">GetFD</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">This method returns the file handle used by the dns query socket or zero if the query is invalid for some reason, e.g. </em> <a href="#a7"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classDNS.html#a8">SetNS</a> (std::string dnsserver)</td></tr> + <tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classDNS.html#d0">dns_init</a> ()</td></tr> @@ -762,6 +764,35 @@ This method will start the reverse lookup of an ip given in dotted decimal forma 1.2.3.4, and returns true if the lookup was successfully initiated. </td> </tr> </table> +<a name="a8" doxytag="DNS::SetNS"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void DNS::SetNS </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string </td> + <td class="mdname1" valign="top" nowrap> <em>dnsserver</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> <hr><h2>Member Data Documentation</h2> <a name="r1" doxytag="DNS::binip"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> @@ -885,7 +916,7 @@ Definition at line <a class="el" href="dns_8h-source.html#l00040">40</a> of file </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="dns_8h-source.html">dns.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index 38d54642f..df387c7cf 100644 --- a/docs/module-doc/classELine-members.html +++ b/docs/module-doc/classELine-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index b4462434d..285c773c8 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -45,7 +45,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00088">88</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index d3078e486..214ea6eaf 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#o0">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#a1">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index 21be764ec..87569b817 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -22,7 +22,7 @@ A subclass of <a class="el" href="classHostItem.html">HostItem</a> designed to h <p> Definition at line <a class="el" href="channels_8h-source.html#l00053">53</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 47b03bd61..8f0f5e29f 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classExtMode.html#o2">params_when_on</a></td><td><a class="el" href="classExtMode.html">ExtMode</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classExtMode.html#o1">type</a></td><td><a class="el" href="classExtMode.html">ExtMode</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index a5a471541..44bc54ad0 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -247,7 +247,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00199">ExtMode()</a> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index a3fabf023..8c60c700b 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classExtensible.html#a2">GetExt</a>(std::string key)</td><td><a class="el" href="classExtensible.html">Extensible</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classExtensible.html#a1">Shrink</a>(std::string key)</td><td><a class="el" href="classExtensible.html">Extensible</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 4a0488ed1..7654a4ebb 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -170,7 +170,7 @@ Definition at line <a class="el" href="base_8h-source.html#l00054">54</a> of fil </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="base_8h-source.html">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index db829c04c..929a2cfc1 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -17,7 +17,7 @@ <tr class="memlist"><td><a class="el" href="classFileReader.html#a3">LoadFile</a>(std::string filename)</td><td><a class="el" href="classFileReader.html">FileReader</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classFileReader.html#a2">~FileReader</a>()</td><td><a class="el" href="classFileReader.html">FileReader</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index a8b242713..c0055cc66 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -37,7 +37,7 @@ Inherits <a class="el" href="classclassbase.html">classbase</a>. <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the size of the file in lines. </em> <a href="#a6"></a><em><br><br></td></tr> <tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="modules_8h.html#a30">file_cache</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classFileReader.html#r0">fc</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="modules_8h.html#a31">file_cache</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classFileReader.html#r0">fc</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> @@ -47,7 +47,7 @@ This class contains methods for read-only manipulation of a text file in memory. <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00772">772</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00869">869</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="FileReader::FileReader"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -77,10 +77,10 @@ Default constructor. <p> This method does not load any file into memory, you must use the LoadFile method after constructing the class this way. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00732">732</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00827">827</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00733 { -00734 } +<div class="fragment"><pre>00828 { +00829 } </pre></div> </td> </tr> </table> @@ -114,15 +114,15 @@ Secondary constructor. <p> This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, <a class="el" href="classFileReader.html#a6">FileReader::FileSize</a> returns 0. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00725">725</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00820">820</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00774">fc</a>, and <a class="el" href="modules_8h-source.html#l00067">file_cache</a>. +References <a class="el" href="modules_8h-source.html#l00871">fc</a>, and <a class="el" href="modules_8h-source.html#l00067">file_cache</a>. <p> -<div class="fragment"><pre>00726 { -00727 <a class="code" href="modules_8h.html#a30">file_cache</a> c; -00728 readfile(c,filename.c_str()); -00729 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00730 } +<div class="fragment"><pre>00821 { +00822 <a class="code" href="modules_8h.html#a31">file_cache</a> c; +00823 readfile(c,filename.c_str()); +00824 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00825 } </pre></div> </td> </tr> </table> @@ -155,10 +155,10 @@ Default destructor. <p> This deletes the memory allocated to the file. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00744">744</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00839">839</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00745 { -00746 } +<div class="fragment"><pre>00840 { +00841 } </pre></div> </td> </tr> </table> @@ -192,20 +192,20 @@ Returns true if the file exists This function will return false if the file coul <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00748">748</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00843">843</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00774">fc</a>. +References <a class="el" href="modules_8h-source.html#l00871">fc</a>. <p> -<div class="fragment"><pre>00749 { -00750 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) -00751 { -00752 <span class="keywordflow">return</span>(<span class="keyword">false</span>); -00753 } -00754 <span class="keywordflow">else</span> -00755 { -00756 <span class="keywordflow">return</span>(<span class="keyword">true</span>); -00757 } -00758 } +<div class="fragment"><pre>00844 { +00845 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) +00846 { +00847 <span class="keywordflow">return</span>(<span class="keyword">false</span>); +00848 } +00849 <span class="keywordflow">else</span> +00850 { +00851 <span class="keywordflow">return</span>(<span class="keyword">true</span>); +00852 } +00853 } </pre></div> </td> </tr> </table> @@ -238,13 +238,13 @@ Returns the size of the file in lines. <p> This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00767">767</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00862">862</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00774">fc</a>. +References <a class="el" href="modules_8h-source.html#l00871">fc</a>. <p> -<div class="fragment"><pre>00768 { -00769 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); -00770 } +<div class="fragment"><pre>00863 { +00864 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); +00865 } </pre></div> </td> </tr> </table> @@ -278,15 +278,15 @@ Retrieve one line from the file. <p> This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00760">760</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00855">855</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00774">fc</a>. +References <a class="el" href="modules_8h-source.html#l00871">fc</a>. <p> -<div class="fragment"><pre>00761 { -00762 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) -00763 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00764 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; -00765 } +<div class="fragment"><pre>00856 { +00857 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) +00858 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00859 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; +00860 } </pre></div> </td> </tr> </table> @@ -320,15 +320,15 @@ Used to load a file. <p> This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, <a class="el" href="classFileReader.html#a6">FileReader::FileSize</a> returns 0. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00736">736</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00831">831</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00774">fc</a>, and <a class="el" href="modules_8h-source.html#l00067">file_cache</a>. +References <a class="el" href="modules_8h-source.html#l00871">fc</a>, and <a class="el" href="modules_8h-source.html#l00067">file_cache</a>. <p> -<div class="fragment"><pre>00737 { -00738 <a class="code" href="modules_8h.html#a30">file_cache</a> c; -00739 readfile(c,filename.c_str()); -00740 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00741 } +<div class="fragment"><pre>00832 { +00833 <a class="code" href="modules_8h.html#a31">file_cache</a> c; +00834 readfile(c,filename.c_str()); +00835 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00836 } </pre></div> </td> </tr> </table> @@ -339,7 +339,7 @@ References <a class="el" href="modules_8h-source.html#l00774">fc</a>, and <a cla <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a30">file_cache</a> <a class="el" href="classFileReader.html#r0">FileReader::fc</a><code> [private]</code> + <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a31">file_cache</a> <a class="el" href="classFileReader.html#r0">FileReader::fc</a><code> [private]</code> </table> </td> </tr> @@ -354,14 +354,14 @@ References <a class="el" href="modules_8h-source.html#l00774">fc</a>, and <a cla <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00774">774</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00871">871</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00748">Exists()</a>, <a class="el" href="modules_8cpp-source.html#l00725">FileReader()</a>, <a class="el" href="modules_8cpp-source.html#l00767">FileSize()</a>, <a class="el" href="modules_8cpp-source.html#l00760">GetLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00736">LoadFile()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00843">Exists()</a>, <a class="el" href="modules_8cpp-source.html#l00820">FileReader()</a>, <a class="el" href="modules_8cpp-source.html#l00862">FileSize()</a>, <a class="el" href="modules_8cpp-source.html#l00855">GetLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00831">LoadFile()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index 4a2e1ed21..d7010b3d5 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index ede8a2113..12c8a3a74 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -53,7 +53,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00079">79</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index 16f52a41d..d80951e54 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#o0">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#a1">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index 81ca7c339..1f8c0ce5b 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -178,7 +178,7 @@ Definition at line <a class="el" href="channels_8h-source.html#l00032">32</a> of </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index 98d382936..0e1ec1f72 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#o0">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#a1">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 7a02b58d8..c0b264624 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -22,7 +22,7 @@ A subclass of <a class="el" href="classHostItem.html">HostItem</a> designed to h <p> Definition at line <a class="el" href="channels_8h-source.html#l00061">61</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index a7e5e43c0..a49a0a5a7 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -10,7 +10,7 @@ <tr class="memlist"><td><a class="el" href="classInvited.html#o0">channel</a></td><td><a class="el" href="classInvited.html">Invited</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a0">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 10efd1353..ce6ab54ad 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -52,7 +52,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00085">userrec::Invite </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="users_8h-source.html">users.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index 4d4a0bfd5..d75fb3e2b 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index 4db6c2b0b..202a2c541 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -53,7 +53,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00068">68</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index 5d2b1c080..77156ab94 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -12,7 +12,7 @@ <tr class="memlist"><td><a class="el" href="classModeParameter.html#o0">mode</a></td><td><a class="el" href="classModeParameter.html">ModeParameter</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classModeParameter.html#o1">parameter</a></td><td><a class="el" href="classModeParameter.html">ModeParameter</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index f5474f110..74c1bd353 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -110,7 +110,7 @@ Referenced by <a class="el" href="channels_8cpp-source.html#l00149">chanrec::Set </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index b26175671..9face5200 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -12,6 +12,7 @@ <tr class="memlist"><td><a class="el" href="classModule.html#a0">Module</a>()</td><td><a class="el" href="classModule.html">Module</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a24">On005Numeric</a>(std::string &output)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a21">OnAccessCheck</a>(userrec *source, userrec *dest, chanrec *channel, int access_type)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classModule.html#a27">OnBackgroundTimer</a>(time_t curtime)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a23">OnChannelSync</a>(chanrec *chan)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a11">OnExtendedMode</a>(userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a14">OnInfo</a>(userrec *user)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> @@ -36,7 +37,7 @@ <tr class="memlist"><td><a class="el" href="classModule.html#a15">OnWhois</a>(userrec *source, userrec *dest)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a1">~Module</a>()</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 37ab96846..a0e01fb1e 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -48,7 +48,7 @@ Inherits <a class="el" href="classclassbase.html">classbase</a>. <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a10">OnServerRaw</a> (std::string &raw, bool inbound, <a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a raw command is transmitted or received. </em> <a href="#a10"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a11">OnExtendedMode</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *target, char modechar, int type, bool mode_on, <a class="el" href="modules_8h.html#a31">string_list</a> &params)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a11">OnExtendedMode</a> (<a class="el" href="classuserrec.html">userrec</a> *user, void *target, char modechar, int type, bool mode_on, <a class="el" href="modules_8h.html#a32">string_list</a> &params)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever an extended mode is to be processed. </em> <a href="#a11"></a><em><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a12">OnUserPreJoin</a> (<a class="el" href="classuserrec.html">userrec</a> *user, <a class="el" href="classchanrec.html">chanrec</a> *chan, const char *cname)</td></tr> @@ -81,10 +81,10 @@ Inherits <a class="el" href="classclassbase.html">classbase</a>. <tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a21">OnAccessCheck</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, <a class="el" href="classchanrec.html">chanrec</a> *channel, int access_type)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called before an action which requires a channel privilage check. </em> <a href="#a21"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a31">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a22">OnUserSync</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a32">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a22">OnUserSync</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called during a netburst to sync user data. </em> <a href="#a22"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a31">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a23">OnChannelSync</a> (<a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a32">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a23">OnChannelSync</a> (<a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called during a netburst to sync channel data. </em> <a href="#a23"></a><em><br><br></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a24">On005Numeric</a> (std::string &output)</td></tr> @@ -96,6 +96,9 @@ Inherits <a class="el" href="classclassbase.html">classbase</a>. <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a26">OnLoadModule</a> (<a class="el" href="classModule.html">Module</a> *mod, std::string name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a module is loaded. </em> <a href="#a26"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a27">OnBackgroundTimer</a> (time_t curtime)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called once every five seconds for background processing. </em> <a href="#a27"></a><em><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Base class for all InspIRCd modules This class is the base class for InspIRCd modules. @@ -104,7 +107,7 @@ All modules must inherit from this class, its methods will be called when irc se <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00133">133</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00135">135</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Module::Module"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -320,13 +323,49 @@ References <a class="el" href="modules_8h-source.html#l00037">ACR_DEFAULT</a>. </pre></div> </td> </tr> </table> +<a name="a27" doxytag="Module::OnBackgroundTimer"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void Module::OnBackgroundTimer </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">time_t </td> + <td class="mdname1" valign="top" nowrap> <em>curtime</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Called once every five seconds for background processing. +<p> +This timer can be used to control timed features. Its period is not accurate enough to be used as a clock, but it is gauranteed to be called at least once in any five second period, directly from the main loop of the server. +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00333">333</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00333 { }; +</pre></div> </td> + </tr> +</table> <a name="a23" doxytag="Module::OnChannelSync"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a31">string_list</a> Module::OnChannelSync </td> + <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a32">string_list</a> Module::OnChannelSync </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classchanrec.html">chanrec</a> * </td> <td class="mdname1" valign="top" nowrap> <em>chan</em> </td> @@ -354,7 +393,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00329">329</a> <p> References <a class="el" href="modules_8h-source.html#l00068">string_list</a>. <p> -<div class="fragment"><pre>00329 { <a class="code" href="modules_8h.html#a31">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<div class="fragment"><pre>00329 { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } </pre></div> </td> </tr> </table> @@ -396,7 +435,7 @@ References <a class="el" href="modules_8h-source.html#l00068">string_list</a>. <tr> <td></td> <td></td> - <td class="md" nowrap><a class="el" href="modules_8h.html#a31">string_list</a> & </td> + <td class="md" nowrap><a class="el" href="modules_8h.html#a32">string_list</a> & </td> <td class="mdname" nowrap> <em>params</em></td> </tr> <tr> @@ -1248,7 +1287,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00309">309</a> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a31">string_list</a> Module::OnUserSync </td> + <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a32">string_list</a> Module::OnUserSync </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td> <td class="mdname1" valign="top" nowrap> <em>user</em> </td> @@ -1276,7 +1315,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00328">328</a> <p> References <a class="el" href="modules_8h-source.html#l00068">string_list</a>. <p> -<div class="fragment"><pre>00328 { <a class="code" href="modules_8h.html#a31">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<div class="fragment"><pre>00328 { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } </pre></div> </td> </tr> </table> @@ -1327,7 +1366,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00321">321</a> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 8cb74989c..5735bfe40 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -12,7 +12,7 @@ <tr class="memlist"><td><a class="el" href="classModuleFactory.html#a0">ModuleFactory</a>()</td><td><a class="el" href="classModuleFactory.html">ModuleFactory</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModuleFactory.html#a1">~ModuleFactory</a>()</td><td><a class="el" href="classModuleFactory.html">ModuleFactory</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 7dbfe78c6..30f3bb5bd 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -30,7 +30,7 @@ This is to allow for modules to create many different variants of <a class="el" <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00827">827</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00924">924</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="ModuleFactory::ModuleFactory"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -58,9 +58,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l00827">827</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00830">830</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00927">927</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -<div class="fragment"><pre>00830 { } +<div class="fragment"><pre>00927 { } </pre></div> </td> </tr> </table> @@ -91,9 +91,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l00830">830</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00831">831</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00928">928</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -<div class="fragment"><pre>00831 { } +<div class="fragment"><pre>00928 { } </pre></div> </td> </tr> </table> @@ -130,7 +130,7 @@ Your inherited class of ModuleFactory must return a pointer to your <a class="el </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 77c50ed76..446cb8a35 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index cdc5880df..0ae4535b1 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -82,7 +82,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00114">114</a> of f </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 8a1365d42..c633a1848 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -7,9 +7,15 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>Server Member List</h1>This is the complete list of members for <a class="el" href="classServer.html">Server</a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="classServer.html#a23">AddCommand</a>(char *cmd, handlerfunc f, char flags, int minparams, char *source)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a42">AddELine</a>(long duration, std::string source, std::string reason, std::string hostmask)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a22">AddExtendedListMode</a>(char modechar)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a21">AddExtendedMode</a>(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a38">AddGLine</a>(long duration, std::string source, std::string reason, std::string hostmask)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a41">AddKLine</a>(long duration, std::string source, std::string reason, std::string hostmask)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a39">AddQLine</a>(long duration, std::string source, std::string reason, std::string nickname)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a40">AddZLine</a>(long duration, std::string source, std::string reason, std::string ipaddr)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#o0">age</a></td><td><a class="el" href="classclassbase.html">classbase</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a48">CalcDuration</a>(std::string duration)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a31">CallCommandHandler</a>(std::string commandname, char **parameters, int pcnt, userrec *user)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a33">ChangeGECOS</a>(userrec *user, std::string gecos)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a32">ChangeHost</a>(userrec *user, std::string host)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> @@ -18,6 +24,11 @@ <tr class="memlist"><td><a class="el" href="classclassbase.html#a0">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a9">CommonChannels</a>(userrec *u1, userrec *u2)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a13">CountUsers</a>(chanrec *c)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a47">DelELine</a>(std::string hostmask)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a43">DelGLine</a>(std::string hostmask)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a46">DelKLine</a>(std::string hostmask)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a44">DelQLine</a>(std::string nickname)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a45">DelZLine</a>(std::string ipaddr)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a15">FindChannel</a>(std::string channel)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a14">FindNick</a>(std::string nick)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a20">GetAdmin</a>()</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> @@ -31,6 +42,7 @@ <tr class="memlist"><td><a class="el" href="classServer.html#a3">Log</a>(int level, std::string s)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a30">MatchText</a>(std::string sliteral, std::string spattern)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a27">PartUserFromChannel</a>(userrec *user, std::string cname, std::string reason)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a37">PseudoToUser</a>(userrec *alive, userrec *zombie, std::string message)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a29">QuitUser</a>(userrec *user, std::string reason)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a4">Send</a>(int Socket, std::string s)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a8">SendChannel</a>(userrec *User, chanrec *Channel, std::string s, bool IncludeSender)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> @@ -43,9 +55,10 @@ <tr class="memlist"><td><a class="el" href="classServer.html#a25">SendToModeMask</a>(std::string modes, int flags, std::string text)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a11">SendWallops</a>(userrec *User, std::string text)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a0">Server</a>()</td><td><a class="el" href="classServer.html">Server</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classServer.html#a36">UserToPseudo</a>(userrec *user, std::string message)</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a1">~Server</a>()</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 2efb4741e..afa949803 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -120,9 +120,48 @@ Inherits <a class="el" href="classclassbase.html">classbase</a>. <tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a34">IsUlined</a> (std::string server)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the servername you give is ulined. </em> <a href="#a34"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a32">chanuserlist</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a35">GetUsers</a> (<a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a33">chanuserlist</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a35">GetUsers</a> (<a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Fetches the userlist of a channel. </em> <a href="#a35"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a36">UserToPseudo</a> (<a class="el" href="classuserrec.html">userrec</a> *user, std::string message)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove a user's connection to the irc server, but leave their client in existence in the user hash. </em> <a href="#a36"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a37">PseudoToUser</a> (<a class="el" href="classuserrec.html">userrec</a> *alive, <a class="el" href="classuserrec.html">userrec</a> *zombie, std::string message)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">This user takes one user, and switches their file descriptor with another user, so that one user "becomes" the other. </em> <a href="#a37"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a38">AddGLine</a> (long duration, std::string source, std::string reason, std::string hostmask)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a G-line The G-line is propogated to all of the servers in the mesh and enforced as soon as it is added. </em> <a href="#a38"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a39">AddQLine</a> (long duration, std::string source, std::string reason, std::string nickname)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enforced as soon as it is added. </em> <a href="#a39"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a40">AddZLine</a> (long duration, std::string source, std::string reason, std::string ipaddr)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added. </em> <a href="#a40"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a41">AddKLine</a> (long duration, std::string source, std::string reason, std::string hostmask)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a K-line The K-line is enforced as soon as it is added. </em> <a href="#a41"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a42">AddELine</a> (long duration, std::string source, std::string reason, std::string hostmask)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a E-line The E-line is enforced as soon as it is added. </em> <a href="#a42"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a43">DelGLine</a> (std::string hostmask)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes a G-Line from all servers on the mesh. </em> <a href="#a43"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a44">DelQLine</a> (std::string nickname)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes a Q-Line from all servers on the mesh. </em> <a href="#a44"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a45">DelZLine</a> (std::string ipaddr)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes a Z-Line from all servers on the mesh. </em> <a href="#a45"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a46">DelKLine</a> (std::string hostmask)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes a local K-Line. </em> <a href="#a46"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a47">DelELine</a> (std::string hostmask)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes a local E-Line. </em> <a href="#a47"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual long </td><td class="memItemRight" valign=bottom><a class="el" href="classServer.html#a48">CalcDuration</a> (std::string duration)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Calculates a duration This method will take a string containing a formatted duration (e.g. </em> <a href="#a48"></a><em><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers. @@ -131,7 +170,7 @@ All modules should instantiate at least one copy of this class, and use its memb <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00376">376</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00385">385</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Server::Server"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -266,14 +305,75 @@ When the command is typed, the parameters will be placed into the parameters arr <p> Definition at line <a class="el" href="modules_8cpp-source.html#l00420">420</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h.html#a34">createcommand()</a>. +References <a class="el" href="modules_8h.html#a35">createcommand()</a>. <p> <div class="fragment"><pre>00421 { -00422 <a class="code" href="modules_8h.html#a34">createcommand</a>(cmd,f,flags,minparams,source); +00422 <a class="code" href="modules_8h.html#a35">createcommand</a>(cmd,f,flags,minparams,source); 00423 } </pre></div> </td> </tr> </table> +<a name="a42" doxytag="Server::AddELine"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void Server::AddELine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">long </td> + <td class="mdname" nowrap> <em>duration</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>source</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>reason</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>hostmask</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Adds a E-line The E-line is enforced as soon as it is added. +<p> +The duration must be in seconds, however you can use the <a class="el" href="classServer.html#a48">Server::CalcDuration</a> method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00638">638</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="xline_8h.html#a5">add_eline()</a>, and <a class="el" href="commands_8h.html#a75">duration()</a>. +<p> +<div class="fragment"><pre>00639 { +00640 <a class="code" href="xline_8h.html#a5">add_eline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00641 } +</pre></div> </td> + </tr> +</table> <a name="a22" doxytag="Server::AddExtendedListMode"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -404,6 +504,290 @@ References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a clas </pre></div> </td> </tr> </table> +<a name="a38" doxytag="Server::AddGLine"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void Server::AddGLine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">long </td> + <td class="mdname" nowrap> <em>duration</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>source</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>reason</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>hostmask</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Adds a G-line The G-line is propogated to all of the servers in the mesh and enforced as soon as it is added. +<p> +The duration must be in seconds, however you can use the <a class="el" href="classServer.html#a48">Server::CalcDuration</a> method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00618">618</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="xline_8h.html#a1">add_gline()</a>, and <a class="el" href="commands_8h.html#a75">duration()</a>. +<p> +<div class="fragment"><pre>00619 { +00620 <a class="code" href="xline_8h.html#a1">add_gline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00621 } +</pre></div> </td> + </tr> +</table> +<a name="a41" doxytag="Server::AddKLine"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void Server::AddKLine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">long </td> + <td class="mdname" nowrap> <em>duration</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>source</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>reason</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>hostmask</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Adds a K-line The K-line is enforced as soon as it is added. +<p> +The duration must be in seconds, however you can use the <a class="el" href="classServer.html#a48">Server::CalcDuration</a> method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00633">633</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="xline_8h.html#a4">add_kline()</a>, and <a class="el" href="commands_8h.html#a75">duration()</a>. +<p> +<div class="fragment"><pre>00634 { +00635 <a class="code" href="xline_8h.html#a4">add_kline</a>(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00636 } +</pre></div> </td> + </tr> +</table> +<a name="a39" doxytag="Server::AddQLine"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void Server::AddQLine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">long </td> + <td class="mdname" nowrap> <em>duration</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>source</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>reason</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>nickname</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enforced as soon as it is added. +<p> +The duration must be in seconds, however you can use the <a class="el" href="classServer.html#a48">Server::CalcDuration</a> method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00623">623</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="xline_8h.html#a2">add_qline()</a>, and <a class="el" href="commands_8h.html#a75">duration()</a>. +<p> +<div class="fragment"><pre>00624 { +00625 <a class="code" href="xline_8h.html#a2">add_qline</a>(duration, source.c_str(), reason.c_str(), nickname.c_str()); +00626 } +</pre></div> </td> + </tr> +</table> +<a name="a40" doxytag="Server::AddZLine"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void Server::AddZLine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">long </td> + <td class="mdname" nowrap> <em>duration</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>source</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>reason</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>ipaddr</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added. +<p> +The duration must be in seconds, however you can use the <a class="el" href="classServer.html#a48">Server::CalcDuration</a> method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00628">628</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="xline_8h.html#a3">add_zline()</a>, and <a class="el" href="commands_8h.html#a75">duration()</a>. +<p> +<div class="fragment"><pre>00629 { +00630 <a class="code" href="xline_8h.html#a3">add_zline</a>(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +00631 } +</pre></div> </td> + </tr> +</table> +<a name="a48" doxytag="Server::CalcDuration"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> long Server::CalcDuration </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string </td> + <td class="mdname1" valign="top" nowrap> <em>duration</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Calculates a duration This method will take a string containing a formatted duration (e.g. +<p> +"1w2d") and return its value as a total number of seconds. This is the same function used internally by /GLINE etc to set the ban times. +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00668">668</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="commands_8h.html#a75">duration()</a>. +<p> +<div class="fragment"><pre>00669 { +00670 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a75">duration</a>(delta.c_str()); +00671 } +</pre></div> </td> + </tr> +</table> <a name="a31" doxytag="Server::CallCommandHandler"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -745,6 +1129,206 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00573">573</a> </pre></div> </td> </tr> </table> +<a name="a47" doxytag="Server::DelELine"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool Server::DelELine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string </td> + <td class="mdname1" valign="top" nowrap> <em>hostmask</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Deletes a local E-Line. +<p> + +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00663">663</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="xline_8h.html#a10">del_eline()</a>. +<p> +<div class="fragment"><pre>00664 { +00665 <a class="code" href="xline_8h.html#a10">del_eline</a>(hostmask.c_str()); +00666 } +</pre></div> </td> + </tr> +</table> +<a name="a43" doxytag="Server::DelGLine"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool Server::DelGLine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string </td> + <td class="mdname1" valign="top" nowrap> <em>hostmask</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Deletes a G-Line from all servers on the mesh. +<p> + +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00643">643</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="xline_8h.html#a6">del_gline()</a>. +<p> +<div class="fragment"><pre>00644 { +00645 <a class="code" href="xline_8h.html#a6">del_gline</a>(hostmask.c_str()); +00646 } +</pre></div> </td> + </tr> +</table> +<a name="a46" doxytag="Server::DelKLine"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool Server::DelKLine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string </td> + <td class="mdname1" valign="top" nowrap> <em>hostmask</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Deletes a local K-Line. +<p> + +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00658">658</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="xline_8h.html#a9">del_kline()</a>. +<p> +<div class="fragment"><pre>00659 { +00660 <a class="code" href="xline_8h.html#a9">del_kline</a>(hostmask.c_str()); +00661 } +</pre></div> </td> + </tr> +</table> +<a name="a44" doxytag="Server::DelQLine"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool Server::DelQLine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string </td> + <td class="mdname1" valign="top" nowrap> <em>nickname</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Deletes a Q-Line from all servers on the mesh. +<p> + +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00648">648</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="xline_8h.html#a7">del_qline()</a>. +<p> +<div class="fragment"><pre>00649 { +00650 <a class="code" href="xline_8h.html#a7">del_qline</a>(nickname.c_str()); +00651 } +</pre></div> </td> + </tr> +</table> +<a name="a45" doxytag="Server::DelZLine"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool Server::DelZLine </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string </td> + <td class="mdname1" valign="top" nowrap> <em>ipaddr</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Deletes a Z-Line from all servers on the mesh. +<p> + +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00653">653</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="xline_8h.html#a8">del_zline()</a>. +<p> +<div class="fragment"><pre>00654 { +00655 <a class="code" href="xline_8h.html#a8">del_zline</a>(ipaddr.c_str()); +00656 } +</pre></div> </td> + </tr> +</table> <a name="a15" doxytag="Server::FindChannel"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -938,7 +1522,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00528">528</a> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a32">chanuserlist</a> Server::GetUsers </td> + <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a33">chanuserlist</a> Server::GetUsers </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classchanrec.html">chanrec</a> * </td> <td class="mdname1" valign="top" nowrap> <em>chan</em> </td> @@ -967,7 +1551,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00375">375</a> References <a class="el" href="modules_8h-source.html#l00072">chanuserlist</a>, <a class="el" href="modules_8cpp-source.html#l00179">clientlist</a>, <a class="el" href="message_8h.html#a16">has_channel()</a>, and <a class="el" href="message_8h.html#a13">isnick()</a>. <p> <div class="fragment"><pre>00376 { -00377 <a class="code" href="modules_8h.html#a32">chanuserlist</a> userl; +00377 <a class="code" href="modules_8h.html#a33">chanuserlist</a> userl; 00378 userl.clear(); 00379 <span class="keywordflow">for</span> (user_hash::const_iterator i = <a class="code" href="modules_8cpp.html#a42">clientlist</a>.begin(); i != <a class="code" href="modules_8cpp.html#a42">clientlist</a>.end(); i++) 00380 { @@ -1319,6 +1903,86 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00370">370</a> </pre></div> </td> </tr> </table> +<a name="a37" doxytag="Server::PseudoToUser"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool Server::PseudoToUser </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td> + <td class="mdname" nowrap> <em>alive</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td> + <td class="mdname" nowrap> <em>zombie</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>message</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This user takes one user, and switches their file descriptor with another user, so that one user "becomes" the other. +<p> +The user in 'alive' is booted off the server with the given message. The user referred to by 'zombie' should have previously been locked with Server::ZombifyUser, otherwise stale sockets and file descriptor leaks can occur. After this call, the pointer to alive will be invalid, and the pointer to zombie will be equivalent in effect to the old pointer to alive. +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00588">588</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="channels_8h-source.html#l00213">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00127">userrec::chans</a>, <a class="el" href="channels_8h-source.html#l00111">chanrec::created</a>, <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, <a class="el" href="modules_8h-source.html#l00099">FD_MAGIC_NUMBER</a>, <a class="el" href="connection_8h-source.html#l00182">connection::host</a>, <a class="el" href="users_8h-source.html#l00110">userrec::ident</a>, <a class="el" href="channels_8h-source.html#l00099">chanrec::name</a>, <a class="el" href="users_8h-source.html#l00106">userrec::nick</a>, <a class="el" href="channels_8h-source.html#l00119">chanrec::setby</a>, <a class="el" href="channels_8h-source.html#l00108">chanrec::topic</a>, and <a class="el" href="channels_8h-source.html#l00115">chanrec::topicset</a>. +<p> +<div class="fragment"><pre>00589 { +00590 zombie-><a class="code" href="classconnection.html#o0">fd</a> = alive-><a class="code" href="classconnection.html#o0">fd</a>; +00591 alive-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; +00592 Write(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s!%s@%s NICK %s"</span>,alive-><a class="code" href="classuserrec.html#o0">nick</a>,alive-><a class="code" href="classuserrec.html#o1">ident</a>,alive-><a class="code" href="classconnection.html#o1">host</a>,zombie-><a class="code" href="classuserrec.html#o0">nick</a>); +00593 kill_link(alive,message.c_str()); +00594 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i != MAXCHANS; i++) +00595 { +00596 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> != NULL) +00597 { +00598 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>-><a class="code" href="classchanrec.html#o0">name</a>) +00599 { +00600 <a class="code" href="classchanrec.html">chanrec</a>* Ptr = zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>; +00601 WriteFrom(zombie-><a class="code" href="classconnection.html#o0">fd</a>,zombie,<span class="stringliteral">"JOIN %s"</span>,Ptr-><a class="code" href="classchanrec.html#o0">name</a>); +00602 <span class="keywordflow">if</span> (Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>) +00603 { +00604 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"332 %s %s :%s"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o2">topic</a>); +00605 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"333 %s %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o5">setby</a>, Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>); +00606 } +00607 userlist(zombie,Ptr); +00608 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"366 %s %s :End of /NAMES list."</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>); +00609 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"324 %s %s +%s"</span>,zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>,chanmodes(Ptr)); +00610 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"329 %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o3">created</a>); +00611 +00612 } +00613 } +00614 } +00615 +00616 } +</pre></div> </td> + </tr> +</table> <a name="a29" doxytag="Server::QuitUser"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -1651,10 +2315,10 @@ The modes will originate from the server where the command was issued, however r <p> Definition at line <a class="el" href="modules_8cpp-source.html#l00425">425</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h.html#a35">server_mode()</a>. +References <a class="el" href="modules_8h.html#a36">server_mode()</a>. <p> <div class="fragment"><pre>00426 { -00427 <a class="code" href="modules_8h.html#a35">server_mode</a>(parameters,pcnt,user); +00427 <a class="code" href="modules_8h.html#a36">server_mode</a>(parameters,pcnt,user); 00428 } </pre></div> </td> </tr> @@ -1914,9 +2578,62 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00488">488</a> </pre></div> </td> </tr> </table> +<a name="a36" doxytag="Server::UserToPseudo"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool Server::UserToPseudo </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td> + <td class="mdname" nowrap> <em>user</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>message</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Remove a user's connection to the irc server, but leave their client in existence in the user hash. +<p> +When you call this function, the user's file descriptor will be replaced with the value of FD_MAGIC_NUMBER and their old file descriptor will be closed. This idle client will remain until it is restored with a valid file descriptor, or is removed from IRC by an operator After this call, the pointer to user will be invalid. +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00579">579</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, <a class="el" href="modules_8h-source.html#l00099">FD_MAGIC_NUMBER</a>, <a class="el" href="connection_8h-source.html#l00182">connection::host</a>, and <a class="el" href="users_8h-source.html#l00110">userrec::ident</a>. +<p> +<div class="fragment"><pre>00580 { +00581 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> old_fd = user-><a class="code" href="classconnection.html#o0">fd</a>; +00582 user-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; +00583 Write(old_fd,<span class="stringliteral">"ERROR :Closing link (%s@%s) [%s]"</span>,user-><a class="code" href="classuserrec.html#o1">ident</a>,user-><a class="code" href="classconnection.html#o1">host</a>,message.c_str()); +00584 close(old_fd); +00585 shutdown (old_fd,2); +00586 } +</pre></div> </td> + </tr> +</table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index 91a734b38..a78156551 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classVersion.html#o2">Revision</a></td><td><a class="el" href="classVersion.html">Version</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classVersion.html#a0">Version</a>(int major, int minor, int revision, int build, int flags)</td><td><a class="el" href="classVersion.html">Version</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 92eb3d6a5..41e660ec6 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -36,7 +36,7 @@ A class of type Version is returned by the GetVersion method of the <a class="el <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00109">109</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00111">111</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Version::Version"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -120,7 +120,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00300">300</a> <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00112">112</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00114">114</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a name="o4" doxytag="Version::Flags"></a><p> @@ -144,7 +144,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00112">112</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00112">112</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00114">114</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a name="o0" doxytag="Version::Major"></a><p> @@ -168,7 +168,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00112">112</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00112">112</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00114">114</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a name="o1" doxytag="Version::Minor"></a><p> @@ -192,7 +192,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00112">112</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00112">112</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00114">114</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a name="o2" doxytag="Version::Revision"></a><p> @@ -216,12 +216,12 @@ Definition at line <a class="el" href="modules_8h-source.html#l00112">112</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00112">112</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00114">114</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index 356ae6a0c..6797c1e27 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 8e8529931..db859e018 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -171,7 +171,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00048">48</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index 587d790e3..7e1d5bd5d 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index 679c6df9f..ec16df960 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -82,7 +82,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00103">103</a> of f </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index b72b75074..c6b93353d 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -33,7 +33,7 @@ <tr class="memlist"><td><a class="el" href="classchanrec.html#o4">topicset</a></td><td><a class="el" href="classchanrec.html">chanrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classchanrec.html#a5">~chanrec</a>()</td><td><a class="el" href="classchanrec.html">chanrec</a></td><td><code> [inline, virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 1071ee78e..21088efe5 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -488,7 +488,7 @@ Creation time. <p> Definition at line <a class="el" href="channels_8h-source.html#l00111">111</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>. </td> </tr> </table> <a name="o1" doxytag="chanrec::custom_modes"></a><p> @@ -656,7 +656,7 @@ The channels name. <p> Definition at line <a class="el" href="channels_8h-source.html#l00099">99</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>. </td> </tr> </table> <a name="o9" doxytag="chanrec::noexternal"></a><p> @@ -740,7 +740,7 @@ If this member is an empty string, no topic was ever set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00119">119</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>. </td> </tr> </table> <a name="o2" doxytag="chanrec::topic"></a><p> @@ -768,7 +768,7 @@ If this is an empty string, no channel topic is set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00108">108</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>. </td> </tr> </table> <a name="o8" doxytag="chanrec::topiclock"></a><p> @@ -824,12 +824,12 @@ If no topic was ever set, this will be equal to <a class="el" href="classchanrec <p> Definition at line <a class="el" href="channels_8h-source.html#l00115">115</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00113">chanrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a><li><a class="el" href="channels_8cpp-source.html">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 542a0a763..b8767da5d 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -9,7 +9,7 @@ <tr class="memlist"><td><a class="el" href="classclassbase.html#o0">age</a></td><td><a class="el" href="classclassbase.html">classbase</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a0">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index 206bad389..8f0a90364 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -132,7 +132,7 @@ Referenced by <a class="el" href="base_8h-source.html#l00039">classbase()</a>. </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="base_8h-source.html">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index 9e328eda4..44c7fd630 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -19,7 +19,7 @@ <tr class="memlist"><td><a class="el" href="classcommand__t.html#o5">total_bytes</a></td><td><a class="el" href="classcommand__t.html">command_t</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classcommand__t.html#o4">use_count</a></td><td><a class="el" href="classcommand__t.html">command_t</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 5579a3102..5b952627f 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -227,7 +227,7 @@ Definition at line <a class="el" href="ctables_8h-source.html#l00043">43</a> of </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="ctables_8h-source.html">ctables.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index 987203298..09b4b14a2 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -41,7 +41,7 @@ <tr class="memlist"><td><a class="el" href="classconnection.html#o11">state</a></td><td><a class="el" href="classconnection.html">connection</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classconnection.html#a4">TerminateLink</a>(char *targethost)</td><td><a class="el" href="classconnection.html">connection</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 17adc0793..f4684a222 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -675,7 +675,7 @@ File descriptor of the connection. <p> Definition at line <a class="el" href="connection_8h-source.html#l00178">178</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00676">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00445">Server::SendTo()</a>, <a class="el" href="servers_8cpp-source.html#l00026">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00771">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00445">Server::SendTo()</a>, <a class="el" href="servers_8cpp-source.html#l00026">serverrec::serverrec()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00579">Server::UserToPseudo()</a>. </td> </tr> </table> <a name="o8" doxytag="connection::haspassed"></a><p> @@ -731,7 +731,7 @@ Not used if this is a serverrec <p> Definition at line <a class="el" href="connection_8h-source.html#l00182">182</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00065">userrec::GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00065">userrec::GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00579">Server::UserToPseudo()</a>. </td> </tr> </table> <a name="o14" doxytag="connection::idle_lastmsg"></a><p> @@ -1038,7 +1038,7 @@ Definition at line <a class="el" href="connection_8h-source.html#l00224">224</a> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="connection_8h-source.html">connection.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 0556fe9fb..062c1eb51 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -25,7 +25,7 @@ </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> S </div></td></tr></table> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> Z </div></td></tr></table> </td></tr><tr><td><a class="el" href="classconnection.html">connection</a> </td><td><a class="el" href="classGLine.html">GLine</a> </td><td><a class="el" href="classModeParameter.html">ModeParameter</a> </td><td><a class="el" href="classServer.html">Server</a> </td><td><a class="el" href="classZLine.html">ZLine</a> </td></tr><tr><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> D </div></td></tr></table> -</td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +</td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classircd__connector-members.html b/docs/module-doc/classircd__connector-members.html index de7c3ad39..d7d4dc551 100644 --- a/docs/module-doc/classircd__connector-members.html +++ b/docs/module-doc/classircd__connector-members.html @@ -35,7 +35,7 @@ <tr class="memlist"><td><a class="el" href="classExtensible.html#a1">Shrink</a>(std::string key)</td><td><a class="el" href="classExtensible.html">Extensible</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classircd__connector.html#r4">state</a></td><td><a class="el" href="classircd__connector.html">ircd_connector</a></td><td><code> [private]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classircd__connector.html b/docs/module-doc/classircd__connector.html index 9faa9d81c..7155a5007 100644 --- a/docs/module-doc/classircd__connector.html +++ b/docs/module-doc/classircd__connector.html @@ -792,7 +792,7 @@ Definition at line <a class="el" href="connection_8h-source.html#l00075">75</a> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="connection_8h-source.html">connection.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classpacket-members.html b/docs/module-doc/classpacket-members.html index d44d2d256..5a7b7f455 100644 --- a/docs/module-doc/classpacket-members.html +++ b/docs/module-doc/classpacket-members.html @@ -9,7 +9,7 @@ <tr class="memlist"><td><a class="el" href="classclassbase.html#o0">age</a></td><td><a class="el" href="classclassbase.html">classbase</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a0">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classpacket.html b/docs/module-doc/classpacket.html index aac4c3479..b0f2d3ac8 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. <p> Definition at line <a class="el" href="connection_8h-source.html#l00167">167</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="connection_8h-source.html">connection.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index ac224aa7b..3b17f6dd5 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -55,7 +55,7 @@ <tr class="memlist"><td><a class="el" href="classserverrec.html#o6">version</a></td><td><a class="el" href="classserverrec.html">serverrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classserverrec.html#a2">~serverrec</a>()</td><td><a class="el" href="classserverrec.html">serverrec</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index f3abf4cde..093f0056b 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -519,7 +519,7 @@ Referenced by <a class="el" href="servers_8cpp-source.html#l00026">serverrec()</ </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="servers_8h-source.html">servers.h</a><li><a class="el" href="servers_8cpp-source.html">servers.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index 5023f2f47..3116cdbd5 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classucrec.html#a0">ucrec</a>()</td><td><a class="el" href="classucrec.html">ucrec</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classucrec.html#a1">~ucrec</a>()</td><td><a class="el" href="classucrec.html">ucrec</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 58c79339a..3d83bc3da 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -127,7 +127,7 @@ If the record is not in use, this value will be NULL. <p> Definition at line <a class="el" href="channels_8h-source.html#l00213">213</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td> </tr> </table> <a name="o0" doxytag="ucrec::uc_modes"></a><p> @@ -160,7 +160,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userre </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index b4a7a3d6c..4a130b12c 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -64,7 +64,7 @@ <tr class="memlist"><td><a class="el" href="classuserrec.html#a0">userrec</a>()</td><td><a class="el" href="classuserrec.html">userrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classuserrec.html#a1">~userrec</a>()</td><td><a class="el" href="classuserrec.html">userrec</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 87662d230..766943daa 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -553,7 +553,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. <p> Definition at line <a class="el" href="users_8h-source.html#l00127">127</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td> </tr> </table> <a name="o2" doxytag="userrec::dhost"></a><p> @@ -693,7 +693,7 @@ The users ident reply. <p> Definition at line <a class="el" href="users_8h-source.html#l00110">110</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00579">Server::UserToPseudo()</a>. </td> </tr> </table> <a name="r0" doxytag="userrec::invites"></a><p> @@ -777,7 +777,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma <p> Definition at line <a class="el" href="users_8h-source.html#l00106">106</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00676">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00399">Server::QuitUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00771">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00058">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00065">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00399">Server::QuitUser()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </td> </tr> </table> <a name="o11" doxytag="userrec::oper"></a><p> @@ -920,7 +920,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec()</a>. </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="users_8h-source.html">users.h</a><li><a class="el" href="users_8cpp-source.html">users.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index eda1a826e..6b9303bb3 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -115,8 +115,10 @@ 00114 00117 <span class="keywordtype">bool</span> <a class="code" href="commands_8h.html#a74">is_uline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* server); 00118 -00119 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +00121 <span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str); +00122 +00123 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index 20821c0dc..b3159d464 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -172,8 +172,44 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="commands_8h.html#a74">is_uline</a> (const char *server)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Functions for u:lined servers. </em> <a href="#a74"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="commands_8h.html#a75">duration</a> (const char *str)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Other useful functions. </em> <a href="#a75"></a><em><br><br></td></tr> </table> <hr><h2>Function Documentation</h2> +<a name="a75" doxytag="commands.h::duration"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> long duration </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>str</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Other useful functions. +<p> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00638">Server::AddELine()</a>, <a class="el" href="modules_8cpp-source.html#l00618">Server::AddGLine()</a>, <a class="el" href="modules_8cpp-source.html#l00633">Server::AddKLine()</a>, <a class="el" href="modules_8cpp-source.html#l00623">Server::AddQLine()</a>, <a class="el" href="modules_8cpp-source.html#l00628">Server::AddZLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00668">Server::CalcDuration()</a>. </td> + </tr> +</table> <a name="a58" doxytag="commands.h::handle_a"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -3757,7 +3793,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00405">Server::IsUli </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index fe1dc1a6c..3d6983473 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -168,7 +168,7 @@ 00300 00301 <span class="preprocessor">#endif</span> 00302 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index e547c3018..36d2484b2 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -191,7 +191,7 @@ Definition at line <a class="el" href="connection_8h-source.html#l00039">39</a> Definition at line <a class="el" href="connection_8h-source.html#l00036">36</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index 9936f3e99..d7b5fdf89 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -42,7 +42,7 @@ 00051 00052 <span class="preprocessor">#endif</span> 00053 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index 59a1acd44..634815250 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -17,7 +17,7 @@ <tr><td class="mdescLeft"> </td><td class="mdescRight">A structure that defines a command. </em> <a href="classcommand__t.html#_details">More...</a><em><br><br></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/dns_8h-source.html b/docs/module-doc/dns_8h-source.html index f20248524..0d62a3379 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -66,10 +66,11 @@ 00083 <span class="keywordtype">bool</span> <a class="code" href="classDNS.html#a5">HasResult</a>(); 00087 std::string <a class="code" href="classDNS.html#a6">GetResult</a>(); 00091 <span class="keywordtype">int</span> <a class="code" href="classDNS.html#a7">GetFD</a>(); -00092 }; -00093 -00094 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +00092 <span class="keywordtype">void</span> <a class="code" href="classDNS.html#a8">SetNS</a>(std::string dnsserver); +00093 }; +00094 +00095 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/dns_8h.html b/docs/module-doc/dns_8h.html index 871e33205..e8de7e681 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -20,7 +20,7 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structdns__ip4list.html">dns_ip4list</a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 399dfaede..7f5849ac8 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -23,7 +23,7 @@ <tr><td class="indexkey"><a class="el" href="users_8h.html">users.h</a> <a href="users_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="xline_8h.html">xline.h</a> <a href="xline_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 211bef36a..35d8dcc9a 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -14,11 +14,16 @@ Here is a list of all class members with links to the classes they belong to:<h3><a name="index_a">- a -</a> </h3><ul> <li>AddCommand() -: <a class="el" href="classServer.html#a23">Server</a><li>AddExtendedListMode() +: <a class="el" href="classServer.html#a23">Server</a><li>AddELine() +: <a class="el" href="classServer.html#a42">Server</a><li>AddExtendedListMode() : <a class="el" href="classServer.html#a22">Server</a><li>AddExtendedMode() -: <a class="el" href="classServer.html#a21">Server</a><li>AddIncoming() -: <a class="el" href="classconnection.html#a8">connection</a><li>addr -: <a class="el" href="classircd__connector.html#r0">ircd_connector</a><li>Admin() +: <a class="el" href="classServer.html#a21">Server</a><li>AddGLine() +: <a class="el" href="classServer.html#a38">Server</a><li>AddIncoming() +: <a class="el" href="classconnection.html#a8">connection</a><li>AddKLine() +: <a class="el" href="classServer.html#a41">Server</a><li>AddQLine() +: <a class="el" href="classServer.html#a39">Server</a><li>addr +: <a class="el" href="classircd__connector.html#r0">ircd_connector</a><li>AddZLine() +: <a class="el" href="classServer.html#a40">Server</a><li>Admin() : <a class="el" href="classAdmin.html#a0">Admin</a><li>age : <a class="el" href="classclassbase.html#o0">classbase</a><li>awaymsg : <a class="el" href="classuserrec.html#o7">userrec</a></ul> @@ -35,7 +40,8 @@ Here is a list of all class members with links to the classes they belong to:<h3 </h3><ul> <li>c_private : <a class="el" href="classchanrec.html#o13">chanrec</a><li>cache -: <a class="el" href="classConfigReader.html#p0">ConfigReader</a><li>CallCommandHandler() +: <a class="el" href="classConfigReader.html#p0">ConfigReader</a><li>CalcDuration() +: <a class="el" href="classServer.html#a48">Server</a><li>CallCommandHandler() : <a class="el" href="classServer.html#a31">Server</a><li>ChangeGECOS() : <a class="el" href="classServer.html#a33">Server</a><li>ChangeHost() : <a class="el" href="classServer.html#a32">Server</a><li>ChangeUserNick() @@ -62,7 +68,12 @@ Here is a list of all class members with links to the classes they belong to:<h3 <h3><a name="index_d">- d -</a> </h3><ul> <li>data -: <a class="el" href="classHostItem.html#o2">HostItem</a><li>description +: <a class="el" href="classHostItem.html#o2">HostItem</a><li>DelELine() +: <a class="el" href="classServer.html#a47">Server</a><li>DelGLine() +: <a class="el" href="classServer.html#a43">Server</a><li>DelKLine() +: <a class="el" href="classServer.html#a46">Server</a><li>DelQLine() +: <a class="el" href="classServer.html#a44">Server</a><li>DelZLine() +: <a class="el" href="classServer.html#a45">Server</a><li>description : <a class="el" href="classserverrec.html#o8">serverrec</a>, <a class="el" href="classircd__connector.html#r3">ircd_connector</a><li>dhost : <a class="el" href="classuserrec.html#o2">userrec</a><li>DNS() : <a class="el" href="classDNS.html#a1">DNS</a><li>dns_aton4() @@ -212,7 +223,8 @@ Here is a list of all class members with links to the classes they belong to:<h3 </h3><ul> <li>On005Numeric() : <a class="el" href="classModule.html#a24">Module</a><li>OnAccessCheck() -: <a class="el" href="classModule.html#a21">Module</a><li>OnChannelSync() +: <a class="el" href="classModule.html#a21">Module</a><li>OnBackgroundTimer() +: <a class="el" href="classModule.html#a27">Module</a><li>OnChannelSync() : <a class="el" href="classModule.html#a23">Module</a><li>OnExtendedMode() : <a class="el" href="classModule.html#a11">Module</a><li>OnInfo() : <a class="el" href="classModule.html#a14">Module</a><li>OnKill() @@ -248,7 +260,8 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classConnectClass.html#o5">ConnectClass</a><li>pingmax : <a class="el" href="classuserrec.html#o13">userrec</a><li>pingtime : <a class="el" href="classConnectClass.html#o4">ConnectClass</a>, <a class="el" href="classserverrec.html#o1">serverrec</a><li>port -: <a class="el" href="classconnection.html#o9">connection</a>, <a class="el" href="classircd__connector.html#o1">ircd_connector</a></ul> +: <a class="el" href="classconnection.html#o9">connection</a>, <a class="el" href="classircd__connector.html#o1">ircd_connector</a><li>PseudoToUser() +: <a class="el" href="classServer.html#a37">Server</a></ul> <h3><a name="index_q">- q -</a> </h3><ul> <li>QuitUser() @@ -283,9 +296,9 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classServer.html#a5">Server</a><li>SendTo() : <a class="el" href="classServer.html#a7">Server</a><li>SendToModeMask() : <a class="el" href="classServer.html#a25">Server</a><li>SendWallops() -: <a class="el" href="classServer.html#a11">Server</a><li>server -: <a class="el" href="classuserrec.html#o6">userrec</a><li>Server() -: <a class="el" href="classServer.html#a0">Server</a><li>servername +: <a class="el" href="classServer.html#a11">Server</a><li>Server() +: <a class="el" href="classServer.html#a0">Server</a><li>server +: <a class="el" href="classuserrec.html#o6">userrec</a><li>servername : <a class="el" href="classircd__connector.html#r2">ircd_connector</a><li>serverrec() : <a class="el" href="classserverrec.html#a1">serverrec</a><li>set_by : <a class="el" href="classHostItem.html#o1">HostItem</a><li>set_time @@ -296,7 +309,8 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classircd__connector.html#a9">ircd_connector</a><li>SetDescriptor() : <a class="el" href="classircd__connector.html#a4">ircd_connector</a><li>SetHostAddress() : <a class="el" href="classircd__connector.html#d0">ircd_connector</a><li>SetHostAndPort() -: <a class="el" href="classircd__connector.html#a12">ircd_connector</a><li>SetServerName() +: <a class="el" href="classircd__connector.html#a12">ircd_connector</a><li>SetNS() +: <a class="el" href="classDNS.html#a8">DNS</a><li>SetServerName() : <a class="el" href="classircd__connector.html#a2">ircd_connector</a><li>SetServerPort() : <a class="el" href="classircd__connector.html#a11">ircd_connector</a><li>SetState() : <a class="el" href="classircd__connector.html#a6">ircd_connector</a><li>Shrink() @@ -324,13 +338,14 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classcommand__t.html#o4">command_t</a><li>usercount : <a class="el" href="classserverrec.html#o3">serverrec</a><li>usercount_i : <a class="el" href="classserverrec.html#o2">serverrec</a><li>userrec() -: <a class="el" href="classuserrec.html#a0">userrec</a></ul> +: <a class="el" href="classuserrec.html#a0">userrec</a><li>UserToPseudo() +: <a class="el" href="classServer.html#a36">Server</a></ul> <h3><a name="index_v">- v -</a> </h3><ul> <li>Verify() -: <a class="el" href="classConfigReader.html#a8">ConfigReader</a><li>Version() -: <a class="el" href="classVersion.html#a0">Version</a><li>version -: <a class="el" href="classserverrec.html#o6">serverrec</a></ul> +: <a class="el" href="classConfigReader.html#a8">ConfigReader</a><li>version +: <a class="el" href="classserverrec.html#o6">serverrec</a><li>Version() +: <a class="el" href="classVersion.html#a0">Version</a></ul> <h3><a name="index_~">- ~ -</a> </h3><ul> <li>~chanrec() @@ -346,7 +361,7 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classserverrec.html#a2">serverrec</a><li>~ucrec() : <a class="el" href="classucrec.html#a1">ucrec</a><li>~userrec() : <a class="el" href="classuserrec.html#a1">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index b77333087..107e6cff6 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -14,10 +14,15 @@ <h3><a name="index_a">- a -</a> </h3><ul> <li>AddCommand() -: <a class="el" href="classServer.html#a23">Server</a><li>AddExtendedListMode() +: <a class="el" href="classServer.html#a23">Server</a><li>AddELine() +: <a class="el" href="classServer.html#a42">Server</a><li>AddExtendedListMode() : <a class="el" href="classServer.html#a22">Server</a><li>AddExtendedMode() -: <a class="el" href="classServer.html#a21">Server</a><li>AddIncoming() -: <a class="el" href="classconnection.html#a8">connection</a><li>Admin() +: <a class="el" href="classServer.html#a21">Server</a><li>AddGLine() +: <a class="el" href="classServer.html#a38">Server</a><li>AddIncoming() +: <a class="el" href="classconnection.html#a8">connection</a><li>AddKLine() +: <a class="el" href="classServer.html#a41">Server</a><li>AddQLine() +: <a class="el" href="classServer.html#a39">Server</a><li>AddZLine() +: <a class="el" href="classServer.html#a40">Server</a><li>Admin() : <a class="el" href="classAdmin.html#a0">Admin</a></ul> <h3><a name="index_b">- b -</a> </h3><ul> @@ -25,7 +30,8 @@ : <a class="el" href="classconnection.html#a2">connection</a></ul> <h3><a name="index_c">- c -</a> </h3><ul> -<li>CallCommandHandler() +<li>CalcDuration() +: <a class="el" href="classServer.html#a48">Server</a><li>CallCommandHandler() : <a class="el" href="classServer.html#a31">Server</a><li>ChangeGECOS() : <a class="el" href="classServer.html#a33">Server</a><li>ChangeHost() : <a class="el" href="classServer.html#a32">Server</a><li>ChangeUserNick() @@ -43,7 +49,12 @@ : <a class="el" href="classModuleFactory.html#a2">ModuleFactory</a></ul> <h3><a name="index_d">- d -</a> </h3><ul> -<li>DNS() +<li>DelELine() +: <a class="el" href="classServer.html#a47">Server</a><li>DelGLine() +: <a class="el" href="classServer.html#a43">Server</a><li>DelKLine() +: <a class="el" href="classServer.html#a46">Server</a><li>DelQLine() +: <a class="el" href="classServer.html#a44">Server</a><li>DelZLine() +: <a class="el" href="classServer.html#a45">Server</a><li>DNS() : <a class="el" href="classDNS.html#a1">DNS</a><li>dns_aton4() : <a class="el" href="classDNS.html#d2">DNS</a><li>dns_aton4_r() : <a class="el" href="classDNS.html#d11">DNS</a><li>dns_aton4_s() @@ -135,7 +146,8 @@ </h3><ul> <li>On005Numeric() : <a class="el" href="classModule.html#a24">Module</a><li>OnAccessCheck() -: <a class="el" href="classModule.html#a21">Module</a><li>OnChannelSync() +: <a class="el" href="classModule.html#a21">Module</a><li>OnBackgroundTimer() +: <a class="el" href="classModule.html#a27">Module</a><li>OnChannelSync() : <a class="el" href="classModule.html#a23">Module</a><li>OnExtendedMode() : <a class="el" href="classModule.html#a11">Module</a><li>OnInfo() : <a class="el" href="classModule.html#a14">Module</a><li>OnKill() @@ -162,7 +174,8 @@ <h3><a name="index_p">- p -</a> </h3><ul> <li>PartUserFromChannel() -: <a class="el" href="classServer.html#a27">Server</a></ul> +: <a class="el" href="classServer.html#a27">Server</a><li>PseudoToUser() +: <a class="el" href="classServer.html#a37">Server</a></ul> <h3><a name="index_q">- q -</a> </h3><ul> <li>QuitUser() @@ -197,7 +210,8 @@ : <a class="el" href="classircd__connector.html#a9">ircd_connector</a><li>SetDescriptor() : <a class="el" href="classircd__connector.html#a4">ircd_connector</a><li>SetHostAddress() : <a class="el" href="classircd__connector.html#d0">ircd_connector</a><li>SetHostAndPort() -: <a class="el" href="classircd__connector.html#a12">ircd_connector</a><li>SetServerName() +: <a class="el" href="classircd__connector.html#a12">ircd_connector</a><li>SetNS() +: <a class="el" href="classDNS.html#a8">DNS</a><li>SetServerName() : <a class="el" href="classircd__connector.html#a2">ircd_connector</a><li>SetServerPort() : <a class="el" href="classircd__connector.html#a11">ircd_connector</a><li>SetState() : <a class="el" href="classircd__connector.html#a6">ircd_connector</a><li>Shrink() @@ -210,7 +224,8 @@ </h3><ul> <li>ucrec() : <a class="el" href="classucrec.html#a0">ucrec</a><li>userrec() -: <a class="el" href="classuserrec.html#a0">userrec</a></ul> +: <a class="el" href="classuserrec.html#a0">userrec</a><li>UserToPseudo() +: <a class="el" href="classServer.html#a36">Server</a></ul> <h3><a name="index_v">- v -</a> </h3><ul> <li>Verify() @@ -231,7 +246,7 @@ : <a class="el" href="classserverrec.html#a2">serverrec</a><li>~ucrec() : <a class="el" href="classucrec.html#a1">ucrec</a><li>~userrec() : <a class="el" href="classuserrec.html#a1">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index 22a91e569..fd3393478 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -180,7 +180,7 @@ </h3><ul> <li>version : <a class="el" href="classserverrec.html#o6">serverrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index a705ecff3..277bb64e7 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -55,7 +55,7 @@ Here is a list of all file members with links to the files they belong to:<h3><a : <a class="el" href="message_8h.html#a11">message.h</a><li>ChangeName() : <a class="el" href="message_8h.html#a10">message.h</a><li>chanlist : <a class="el" href="modules_8cpp.html#a43">modules.cpp</a><li>chanuserlist -: <a class="el" href="modules_8h.html#a32">modules.h</a><li>chlist() +: <a class="el" href="modules_8h.html#a33">modules.h</a><li>chlist() : <a class="el" href="message_8h.html#a18">message.h</a><li>chop() : <a class="el" href="message_8h.html#a1">message.h</a><li>ClassVector : <a class="el" href="users_8h.html#a7">users.h</a><li>CleanAndResolve() @@ -65,12 +65,12 @@ Here is a list of all file members with links to the files they belong to:<h3><a : <a class="el" href="message_8h.html#a14">message.h</a><li>command_table : <a class="el" href="modules_8cpp.html#a41">modules.cpp</a><li>common_channels() : <a class="el" href="message_8h.html#a0">message.h</a><li>CONF_FILE_NOT_FOUND -: <a class="el" href="modules_8h.html#a29">modules.h</a><li>CONF_NOT_A_NUMBER -: <a class="el" href="modules_8h.html#a26">modules.h</a><li>CONF_NOT_UNSIGNED -: <a class="el" href="modules_8h.html#a27">modules.h</a><li>CONF_VALUE_NOT_FOUND -: <a class="el" href="modules_8h.html#a28">modules.h</a><li>config_f +: <a class="el" href="modules_8h.html#a30">modules.h</a><li>CONF_NOT_A_NUMBER +: <a class="el" href="modules_8h.html#a27">modules.h</a><li>CONF_NOT_UNSIGNED +: <a class="el" href="modules_8h.html#a28">modules.h</a><li>CONF_VALUE_NOT_FOUND +: <a class="el" href="modules_8h.html#a29">modules.h</a><li>config_f : <a class="el" href="users_8cpp.html#a0">users.cpp</a>, <a class="el" href="modules_8cpp.html#a35">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a34">channels.cpp</a><li>createcommand() -: <a class="el" href="modules_8h.html#a34">modules.h</a><li>cstatus() +: <a class="el" href="modules_8h.html#a35">modules.h</a><li>cstatus() : <a class="el" href="message_8h.html#a15">message.h</a><li>custom_mode_params : <a class="el" href="channels_8cpp.html#a38">channels.cpp</a></ul> <h3><a name="index_d">- d -</a> @@ -88,7 +88,8 @@ Here is a list of all file members with links to the files they belong to:<h3><a : <a class="el" href="modules_8cpp.html#a22">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a21">channels.cpp</a><li>diepass : <a class="el" href="modules_8cpp.html#a12">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a11">channels.cpp</a><li>DieValue : <a class="el" href="modules_8cpp.html#a18">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a17">channels.cpp</a><li>DoAddExtendedMode() -: <a class="el" href="modules_8cpp.html#a57">modules.cpp</a></ul> +: <a class="el" href="modules_8cpp.html#a57">modules.cpp</a><li>duration() +: <a class="el" href="commands_8h.html#a75">commands.h</a></ul> <h3><a name="index_e">- e -</a> </h3><ul> <li>EMode @@ -100,9 +101,10 @@ Here is a list of all file members with links to the files they belong to:<h3><a <h3><a name="index_f">- f -</a> </h3><ul> <li>factory -: <a class="el" href="modules_8cpp.html#a60">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a3">channels.cpp</a><li>fd_reap +: <a class="el" href="modules_8cpp.html#a60">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a3">channels.cpp</a><li>FD_MAGIC_NUMBER +: <a class="el" href="modules_8h.html#a26">modules.h</a><li>fd_reap : <a class="el" href="modules_8cpp.html#a27">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a26">channels.cpp</a><li>file_cache -: <a class="el" href="modules_8h.html#a30">modules.h</a><li>FOREACH_MOD +: <a class="el" href="modules_8h.html#a31">modules.h</a><li>FOREACH_MOD : <a class="el" href="modules_8h.html#a24">modules.h</a><li>FOREACH_RESULT : <a class="el" href="modules_8h.html#a25">modules.h</a></ul> <h3><a name="index_g">- g -</a> @@ -197,7 +199,7 @@ Here is a list of all file members with links to the files they belong to:<h3><a : <a class="el" href="users_8h.html#a6">users.h</a><li>InviteList : <a class="el" href="channels_8h.html#a7">channels.h</a><li>IP : <a class="el" href="modules_8cpp.html#a48">modules.cpp</a><li>ircd_module -: <a class="el" href="modules_8h.html#a33">modules.h</a><li>is_uline() +: <a class="el" href="modules_8h.html#a34">modules.h</a><li>is_uline() : <a class="el" href="commands_8h.html#a74">commands.h</a><li>isident() : <a class="el" href="message_8h.html#a12">message.h</a><li>isnick() : <a class="el" href="message_8h.html#a13">message.h</a></ul> @@ -229,9 +231,9 @@ Here is a list of all file members with links to the files they belong to:<h3><a : <a class="el" href="modules_8cpp.html#a53">modules.cpp</a><li>ModeMakeList() : <a class="el" href="modules_8cpp.html#a58">modules.cpp</a><li>module_names : <a class="el" href="modules_8cpp.html#a28">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a27">channels.cpp</a><li>modules -: <a class="el" href="modules_8cpp.html#a59">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a2">channels.cpp</a><li>MOTD -: <a class="el" href="modules_8cpp.html#a46">modules.cpp</a><li>motd -: <a class="el" href="modules_8cpp.html#a14">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a13">channels.cpp</a><li>MT_CHANNEL +: <a class="el" href="modules_8cpp.html#a59">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a2">channels.cpp</a><li>motd +: <a class="el" href="modules_8cpp.html#a14">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a13">channels.cpp</a><li>MOTD +: <a class="el" href="modules_8cpp.html#a46">modules.cpp</a><li>MT_CHANNEL : <a class="el" href="modules_8h.html#a5">modules.h</a><li>MT_CLIENT : <a class="el" href="modules_8h.html#a6">modules.h</a><li>MT_SERVER : <a class="el" href="modules_8h.html#a7">modules.h</a></ul> @@ -270,7 +272,7 @@ Here is a list of all file members with links to the files they belong to:<h3><a <li>safedelete() : <a class="el" href="message_8h.html#a4">message.h</a><li>send_network_quit() : <a class="el" href="message_8h.html#a19">message.h</a><li>server_mode() -: <a class="el" href="modules_8h.html#a35">modules.h</a>, <a class="el" href="mode_8h.html#a12">mode.h</a><li>ServerDesc +: <a class="el" href="modules_8h.html#a36">modules.h</a>, <a class="el" href="mode_8h.html#a12">mode.h</a><li>ServerDesc : <a class="el" href="modules_8cpp.html#a8">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a7">channels.cpp</a><li>ServerName : <a class="el" href="modules_8cpp.html#a6">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a5">channels.cpp</a><li>SPARSE : <a class="el" href="modules_8h.html#a3">modules.h</a><li>startup_time @@ -290,7 +292,7 @@ Here is a list of all file members with links to the files they belong to:<h3><a : <a class="el" href="users_8h.html#a3">users.h</a><li>STATUS_OP : <a class="el" href="users_8h.html#a0">users.h</a><li>STATUS_VOICE : <a class="el" href="users_8h.html#a2">users.h</a><li>string_list -: <a class="el" href="modules_8h.html#a31">modules.h</a><li>sync_xlines() +: <a class="el" href="modules_8h.html#a32">modules.h</a><li>sync_xlines() : <a class="el" href="xline_8h.html#a28">xline.h</a></ul> <h3><a name="index_t">- t -</a> </h3><ul> @@ -332,7 +334,7 @@ Here is a list of all file members with links to the files they belong to:<h3><a <li>zline_make_global() : <a class="el" href="xline_8h.html#a26">xline.h</a><li>zline_set_creation_time() : <a class="el" href="xline_8h.html#a25">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index 10e000af8..51a5f2540 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -31,10 +31,10 @@ <li>CC_ALLOW : <a class="el" href="users_8h.html#a4">users.h</a><li>CC_DENY : <a class="el" href="users_8h.html#a5">users.h</a><li>CONF_FILE_NOT_FOUND -: <a class="el" href="modules_8h.html#a29">modules.h</a><li>CONF_NOT_A_NUMBER -: <a class="el" href="modules_8h.html#a26">modules.h</a><li>CONF_NOT_UNSIGNED -: <a class="el" href="modules_8h.html#a27">modules.h</a><li>CONF_VALUE_NOT_FOUND -: <a class="el" href="modules_8h.html#a28">modules.h</a></ul> +: <a class="el" href="modules_8h.html#a30">modules.h</a><li>CONF_NOT_A_NUMBER +: <a class="el" href="modules_8h.html#a27">modules.h</a><li>CONF_NOT_UNSIGNED +: <a class="el" href="modules_8h.html#a28">modules.h</a><li>CONF_VALUE_NOT_FOUND +: <a class="el" href="modules_8h.html#a29">modules.h</a></ul> <h3><a name="index_d">- d -</a> </h3><ul> <li>DEBUG @@ -42,7 +42,8 @@ : <a class="el" href="modules_8h.html#a2">modules.h</a></ul> <h3><a name="index_f">- f -</a> </h3><ul> -<li>FOREACH_MOD +<li>FD_MAGIC_NUMBER +: <a class="el" href="modules_8h.html#a26">modules.h</a><li>FOREACH_MOD : <a class="el" href="modules_8h.html#a24">modules.h</a><li>FOREACH_RESULT : <a class="el" href="modules_8h.html#a25">modules.h</a></ul> <h3><a name="index_l">- l -</a> @@ -91,7 +92,7 @@ : <a class="el" href="modules_8h.html#a22">modules.h</a><li>VF_STATIC : <a class="el" href="modules_8h.html#a20">modules.h</a><li>VF_VENDOR : <a class="el" href="modules_8h.html#a21">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/globals_func.html b/docs/module-doc/globals_func.html index e718cf0bd..3112091d9 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -37,7 +37,7 @@ : <a class="el" href="message_8h.html#a7">message.h</a><li>cmode() : <a class="el" href="message_8h.html#a14">message.h</a><li>common_channels() : <a class="el" href="message_8h.html#a0">message.h</a><li>createcommand() -: <a class="el" href="modules_8h.html#a34">modules.h</a><li>cstatus() +: <a class="el" href="modules_8h.html#a35">modules.h</a><li>cstatus() : <a class="el" href="message_8h.html#a15">message.h</a></ul> <h3><a name="index_d">- d -</a> </h3><ul> @@ -47,7 +47,8 @@ : <a class="el" href="xline_8h.html#a9">xline.h</a><li>del_qline() : <a class="el" href="xline_8h.html#a7">xline.h</a><li>del_zline() : <a class="el" href="xline_8h.html#a8">xline.h</a><li>DoAddExtendedMode() -: <a class="el" href="modules_8cpp.html#a57">modules.cpp</a></ul> +: <a class="el" href="modules_8cpp.html#a57">modules.cpp</a><li>duration() +: <a class="el" href="commands_8h.html#a75">commands.h</a></ul> <h3><a name="index_e">- e -</a> </h3><ul> <li>expire_lines() @@ -189,7 +190,7 @@ <li>safedelete() : <a class="el" href="message_8h.html#a4">message.h</a><li>send_network_quit() : <a class="el" href="message_8h.html#a19">message.h</a><li>server_mode() -: <a class="el" href="modules_8h.html#a35">modules.h</a>, <a class="el" href="mode_8h.html#a12">mode.h</a><li>stats_e() +: <a class="el" href="modules_8h.html#a36">modules.h</a>, <a class="el" href="mode_8h.html#a12">mode.h</a><li>stats_e() : <a class="el" href="xline_8h.html#a22">xline.h</a><li>stats_g() : <a class="el" href="xline_8h.html#a19">xline.h</a><li>stats_k() : <a class="el" href="xline_8h.html#a18">xline.h</a><li>stats_q() @@ -210,7 +211,7 @@ <li>zline_make_global() : <a class="el" href="xline_8h.html#a26">xline.h</a><li>zline_set_creation_time() : <a class="el" href="xline_8h.html#a25">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index 3016dde3a..7609a4875 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -13,20 +13,20 @@ : <a class="el" href="modules_8cpp.html#a40">modules.cpp</a><li>BanList : <a class="el" href="channels_8h.html#a5">channels.h</a><li>chan_hash : <a class="el" href="modules_8cpp.html#a39">modules.cpp</a><li>chanuserlist -: <a class="el" href="modules_8h.html#a32">modules.h</a><li>ClassVector +: <a class="el" href="modules_8h.html#a33">modules.h</a><li>ClassVector : <a class="el" href="users_8h.html#a7">users.h</a><li>command_table : <a class="el" href="modules_8cpp.html#a41">modules.cpp</a><li>ExemptList : <a class="el" href="channels_8h.html#a6">channels.h</a><li>ExtModeList : <a class="el" href="modules_8cpp.html#a49">modules.cpp</a><li>ExtModeListIter : <a class="el" href="modules_8cpp.html#a50">modules.cpp</a><li>file_cache -: <a class="el" href="modules_8h.html#a30">modules.h</a><li>InvitedList +: <a class="el" href="modules_8h.html#a31">modules.h</a><li>InvitedList : <a class="el" href="users_8h.html#a6">users.h</a><li>InviteList : <a class="el" href="channels_8h.html#a7">channels.h</a><li>ircd_module -: <a class="el" href="modules_8h.html#a33">modules.h</a><li>string_list -: <a class="el" href="modules_8h.html#a31">modules.h</a><li>user_hash +: <a class="el" href="modules_8h.html#a34">modules.h</a><li>string_list +: <a class="el" href="modules_8h.html#a32">modules.h</a><li>user_hash : <a class="el" href="modules_8cpp.html#a38">modules.cpp</a><li>VoidPointer : <a class="el" href="base_8h.html#a0">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index 25851c7d6..27bb6b227 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -64,9 +64,9 @@ : <a class="el" href="modules_8cpp.html#a36">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a35">channels.cpp</a><li>MODCOUNT : <a class="el" href="modules_8cpp.html#a1">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a1">channels.cpp</a><li>module_names : <a class="el" href="modules_8cpp.html#a28">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a27">channels.cpp</a><li>modules -: <a class="el" href="modules_8cpp.html#a59">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a2">channels.cpp</a><li>MOTD -: <a class="el" href="modules_8cpp.html#a46">modules.cpp</a><li>motd -: <a class="el" href="modules_8cpp.html#a14">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a13">channels.cpp</a></ul> +: <a class="el" href="modules_8cpp.html#a59">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a2">channels.cpp</a><li>motd +: <a class="el" href="modules_8cpp.html#a14">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a13">channels.cpp</a><li>MOTD +: <a class="el" href="modules_8cpp.html#a46">modules.cpp</a></ul> <h3><a name="index_n">- n -</a> </h3><ul> <li>nb_start @@ -105,7 +105,7 @@ : <a class="el" href="modules_8cpp.html#a44">modules.cpp</a><li>WHOWAS_MAX : <a class="el" href="modules_8cpp.html#a21">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a20">channels.cpp</a><li>WHOWAS_STALE : <a class="el" href="modules_8cpp.html#a20">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a19">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:31 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 843817f81..4103344aa 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -54,7 +54,7 @@ <li><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a> <li><a class="el" href="structStrHashComp.html">StrHashComp</a> </ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index e080909ab..12a93e728 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindexHL" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>InspIRCd Documentation</h1> <p> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:14 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index ac7d5140f..9ae75ebfc 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -57,7 +57,7 @@ 00050 <span class="keywordtype">void</span> <a class="code" href="message_8h.html#a19">send_network_quit</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nick, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason); 00051 00052 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index 6b449ac5d..9878c2b09 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -735,7 +735,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00399">Server::QuitU </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 599f647b3..a289e6744 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -47,13 +47,13 @@ 00040 <span class="keywordtype">bool</span> <a class="code" href="mode_8h.html#a9">allowed_umode</a>(<span class="keywordtype">char</span> umode, <span class="keywordtype">char</span>* sourcemodes,<span class="keywordtype">bool</span> adding); 00041 <span class="keywordtype">bool</span> <a class="code" href="mode_8h.html#a10">process_module_umode</a>(<span class="keywordtype">char</span> umode, <a class="code" href="classuserrec.html">userrec</a>* source, <span class="keywordtype">void</span>* dest, <span class="keywordtype">bool</span> adding); 00042 <span class="keywordtype">void</span> <a class="code" href="mode_8h.html#a11">handle_mode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); -00043 <span class="keywordtype">void</span> <a class="code" href="modules_8h.html#a35">server_mode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); +00043 <span class="keywordtype">void</span> <a class="code" href="modules_8h.html#a36">server_mode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); 00044 <span class="keywordtype">void</span> <a class="code" href="mode_8h.html#a13">merge_mode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt); 00045 <span class="keywordtype">void</span> <a class="code" href="mode_8h.html#a14">merge_mode2</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); 00046 00047 00048 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index dcef62b04..4335f8288 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index fd9f62d41..29bf17884 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -187,8 +187,8 @@ <a name="l00180"></a><a class="code" href="modules_8cpp.html#a43">00180</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a39">chan_hash</a> <a class="code" href="modules_8cpp.html#a43">chanlist</a>; <a name="l00181"></a><a class="code" href="modules_8cpp.html#a44">00181</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a38">user_hash</a> <a class="code" href="modules_8cpp.html#a44">whowas</a>; <a name="l00182"></a><a class="code" href="modules_8cpp.html#a45">00182</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a41">command_table</a> <a class="code" href="modules_8cpp.html#a45">cmdlist</a>; -<a name="l00183"></a><a class="code" href="modules_8cpp.html#a46">00183</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a30">file_cache</a> <a class="code" href="modules_8cpp.html#a46">MOTD</a>; -<a name="l00184"></a><a class="code" href="modules_8cpp.html#a47">00184</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a30">file_cache</a> <a class="code" href="modules_8cpp.html#a47">RULES</a>; +<a name="l00183"></a><a class="code" href="modules_8cpp.html#a46">00183</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a31">file_cache</a> <a class="code" href="modules_8cpp.html#a46">MOTD</a>; +<a name="l00184"></a><a class="code" href="modules_8cpp.html#a47">00184</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a31">file_cache</a> <a class="code" href="modules_8cpp.html#a47">RULES</a>; <a name="l00185"></a><a class="code" href="modules_8cpp.html#a48">00185</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a40">address_cache</a> <a class="code" href="modules_8cpp.html#a48">IP</a>; 00186 00187 @@ -332,12 +332,12 @@ <a name="l00325"></a><a class="code" href="classModule.html#a19">00325</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a19">Module::OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newnick) { <span class="keywordflow">return</span> 0; }; <a name="l00326"></a><a class="code" href="classModule.html#a20">00326</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a20">Module::OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string oldnick) { }; <a name="l00327"></a><a class="code" href="classModule.html#a21">00327</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a21">Module::OnAccessCheck</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel,<span class="keywordtype">int</span> access_type) { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#a8">ACR_DEFAULT</a>; }; -<a name="l00328"></a><a class="code" href="classModule.html#a22">00328</a> <a class="code" href="modules_8h.html#a31">string_list</a> <a class="code" href="classModule.html#a22">Module::OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { <a class="code" href="modules_8h.html#a31">string_list</a> empty; <span class="keywordflow">return</span> empty; } -<a name="l00329"></a><a class="code" href="classModule.html#a23">00329</a> <a class="code" href="modules_8h.html#a31">string_list</a> <a class="code" href="classModule.html#a23">Module::OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) { <a class="code" href="modules_8h.html#a31">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<a name="l00328"></a><a class="code" href="classModule.html#a22">00328</a> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a22">Module::OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<a name="l00329"></a><a class="code" href="classModule.html#a23">00329</a> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a23">Module::OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) { <a class="code" href="modules_8h.html#a32">string_list</a> empty; <span class="keywordflow">return</span> empty; } <a name="l00330"></a><a class="code" href="classModule.html#a24">00330</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a24">Module::On005Numeric</a>(std::string &output) { }; <a name="l00331"></a><a class="code" href="classModule.html#a25">00331</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a25">Module::OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, std::string reason) { <span class="keywordflow">return</span> 0; }; <a name="l00332"></a><a class="code" href="classModule.html#a26">00332</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a26">Module::OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,std::string name) { }; -00333 +<a name="l00333"></a><a class="code" href="classModule.html#a27">00333</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a27">Module::OnBackgroundTimer</a>(time_t curtime) { }; 00334 00335 <span class="comment">// server is a wrapper class that provides methods to all of the C-style</span> 00336 <span class="comment">// exports in the core</span> @@ -379,9 +379,9 @@ 00372 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); 00373 } 00374 -<a name="l00375"></a><a class="code" href="classServer.html#a35">00375</a> <a class="code" href="modules_8h.html#a32">chanuserlist</a> <a class="code" href="classServer.html#a35">Server::GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) +<a name="l00375"></a><a class="code" href="classServer.html#a35">00375</a> <a class="code" href="modules_8h.html#a33">chanuserlist</a> <a class="code" href="classServer.html#a35">Server::GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) 00376 { -00377 <a class="code" href="modules_8h.html#a32">chanuserlist</a> userl; +00377 <a class="code" href="modules_8h.html#a33">chanuserlist</a> userl; 00378 userl.clear(); 00379 <span class="keywordflow">for</span> (user_hash::const_iterator i = <a class="code" href="modules_8cpp.html#a42">clientlist</a>.begin(); i != <a class="code" href="modules_8cpp.html#a42">clientlist</a>.end(); i++) 00380 { @@ -426,12 +426,12 @@ 00419 <a name="l00420"></a><a class="code" href="classServer.html#a23">00420</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">Server::AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams, <span class="keywordtype">char</span>* source) 00421 { -00422 <a class="code" href="modules_8h.html#a34">createcommand</a>(cmd,f,flags,minparams,source); +00422 <a class="code" href="modules_8h.html#a35">createcommand</a>(cmd,f,flags,minparams,source); 00423 } 00424 <a name="l00425"></a><a class="code" href="classServer.html#a24">00425</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">Server::SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user) 00426 { -00427 <a class="code" href="modules_8h.html#a35">server_mode</a>(parameters,pcnt,user); +00427 <a class="code" href="modules_8h.html#a36">server_mode</a>(parameters,pcnt,user); 00428 } 00429 <a name="l00430"></a><a class="code" href="classServer.html#a4">00430</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Server::Send</a>(<span class="keywordtype">int</span> Socket, std::string s) @@ -583,207 +583,302 @@ 00576 } 00577 00578 -<a name="l00579"></a><a class="code" href="classConfigReader.html#a0">00579</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>() +<a name="l00579"></a><a class="code" href="classServer.html#a36">00579</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a36">Server::UserToPseudo</a>(<a class="code" href="classuserrec.html">userrec</a>* user,std::string message) 00580 { -00581 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00582 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00583 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00584 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00585 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_FILE_NOT_FOUND</a>; +00581 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> old_fd = user-><a class="code" href="classconnection.html#o0">fd</a>; +00582 user-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; +00583 Write(old_fd,<span class="stringliteral">"ERROR :Closing link (%s@%s) [%s]"</span>,user-><a class="code" href="classuserrec.html#o1">ident</a>,user-><a class="code" href="classconnection.html#o1">host</a>,message.c_str()); +00584 close(old_fd); +00585 shutdown (old_fd,2); 00586 } 00587 -00588 -<a name="l00589"></a><a class="code" href="classConfigReader.html#a2">00589</a> <a class="code" href="classConfigReader.html#a2">ConfigReader::~ConfigReader</a>() -00590 { -00591 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) -00592 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; -00593 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) -00594 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; -00595 } -00596 -00597 -<a name="l00598"></a><a class="code" href="classConfigReader.html#a1">00598</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>(std::string filename) -00599 { -00600 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00601 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00602 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); -00603 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00604 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_FILE_NOT_FOUND</a>; -00605 }; -00606 -<a name="l00607"></a><a class="code" href="classConfigReader.html#a3">00607</a> std::string <a class="code" href="classConfigReader.html#a3">ConfigReader::ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) -00608 { -00609 <span class="keywordtype">char</span> val[MAXBUF]; -00610 <span class="keywordtype">char</span> t[MAXBUF]; -00611 <span class="keywordtype">char</span> n[MAXBUF]; -00612 strlcpy(t,tag.c_str(),MAXBUF); -00613 strlcpy(n,name.c_str(),MAXBUF); -00614 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); -00615 <span class="keywordflow">if</span> (!res) -00616 { -00617 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>; -00618 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00619 } -00620 <span class="keywordflow">return</span> std::string(val); +<a name="l00588"></a><a class="code" href="classServer.html#a37">00588</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a37">Server::PseudoToUser</a>(<a class="code" href="classuserrec.html">userrec</a>* alive,<a class="code" href="classuserrec.html">userrec</a>* zombie,std::string message) +00589 { +00590 zombie-><a class="code" href="classconnection.html#o0">fd</a> = alive-><a class="code" href="classconnection.html#o0">fd</a>; +00591 alive-><a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a>; +00592 Write(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s!%s@%s NICK %s"</span>,alive-><a class="code" href="classuserrec.html#o0">nick</a>,alive-><a class="code" href="classuserrec.html#o1">ident</a>,alive-><a class="code" href="classconnection.html#o1">host</a>,zombie-><a class="code" href="classuserrec.html#o0">nick</a>); +00593 kill_link(alive,message.c_str()); +00594 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i != MAXCHANS; i++) +00595 { +00596 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> != NULL) +00597 { +00598 <span class="keywordflow">if</span> (zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>-><a class="code" href="classchanrec.html#o0">name</a>) +00599 { +00600 <a class="code" href="classchanrec.html">chanrec</a>* Ptr = zombie-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a>; +00601 WriteFrom(zombie-><a class="code" href="classconnection.html#o0">fd</a>,zombie,<span class="stringliteral">"JOIN %s"</span>,Ptr-><a class="code" href="classchanrec.html#o0">name</a>); +00602 <span class="keywordflow">if</span> (Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>) +00603 { +00604 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"332 %s %s :%s"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o2">topic</a>); +00605 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"333 %s %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o5">setby</a>, Ptr-><a class="code" href="classchanrec.html#o4">topicset</a>); +00606 } +00607 userlist(zombie,Ptr); +00608 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"366 %s %s :End of /NAMES list."</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>); +00609 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"324 %s %s +%s"</span>,zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>,chanmodes(Ptr)); +00610 WriteServ(zombie-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"329 %s %s %d"</span>, zombie-><a class="code" href="classuserrec.html#o0">nick</a>, Ptr-><a class="code" href="classchanrec.html#o0">name</a>, Ptr-><a class="code" href="classchanrec.html#o3">created</a>); +00611 +00612 } +00613 } +00614 } +00615 +00616 } +00617 +<a name="l00618"></a><a class="code" href="classServer.html#a38">00618</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a38">Server::AddGLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string hostmask) +00619 { +00620 <a class="code" href="xline_8h.html#a1">add_gline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); 00621 } 00622 -<a name="l00623"></a><a class="code" href="classConfigReader.html#a4">00623</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ConfigReader::ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) +<a name="l00623"></a><a class="code" href="classServer.html#a39">00623</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a39">Server::AddQLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string nickname) 00624 { -00625 <span class="keywordtype">char</span> val[MAXBUF]; -00626 <span class="keywordtype">char</span> t[MAXBUF]; -00627 <span class="keywordtype">char</span> n[MAXBUF]; -00628 strlcpy(t,tag.c_str(),MAXBUF); -00629 strlcpy(n,name.c_str(),MAXBUF); -00630 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); -00631 <span class="keywordflow">if</span> (!res) -00632 { -00633 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>; -00634 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00635 } -00636 std::string s = val; -00637 <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>)); -00638 } -00639 -<a name="l00640"></a><a class="code" href="classConfigReader.html#a5">00640</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ConfigReader::ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned) -00641 { -00642 <span class="keywordtype">char</span> val[MAXBUF]; -00643 <span class="keywordtype">char</span> t[MAXBUF]; -00644 <span class="keywordtype">char</span> n[MAXBUF]; -00645 strlcpy(t,tag.c_str(),MAXBUF); -00646 strlcpy(n,name.c_str(),MAXBUF); -00647 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); -00648 <span class="keywordflow">if</span> (!res) -00649 { -00650 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>; -00651 <span class="keywordflow">return</span> 0; -00652 } -00653 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) -00654 { -00655 <span class="keywordflow">if</span> (!isdigit(val[i])) -00656 { -00657 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a26">CONF_NOT_A_NUMBER</a>; -00658 <span class="keywordflow">return</span> 0; -00659 } -00660 } -00661 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) -00662 { -00663 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_UNSIGNED</a>; -00664 <span class="keywordflow">return</span> 0; -00665 } -00666 <span class="keywordflow">return</span> atoi(val); -00667 } -00668 -<a name="l00669"></a><a class="code" href="classConfigReader.html#a6">00669</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">ConfigReader::GetError</a>() -00670 { -00671 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; -00672 this->error = 0; -00673 <span class="keywordflow">return</span> olderr; -00674 } -00675 -<a name="l00676"></a><a class="code" href="classConfigReader.html#a9">00676</a> <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">ConfigReader::DumpErrors</a>(<span class="keywordtype">bool</span> bail, <a class="code" href="classuserrec.html">userrec</a>* user) -00677 { -00678 <span class="keywordflow">if</span> (bail) -00679 { -00680 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); -00681 exit(0); -00682 } -00683 <span class="keywordflow">else</span> -00684 { -00685 <span class="keywordtype">char</span> dataline[1024]; -00686 <span class="keywordflow">if</span> (user) -00687 { -00688 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00689 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00690 { -00691 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00692 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); -00693 } -00694 } -00695 <span class="keywordflow">else</span> -00696 { -00697 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00698 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00699 { -00700 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00701 WriteOpers(dataline); -00702 } -00703 } -00704 <span class="keywordflow">return</span>; -00705 } -00706 } -00707 -00708 -<a name="l00709"></a><a class="code" href="classConfigReader.html#a7">00709</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">ConfigReader::Enumerate</a>(std::string tag) -00710 { -00711 <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#p0">cache</a>,tag.c_str()); -00712 } -00713 -<a name="l00714"></a><a class="code" href="classConfigReader.html#a10">00714</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">ConfigReader::EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index) -00715 { -00716 <span class="keywordflow">return</span> EnumValues(<a class="code" href="classConfigReader.html#p0">cache</a>, tag.c_str(), index); -00717 } -00718 -<a name="l00719"></a><a class="code" href="classConfigReader.html#a8">00719</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">ConfigReader::Verify</a>() -00720 { -00721 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; -00722 } -00723 -00724 -<a name="l00725"></a><a class="code" href="classFileReader.html#a1">00725</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>(std::string filename) -00726 { -00727 <a class="code" href="modules_8h.html#a30">file_cache</a> c; -00728 readfile(c,filename.c_str()); -00729 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00730 } -00731 -<a name="l00732"></a><a class="code" href="classFileReader.html#a0">00732</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>() -00733 { -00734 } -00735 -<a name="l00736"></a><a class="code" href="classFileReader.html#a3">00736</a> <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">FileReader::LoadFile</a>(std::string filename) -00737 { -00738 <a class="code" href="modules_8h.html#a30">file_cache</a> c; -00739 readfile(c,filename.c_str()); -00740 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00741 } -00742 -00743 -<a name="l00744"></a><a class="code" href="classFileReader.html#a2">00744</a> <a class="code" href="classFileReader.html#a2">FileReader::~FileReader</a>() -00745 { -00746 } -00747 -<a name="l00748"></a><a class="code" href="classFileReader.html#a4">00748</a> <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">FileReader::Exists</a>() -00749 { -00750 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) -00751 { -00752 <span class="keywordflow">return</span>(<span class="keyword">false</span>); -00753 } -00754 <span class="keywordflow">else</span> -00755 { -00756 <span class="keywordflow">return</span>(<span class="keyword">true</span>); -00757 } -00758 } -00759 -<a name="l00760"></a><a class="code" href="classFileReader.html#a5">00760</a> std::string <a class="code" href="classFileReader.html#a5">FileReader::GetLine</a>(<span class="keywordtype">int</span> x) -00761 { -00762 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) -00763 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00764 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; -00765 } -00766 -<a name="l00767"></a><a class="code" href="classFileReader.html#a6">00767</a> <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileReader::FileSize</a>() -00768 { -00769 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); -00770 } -00771 -00772 -00773 std::vector<Module*> <a class="code" href="modules_8cpp.html#a59">modules</a>(255); -00774 std::vector<ircd_module*> <a class="code" href="modules_8cpp.html#a60">factory</a>(255); -00775 -<a name="l00776"></a><a class="code" href="modules_8cpp.html#a1">00776</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a> = -1; -00777 -00778 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +00625 <a class="code" href="xline_8h.html#a2">add_qline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), nickname.c_str()); +00626 } +00627 +<a name="l00628"></a><a class="code" href="classServer.html#a40">00628</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a40">Server::AddZLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string ipaddr) +00629 { +00630 <a class="code" href="xline_8h.html#a3">add_zline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), ipaddr.c_str()); +00631 } +00632 +<a name="l00633"></a><a class="code" href="classServer.html#a41">00633</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a41">Server::AddKLine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string hostmask) +00634 { +00635 <a class="code" href="xline_8h.html#a4">add_kline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); +00636 } +00637 +<a name="l00638"></a><a class="code" href="classServer.html#a42">00638</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a42">Server::AddELine</a>(<span class="keywordtype">long</span> duration, std::string source, std::string reason, std::string hostmask) +00639 { +00640 <a class="code" href="xline_8h.html#a5">add_eline</a>(<a class="code" href="commands_8h.html#a75">duration</a>, source.c_str(), reason.c_str(), hostmask.c_str()); +00641 } +00642 +<a name="l00643"></a><a class="code" href="classServer.html#a43">00643</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a43">Server::DelGLine</a>(std::string hostmask) +00644 { +00645 <a class="code" href="xline_8h.html#a6">del_gline</a>(hostmask.c_str()); +00646 } +00647 +<a name="l00648"></a><a class="code" href="classServer.html#a44">00648</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a44">Server::DelQLine</a>(std::string nickname) +00649 { +00650 <a class="code" href="xline_8h.html#a7">del_qline</a>(nickname.c_str()); +00651 } +00652 +<a name="l00653"></a><a class="code" href="classServer.html#a45">00653</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a45">Server::DelZLine</a>(std::string ipaddr) +00654 { +00655 <a class="code" href="xline_8h.html#a8">del_zline</a>(ipaddr.c_str()); +00656 } +00657 +<a name="l00658"></a><a class="code" href="classServer.html#a46">00658</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a46">Server::DelKLine</a>(std::string hostmask) +00659 { +00660 <a class="code" href="xline_8h.html#a9">del_kline</a>(hostmask.c_str()); +00661 } +00662 +<a name="l00663"></a><a class="code" href="classServer.html#a47">00663</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a47">Server::DelELine</a>(std::string hostmask) +00664 { +00665 <a class="code" href="xline_8h.html#a10">del_eline</a>(hostmask.c_str()); +00666 } +00667 +<a name="l00668"></a><a class="code" href="classServer.html#a48">00668</a> <span class="keywordtype">long</span> <a class="code" href="classServer.html#a48">Server::CalcDuration</a>(std::string delta) +00669 { +00670 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a75">duration</a>(delta.c_str()); +00671 } +00672 +00673 +<a name="l00674"></a><a class="code" href="classConfigReader.html#a0">00674</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>() +00675 { +00676 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00677 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00678 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00679 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00680 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; +00681 } +00682 +00683 +<a name="l00684"></a><a class="code" href="classConfigReader.html#a2">00684</a> <a class="code" href="classConfigReader.html#a2">ConfigReader::~ConfigReader</a>() +00685 { +00686 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) +00687 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; +00688 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) +00689 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; +00690 } +00691 +00692 +<a name="l00693"></a><a class="code" href="classConfigReader.html#a1">00693</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>(std::string filename) +00694 { +00695 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00696 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00697 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); +00698 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00699 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>; +00700 }; +00701 +<a name="l00702"></a><a class="code" href="classConfigReader.html#a3">00702</a> std::string <a class="code" href="classConfigReader.html#a3">ConfigReader::ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) +00703 { +00704 <span class="keywordtype">char</span> val[MAXBUF]; +00705 <span class="keywordtype">char</span> t[MAXBUF]; +00706 <span class="keywordtype">char</span> n[MAXBUF]; +00707 strlcpy(t,tag.c_str(),MAXBUF); +00708 strlcpy(n,name.c_str(),MAXBUF); +00709 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); +00710 <span class="keywordflow">if</span> (!res) +00711 { +00712 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00713 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00714 } +00715 <span class="keywordflow">return</span> std::string(val); +00716 } +00717 +<a name="l00718"></a><a class="code" href="classConfigReader.html#a4">00718</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ConfigReader::ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) +00719 { +00720 <span class="keywordtype">char</span> val[MAXBUF]; +00721 <span class="keywordtype">char</span> t[MAXBUF]; +00722 <span class="keywordtype">char</span> n[MAXBUF]; +00723 strlcpy(t,tag.c_str(),MAXBUF); +00724 strlcpy(n,name.c_str(),MAXBUF); +00725 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); +00726 <span class="keywordflow">if</span> (!res) +00727 { +00728 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00729 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00730 } +00731 std::string s = val; +00732 <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>)); +00733 } +00734 +<a name="l00735"></a><a class="code" href="classConfigReader.html#a5">00735</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ConfigReader::ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned) +00736 { +00737 <span class="keywordtype">char</span> val[MAXBUF]; +00738 <span class="keywordtype">char</span> t[MAXBUF]; +00739 <span class="keywordtype">char</span> n[MAXBUF]; +00740 strlcpy(t,tag.c_str(),MAXBUF); +00741 strlcpy(n,name.c_str(),MAXBUF); +00742 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); +00743 <span class="keywordflow">if</span> (!res) +00744 { +00745 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>; +00746 <span class="keywordflow">return</span> 0; +00747 } +00748 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) +00749 { +00750 <span class="keywordflow">if</span> (!isdigit(val[i])) +00751 { +00752 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_A_NUMBER</a>; +00753 <span class="keywordflow">return</span> 0; +00754 } +00755 } +00756 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) +00757 { +00758 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_NOT_UNSIGNED</a>; +00759 <span class="keywordflow">return</span> 0; +00760 } +00761 <span class="keywordflow">return</span> atoi(val); +00762 } +00763 +<a name="l00764"></a><a class="code" href="classConfigReader.html#a6">00764</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">ConfigReader::GetError</a>() +00765 { +00766 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; +00767 this->error = 0; +00768 <span class="keywordflow">return</span> olderr; +00769 } +00770 +<a name="l00771"></a><a class="code" href="classConfigReader.html#a9">00771</a> <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">ConfigReader::DumpErrors</a>(<span class="keywordtype">bool</span> bail, <a class="code" href="classuserrec.html">userrec</a>* user) +00772 { +00773 <span class="keywordflow">if</span> (bail) +00774 { +00775 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); +00776 exit(0); +00777 } +00778 <span class="keywordflow">else</span> +00779 { +00780 <span class="keywordtype">char</span> dataline[1024]; +00781 <span class="keywordflow">if</span> (user) +00782 { +00783 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00784 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00785 { +00786 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00787 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); +00788 } +00789 } +00790 <span class="keywordflow">else</span> +00791 { +00792 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00793 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00794 { +00795 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00796 WriteOpers(dataline); +00797 } +00798 } +00799 <span class="keywordflow">return</span>; +00800 } +00801 } +00802 +00803 +<a name="l00804"></a><a class="code" href="classConfigReader.html#a7">00804</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">ConfigReader::Enumerate</a>(std::string tag) +00805 { +00806 <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#p0">cache</a>,tag.c_str()); +00807 } +00808 +<a name="l00809"></a><a class="code" href="classConfigReader.html#a10">00809</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">ConfigReader::EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index) +00810 { +00811 <span class="keywordflow">return</span> EnumValues(<a class="code" href="classConfigReader.html#p0">cache</a>, tag.c_str(), index); +00812 } +00813 +<a name="l00814"></a><a class="code" href="classConfigReader.html#a8">00814</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">ConfigReader::Verify</a>() +00815 { +00816 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; +00817 } +00818 +00819 +<a name="l00820"></a><a class="code" href="classFileReader.html#a1">00820</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>(std::string filename) +00821 { +00822 <a class="code" href="modules_8h.html#a31">file_cache</a> c; +00823 readfile(c,filename.c_str()); +00824 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00825 } +00826 +<a name="l00827"></a><a class="code" href="classFileReader.html#a0">00827</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>() +00828 { +00829 } +00830 +<a name="l00831"></a><a class="code" href="classFileReader.html#a3">00831</a> <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">FileReader::LoadFile</a>(std::string filename) +00832 { +00833 <a class="code" href="modules_8h.html#a31">file_cache</a> c; +00834 readfile(c,filename.c_str()); +00835 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00836 } +00837 +00838 +<a name="l00839"></a><a class="code" href="classFileReader.html#a2">00839</a> <a class="code" href="classFileReader.html#a2">FileReader::~FileReader</a>() +00840 { +00841 } +00842 +<a name="l00843"></a><a class="code" href="classFileReader.html#a4">00843</a> <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">FileReader::Exists</a>() +00844 { +00845 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) +00846 { +00847 <span class="keywordflow">return</span>(<span class="keyword">false</span>); +00848 } +00849 <span class="keywordflow">else</span> +00850 { +00851 <span class="keywordflow">return</span>(<span class="keyword">true</span>); +00852 } +00853 } +00854 +<a name="l00855"></a><a class="code" href="classFileReader.html#a5">00855</a> std::string <a class="code" href="classFileReader.html#a5">FileReader::GetLine</a>(<span class="keywordtype">int</span> x) +00856 { +00857 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) +00858 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00859 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; +00860 } +00861 +<a name="l00862"></a><a class="code" href="classFileReader.html#a6">00862</a> <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileReader::FileSize</a>() +00863 { +00864 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); +00865 } +00866 +00867 +00868 std::vector<Module*> <a class="code" href="modules_8cpp.html#a59">modules</a>(255); +00869 std::vector<ircd_module*> <a class="code" href="modules_8cpp.html#a60">factory</a>(255); +00870 +<a name="l00871"></a><a class="code" href="modules_8cpp.html#a1">00871</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a> = -1; +00872 +00873 +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:16 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index d1cc3fc2f..4846385fe 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -90,14 +90,14 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="classModule.html">Module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a59">modules</a> (255)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="modules_8h.html#a33">ircd_module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a60">factory</a> (255)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="modules_8h.html#a34">ircd_module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a60">factory</a> (255)</td></tr> <tr><td colspan=2><br><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a1">MODCOUNT</a> = -1</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="classModule.html">Module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a2">modules</a></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="modules_8h.html#a33">ircd_module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a3">factory</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="modules_8h.html#a34">ircd_module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a3">factory</a></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>time_t </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a4">TIME</a></td></tr> @@ -175,9 +175,9 @@ <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="modules_8cpp.html#a41">command_table</a> </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a45">cmdlist</a></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="modules_8h.html#a30">file_cache</a> </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a46">MOTD</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="modules_8h.html#a31">file_cache</a> </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a46">MOTD</a></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="modules_8h.html#a30">file_cache</a> </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a47">RULES</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="modules_8h.html#a31">file_cache</a> </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a47">RULES</a></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="modules_8cpp.html#a40">address_cache</a> </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a48">IP</a></td></tr> @@ -434,7 +434,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00565">Server::AddEx <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> std::vector<<a class="el" href="modules_8h.html#a33">ircd_module</a>*> factory </td> + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="modules_8h.html#a34">ircd_module</a>*> factory </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">255 </td> <td class="mdname1" valign="top" nowrap> </td> @@ -1180,7 +1180,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00275">DoAddExtended <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> std::vector<<a class="el" href="modules_8h.html#a33">ircd_module</a>*> factory + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="modules_8h.html#a34">ircd_module</a>*> factory </table> </td> </tr> @@ -1387,7 +1387,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00106">106</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00776">776</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00871">871</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a28" doxytag="modules.cpp::module_names"></a><p> @@ -1444,7 +1444,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00065">65</a> o <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a30">file_cache</a> <a class="el" href="modules_8cpp.html#a46">MOTD</a> + <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a31">file_cache</a> <a class="el" href="modules_8cpp.html#a46">MOTD</a> </table> </td> </tr> @@ -1660,7 +1660,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00078">78</a> o <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a30">file_cache</a> <a class="el" href="modules_8cpp.html#a47">RULES</a> + <td class="md" nowrap valign="top"> <a class="el" href="modules_8h.html#a31">file_cache</a> <a class="el" href="modules_8cpp.html#a47">RULES</a> </table> </td> </tr> @@ -1894,7 +1894,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00087">87</a> o Definition at line <a class="el" href="modules_8cpp-source.html#l00086">86</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index 8c20d74a6..c76e38f02 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -69,10 +69,10 @@ 00062 <span class="preprocessor">#include <deque></span> 00063 <span class="preprocessor">#include <sstream></span> 00064 -<a name="l00067"></a><a class="code" href="modules_8h.html#a30">00067</a> <span class="keyword">typedef</span> std::deque<std::string> <a class="code" href="modules_8h.html#a30">file_cache</a>; -<a name="l00068"></a><a class="code" href="modules_8h.html#a31">00068</a> <span class="keyword">typedef</span> <a class="code" href="modules_8h.html#a30">file_cache</a> <a class="code" href="modules_8h.html#a31">string_list</a>; +<a name="l00067"></a><a class="code" href="modules_8h.html#a31">00067</a> <span class="keyword">typedef</span> std::deque<std::string> <a class="code" href="modules_8h.html#a31">file_cache</a>; +<a name="l00068"></a><a class="code" href="modules_8h.html#a32">00068</a> <span class="keyword">typedef</span> <a class="code" href="modules_8h.html#a31">file_cache</a> <a class="code" href="modules_8h.html#a32">string_list</a>; 00069 -<a name="l00072"></a><a class="code" href="modules_8h.html#a32">00072</a> <span class="keyword">typedef</span> std::deque<userrec*> <a class="code" href="modules_8h.html#a32">chanuserlist</a>; +<a name="l00072"></a><a class="code" href="modules_8h.html#a33">00072</a> <span class="keyword">typedef</span> std::deque<userrec*> <a class="code" href="modules_8h.html#a33">chanuserlist</a>; 00073 00074 00075 <span class="comment">// This #define allows us to call a method in all</span> @@ -99,208 +99,238 @@ 00096 <span class="preprocessor"></span> 00097 <span class="comment">// *********************************************************************************************</span> 00098 -00099 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="modules_8h.html#a34">createcommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams, <span class="keywordtype">char</span>* source); -00100 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="modules_8h.html#a35">server_mode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); -00101 -00102 <span class="comment">// class Version holds the version information of a Module, returned</span> -00103 <span class="comment">// by Module::GetVersion (thanks RD)</span> -00104 -<a name="l00109"></a><a class="code" href="classVersion.html">00109</a> <span class="keyword">class </span><a class="code" href="classVersion.html">Version</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00110 { -00111 <span class="keyword">public</span>: -<a name="l00112"></a><a class="code" href="classVersion.html#o2">00112</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classVersion.html#o0">Major</a>, <a class="code" href="classVersion.html#o1">Minor</a>, <a class="code" href="classVersion.html#o2">Revision</a>, <a class="code" href="classVersion.html#o3">Build</a>, <a class="code" href="classVersion.html#o4">Flags</a>; -00113 <a class="code" href="classVersion.html#a0">Version</a>(<span class="keywordtype">int</span> major, <span class="keywordtype">int</span> minor, <span class="keywordtype">int</span> revision, <span class="keywordtype">int</span> build, <span class="keywordtype">int</span> flags); -00114 }; -00115 -<a name="l00121"></a><a class="code" href="classAdmin.html">00121</a> <span class="keyword">class </span><a class="code" href="classAdmin.html">Admin</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00122 { -00123 <span class="keyword">public</span>: -<a name="l00124"></a><a class="code" href="classAdmin.html#o2">00124</a> <span class="keyword">const</span> std::string <a class="code" href="classAdmin.html#o0">Name</a>, <a class="code" href="classAdmin.html#o1">Email</a>, <a class="code" href="classAdmin.html#o2">Nick</a>; -00125 <a class="code" href="classAdmin.html#a0">Admin</a>(std::string name, std::string email, std::string nick); -00126 }; -00127 -<a name="l00133"></a><a class="code" href="classModule.html">00133</a> <span class="keyword">class </span><a class="code" href="classModule.html">Module</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00134 { -00135 <span class="keyword">public</span>: -00136 -00140 <a class="code" href="classModule.html#a0">Module</a>(); -00141 -00145 <span class="keyword">virtual</span> <a class="code" href="classModule.html#a1">~Module</a>(); -00146 -00151 <span class="keyword">virtual</span> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#a2">GetVersion</a>(); -00152 -00156 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a3">OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00157 -00161 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a4">OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00162 -00167 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a5">OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); -00168 -00173 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a6">OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); -00174 -00180 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a7">OnPacketTransmit</a>(std::string &data, std::string serv); -00181 -00188 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a8">OnPacketReceive</a>(std::string &data, std::string serv); -00189 -00195 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a9">OnRehash</a>(); -00196 -00205 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a10">OnServerRaw</a>(std::string &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user); -00206 -00216 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a11">OnExtendedMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* target, <span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> mode_on, <a class="code" href="modules_8h.html#a31">string_list</a> &params); -00217 -00231 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a12">OnUserPreJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keyword">const</span> <span class="keywordtype">char</span>* cname); -00232 -00233 -00238 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a13">OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00239 -00248 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a14">OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00249 -00254 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a15">OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest); -00255 -00261 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a16">OnUserPreInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel); -00262 -00271 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a17">OnUserPreMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text); -00272 -00284 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a18">OnUserPreNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text); -00285 -00293 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a19">OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newnick); -00294 -00302 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a20">OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string oldnick); -00303 -00325 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a21">OnAccessCheck</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel,<span class="keywordtype">int</span> access_type); -00326 -00332 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a31">string_list</a> <a class="code" href="classModule.html#a22">OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user); -00333 -00339 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a31">string_list</a> <a class="code" href="classModule.html#a23">OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); -00340 -00344 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a24">On005Numeric</a>(std::string &output); -00345 -00355 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a25">OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, std::string reason); -00356 -00367 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a26">OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,std::string name); -00368 }; -00369 +<a name="l00099"></a><a class="code" href="modules_8h.html#a26">00099</a> <span class="preprocessor">#define FD_MAGIC_NUMBER -42</span> +00100 <span class="preprocessor"></span> +00101 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="modules_8h.html#a35">createcommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams, <span class="keywordtype">char</span>* source); +00102 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="modules_8h.html#a36">server_mode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); +00103 +00104 <span class="comment">// class Version holds the version information of a Module, returned</span> +00105 <span class="comment">// by Module::GetVersion (thanks RD)</span> +00106 +<a name="l00111"></a><a class="code" href="classVersion.html">00111</a> <span class="keyword">class </span><a class="code" href="classVersion.html">Version</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00112 { +00113 <span class="keyword">public</span>: +<a name="l00114"></a><a class="code" href="classVersion.html#o2">00114</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classVersion.html#o0">Major</a>, <a class="code" href="classVersion.html#o1">Minor</a>, <a class="code" href="classVersion.html#o2">Revision</a>, <a class="code" href="classVersion.html#o3">Build</a>, <a class="code" href="classVersion.html#o4">Flags</a>; +00115 <a class="code" href="classVersion.html#a0">Version</a>(<span class="keywordtype">int</span> major, <span class="keywordtype">int</span> minor, <span class="keywordtype">int</span> revision, <span class="keywordtype">int</span> build, <span class="keywordtype">int</span> flags); +00116 }; +00117 +<a name="l00123"></a><a class="code" href="classAdmin.html">00123</a> <span class="keyword">class </span><a class="code" href="classAdmin.html">Admin</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00124 { +00125 <span class="keyword">public</span>: +<a name="l00126"></a><a class="code" href="classAdmin.html#o2">00126</a> <span class="keyword">const</span> std::string <a class="code" href="classAdmin.html#o0">Name</a>, <a class="code" href="classAdmin.html#o1">Email</a>, <a class="code" href="classAdmin.html#o2">Nick</a>; +00127 <a class="code" href="classAdmin.html#a0">Admin</a>(std::string name, std::string email, std::string nick); +00128 }; +00129 +<a name="l00135"></a><a class="code" href="classModule.html">00135</a> <span class="keyword">class </span><a class="code" href="classModule.html">Module</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00136 { +00137 <span class="keyword">public</span>: +00138 +00142 <a class="code" href="classModule.html#a0">Module</a>(); +00143 +00147 <span class="keyword">virtual</span> <a class="code" href="classModule.html#a1">~Module</a>(); +00148 +00153 <span class="keyword">virtual</span> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#a2">GetVersion</a>(); +00154 +00158 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a3">OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00159 +00163 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a4">OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00164 +00169 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a5">OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); +00170 +00175 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a6">OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel); +00176 +00182 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a7">OnPacketTransmit</a>(std::string &data, std::string serv); +00183 +00190 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a8">OnPacketReceive</a>(std::string &data, std::string serv); +00191 +00197 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a9">OnRehash</a>(); +00198 +00207 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a10">OnServerRaw</a>(std::string &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user); +00208 +00218 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a11">OnExtendedMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* target, <span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> mode_on, <a class="code" href="modules_8h.html#a32">string_list</a> &params); +00219 +00233 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a12">OnUserPreJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keyword">const</span> <span class="keywordtype">char</span>* cname); +00234 +00235 +00240 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a13">OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00241 +00250 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a14">OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00251 +00256 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a15">OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest); +00257 +00263 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a16">OnUserPreInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel); +00264 +00273 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a17">OnUserPreMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text); +00274 +00286 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a18">OnUserPreNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text); +00287 +00295 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a19">OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newnick); +00296 +00304 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a20">OnUserPostNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string oldnick); +00305 +00327 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a21">OnAccessCheck</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel,<span class="keywordtype">int</span> access_type); +00328 +00334 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a22">OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user); +00335 +00341 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a32">string_list</a> <a class="code" href="classModule.html#a23">OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); +00342 +00346 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a24">On005Numeric</a>(std::string &output); +00347 +00357 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a25">OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, std::string reason); +00358 +00369 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a26">OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,std::string name); 00370 -<a name="l00376"></a><a class="code" href="classServer.html">00376</a> <span class="keyword">class </span><a class="code" href="classServer.html">Server</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00377 { -00378 <span class="keyword">public</span>: -00382 <a class="code" href="classServer.html#a0">Server</a>(); -00386 <span class="keyword">virtual</span> <a class="code" href="classServer.html#a1">~Server</a>(); -00387 -00391 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">SendOpers</a>(std::string s); -00396 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Log</a>(<span class="keywordtype">int</span> level, std::string s); -00401 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Send</a>(<span class="keywordtype">int</span> Socket, std::string s); -00406 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">SendServ</a>(<span class="keywordtype">int</span> Socket, std::string s); -00411 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, std::string s); -00426 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, std::string s); -00433 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, std::string s,<span class="keywordtype">bool</span> IncludeSender); -00438 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2); -00446 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text,<span class="keywordtype">bool</span> IncludeSender); -00451 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text); -00452 -00456 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">IsNick</a>(std::string nick); -00460 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classServer.html#a13">CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c); -00464 <span class="keyword">virtual</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a14">FindNick</a>(std::string nick); -00468 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a15">FindChannel</a>(std::string channel); -00473 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a16">ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); -00477 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a17">IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); -00480 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a18">GetServerName</a>(); -00483 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a19">GetNetworkName</a>(); -00489 <span class="keyword">virtual</span> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a20">GetAdmin</a>(); -00508 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a21">AddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_when_on, <span class="keywordtype">int</span> params_when_off); -00509 -00531 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a22">AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar); -00532 -00550 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams, <span class="keywordtype">char</span>* source); -00551 -00573 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); -00574 -00587 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a25">SendToModeMask</a>(std::string modes, <span class="keywordtype">int</span> flags, std::string text); -00588 -00594 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a26">JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string key); -00595 -00601 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a27">PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string reason); -00602 -00608 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a28">ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string nickname); -00609 -00620 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a29">QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string reason); -00621 -00626 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a30">MatchText</a>(std::string sliteral, std::string spattern); -00627 -00639 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a31">CallCommandHandler</a>(std::string commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); -00640 -00646 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a32">ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string host); -00647 -00653 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a33">ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string gecos); -00654 -00663 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a34">IsUlined</a>(std::string server); -00664 -00668 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a32">chanuserlist</a> <a class="code" href="classServer.html#a35">GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); -00669 -00670 }; -00671 -<a name="l00672"></a><a class="code" href="modules_8h.html#a26">00672</a> <span class="preprocessor">#define CONF_NOT_A_NUMBER 0x000010</span> -<a name="l00673"></a><a class="code" href="modules_8h.html#a27">00673</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_NOT_UNSIGNED 0x000080</span> -<a name="l00674"></a><a class="code" href="modules_8h.html#a28">00674</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_VALUE_NOT_FOUND 0x000100</span> -<a name="l00675"></a><a class="code" href="modules_8h.html#a29">00675</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_FILE_NOT_FOUND 0x000200</span> -00676 <span class="preprocessor"></span> -<a name="l00683"></a><a class="code" href="classConfigReader.html">00683</a> <span class="keyword">class </span><a class="code" href="classConfigReader.html">ConfigReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00684 { -00685 <span class="keyword">protected</span>: -<a name="l00691"></a><a class="code" href="classConfigReader.html#p0">00691</a> std::stringstream *<a class="code" href="classConfigReader.html#p0">cache</a>; -<a name="l00692"></a><a class="code" href="classConfigReader.html#p1">00692</a> std::stringstream *<a class="code" href="classConfigReader.html#p1">errorlog</a>; -<a name="l00695"></a><a class="code" href="classConfigReader.html#p2">00695</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#p2">readerror</a>; -<a name="l00696"></a><a class="code" href="classConfigReader.html#p3">00696</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#p3">error</a>; -00697 -00698 <span class="keyword">public</span>: -00703 <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(); <span class="comment">// default constructor reads ircd.conf</span> -00707 <span class="comment"></span> <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(std::string filename); <span class="comment">// read a module-specific config</span> -00711 <span class="comment"></span> <a class="code" href="classConfigReader.html#a2">~ConfigReader</a>(); -00716 std::string <a class="code" href="classConfigReader.html#a3">ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); -00722 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); -00731 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned); -00736 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">GetError</a>(); -00743 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">Enumerate</a>(std::string tag); -00748 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">Verify</a>(); -00755 <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">DumpErrors</a>(<span class="keywordtype">bool</span> bail,<a class="code" href="classuserrec.html">userrec</a>* user); -00756 -00762 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index); -00763 }; -00764 -00765 +00376 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a27">OnBackgroundTimer</a>(time_t curtime); +00377 }; +00378 +00379 +<a name="l00385"></a><a class="code" href="classServer.html">00385</a> <span class="keyword">class </span><a class="code" href="classServer.html">Server</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00386 { +00387 <span class="keyword">public</span>: +00391 <a class="code" href="classServer.html#a0">Server</a>(); +00395 <span class="keyword">virtual</span> <a class="code" href="classServer.html#a1">~Server</a>(); +00396 +00400 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">SendOpers</a>(std::string s); +00405 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Log</a>(<span class="keywordtype">int</span> level, std::string s); +00410 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Send</a>(<span class="keywordtype">int</span> Socket, std::string s); +00415 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">SendServ</a>(<span class="keywordtype">int</span> Socket, std::string s); +00420 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, std::string s); +00435 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, std::string s); +00442 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, std::string s,<span class="keywordtype">bool</span> IncludeSender); +00447 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2); +00455 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text,<span class="keywordtype">bool</span> IncludeSender); +00460 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text); +00461 +00465 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">IsNick</a>(std::string nick); +00469 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classServer.html#a13">CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c); +00473 <span class="keyword">virtual</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a14">FindNick</a>(std::string nick); +00477 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a15">FindChannel</a>(std::string channel); +00482 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a16">ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); +00486 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a17">IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); +00489 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a18">GetServerName</a>(); +00492 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a19">GetNetworkName</a>(); +00498 <span class="keyword">virtual</span> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a20">GetAdmin</a>(); +00517 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a21">AddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_when_on, <span class="keywordtype">int</span> params_when_off); +00518 +00540 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a22">AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar); +00541 +00559 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams, <span class="keywordtype">char</span>* source); +00560 +00582 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); +00583 +00596 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a25">SendToModeMask</a>(std::string modes, <span class="keywordtype">int</span> flags, std::string text); +00597 +00603 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a26">JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string key); +00604 +00610 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a27">PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string reason); +00611 +00617 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a28">ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string nickname); +00618 +00629 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a29">QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string reason); +00630 +00635 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a30">MatchText</a>(std::string sliteral, std::string spattern); +00636 +00648 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a31">CallCommandHandler</a>(std::string commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); +00649 +00655 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a32">ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string host); +00656 +00662 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a33">ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string gecos); +00663 +00672 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a34">IsUlined</a>(std::string server); +00673 +00677 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a33">chanuserlist</a> <a class="code" href="classServer.html#a35">GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); +00678 +00685 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a36">UserToPseudo</a>(<a class="code" href="classuserrec.html">userrec</a>* user,std::string message); +00686 +00693 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a37">PseudoToUser</a>(<a class="code" href="classuserrec.html">userrec</a>* alive,<a class="code" href="classuserrec.html">userrec</a>* zombie,std::string message); +00694 +00702 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a38">AddGLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string hostmask); +00703 +00711 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a39">AddQLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string nickname); +00712 +00720 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a40">AddZLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string ipaddr); +00721 +00729 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a41">AddKLine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string hostmask); +00730 +00738 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a42">AddELine</a>(<span class="keywordtype">long</span> <a class="code" href="commands_8h.html#a75">duration</a>, std::string source, std::string reason, std::string hostmask); +00739 +00742 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a43">DelGLine</a>(std::string hostmask); +00743 +00746 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a44">DelQLine</a>(std::string nickname); +00747 +00750 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a45">DelZLine</a>(std::string ipaddr); +00751 +00754 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a46">DelKLine</a>(std::string hostmask); +00755 +00758 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a47">DelELine</a>(std::string hostmask); +00759 +00765 <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classServer.html#a48">CalcDuration</a>(std::string <a class="code" href="commands_8h.html#a75">duration</a>); 00766 -<a name="l00772"></a><a class="code" href="classFileReader.html">00772</a> <span class="keyword">class </span><a class="code" href="classFileReader.html">FileReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00773 { -<a name="l00774"></a><a class="code" href="classFileReader.html#r0">00774</a> <a class="code" href="modules_8h.html#a30">file_cache</a> <a class="code" href="classFileReader.html#r0">fc</a>; -00775 <span class="keyword">public</span>: -00780 <a class="code" href="classFileReader.html#a0">FileReader</a>(); -00781 -00787 <a class="code" href="classFileReader.html#a0">FileReader</a>(std::string filename); -00788 -00792 <a class="code" href="classFileReader.html#a2">~FileReader</a>(); -00793 -00799 <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">LoadFile</a>(std::string filename); -00800 -00804 <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">Exists</a>(); -00805 -00810 std::string <a class="code" href="classFileReader.html#a5">GetLine</a>(<span class="keywordtype">int</span> x); -00811 -00817 <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileSize</a>(); -00818 }; -00819 -00820 -<a name="l00827"></a><a class="code" href="classModuleFactory.html">00827</a> <span class="keyword">class </span><a class="code" href="classModuleFactory.html">ModuleFactory</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00828 { -00829 <span class="keyword">public</span>: -<a name="l00830"></a><a class="code" href="classModuleFactory.html#a0">00830</a> <a class="code" href="classModuleFactory.html#a0">ModuleFactory</a>() { } -<a name="l00831"></a><a class="code" href="classModuleFactory.html#a1">00831</a> <span class="keyword">virtual</span> <a class="code" href="classModuleFactory.html#a1">~ModuleFactory</a>() { } -00836 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a> * <a class="code" href="classModuleFactory.html#a2">CreateModule</a>() = 0; -00837 }; -00838 -00839 -<a name="l00840"></a><a class="code" href="modules_8h.html#a33">00840</a> <span class="keyword">typedef</span> DLLFactory<ModuleFactory> <a class="code" href="modules_8h.html#a33">ircd_module</a>; -00841 -00842 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +00767 }; +00768 +<a name="l00769"></a><a class="code" href="modules_8h.html#a27">00769</a> <span class="preprocessor">#define CONF_NOT_A_NUMBER 0x000010</span> +<a name="l00770"></a><a class="code" href="modules_8h.html#a28">00770</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_NOT_UNSIGNED 0x000080</span> +<a name="l00771"></a><a class="code" href="modules_8h.html#a29">00771</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_VALUE_NOT_FOUND 0x000100</span> +<a name="l00772"></a><a class="code" href="modules_8h.html#a30">00772</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_FILE_NOT_FOUND 0x000200</span> +00773 <span class="preprocessor"></span> +<a name="l00780"></a><a class="code" href="classConfigReader.html">00780</a> <span class="keyword">class </span><a class="code" href="classConfigReader.html">ConfigReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00781 { +00782 <span class="keyword">protected</span>: +<a name="l00788"></a><a class="code" href="classConfigReader.html#p0">00788</a> std::stringstream *<a class="code" href="classConfigReader.html#p0">cache</a>; +<a name="l00789"></a><a class="code" href="classConfigReader.html#p1">00789</a> std::stringstream *<a class="code" href="classConfigReader.html#p1">errorlog</a>; +<a name="l00792"></a><a class="code" href="classConfigReader.html#p2">00792</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#p2">readerror</a>; +<a name="l00793"></a><a class="code" href="classConfigReader.html#p3">00793</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#p3">error</a>; +00794 +00795 <span class="keyword">public</span>: +00800 <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(); <span class="comment">// default constructor reads ircd.conf</span> +00804 <span class="comment"></span> <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(std::string filename); <span class="comment">// read a module-specific config</span> +00808 <span class="comment"></span> <a class="code" href="classConfigReader.html#a2">~ConfigReader</a>(); +00813 std::string <a class="code" href="classConfigReader.html#a3">ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); +00819 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); +00828 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned); +00833 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">GetError</a>(); +00840 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">Enumerate</a>(std::string tag); +00845 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">Verify</a>(); +00852 <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">DumpErrors</a>(<span class="keywordtype">bool</span> bail,<a class="code" href="classuserrec.html">userrec</a>* user); +00853 +00859 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index); +00860 }; +00861 +00862 +00863 +<a name="l00869"></a><a class="code" href="classFileReader.html">00869</a> <span class="keyword">class </span><a class="code" href="classFileReader.html">FileReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00870 { +<a name="l00871"></a><a class="code" href="classFileReader.html#r0">00871</a> <a class="code" href="modules_8h.html#a31">file_cache</a> <a class="code" href="classFileReader.html#r0">fc</a>; +00872 <span class="keyword">public</span>: +00877 <a class="code" href="classFileReader.html#a0">FileReader</a>(); +00878 +00884 <a class="code" href="classFileReader.html#a0">FileReader</a>(std::string filename); +00885 +00889 <a class="code" href="classFileReader.html#a2">~FileReader</a>(); +00890 +00896 <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">LoadFile</a>(std::string filename); +00897 +00901 <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">Exists</a>(); +00902 +00907 std::string <a class="code" href="classFileReader.html#a5">GetLine</a>(<span class="keywordtype">int</span> x); +00908 +00914 <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileSize</a>(); +00915 }; +00916 +00917 +<a name="l00924"></a><a class="code" href="classModuleFactory.html">00924</a> <span class="keyword">class </span><a class="code" href="classModuleFactory.html">ModuleFactory</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00925 { +00926 <span class="keyword">public</span>: +<a name="l00927"></a><a class="code" href="classModuleFactory.html#a0">00927</a> <a class="code" href="classModuleFactory.html#a0">ModuleFactory</a>() { } +<a name="l00928"></a><a class="code" href="classModuleFactory.html#a1">00928</a> <span class="keyword">virtual</span> <a class="code" href="classModuleFactory.html#a1">~ModuleFactory</a>() { } +00933 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a> * <a class="code" href="classModuleFactory.html#a2">CreateModule</a>() = 0; +00934 }; +00935 +00936 +<a name="l00937"></a><a class="code" href="modules_8h.html#a34">00937</a> <span class="keyword">typedef</span> DLLFactory<ModuleFactory> <a class="code" href="modules_8h.html#a34">ircd_module</a>; +00938 +00939 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 00ca6ca92..eba1650c4 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -90,29 +90,31 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a25">FOREACH_RESULT</a>(x)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a26">CONF_NOT_A_NUMBER</a> 0x000010</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a26">FD_MAGIC_NUMBER</a> -42</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a27">CONF_NOT_UNSIGNED</a> 0x000080</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a27">CONF_NOT_A_NUMBER</a> 0x000010</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a> 0x000100</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a28">CONF_NOT_UNSIGNED</a> 0x000080</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a29">CONF_FILE_NOT_FOUND</a> 0x000200</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a> 0x000100</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a> 0x000200</td></tr> <tr><td colspan=2><br><h2>Typedefs</h2></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::deque< std::string > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a30">file_cache</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::deque< std::string > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a31">file_cache</a></td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Low level definition of a <a class="el" href="classFileReader.html">FileReader</a> classes file cache area. </em> <a href="#a30"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="modules_8h.html#a30">file_cache</a> </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a31">string_list</a></td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Low level definition of a <a class="el" href="classFileReader.html">FileReader</a> classes file cache area. </em> <a href="#a31"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="modules_8h.html#a31">file_cache</a> </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a32">string_list</a></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::deque< <a class="el" href="classuserrec.html">userrec</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a32">chanuserlist</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::deque< <a class="el" href="classuserrec.html">userrec</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a33">chanuserlist</a></td></tr> -<tr><td class="mdescLeft"> </td><td class="mdescRight">Holds a list of users in a channel. </em> <a href="#a32"></a><em><br><br></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>typedef DLLFactory< <a class="el" href="classModuleFactory.html">ModuleFactory</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a33">ircd_module</a></td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Holds a list of users in a channel. </em> <a href="#a33"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>typedef DLLFactory< <a class="el" href="classModuleFactory.html">ModuleFactory</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a34">ircd_module</a></td></tr> <tr><td colspan=2><br><h2>Functions</h2></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a34">createcommand</a> (char *cmd, handlerfunc f, char flags, int minparams, char *source)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a35">createcommand</a> (char *cmd, handlerfunc f, char flags, int minparams, char *source)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a35">server_mode</a> (char **parameters, int pcnt, <a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8h.html#a36">server_mode</a> (char **parameters, int pcnt, <a class="el" href="classuserrec.html">userrec</a> *user)</td></tr> </table> <hr><h2>Define Documentation</h2> @@ -406,7 +408,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00327">Module::OnAcc Definition at line <a class="el" href="modules_8h-source.html#l00038">38</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> -<a name="a29" doxytag="modules.h::CONF_FILE_NOT_FOUND"></a><p> +<a name="a30" doxytag="modules.h::CONF_FILE_NOT_FOUND"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -427,12 +429,12 @@ Definition at line <a class="el" href="modules_8h-source.html#l00038">38</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00675">675</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00772">772</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader::ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00674">ConfigReader::ConfigReader()</a>. </td> </tr> </table> -<a name="a26" doxytag="modules.h::CONF_NOT_A_NUMBER"></a><p> +<a name="a27" doxytag="modules.h::CONF_NOT_A_NUMBER"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -453,12 +455,12 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00672">672</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00769">769</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00640">ConfigReader::ReadInteger()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00735">ConfigReader::ReadInteger()</a>. </td> </tr> </table> -<a name="a27" doxytag="modules.h::CONF_NOT_UNSIGNED"></a><p> +<a name="a28" doxytag="modules.h::CONF_NOT_UNSIGNED"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -479,12 +481,12 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00640">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00673">673</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00770">770</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00640">ConfigReader::ReadInteger()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00735">ConfigReader::ReadInteger()</a>. </td> </tr> </table> -<a name="a28" doxytag="modules.h::CONF_VALUE_NOT_FOUND"></a><p> +<a name="a29" doxytag="modules.h::CONF_VALUE_NOT_FOUND"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -505,9 +507,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00640">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00674">674</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +Definition at line <a class="el" href="modules_8h-source.html#l00771">771</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00623">ConfigReader::ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00640">ConfigReader::ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00607">ConfigReader::ReadValue()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00718">ConfigReader::ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00735">ConfigReader::ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00702">ConfigReader::ReadValue()</a>. </td> </tr> </table> <a name="a0" doxytag="modules.h::DEBUG"></a><p> @@ -560,6 +562,32 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00545">Server::AddEx Definition at line <a class="el" href="modules_8h-source.html#l00025">25</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> +<a name="a26" doxytag="modules.h::FD_MAGIC_NUMBER"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> #define FD_MAGIC_NUMBER -42 + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="modules_8h-source.html#l00099">99</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00588">Server::PseudoToUser()</a>, and <a class="el" href="modules_8cpp-source.html#l00579">Server::UserToPseudo()</a>. </td> + </tr> +</table> <a name="a24" doxytag="modules.h::FOREACH_MOD"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -871,13 +899,13 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00318">Module::GetVe </tr> </table> <hr><h2>Typedef Documentation</h2> -<a name="a32" doxytag="modules.h::chanuserlist"></a><p> +<a name="a33" doxytag="modules.h::chanuserlist"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> typedef std::deque<<a class="el" href="classuserrec.html">userrec</a>*> <a class="el" href="modules_8h.html#a32">chanuserlist</a> + <td class="md" nowrap valign="top"> typedef std::deque<<a class="el" href="classuserrec.html">userrec</a>*> <a class="el" href="modules_8h.html#a33">chanuserlist</a> </table> </td> </tr> @@ -899,13 +927,13 @@ Definition at line <a class="el" href="modules_8h-source.html#l00072">72</a> of Referenced by <a class="el" href="modules_8cpp-source.html#l00375">Server::GetUsers()</a>. </td> </tr> </table> -<a name="a30" doxytag="modules.h::file_cache"></a><p> +<a name="a31" doxytag="modules.h::file_cache"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> typedef std::deque<std::string> <a class="el" href="modules_8h.html#a30">file_cache</a> + <td class="md" nowrap valign="top"> typedef std::deque<std::string> <a class="el" href="modules_8h.html#a31">file_cache</a> </table> </td> </tr> @@ -924,16 +952,16 @@ Low level definition of a <a class="el" href="classFileReader.html">FileReader</ <p> Definition at line <a class="el" href="modules_8h-source.html#l00067">67</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00725">FileReader::FileReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00736">FileReader::LoadFile()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00820">FileReader::FileReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00831">FileReader::LoadFile()</a>. </td> </tr> </table> -<a name="a33" doxytag="modules.h::ircd_module"></a><p> +<a name="a34" doxytag="modules.h::ircd_module"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> typedef DLLFactory<<a class="el" href="classModuleFactory.html">ModuleFactory</a>> <a class="el" href="modules_8h.html#a33">ircd_module</a> + <td class="md" nowrap valign="top"> typedef DLLFactory<<a class="el" href="classModuleFactory.html">ModuleFactory</a>> <a class="el" href="modules_8h.html#a34">ircd_module</a> </table> </td> </tr> @@ -948,16 +976,16 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00725">FileReader::F <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00840">840</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00937">937</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> -<a name="a31" doxytag="modules.h::string_list"></a><p> +<a name="a32" doxytag="modules.h::string_list"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> typedef <a class="el" href="modules_8h.html#a30">file_cache</a> <a class="el" href="modules_8h.html#a31">string_list</a> + <td class="md" nowrap valign="top"> typedef <a class="el" href="modules_8h.html#a31">file_cache</a> <a class="el" href="modules_8h.html#a32">string_list</a> </table> </td> </tr> @@ -978,7 +1006,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00329">Module::OnCha </tr> </table> <hr><h2>Function Documentation</h2> -<a name="a34" doxytag="modules.h::createcommand"></a><p> +<a name="a35" doxytag="modules.h::createcommand"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1036,7 +1064,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00329">Module::OnCha Referenced by <a class="el" href="modules_8cpp-source.html#l00420">Server::AddCommand()</a>. </td> </tr> </table> -<a name="a35" doxytag="modules.h::server_mode"></a><p> +<a name="a36" doxytag="modules.h::server_mode"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> @@ -1082,7 +1110,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00420">Server::AddCo Referenced by <a class="el" href="modules_8cpp-source.html#l00425">Server::SendMode()</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index ccb9855f4..cce007ea4 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace.hash< string ></a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index d22b64911..061c40343 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -9,7 +9,7 @@ <tr><td class="indexkey"><a class="el" href="namespacenspace.html">nspace</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="namespacestd.html">std</a></td><td class="indexvalue"></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index acca4169a..7fed133d1 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@ <table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index ab7e7491a..c7d1cef6e 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -63,7 +63,7 @@ 00056 strlcpy(<a class="code" href="classserverrec.html#o9">nickserv</a>,<span class="stringliteral">""</span>,NICKMAX); 00057 } 00058 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index 9332b14b5..73bad4a4f 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -44,7 +44,7 @@ Definition at line <a class="el" href="servers_8cpp-source.html#l00024">24</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index 479d82df2..17d1bd188 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -61,7 +61,7 @@ 00082 00083 <span class="preprocessor">#endif</span> 00084 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index 75986cb97..c32acb1aa 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -72,7 +72,7 @@ Definition at line <a class="el" href="servers_8h-source.html#l00025">25</a> of Definition at line <a class="el" href="servers_8h-source.html#l00026">26</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structInAddr__HashComp-members.html b/docs/module-doc/structInAddr__HashComp-members.html index 79fed11b0..0fc06479c 100644 --- a/docs/module-doc/structInAddr__HashComp-members.html +++ b/docs/module-doc/structInAddr__HashComp-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>InAddr_HashComp Member List</h1>This is the complete list of members for <a class="el" href="structInAddr__HashComp.html">InAddr_HashComp</a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structInAddr__HashComp.html#a0">operator()</a>(const in_addr &s1, const in_addr &s2) const</td><td><a class="el" href="structInAddr__HashComp.html">InAddr_HashComp</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structInAddr__HashComp.html b/docs/module-doc/structInAddr__HashComp.html index 89d1fe7d4..637339c43 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -65,7 +65,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00159">159</a> </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structStrHashComp-members.html b/docs/module-doc/structStrHashComp-members.html index b560d0dcc..cc0ad3e17 100644 --- a/docs/module-doc/structStrHashComp-members.html +++ b/docs/module-doc/structStrHashComp-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>StrHashComp Member List</h1>This is the complete list of members for <a class="el" href="structStrHashComp.html">StrHashComp</a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structStrHashComp.html#a0">operator()</a>(const string &s1, const string &s2) const</td><td><a class="el" href="structStrHashComp.html">StrHashComp</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structStrHashComp.html b/docs/module-doc/structStrHashComp.html index 4e31a85d2..cc30a8e8f 100644 --- a/docs/module-doc/structStrHashComp.html +++ b/docs/module-doc/structStrHashComp.html @@ -62,7 +62,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00146">146</a> </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index 1918864e2..81809b1a1 100644 --- a/docs/module-doc/structdns__ip4list-members.html +++ b/docs/module-doc/structdns__ip4list-members.html @@ -8,7 +8,7 @@ <h1>dns_ip4list Member List</h1>This is the complete list of members for <a class="el" href="structdns__ip4list.html">dns_ip4list</a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structdns__ip4list.html#o0">ip</a></td><td><a class="el" href="structdns__ip4list.html">dns_ip4list</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="structdns__ip4list.html#o1">next</a></td><td><a class="el" href="structdns__ip4list.html">dns_ip4list</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structdns__ip4list.html b/docs/module-doc/structdns__ip4list.html index 15c64c2db..70e2a350b 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -66,7 +66,7 @@ Definition at line <a class="el" href="dns_8h-source.html#l00028">28</a> of file </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="dns_8h-source.html">dns.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html index b4fb934ff..41b47ce4d 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>nspace::hash< in_addr > Member List</h1>This is the complete list of members for <a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html#a0">operator()</a>(const struct in_addr &a) const</td><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html index 8c893abfd..8a1693b53 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html @@ -55,7 +55,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00119">119</a> </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html index 78bb9da0a..e89dc440c 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>nspace::hash< string > Member List</h1>This is the complete list of members for <a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html#a0">operator()</a>(const string &s) const</td><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html index b9d55c5e4..e06757b04 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html @@ -57,7 +57,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00132">132</a> </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 84a859eef..0116e9f8e 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -171,7 +171,7 @@ 00164 } 00165 00166 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index bed3b8057..e2fa657c5 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -70,7 +70,7 @@ Definition at line <a class="el" href="users_8cpp-source.html#l00024">24</a> of Definition at line <a class="el" href="users_8cpp-source.html#l00026">26</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 9b5999a51..8bed30b84 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -126,7 +126,7 @@ 00208 00209 00210 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 28dc21888..38d7203c9 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -243,7 +243,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line <a class="el" href="users_8h-source.html#l00079">79</a> of file <a class="el" href="users_8h-source.html">users.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index 6a8bf9412..5407646ab 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -86,17 +86,17 @@ 00120 00121 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a0">read_xline_defaults</a>(); 00122 -00123 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a1">add_gline</a>(<span class="keywordtype">long</span> duration, <span class="keywordtype">char</span>* source, <span class="keywordtype">char</span>* reason, <span class="keywordtype">char</span>* hostmask); -00124 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a2">add_qline</a>(<span class="keywordtype">long</span> duration, <span class="keywordtype">char</span>* source, <span class="keywordtype">char</span>* reason, <span class="keywordtype">char</span>* nickname); -00125 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a3">add_zline</a>(<span class="keywordtype">long</span> duration, <span class="keywordtype">char</span>* source, <span class="keywordtype">char</span>* reason, <span class="keywordtype">char</span>* ipaddr); -00126 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a4">add_kline</a>(<span class="keywordtype">long</span> duration, <span class="keywordtype">char</span>* source, <span class="keywordtype">char</span>* reason, <span class="keywordtype">char</span>* hostmask); -00127 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a5">add_eline</a>(<span class="keywordtype">long</span> duration, <span class="keywordtype">char</span>* source, <span class="keywordtype">char</span>* reason, <span class="keywordtype">char</span>* hostmask); +00123 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a1">add_gline</a>(<span class="keywordtype">long</span> duration, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); +00124 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a2">add_qline</a>(<span class="keywordtype">long</span> duration, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* nickname); +00125 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a3">add_zline</a>(<span class="keywordtype">long</span> duration, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); +00126 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a4">add_kline</a>(<span class="keywordtype">long</span> duration, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); +00127 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a5">add_eline</a>(<span class="keywordtype">long</span> duration, <span class="keyword">const</span> <span class="keywordtype">char</span>* source, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason, <span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); 00128 -00129 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a6">del_gline</a>(<span class="keywordtype">char</span>* hostmask); -00130 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a7">del_qline</a>(<span class="keywordtype">char</span>* nickname); -00131 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a8">del_zline</a>(<span class="keywordtype">char</span>* ipaddr); -00132 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a9">del_kline</a>(<span class="keywordtype">char</span>* hostmask); -00133 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a10">del_eline</a>(<span class="keywordtype">char</span>* hostmask); +00129 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a6">del_gline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); +00130 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a7">del_qline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nickname); +00131 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a8">del_zline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); +00132 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a9">del_kline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); +00133 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a10">del_eline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* hostmask); 00134 00135 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#a11">matches_qline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nick); 00136 <span class="keywordtype">char</span>* <a class="code" href="xline_8h.html#a12">matches_gline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* host); @@ -117,13 +117,13 @@ 00151 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a24">qline_set_creation_time</a>(<span class="keywordtype">char</span>* nick, time_t create_time); 00152 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a25">zline_set_creation_time</a>(<span class="keywordtype">char</span>* ip, time_t create_time); 00153 -00154 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a26">zline_make_global</a>(<span class="keywordtype">char</span>* ipaddr); -00155 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a27">qline_make_global</a>(<span class="keywordtype">char</span>* nickname); +00154 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a26">zline_make_global</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* ipaddr); +00155 <span class="keywordtype">bool</span> <a class="code" href="xline_8h.html#a27">qline_make_global</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nickname); 00156 00157 <span class="keywordtype">void</span> <a class="code" href="xline_8h.html#a28">sync_xlines</a>(<a class="code" href="classserverrec.html">serverrec</a>* serv, <span class="keywordtype">char</span>* tcp_host); 00158 00159 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index 328946ffe..3b8a8d401 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -38,25 +38,25 @@ <tr><td colspan=2><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a0">read_xline_defaults</a> ()</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a1">add_gline</a> (long duration, char *source, char *reason, char *hostmask)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a1">add_gline</a> (long duration, const char *source, const char *reason, const char *hostmask)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a2">add_qline</a> (long duration, char *source, char *reason, char *nickname)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a2">add_qline</a> (long duration, const char *source, const char *reason, const char *nickname)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a3">add_zline</a> (long duration, char *source, char *reason, char *ipaddr)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a3">add_zline</a> (long duration, const char *source, const char *reason, const char *ipaddr)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a4">add_kline</a> (long duration, char *source, char *reason, char *hostmask)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a4">add_kline</a> (long duration, const char *source, const char *reason, const char *hostmask)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a5">add_eline</a> (long duration, char *source, char *reason, char *hostmask)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a5">add_eline</a> (long duration, const char *source, const char *reason, const char *hostmask)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a6">del_gline</a> (char *hostmask)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a6">del_gline</a> (const char *hostmask)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a7">del_qline</a> (char *nickname)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a7">del_qline</a> (const char *nickname)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a8">del_zline</a> (char *ipaddr)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a8">del_zline</a> (const char *ipaddr)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a9">del_kline</a> (char *hostmask)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a9">del_kline</a> (const char *hostmask)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a10">del_eline</a> (char *hostmask)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a10">del_eline</a> (const char *hostmask)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>char * </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a11">matches_qline</a> (const char *nick)</td></tr> @@ -88,9 +88,9 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a25">zline_set_creation_time</a> (char *ip, time_t create_time)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a26">zline_make_global</a> (char *ipaddr)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a26">zline_make_global</a> (const char *ipaddr)</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a27">qline_make_global</a> (char *nickname)</td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a27">qline_make_global</a> (const char *nickname)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="xline_8h.html#a28">sync_xlines</a> (<a class="el" href="classserverrec.html">serverrec</a> *serv, char *tcp_host)</td></tr> @@ -110,19 +110,19 @@ <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>source</em>, </td> </tr> <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>reason</em>, </td> </tr> <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>hostmask</em></td> </tr> <tr> @@ -143,7 +143,9 @@ <td> <p> - </td> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00638">Server::AddELine()</a>. </td> </tr> </table> <a name="a1" doxytag="xline.h::add_gline"></a><p> @@ -160,19 +162,19 @@ <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>source</em>, </td> </tr> <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>reason</em>, </td> </tr> <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>hostmask</em></td> </tr> <tr> @@ -193,7 +195,9 @@ <td> <p> - </td> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00618">Server::AddGLine()</a>. </td> </tr> </table> <a name="a4" doxytag="xline.h::add_kline"></a><p> @@ -210,19 +214,19 @@ <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>source</em>, </td> </tr> <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>reason</em>, </td> </tr> <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>hostmask</em></td> </tr> <tr> @@ -243,7 +247,9 @@ <td> <p> - </td> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00633">Server::AddKLine()</a>. </td> </tr> </table> <a name="a2" doxytag="xline.h::add_qline"></a><p> @@ -260,19 +266,19 @@ <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>source</em>, </td> </tr> <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>reason</em>, </td> </tr> <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>nickname</em></td> </tr> <tr> @@ -293,7 +299,9 @@ <td> <p> - </td> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00623">Server::AddQLine()</a>. </td> </tr> </table> <a name="a3" doxytag="xline.h::add_zline"></a><p> @@ -310,19 +318,19 @@ <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>source</em>, </td> </tr> <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>reason</em>, </td> </tr> <tr> <td></td> <td></td> - <td class="md" nowrap>char * </td> + <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>ipaddr</em></td> </tr> <tr> @@ -343,7 +351,9 @@ <td> <p> - </td> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00628">Server::AddZLine()</a>. </td> </tr> </table> <a name="a17" doxytag="xline.h::apply_lines"></a><p> @@ -382,7 +392,7 @@ <tr> <td class="md" nowrap valign="top"> bool del_eline </td> <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">char * </td> + <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>hostmask</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> @@ -400,7 +410,9 @@ <td> <p> - </td> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00663">Server::DelELine()</a>. </td> </tr> </table> <a name="a6" doxytag="xline.h::del_gline"></a><p> @@ -411,7 +423,7 @@ <tr> <td class="md" nowrap valign="top"> bool del_gline </td> <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">char * </td> + <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>hostmask</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> @@ -429,7 +441,9 @@ <td> <p> - </td> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00643">Server::DelGLine()</a>. </td> </tr> </table> <a name="a9" doxytag="xline.h::del_kline"></a><p> @@ -440,7 +454,7 @@ <tr> <td class="md" nowrap valign="top"> bool del_kline </td> <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">char * </td> + <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>hostmask</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> @@ -458,7 +472,9 @@ <td> <p> - </td> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00658">Server::DelKLine()</a>. </td> </tr> </table> <a name="a7" doxytag="xline.h::del_qline"></a><p> @@ -469,7 +485,7 @@ <tr> <td class="md" nowrap valign="top"> bool del_qline </td> <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">char * </td> + <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>nickname</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> @@ -487,7 +503,9 @@ <td> <p> - </td> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00648">Server::DelQLine()</a>. </td> </tr> </table> <a name="a8" doxytag="xline.h::del_zline"></a><p> @@ -498,7 +516,7 @@ <tr> <td class="md" nowrap valign="top"> bool del_zline </td> <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">char * </td> + <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>ipaddr</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> @@ -516,7 +534,9 @@ <td> <p> - </td> + +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00653">Server::DelZLine()</a>. </td> </tr> </table> <a name="a16" doxytag="xline.h::expire_lines"></a><p> @@ -738,7 +758,7 @@ <tr> <td class="md" nowrap valign="top"> bool qline_make_global </td> <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">char * </td> + <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>nickname</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> @@ -1016,7 +1036,7 @@ <tr> <td class="md" nowrap valign="top"> bool zline_make_global </td> <td class="md" valign="top">( </td> - <td class="md" nowrap valign="top">char * </td> + <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>ipaddr</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> @@ -1075,7 +1095,7 @@ </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> diff --git a/include/commands.h b/include/commands.h index 589168409..076db91ae 100644 --- a/include/commands.h +++ b/include/commands.h @@ -116,4 +116,8 @@ void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* */ bool is_uline(const char* server); +/** Other useful functions + */ +long duration(const char* str); + #endif diff --git a/include/modules.h b/include/modules.h index a366ebb73..44c91a47c 100644 --- a/include/modules.h +++ b/include/modules.h @@ -692,6 +692,78 @@ class Server : public classbase */ virtual bool PseudoToUser(userrec* alive,userrec* zombie,std::string message); + /** Adds a G-line + * The G-line is propogated to all of the servers in the mesh and enforced as soon as it is added. + * The duration must be in seconds, however you can use the Server::CalcDuration method to convert + * durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used + * to indicate who or what sent the data, usually this is the nickname of a person, or a server + * name. + */ + virtual void AddGLine(long duration, std::string source, std::string reason, std::string hostmask); + + /** Adds a Q-line + * The Q-line is propogated to all of the servers in the mesh and enforced as soon as it is added. + * The duration must be in seconds, however you can use the Server::CalcDuration method to convert + * durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used + * to indicate who or what sent the data, usually this is the nickname of a person, or a server + * name. + */ + virtual void AddQLine(long duration, std::string source, std::string reason, std::string nickname); + + /** Adds a Z-line + * The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added. + * The duration must be in seconds, however you can use the Server::CalcDuration method to convert + * durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used + * to indicate who or what sent the data, usually this is the nickname of a person, or a server + * name. + */ + virtual void AddZLine(long duration, std::string source, std::string reason, std::string ipaddr); + + /** Adds a K-line + * The K-line is enforced as soon as it is added. + * The duration must be in seconds, however you can use the Server::CalcDuration method to convert + * durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used + * to indicate who or what sent the data, usually this is the nickname of a person, or a server + * name. + */ + virtual void AddKLine(long duration, std::string source, std::string reason, std::string hostmask); + + /** Adds a E-line + * The E-line is enforced as soon as it is added. + * The duration must be in seconds, however you can use the Server::CalcDuration method to convert + * durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used + * to indicate who or what sent the data, usually this is the nickname of a person, or a server + * name. + */ + virtual void AddELine(long duration, std::string source, std::string reason, std::string hostmask); + + /** Deletes a G-Line from all servers on the mesh + */ + virtual bool DelGLine(std::string hostmask); + + /** Deletes a Q-Line from all servers on the mesh + */ + virtual bool DelQLine(std::string nickname); + + /** Deletes a Z-Line from all servers on the mesh + */ + virtual bool DelZLine(std::string ipaddr); + + /** Deletes a local K-Line + */ + virtual bool DelKLine(std::string hostmask); + + /** Deletes a local E-Line + */ + virtual bool DelELine(std::string hostmask); + + /** Calculates a duration + * This method will take a string containing a formatted duration (e.g. "1w2d") and return its value + * as a total number of seconds. This is the same function used internally by /GLINE etc to set + * the ban times. + */ + virtual long CalcDuration(std::string duration); + }; #define CONF_NOT_A_NUMBER 0x000010 diff --git a/include/xline.h b/include/xline.h index b5163ee58..5381d525a 100644 --- a/include/xline.h +++ b/include/xline.h @@ -120,17 +120,17 @@ class QLine : public XLine void read_xline_defaults(); -void add_gline(long duration, char* source, char* reason, char* hostmask); -void add_qline(long duration, char* source, char* reason, char* nickname); -void add_zline(long duration, char* source, char* reason, char* ipaddr); -void add_kline(long duration, char* source, char* reason, char* hostmask); -void add_eline(long duration, char* source, char* reason, char* hostmask); - -bool del_gline(char* hostmask); -bool del_qline(char* nickname); -bool del_zline(char* ipaddr); -bool del_kline(char* hostmask); -bool del_eline(char* hostmask); +void add_gline(long duration, const char* source, const char* reason, const char* hostmask); +void add_qline(long duration, const char* source, const char* reason, const char* nickname); +void add_zline(long duration, const char* source, const char* reason, const char* ipaddr); +void add_kline(long duration, const char* source, const char* reason, const char* hostmask); +void add_eline(long duration, const char* source, const char* reason, const char* hostmask); + +bool del_gline(const char* hostmask); +bool del_qline(const char* nickname); +bool del_zline(const char* ipaddr); +bool del_kline(const char* hostmask); +bool del_eline(const char* hostmask); char* matches_qline(const char* nick); char* matches_gline(const char* host); @@ -151,8 +151,8 @@ void gline_set_creation_time(char* host, time_t create_time); void qline_set_creation_time(char* nick, time_t create_time); void zline_set_creation_time(char* ip, time_t create_time); -bool zline_make_global(char* ipaddr); -bool qline_make_global(char* nickname); +bool zline_make_global(const char* ipaddr); +bool qline_make_global(const char* nickname); void sync_xlines(serverrec* serv, char* tcp_host); diff --git a/src/commands.cpp b/src/commands.cpp index bd2c57983..94635e609 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -2362,7 +2362,7 @@ void handle_hash(char token,char* params,serverrec* source,serverrec* reply, cha char* create_time = strtok(NULL," "); char* duration = strtok(NULL," :"); char* reason = strtok(NULL,"\r\n"); - add_gline(atoi(duration),who,reason,mask); + add_gline(atoi(duration),(const char*)who,(const char*)reason,(const char*)mask); // we must update the creation time on this gline // now that we've added it, or it wont expire at the right time. gline_set_creation_time(mask,atoi(create_time)); @@ -2384,7 +2384,7 @@ void handle_dot(char token,char* params,serverrec* source,serverrec* reply, char char* who = strtok(NULL," "); if (mask) { - if (del_gline(mask)) + if (del_gline((const char*)mask)) { if (who) { @@ -2403,7 +2403,7 @@ void handle_add_sqline(char token,char* params,serverrec* source,serverrec* repl char* create_time = strtok(NULL," "); char* duration = strtok(NULL," :"); char* reason = strtok(NULL,"\r\n"); - add_qline(atoi(duration),who,reason,mask); + add_qline(atoi(duration),(const char*)who,(const char*)reason,(const char*)mask); // we must update the creation time on this gline // now that we've added it, or it wont expire at the right time. qline_set_creation_time(mask,atoi(create_time)); @@ -2426,7 +2426,7 @@ void handle_del_sqline(char token,char* params,serverrec* source,serverrec* repl char* who = strtok(NULL," "); if (mask) { - if (del_qline(mask)) + if (del_qline((const char*)mask)) { if (who) { @@ -2445,7 +2445,7 @@ void handle_add_szline(char token,char* params,serverrec* source,serverrec* repl char* create_time = strtok(NULL," "); char* duration = strtok(NULL," :"); char* reason = strtok(NULL,"\r\n"); - add_zline(atoi(duration),who,reason,mask); + add_zline(atoi(duration),(const char*)who,(const char*)reason,(const char*)mask); // we must update the creation time on this gline // now that we've added it, or it wont expire at the right time. zline_set_creation_time(mask,atoi(create_time)); @@ -2468,7 +2468,7 @@ void handle_del_szline(char token,char* params,serverrec* source,serverrec* repl char* who = strtok(NULL," "); if (mask) { - if (del_zline(mask)) + if (del_zline((const char*)mask)) { if (who) { @@ -3150,14 +3150,14 @@ void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv) } } -long duration(char* str) +long duration(const char* str) { char n_field[MAXBUF]; long total = 0; - char* str_end = str + strlen(str); + const char* str_end = str + strlen(str); n_field[0] = 0; - for (char* i = str; i < str_end; i++) + for (char* i = (char*)str; i < str_end; i++) { // if we have digits, build up a string for the value in n_field, // up to 10 digits in size. diff --git a/src/modules.cpp b/src/modules.cpp index 1fa2300c8..5d75ea20d 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -615,6 +615,62 @@ bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) } +void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) +{ + add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +} + +void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) +{ + add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +} + +void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) +{ + add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +} + +void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) +{ + add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +} + +void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) +{ + add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +} + +bool Server::DelGLine(std::string hostmask) +{ + del_gline(hostmask.c_str()); +} + +bool Server::DelQLine(std::string nickname) +{ + del_qline(nickname.c_str()); +} + +bool Server::DelZLine(std::string ipaddr) +{ + del_zline(ipaddr.c_str()); +} + +bool Server::DelKLine(std::string hostmask) +{ + del_kline(hostmask.c_str()); +} + +bool Server::DelELine(std::string hostmask) +{ + del_eline(hostmask.c_str()); +} + +long Server::CalcDuration(std::string delta) +{ + return duration(delta.c_str()); +} + + ConfigReader::ConfigReader() { this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); diff --git a/src/xline.cpp b/src/xline.cpp index 443d28087..716153b0c 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -235,7 +235,7 @@ void read_xline_defaults() // adds a g:line -void add_gline(long duration, char* source, char* reason, char* hostmask) +void add_gline(long duration, const char* source,const char* reason,const char* hostmask) { del_gline(hostmask); GLine item; @@ -250,7 +250,7 @@ void add_gline(long duration, char* source, char* reason, char* hostmask) // adds an e:line (exception to bans) -void add_eline(long duration, char* source, char* reason, char* hostmask) +void add_eline(long duration, const char* source, const char* reason, const char* hostmask) { del_eline(hostmask); ELine item; @@ -265,7 +265,7 @@ void add_eline(long duration, char* source, char* reason, char* hostmask) // adds a q:line -void add_qline(long duration, char* source, char* reason, char* nickname) +void add_qline(long duration, const char* source, const char* reason, const char* nickname) { del_qline(nickname); QLine item; @@ -281,7 +281,7 @@ void add_qline(long duration, char* source, char* reason, char* nickname) // adds a z:line -void add_zline(long duration, char* source, char* reason, char* ipaddr) +void add_zline(long duration, const char* source, const char* reason, const char* ipaddr) { del_zline(ipaddr); ZLine item; @@ -297,7 +297,7 @@ void add_zline(long duration, char* source, char* reason, char* ipaddr) // adds a k:line -void add_kline(long duration, char* source, char* reason, char* hostmask) +void add_kline(long duration, const char* source, const char* reason, const char* hostmask) { del_kline(hostmask); KLine item; @@ -312,7 +312,7 @@ void add_kline(long duration, char* source, char* reason, char* hostmask) // deletes a g:line, returns true if the line existed and was removed -bool del_gline(char* hostmask) +bool del_gline(const char* hostmask) { for (std::vector<GLine>::iterator i = glines.begin(); i != glines.end(); i++) { @@ -327,7 +327,7 @@ bool del_gline(char* hostmask) // deletes a e:line, returns true if the line existed and was removed -bool del_eline(char* hostmask) +bool del_eline(const char* hostmask) { for (std::vector<ELine>::iterator i = elines.begin(); i != elines.end(); i++) { @@ -342,7 +342,7 @@ bool del_eline(char* hostmask) // deletes a q:line, returns true if the line existed and was removed -bool del_qline(char* nickname) +bool del_qline(const char* nickname) { for (std::vector<QLine>::iterator i = qlines.begin(); i != qlines.end(); i++) { @@ -355,7 +355,7 @@ bool del_qline(char* nickname) return false; } -bool qline_make_global(char* nickname) +bool qline_make_global(const char* nickname) { for (std::vector<QLine>::iterator i = qlines.begin(); i != qlines.end(); i++) { @@ -368,7 +368,7 @@ bool qline_make_global(char* nickname) return false; } -bool zline_make_global(char* ipaddr) +bool zline_make_global(const char* ipaddr) { for (std::vector<ZLine>::iterator i = zlines.begin(); i != zlines.end(); i++) { @@ -413,7 +413,7 @@ void sync_xlines(serverrec* serv, char* tcp_host) // deletes a z:line, returns true if the line existed and was removed -bool del_zline(char* ipaddr) +bool del_zline(const char* ipaddr) { for (std::vector<ZLine>::iterator i = zlines.begin(); i != zlines.end(); i++) { @@ -428,7 +428,7 @@ bool del_zline(char* ipaddr) // deletes a k:line, returns true if the line existed and was removed -bool del_kline(char* hostmask) +bool del_kline(const char* hostmask) { for (std::vector<KLine>::iterator i = klines.begin(); i != klines.end(); i++) { |