From c0f731e19d61a971af5cf26d073ccd25bfc5c91c Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 13 Apr 2005 12:41:46 +0000 Subject: 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 --- docs/man/man3/Admin.3 | 10 +- docs/man/man3/BanItem.3 | 2 +- docs/man/man3/ConfigReader.3 | 274 ++++---- docs/man/man3/ConnectClass.3 | 2 +- docs/man/man3/DNS.3 | 7 +- docs/man/man3/ELine.3 | 2 +- docs/man/man3/ExemptItem.3 | 2 +- docs/man/man3/ExtMode.3 | 2 +- docs/man/man3/Extensible.3 | 2 +- docs/man/man3/FileReader.3 | 84 +-- docs/man/man3/GLine.3 | 2 +- docs/man/man3/HostItem.3 | 2 +- docs/man/man3/InAddr_HashComp.3 | 2 +- docs/man/man3/InviteItem.3 | 2 +- docs/man/man3/Invited.3 | 2 +- docs/man/man3/KLine.3 | 2 +- docs/man/man3/ModeParameter.3 | 2 +- docs/man/man3/Module.3 | 15 +- docs/man/man3/ModuleFactory.3 | 12 +- docs/man/man3/QLine.3 | 2 +- docs/man/man3/Server.3 | 228 ++++++- docs/man/man3/StrHashComp.3 | 2 +- docs/man/man3/Version.3 | 14 +- docs/man/man3/XLine.3 | 2 +- docs/man/man3/ZLine.3 | 2 +- docs/man/man3/base.h.3 | 2 +- docs/man/man3/channels.cpp.3 | 4 +- docs/man/man3/channels.h.3 | 2 +- docs/man/man3/chanrec.3 | 12 +- docs/man/man3/classbase.3 | 2 +- docs/man/man3/command_t.3 | 2 +- docs/man/man3/commands.h.3 | 9 +- docs/man/man3/connection.3 | 6 +- docs/man/man3/connection.h.3 | 2 +- docs/man/man3/ctables.h.3 | 2 +- docs/man/man3/dns.h.3 | 2 +- docs/man/man3/dns_ip4list.3 | 2 +- docs/man/man3/ircd_connector.3 | 2 +- docs/man/man3/message.h.3 | 2 +- docs/man/man3/mode.h.3 | 2 +- docs/man/man3/modules.cpp.3 | 4 +- docs/man/man3/modules.h.3 | 20 +- docs/man/man3/nspace.3 | 2 +- docs/man/man3/nspace_nspace_hash_ in_addr _.3 | 2 +- docs/man/man3/nspace_nspace_hash_ string _.3 | 2 +- docs/man/man3/packet.3 | 2 +- docs/man/man3/serverrec.3 | 2 +- docs/man/man3/servers.cpp.3 | 2 +- docs/man/man3/servers.h.3 | 2 +- docs/man/man3/std.3 | 2 +- docs/man/man3/ucrec.3 | 4 +- docs/man/man3/userrec.3 | 8 +- docs/man/man3/users.cpp.3 | 2 +- docs/man/man3/users.h.3 | 2 +- docs/man/man3/xline.h.3 | 60 +- docs/module-doc/annotated.html | 2 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/channels_8cpp-source.html | 2 +- docs/module-doc/channels_8cpp.html | 8 +- docs/module-doc/channels_8h-source.html | 2 +- docs/module-doc/channels_8h.html | 2 +- docs/module-doc/classAdmin-members.html | 2 +- docs/module-doc/classAdmin.html | 10 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 2 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 320 ++++----- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 2 +- docs/module-doc/classDNS-members.html | 3 +- docs/module-doc/classDNS.html | 33 +- docs/module-doc/classELine-members.html | 2 +- docs/module-doc/classELine.html | 2 +- docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 2 +- docs/module-doc/classExtMode-members.html | 2 +- docs/module-doc/classExtMode.html | 2 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 2 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 100 +-- docs/module-doc/classGLine-members.html | 2 +- docs/module-doc/classGLine.html | 2 +- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 2 +- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 2 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 2 +- docs/module-doc/classKLine-members.html | 2 +- docs/module-doc/classKLine.html | 2 +- docs/module-doc/classModeParameter-members.html | 2 +- docs/module-doc/classModeParameter.html | 2 +- docs/module-doc/classModule-members.html | 3 +- docs/module-doc/classModule.html | 59 +- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 12 +- docs/module-doc/classQLine-members.html | 2 +- docs/module-doc/classQLine.html | 2 +- docs/module-doc/classServer-members.html | 15 +- docs/module-doc/classServer.html | 735 ++++++++++++++++++++- docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 14 +- docs/module-doc/classXLine-members.html | 2 +- docs/module-doc/classXLine.html | 2 +- docs/module-doc/classZLine-members.html | 2 +- docs/module-doc/classZLine.html | 2 +- docs/module-doc/classchanrec-members.html | 2 +- docs/module-doc/classchanrec.html | 12 +- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 2 +- docs/module-doc/classcommand__t-members.html | 2 +- docs/module-doc/classcommand__t.html | 2 +- docs/module-doc/classconnection-members.html | 2 +- docs/module-doc/classconnection.html | 6 +- docs/module-doc/classes.html | 2 +- docs/module-doc/classircd__connector-members.html | 2 +- docs/module-doc/classircd__connector.html | 2 +- docs/module-doc/classpacket-members.html | 2 +- docs/module-doc/classpacket.html | 2 +- docs/module-doc/classserverrec-members.html | 2 +- docs/module-doc/classserverrec.html | 2 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 4 +- docs/module-doc/classuserrec-members.html | 2 +- docs/module-doc/classuserrec.html | 8 +- docs/module-doc/commands_8h-source.html | 6 +- docs/module-doc/commands_8h.html | 38 +- docs/module-doc/connection_8h-source.html | 2 +- docs/module-doc/connection_8h.html | 2 +- docs/module-doc/ctables_8h-source.html | 2 +- docs/module-doc/ctables_8h.html | 2 +- docs/module-doc/dns_8h-source.html | 9 +- docs/module-doc/dns_8h.html | 2 +- docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 49 +- docs/module-doc/functions_func.html | 35 +- docs/module-doc/functions_vars.html | 2 +- docs/module-doc/globals.html | 34 +- docs/module-doc/globals_defs.html | 13 +- docs/module-doc/globals_func.html | 9 +- docs/module-doc/globals_type.html | 10 +- docs/module-doc/globals_vars.html | 8 +- docs/module-doc/hierarchy.html | 2 +- docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 2 +- docs/module-doc/message_8h.html | 2 +- docs/module-doc/mode_8h-source.html | 4 +- docs/module-doc/mode_8h.html | 2 +- docs/module-doc/modules_8cpp-source.html | 503 ++++++++------ docs/module-doc/modules_8cpp.html | 20 +- docs/module-doc/modules_8h-source.html | 436 ++++++------ docs/module-doc/modules_8h.html | 102 +-- docs/module-doc/namespacenspace.html | 2 +- docs/module-doc/namespaces.html | 2 +- docs/module-doc/namespacestd.html | 2 +- docs/module-doc/servers_8cpp-source.html | 2 +- docs/module-doc/servers_8cpp.html | 2 +- docs/module-doc/servers_8h-source.html | 2 +- docs/module-doc/servers_8h.html | 2 +- .../module-doc/structInAddr__HashComp-members.html | 2 +- docs/module-doc/structInAddr__HashComp.html | 2 +- docs/module-doc/structStrHashComp-members.html | 2 +- docs/module-doc/structStrHashComp.html | 2 +- docs/module-doc/structdns__ip4list-members.html | 2 +- docs/module-doc/structdns__ip4list.html | 2 +- ..._1nspace_1_1hash_3_01in__addr_01_4-members.html | 2 +- ...nspace_1_1nspace_1_1hash_3_01in__addr_01_4.html | 2 +- ..._1_1nspace_1_1hash_3_01string_01_4-members.html | 2 +- ...ctnspace_1_1nspace_1_1hash_3_01string_01_4.html | 2 +- docs/module-doc/users_8cpp-source.html | 2 +- docs/module-doc/users_8cpp.html | 2 +- docs/module-doc/users_8h-source.html | 2 +- docs/module-doc/users_8h.html | 2 +- docs/module-doc/xline_8h-source.html | 26 +- docs/module-doc/xline_8h.html | 110 +-- 177 files changed, 2546 insertions(+), 1233 deletions(-) (limited to 'docs') 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 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 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 \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 \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 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 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 #endif 00081 -
Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index cace50581..f00eb40e6 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -49,7 +49,7 @@ Definition at line 25 of file base.h. -
Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index 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 return std::string(""); 00199 } -
Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 97b081aa4..9405c9d8a 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -51,7 +51,7 @@ std::vector< Module * > modules -std::vector< ircd_module * > factory +std::vector< ircd_module * > factory int LogLevel @@ -448,7 +448,7 @@ Definition at line 80 -
std::vector<ircd_module*> factory + std::vector<ircd_module*> factory
@@ -631,7 +631,7 @@ Definition at line 103

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

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


Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:18 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index 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 #endif 00220 -
Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 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 88 of file channels.h. -
Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:18 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 63d13061d..10523942f 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -13,7 +13,7 @@ NameAdmin NickAdmin ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by doxygen 1.3.3
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 Server, and

-Definition at line 121 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 123 of file modules.h.

Constructor & Destructor Documentation

@@ -104,7 +104,7 @@ Definition at line 304

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

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

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

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

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


The documentation for this class was generated from the following files: -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 8ded16b35..4660e0cf8 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by doxygen 1.3.3
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 HostItem designed to h

Definition at line 45 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index f44a6fc45..a4c081883 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -24,7 +24,7 @@ Verify()ConfigReader ~classbase()classbase [inline] ~ConfigReader()ConfigReader -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by doxygen 1.3.3
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

-Definition at line 683 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 780 of file modules.h.

Constructor & Destructor Documentation

@@ -97,17 +97,17 @@ Default constructor.

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

-Definition at line 579 of file modules.cpp. +Definition at line 674 of file modules.cpp.

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

-

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

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

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

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

-

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

This method destroys the ConfigReader class.

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

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

-

00590 {
-00591         if (this->cache)
-00592                 delete this->cache;
-00593         if (this->errorlog)
-00594                 delete this->errorlog;
-00595 }
+
00685 {
+00686         if (this->cache)
+00687                 delete this->cache;
+00688         if (this->errorlog)
+00689                 delete this->errorlog;
+00690 }
 
@@ -237,40 +237,40 @@ Dumps the list of errors in a config file to an output location.

If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers.

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

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

-

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

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

+

00772 {
+00773         if (bail)
+00774         {
+00775                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
+00776                 exit(0);
+00777         }
+00778         else
+00779         {
+00780                 char dataline[1024];
+00781                 if (user)
+00782                 {
+00783                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
+00784                         while (!errorlog->eof())
+00785                         {
+00786                                 errorlog->getline(dataline,1024);
+00787                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
+00788                         }
+00789                 }
+00790                 else
+00791                 {
+00792                         WriteOpers("There were errors in the configuration file:",user->nick);
+00793                         while (!errorlog->eof())
+00794                         {
+00795                                 errorlog->getline(dataline,1024);
+00796                                 WriteOpers(dataline);
+00797                         }
+00798                 }
+00799                 return;
+00800         }
+00801 }
 
@@ -304,13 +304,13 @@ Counts the number of times a given tag appears in the config file.

This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of ConfigReader::ReadValue to loop through all copies of a multiple instance tag.

-Definition at line 709 of file modules.cpp. +Definition at line 804 of file modules.cpp.

-References cache. +References cache.

-

00710 {
-00711         return EnumConf(cache,tag.c_str());
-00712 }
+
00805 {
+00806         return EnumConf(cache,tag.c_str());
+00807 }
 
@@ -353,13 +353,13 @@ Returns the number of items within a tag.

For example if the tag was <test tag="blah" data="foo"> then this function would return 2. Spaces and newlines both qualify as valid seperators between values.

-Definition at line 714 of file modules.cpp. +Definition at line 809 of file modules.cpp.

-References cache. +References cache.

-

00715 {
-00716         return EnumValues(cache, tag.c_str(), index);
-00717 }
+
00810 {
+00811         return EnumValues(cache, tag.c_str(), index);
+00812 }
 
@@ -392,15 +392,15 @@ Returns the last error to occur.

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

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

-References error. +References error.

-

00670 {
-00671         long olderr = this->error;
-00672         this->error = 0;
-00673         return olderr;
-00674 }
+
00765 {
+00766         long olderr = this->error;
+00767         this->error = 0;
+00768         return olderr;
+00769 }
 
@@ -449,25 +449,25 @@ Retrieves a boolean value from the config file.

This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values "1", "yes" and "true" in the config file count as true to ReadFlag, and any other value counts as false.

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

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

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

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

00719 {
+00720         char val[MAXBUF];
+00721         char t[MAXBUF];
+00722         char n[MAXBUF];
+00723         strlcpy(t,tag.c_str(),MAXBUF);
+00724         strlcpy(n,name.c_str(),MAXBUF);
+00725         int res = ReadConf(cache,t,n,index,val);
+00726         if (!res)
+00727         {
+00728                 this->error = CONF_VALUE_NOT_FOUND;
+00729                 return false;
+00730         }
+00731         std::string s = val;
+00732         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
+00733 }
 
@@ -522,37 +522,37 @@ Retrieves an integer value from the config file.

This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to GetError() will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and GetError() will return CONF_NOT_UNSIGNED

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

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

-

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

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

+

00736 {
+00737         char val[MAXBUF];
+00738         char t[MAXBUF];
+00739         char n[MAXBUF];
+00740         strlcpy(t,tag.c_str(),MAXBUF);
+00741         strlcpy(n,name.c_str(),MAXBUF);
+00742         int res = ReadConf(cache,t,n,index,val);
+00743         if (!res)
+00744         {
+00745                 this->error = CONF_VALUE_NOT_FOUND;
+00746                 return 0;
+00747         }
+00748         for (int i = 0; i < strlen(val); i++)
+00749         {
+00750                 if (!isdigit(val[i]))
+00751                 {
+00752                         this->error = CONF_NOT_A_NUMBER;
+00753                         return 0;
+00754                 }
+00755         }
+00756         if ((needs_unsigned) && (atoi(val)<0))
+00757         {
+00758                 this->error = CONF_NOT_UNSIGNED;
+00759                 return 0;
+00760         }
+00761         return atoi(val);
+00762 }
 
@@ -601,24 +601,24 @@ Retrieves a value from the config file.

This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve.

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

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

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

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

00703 {
+00704         char val[MAXBUF];
+00705         char t[MAXBUF];
+00706         char n[MAXBUF];
+00707         strlcpy(t,tag.c_str(),MAXBUF);
+00708         strlcpy(n,name.c_str(),MAXBUF);
+00709         int res = ReadConf(cache,t,n,index,val);
+00710         if (!res)
+00711         {
+00712                 this->error = CONF_VALUE_NOT_FOUND;
+00713                 return "";
+00714         }
+00715         return std::string(val);
+00716 }
 
@@ -651,13 +651,13 @@ Returns true if a config file is valid.

This method is partially implemented and will only return false if the config file does not exist or could not be opened.

-Definition at line 719 of file modules.cpp. +Definition at line 814 of file modules.cpp.

-References readerror. +References readerror.

-

00720 {
-00721         return this->readerror;
-00722 }
+
00815 {
+00816         return this->readerror;
+00817 }
 
@@ -685,9 +685,9 @@ The contents of the configuration file This protected member should never be acc

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

-Definition at line 691 of file modules.h. +Definition at line 788 of file modules.h.

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

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

-Definition at line 696 of file modules.h. +Definition at line 793 of file modules.h.

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

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

-Definition at line 692 of file modules.h. +Definition at line 789 of file modules.h.

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

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

-Definition at line 695 of file modules.h. +Definition at line 792 of file modules.h.

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


The documentation for this class was generated from the following files: -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index fe2d857a5..fde6d664e 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -16,7 +16,7 @@ registration_timeoutConnectClass typeConnectClass ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by doxygen 1.3.3
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 50 of fi
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classDNS-members.html b/docs/module-doc/classDNS-members.html index dfb648263..39fbbd41a 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -31,9 +31,10 @@ iDNS [private] resultDNS [private] ReverseLookup(std::string ip)DNS + SetNS(std::string dnsserver)DNS tDNS [private] ~DNS()DNS -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
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 @@ int GetFD ()  This method returns the file handle used by the dns query socket or zero if the query is invalid for some reason, e.g.

+void SetNS (std::string dnsserver) +

Private Member Functions

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

+ + + + +
+ + + + + + + + + + +
void DNS::SetNS std::string  dnsserver  ) 
+
+ + + + + +
+   + + +

+


Member Data Documentation

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


The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index 38d54642f..df387c7cf 100644 --- a/docs/module-doc/classELine-members.html +++ b/docs/module-doc/classELine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
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 88 of fi
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index d3078e486..214ea6eaf 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
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 HostItem designed to h

Definition at line 53 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 47b03bd61..8f0f5e29f 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -16,7 +16,7 @@ params_when_onExtMode typeExtMode ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
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 ExtMode()
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index a3fabf023..8c60c700b 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -13,7 +13,7 @@ GetExt(std::string key)Extensible Shrink(std::string key)Extensible ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
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 54 of fil
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index db829c04c..929a2cfc1 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -17,7 +17,7 @@ LoadFile(std::string filename)FileReader ~classbase()classbase [inline] ~FileReader()FileReader -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
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 classbase.  Returns the size of the file in lines.


Private Attributes

-file_cache fc +file_cache fc

Detailed Description

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

-Definition at line 772 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 869 of file modules.h.

Constructor & Destructor Documentation

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

This method does not load any file into memory, you must use the LoadFile method after constructing the class this way.

-Definition at line 732 of file modules.cpp. +Definition at line 827 of file modules.cpp.

-

00733 {
-00734 }
+
00828 {
+00829 }
 
@@ -114,15 +114,15 @@ Secondary constructor.

This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, FileReader::FileSize returns 0.

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

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

-

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

This deletes the memory allocated to the file.

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

-

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

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

-References fc. +References fc.

-

00749 {
-00750         if (fc.size() == 0)
-00751         {
-00752                 return(false);
-00753         }
-00754         else
-00755         {
-00756                 return(true);
-00757         }
-00758 }
+
00844 {
+00845         if (fc.size() == 0)
+00846         {
+00847                 return(false);
+00848         }
+00849         else
+00850         {
+00851                 return(true);
+00852         }
+00853 }
 
@@ -238,13 +238,13 @@ Returns the size of the file in lines.

This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems.

-Definition at line 767 of file modules.cpp. +Definition at line 862 of file modules.cpp.

-References fc. +References fc.

-

00768 {
-00769         return fc.size();
-00770 }
+
00863 {
+00864         return fc.size();
+00865 }
 
@@ -278,15 +278,15 @@ Retrieve one line from the file.

This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it.

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

-References fc. +References fc.

-

00761 {
-00762         if ((x<0) || (x>fc.size()))
-00763                 return "";
-00764         return fc[x];
-00765 }
+
00856 {
+00857         if ((x<0) || (x>fc.size()))
+00858                 return "";
+00859         return fc[x];
+00860 }
 
@@ -320,15 +320,15 @@ Used to load a file.

This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, FileReader::FileSize returns 0.

-Definition at line 736 of file modules.cpp. +Definition at line 831 of file modules.cpp.

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

-

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

-Definition at line 774 of file modules.h. +Definition at line 871 of file modules.h.

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


The documentation for this class was generated from the following files: -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index 4a2e1ed21..d7010b3d5 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
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 79 of fi
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index 16f52a41d..d80951e54 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
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 32 of
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index 98d382936..0e1ec1f72 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
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 HostItem designed to h

Definition at line 61 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index a7e5e43c0..a49a0a5a7 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -10,7 +10,7 @@ channelInvited classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
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 userrec::Invite
The documentation for this class was generated from the following file:
-
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index 4d4a0bfd5..d75fb3e2b 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
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 68 of fi
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index 5d2b1c080..77156ab94 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -12,7 +12,7 @@ modeModeParameter parameterModeParameter ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
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 chanrec::Set
The documentation for this class was generated from the following file:
-
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index b26175671..9face5200 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -12,6 +12,7 @@ Module()Module On005Numeric(std::string &output)Module [virtual] OnAccessCheck(userrec *source, userrec *dest, chanrec *channel, int access_type)Module [virtual] + OnBackgroundTimer(time_t curtime)Module [virtual] OnChannelSync(chanrec *chan)Module [virtual] OnExtendedMode(userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)Module [virtual] OnInfo(userrec *user)Module [virtual] @@ -36,7 +37,7 @@ OnWhois(userrec *source, userrec *dest)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by doxygen 1.3.3
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 classbase. virtual void OnServerRaw (std::string &raw, bool inbound, userrec *user)  Called when a raw command is transmitted or received.

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


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


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


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


virtual void On005Numeric (std::string &output) @@ -96,6 +96,9 @@ Inherits classbase. virtual void OnLoadModule (Module *mod, std::string name)  Called whenever a module is loaded.


+virtual void OnBackgroundTimer (time_t curtime) + + Called once every five seconds for background processing.



Detailed Description

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

-Definition at line 133 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 135 of file modules.h.

Constructor & Destructor Documentation

@@ -320,13 +323,49 @@ References ACR_DEFAULT.
+

+ + + + +
+ + + + + + + + + + +
void Module::OnBackgroundTimer time_t  curtime  )  [virtual]
+
+ + + + + +
+   + + +

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

+

00333 { };
+

- + @@ -1248,7 +1287,7 @@ Definition at line 309
- + @@ -354,7 +393,7 @@ Definition at line 329

References string_list.

-

00329 { string_list empty; return empty; }
+
00329 { string_list empty; return empty; }
 
string_list Module::OnChannelSync string_list Module::OnChannelSync chanrec chan
@@ -396,7 +435,7 @@ References string_list.
string_liststring_list params
- + @@ -1276,7 +1315,7 @@ Definition at line 328

References string_list.

-

00328 { string_list empty; return empty; }
+
00328 { string_list empty; return empty; }
 
string_list Module::OnUserSync string_list Module::OnUserSync userrec user
@@ -1327,7 +1366,7 @@ Definition at line 321


The documentation for this class was generated from the following files: -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 8cb74989c..5735bfe40 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -12,7 +12,7 @@ ModuleFactory()ModuleFactory [inline] ~classbase()classbase [inline] ~ModuleFactory()ModuleFactory [inline, virtual] -
Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by doxygen 1.3.3
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

-Definition at line 827 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 924 of file modules.h.

Constructor & Destructor Documentation

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

-Definition at line 830 of file modules.h. +Definition at line 927 of file modules.h.

-

00830 { }
+
00927 { }
 
@@ -91,9 +91,9 @@ Definition at line 830 of

-Definition at line 831 of file modules.h. +Definition at line 928 of file modules.h.

-

00831 { }
+
00928 { }
 
@@ -130,7 +130,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 77c50ed76..446cb8a35 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by doxygen 1.3.3
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 114 of f
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 8a1365d42..c633a1848 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -7,9 +7,15 @@

Server Member List

This is the complete list of members for Server, including all inherited members. + + + + + + @@ -18,6 +24,11 @@ + + + + + @@ -31,6 +42,7 @@ + @@ -43,9 +55,10 @@ + -
AddCommand(char *cmd, handlerfunc f, char flags, int minparams, char *source)Server [virtual]
AddELine(long duration, std::string source, std::string reason, std::string hostmask)Server [virtual]
AddExtendedListMode(char modechar)Server [virtual]
AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)Server [virtual]
AddGLine(long duration, std::string source, std::string reason, std::string hostmask)Server [virtual]
AddKLine(long duration, std::string source, std::string reason, std::string hostmask)Server [virtual]
AddQLine(long duration, std::string source, std::string reason, std::string nickname)Server [virtual]
AddZLine(long duration, std::string source, std::string reason, std::string ipaddr)Server [virtual]
ageclassbase
CalcDuration(std::string duration)Server [virtual]
CallCommandHandler(std::string commandname, char **parameters, int pcnt, userrec *user)Server [virtual]
ChangeGECOS(userrec *user, std::string gecos)Server [virtual]
ChangeHost(userrec *user, std::string host)Server [virtual]
classbase()classbase [inline]
CommonChannels(userrec *u1, userrec *u2)Server [virtual]
CountUsers(chanrec *c)Server [virtual]
DelELine(std::string hostmask)Server [virtual]
DelGLine(std::string hostmask)Server [virtual]
DelKLine(std::string hostmask)Server [virtual]
DelQLine(std::string nickname)Server [virtual]
DelZLine(std::string ipaddr)Server [virtual]
FindChannel(std::string channel)Server [virtual]
FindNick(std::string nick)Server [virtual]
GetAdmin()Server [virtual]
Log(int level, std::string s)Server [virtual]
MatchText(std::string sliteral, std::string spattern)Server [virtual]
PartUserFromChannel(userrec *user, std::string cname, std::string reason)Server [virtual]
PseudoToUser(userrec *alive, userrec *zombie, std::string message)Server [virtual]
QuitUser(userrec *user, std::string reason)Server [virtual]
Send(int Socket, std::string s)Server [virtual]
SendChannel(userrec *User, chanrec *Channel, std::string s, bool IncludeSender)Server [virtual]
SendToModeMask(std::string modes, int flags, std::string text)Server [virtual]
SendWallops(userrec *User, std::string text)Server [virtual]
Server()Server
UserToPseudo(userrec *user, std::string message)Server [virtual]
~classbase()classbase [inline]
~Server()Server [virtual]

Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by doxygen 1.3.3
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 classbase. virtual bool IsUlined (std::string server)  Returns true if the servername you give is ulined.

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


+virtual bool UserToPseudo (userrec *user, std::string message) + + Remove a user's connection to the irc server, but leave their client in existence in the user hash.


+virtual bool PseudoToUser (userrec *alive, userrec *zombie, std::string message) + + This user takes one user, and switches their file descriptor with another user, so that one user "becomes" the other.


+virtual void AddGLine (long duration, std::string source, std::string reason, std::string hostmask) + + 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.


+virtual void AddQLine (long duration, std::string source, std::string reason, std::string nickname) + + 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.


+virtual void AddZLine (long duration, std::string source, std::string reason, std::string ipaddr) + + 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.


+virtual void AddKLine (long duration, std::string source, std::string reason, std::string hostmask) + + Adds a K-line The K-line is enforced as soon as it is added.


+virtual void AddELine (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.


+virtual bool DelGLine (std::string hostmask) + + Deletes a G-Line from all servers on the mesh.


+virtual bool DelQLine (std::string nickname) + + Deletes a Q-Line from all servers on the mesh.


+virtual bool DelZLine (std::string ipaddr) + + Deletes a Z-Line from all servers on the mesh.


+virtual bool DelKLine (std::string hostmask) + + Deletes a local K-Line.


+virtual bool DelELine (std::string hostmask) + + Deletes a local E-Line.


+virtual long CalcDuration (std::string duration) + + Calculates a duration This method will take a string containing a formatted duration (e.g.



Detailed Description

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

-Definition at line 376 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 385 of file modules.h.

Constructor & Destructor Documentation

@@ -266,14 +305,75 @@ When the command is typed, the parameters will be placed into the parameters arr

Definition at line 420 of file modules.cpp.

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

00421 {
-00422         createcommand(cmd,f,flags,minparams,source);
+00422         createcommand(cmd,f,flags,minparams,source);
 00423 }
 
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void Server::AddELine long  duration,
std::string  source,
std::string  reason,
std::string  hostmask
[virtual]
+
+ + + + + +
+   + + +

+Adds a E-line The E-line is enforced as soon as it is added. +

+The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. +

+Definition at line 638 of file modules.cpp. +

+References add_eline(), and duration(). +

+

00639 {
+00640         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00641 }
+

@@ -404,6 +504,290 @@ References DEBUG,
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void Server::AddGLine long  duration,
std::string  source,
std::string  reason,
std::string  hostmask
[virtual]
+
+ + + + + +
+   + + +

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

+Definition at line 618 of file modules.cpp. +

+References add_gline(), and duration(). +

+

00619 {
+00620         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00621 }
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void Server::AddKLine long  duration,
std::string  source,
std::string  reason,
std::string  hostmask
[virtual]
+
+ + + + + +
+   + + +

+Adds a K-line The K-line is enforced as soon as it is added. +

+The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. +

+Definition at line 633 of file modules.cpp. +

+References add_kline(), and duration(). +

+

00634 {
+00635         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00636 }
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void Server::AddQLine long  duration,
std::string  source,
std::string  reason,
std::string  nickname
[virtual]
+
+ + + + + +
+   + + +

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

+Definition at line 623 of file modules.cpp. +

+References add_qline(), and duration(). +

+

00624 {
+00625         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
+00626 }
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void Server::AddZLine long  duration,
std::string  source,
std::string  reason,
std::string  ipaddr
[virtual]
+
+ + + + + +
+   + + +

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

+Definition at line 628 of file modules.cpp. +

+References add_zline(), and duration(). +

+

00629 {
+00630         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
+00631 }
+
+

+ + + + +
+ + + + + + + + + + +
long Server::CalcDuration std::string  duration  )  [virtual]
+
+ + + + + +
+   + + +

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

+References duration(). +

+

00669 {
+00670         return duration(delta.c_str());
+00671 }
+

@@ -745,6 +1129,206 @@ Definition at line 573
+

+ + + + +
+ + + + + + + + + + +
bool Server::DelELine std::string  hostmask  )  [virtual]
+
+ + + + + +
+   + + +

+Deletes a local E-Line. +

+ +

+Definition at line 663 of file modules.cpp. +

+References del_eline(). +

+

00664 {
+00665         del_eline(hostmask.c_str());
+00666 }
+
+

+ + + + +
+ + + + + + + + + + +
bool Server::DelGLine std::string  hostmask  )  [virtual]
+
+ + + + + +
+   + + +

+Deletes a G-Line from all servers on the mesh. +

+ +

+Definition at line 643 of file modules.cpp. +

+References del_gline(). +

+

00644 {
+00645         del_gline(hostmask.c_str());
+00646 }
+
+

+ + + + +
+ + + + + + + + + + +
bool Server::DelKLine std::string  hostmask  )  [virtual]
+
+ + + + + +
+   + + +

+Deletes a local K-Line. +

+ +

+Definition at line 658 of file modules.cpp. +

+References del_kline(). +

+

00659 {
+00660         del_kline(hostmask.c_str());
+00661 }
+
+

+ + + + +
+ + + + + + + + + + +
bool Server::DelQLine std::string  nickname  )  [virtual]
+
+ + + + + +
+   + + +

+Deletes a Q-Line from all servers on the mesh. +

+ +

+Definition at line 648 of file modules.cpp. +

+References del_qline(). +

+

00649 {
+00650         del_qline(nickname.c_str());
+00651 }
+
+

+ + + + +
+ + + + + + + + + + +
bool Server::DelZLine std::string  ipaddr  )  [virtual]
+
+ + + + + +
+   + + +

+Deletes a Z-Line from all servers on the mesh. +

+ +

+Definition at line 653 of file modules.cpp. +

+References del_zline(). +

+

00654 {
+00655         del_zline(ipaddr.c_str());
+00656 }
+

@@ -938,7 +1522,7 @@ Definition at line 528 -
- + @@ -967,7 +1551,7 @@ Definition at line 375 References chanuserlist, clientlist, has_channel(), and isnick().

00376 {
-00377         chanuserlist userl;
+00377         chanuserlist userl;
 00378         userl.clear();
 00379         for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
 00380         {
@@ -1319,6 +1903,86 @@ Definition at line 370
 
chanuserlist Server::GetUsers chanuserlist Server::GetUsers chanrec chan
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
bool Server::PseudoToUser userrec alive,
userrec zombie,
std::string  message
[virtual]
+
+ + + + + +
+   + + +

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

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

+

00589 {
+00590         zombie->fd = alive->fd;
+00591         alive->fd = FD_MAGIC_NUMBER;
+00592         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
+00593         kill_link(alive,message.c_str());
+00594         for (int i = 0; i != MAXCHANS; i++)
+00595         {
+00596                 if (zombie->chans[i].channel != NULL)
+00597                 {
+00598                         if (zombie->chans[i].channel->name)
+00599                         {
+00600                                 chanrec* Ptr = zombie->chans[i].channel;
+00601                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
+00602                                 if (Ptr->topicset)
+00603                                 {
+00604                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
+00605                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
+00606                                 }
+00607                                 userlist(zombie,Ptr);
+00608                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
+00609                                 WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr));
+00610                                 WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created);
+00611 
+00612                         }
+00613                 }
+00614         }
+00615 
+00616 }
+

@@ -1651,10 +2315,10 @@ The modes will originate from the server where the command was issued, however r

Definition at line 425 of file modules.cpp.

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

00426 {
-00427         server_mode(parameters,pcnt,user);
+00427         server_mode(parameters,pcnt,user);
 00428 }
 
@@ -1914,9 +2578,62 @@ Definition at line 488
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool Server::UserToPseudo userrec user,
std::string  message
[virtual]
+
+ + + + + +
+   + + +

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

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

+

00580 {
+00581         unsigned int old_fd = user->fd;
+00582         user->fd = FD_MAGIC_NUMBER;
+00583         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
+00584         close(old_fd);
+00585         shutdown (old_fd,2);
+00586 }
+


The documentation for this class was generated from the following files: -
Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index 91a734b38..a78156551 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -15,7 +15,7 @@
RevisionVersion
Version(int major, int minor, int revision, int build, int flags)Version
~classbase()classbase [inline]


Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
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 109 of file modules.h.

Constructor & Destructor Documentation

+Definition at line 111 of file modules.h.

Constructor & Destructor Documentation

@@ -120,7 +120,7 @@ Definition at line 300

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

@@ -144,7 +144,7 @@ Definition at line 112 of

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

@@ -168,7 +168,7 @@ Definition at line 112 of

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

@@ -192,7 +192,7 @@ Definition at line 112 of

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

@@ -216,12 +216,12 @@ Definition at line 112 of

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


The documentation for this class was generated from the following files: -
Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index 356ae6a0c..6797c1e27 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -14,7 +14,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
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 48 of fi
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index 587d790e3..7e1d5bd5d 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
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 103 of f
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index b72b75074..c6b93353d 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -33,7 +33,7 @@ topicsetchanrec ~chanrec()chanrec [inline, virtual] ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by doxygen 1.3.3
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.

Definition at line 111 of file channels.h.

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

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

Definition at line 99 of file channels.h.

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

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

Definition at line 119 of file channels.h.

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

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

Definition at line 108 of file channels.h.

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

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

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


The documentation for this class was generated from the following files: -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 542a0a763..b8767da5d 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -9,7 +9,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by doxygen 1.3.3
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 classbase().
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index 9e328eda4..44c7fd630 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -19,7 +19,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 5579a3102..5b952627f 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -227,7 +227,7 @@ Definition at line 43 of
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:22 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index 987203298..09b4b14a2 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -41,7 +41,7 @@ stateconnection TerminateLink(char *targethost)connection ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by doxygen 1.3.3
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.

Definition at line 178 of file connection.h.

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

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

Definition at line 182 of file connection.h.

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

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


The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by doxygen 1.3.3
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 @@
  S  
  Z  
connection   GLine   ModeParameter   Server   ZLine   
  D  
-
Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classircd__connector-members.html b/docs/module-doc/classircd__connector-members.html index de7c3ad39..d7d4dc551 100644 --- a/docs/module-doc/classircd__connector-members.html +++ b/docs/module-doc/classircd__connector-members.html @@ -35,7 +35,7 @@ Shrink(std::string key)Extensible stateircd_connector [private] ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classircd__connector.html b/docs/module-doc/classircd__connector.html index 9faa9d81c..7155a5007 100644 --- a/docs/module-doc/classircd__connector.html +++ b/docs/module-doc/classircd__connector.html @@ -792,7 +792,7 @@ Definition at line 75
The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classpacket-members.html b/docs/module-doc/classpacket-members.html index d44d2d256..5a7b7f455 100644 --- a/docs/module-doc/classpacket-members.html +++ b/docs/module-doc/classpacket-members.html @@ -9,7 +9,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by doxygen 1.3.3
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.

Definition at line 167 of file connection.h.


The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:26 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index ac224aa7b..3b17f6dd5 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -55,7 +55,7 @@ versionserverrec ~classbase()classbase [inline] ~serverrec()serverrec -
Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by doxygen 1.3.3
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 serverrec()
The documentation for this class was generated from the following files:
-
Generated on Sat Apr 9 14:38:30 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index 5023f2f47..3116cdbd5 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -13,7 +13,7 @@ ucrec()ucrec [inline] ~classbase()classbase [inline] ~ucrec()ucrec [inline, virtual] -
Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by doxygen 1.3.3
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.

Definition at line 213 of file channels.h.

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

@@ -160,7 +160,7 @@ Referenced by userrec::userre


The documentation for this class was generated from the following file: -
Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index b4a7a3d6c..4a130b12c 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -64,7 +64,7 @@ userrec()userrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
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 userrec().

Definition at line 127 of file users.h.

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

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

Definition at line 110 of file users.h.

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

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

Definition at line 106 of file users.h.

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

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


The documentation for this class was generated from the following files: -
Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index 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 bool is_uline(const char* server); 00118 -00119 #endif -

Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +00121 long duration(const char* str); +00122 +00123 #endif +

Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index 20821c0dc..b3159d464 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -172,8 +172,44 @@ bool is_uline (const char *server)  Functions for u:lined servers.

+long duration (const char *str) + + Other useful functions.



Function Documentation

+

+ + + + +
+ + + + + + + + + + +
long duration const char *  str  ) 
+
+ + + + + +
+   + + +

+Other useful functions. +

+ +

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

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


Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 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 #endif 00302 -

Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +

Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index e547c3018..36d2484b2 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -191,7 +191,7 @@ Definition at line 39 Definition at line 36 of file connection.h. -
Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index 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 #endif 00053 -

Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +

Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index 59a1acd44..634815250 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -17,7 +17,7 @@  A structure that defines a command. More...

-
Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/dns_8h-source.html b/docs/module-doc/dns_8h-source.html index f20248524..0d62a3379 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -66,10 +66,11 @@ 00083 bool HasResult(); 00087 std::string GetResult(); 00091 int GetFD(); -00092 }; -00093 -00094 #endif -

Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +00092 void SetNS(std::string dnsserver); +00093 }; +00094 +00095 #endif +

Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/dns_8h.html b/docs/module-doc/dns_8h.html index 871e33205..e8de7e681 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -20,7 +20,7 @@ struct  dns_ip4list -
Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by doxygen 1.3.3
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 @@ users.h [code] xline.h [code] -
Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +
Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by doxygen 1.3.3
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:

- a -

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

- v -

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

    - ~ -

    • ~chanrec() @@ -346,7 +361,7 @@ Here is a list of all class members with links to the classes they belong to:

      serverrec
    • ~ucrec() : ucrec
    • ~userrec() : userrec
    -
    Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index b77333087..107e6cff6 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -14,10 +14,15 @@

    - a -

    - b -

    - c -

    - d -

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

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

    - e -

    @@ -229,9 +231,9 @@ Here is a list of all file members with links to the files they belong to:

    modules.cpp
  • ModeMakeList() : modules.cpp
  • module_names : modules.cpp, channels.cpp
  • modules -: modules.cpp, channels.cpp
  • MOTD -: modules.cpp
  • motd -: modules.cpp, channels.cpp
  • MT_CHANNEL +: modules.cpp, channels.cpp
  • motd +: modules.cpp, channels.cpp
  • MOTD +: modules.cpp
  • MT_CHANNEL : modules.h
  • MT_CLIENT : modules.h
  • MT_SERVER : modules.h @@ -270,7 +272,7 @@ Here is a list of all file members with links to the files they belong to:

    safedelete() : message.h
  • send_network_quit() : message.h
  • server_mode() -: modules.h, mode.h
  • ServerDesc +: modules.h, mode.h
  • ServerDesc : modules.cpp, channels.cpp
  • ServerName : modules.cpp, channels.cpp
  • SPARSE : modules.h
  • startup_time @@ -290,7 +292,7 @@ Here is a list of all file members with links to the files they belong to:

    users.h
  • STATUS_OP : users.h
  • STATUS_VOICE : users.h
  • string_list -: modules.h
  • sync_xlines() +: modules.h
  • sync_xlines() : xline.h

    - t -

    -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index 10e000af8..51a5f2540 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -31,10 +31,10 @@
  • CC_ALLOW : users.h
  • CC_DENY : users.h
  • CONF_FILE_NOT_FOUND -: modules.h
  • CONF_NOT_A_NUMBER -: modules.h
  • CONF_NOT_UNSIGNED -: modules.h
  • CONF_VALUE_NOT_FOUND -: modules.h +: modules.h
  • CONF_NOT_A_NUMBER +: modules.h
  • CONF_NOT_UNSIGNED +: modules.h
  • CONF_VALUE_NOT_FOUND +: modules.h

    - d -

    - f -

    - l - @@ -91,7 +92,7 @@ : modules.h
  • VF_STATIC : modules.h
  • VF_VENDOR : modules.h -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:31 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_func.html b/docs/module-doc/globals_func.html index e718cf0bd..3112091d9 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -37,7 +37,7 @@ : message.h
  • cmode() : message.h
  • common_channels() : message.h
  • createcommand() -: modules.h
  • cstatus() +: modules.h
  • cstatus() : message.h

    - d -

    +: modules.cpp
  • duration() +: commands.h

    - e -

    -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index 3016dde3a..7609a4875 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -13,20 +13,20 @@ : modules.cpp
  • BanList : channels.h
  • chan_hash : modules.cpp
  • chanuserlist -: modules.h
  • ClassVector +: modules.h
  • ClassVector : users.h
  • command_table : modules.cpp
  • ExemptList : channels.h
  • ExtModeList : modules.cpp
  • ExtModeListIter : modules.cpp
  • file_cache -: modules.h
  • InvitedList +: modules.h
  • InvitedList : users.h
  • InviteList : channels.h
  • ircd_module -: modules.h
  • string_list -: modules.h
  • user_hash +: modules.h
  • string_list +: modules.h
  • user_hash : modules.cpp
  • VoidPointer : base.h -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:31 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index 25851c7d6..27bb6b227 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -64,9 +64,9 @@ : modules.cpp, channels.cpp
  • MODCOUNT : modules.cpp, channels.cpp
  • module_names : modules.cpp, channels.cpp
  • modules -: modules.cpp, channels.cpp
  • MOTD -: modules.cpp
  • motd -: modules.cpp, channels.cpp +: modules.cpp, channels.cpp
  • motd +: modules.cpp, channels.cpp
  • MOTD +: modules.cpp

    - n -

    -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:31 2005 for InspIRCd by doxygen 1.3.3
    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 @@
  • nspace::hash< string >
  • StrHashComp -
    Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:21 2005 for InspIRCd by doxygen 1.3.3
    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 @@

    InspIRCd Documentation

    -


    Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:14 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index ac7d5140f..9ae75ebfc 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -57,7 +57,7 @@ 00050 void send_network_quit(const char* nick, const char* reason); 00051 00052 #endif -

  • Generated on Sat Apr 9 14:38:24 2005 for InspIRCd by +

    Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index 6b449ac5d..9878c2b09 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -735,7 +735,7 @@ Referenced by Server::QuitU -
    Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 599f647b3..a289e6744 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -47,13 +47,13 @@ 00040 bool allowed_umode(char umode, char* sourcemodes,bool adding); 00041 bool process_module_umode(char umode, userrec* source, void* dest, bool adding); 00042 void handle_mode(char **parameters, int pcnt, userrec *user); -00043 void server_mode(char **parameters, int pcnt, userrec *user); +00043 void server_mode(char **parameters, int pcnt, userrec *user); 00044 void merge_mode(char **parameters, int pcnt); 00045 void merge_mode2(char **parameters, int pcnt, userrec* user); 00046 00047 00048 #endif -

    Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +

    Generated on Wed Apr 13 12:32:15 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index dcef62b04..4335f8288 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ -
    Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:19 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index fd9f62d41..29bf17884 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -187,8 +187,8 @@ 00180 extern chan_hash chanlist; 00181 extern user_hash whowas; 00182 extern command_table cmdlist; -00183 extern file_cache MOTD; -00184 extern file_cache RULES; +00183 extern file_cache MOTD; +00184 extern file_cache RULES; 00185 extern address_cache IP; 00186 00187 @@ -332,12 +332,12 @@ 00325 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; 00326 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; 00327 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; -00328 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } -00329 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } +00328 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } +00329 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } 00330 void Module::On005Numeric(std::string &output) { }; 00331 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; 00332 void Module::OnLoadModule(Module* mod,std::string name) { }; -00333 +00333 void Module::OnBackgroundTimer(time_t curtime) { }; 00334 00335 // server is a wrapper class that provides methods to all of the C-style 00336 // exports in the core @@ -379,9 +379,9 @@ 00372 return del_channel(user,cname.c_str(),reason.c_str(),false); 00373 } 00374 -00375 chanuserlist Server::GetUsers(chanrec* chan) +00375 chanuserlist Server::GetUsers(chanrec* chan) 00376 { -00377 chanuserlist userl; +00377 chanuserlist userl; 00378 userl.clear(); 00379 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) 00380 { @@ -426,12 +426,12 @@ 00419 00420 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) 00421 { -00422 createcommand(cmd,f,flags,minparams,source); +00422 createcommand(cmd,f,flags,minparams,source); 00423 } 00424 00425 void Server::SendMode(char **parameters, int pcnt, userrec *user) 00426 { -00427 server_mode(parameters,pcnt,user); +00427 server_mode(parameters,pcnt,user); 00428 } 00429 00430 void Server::Send(int Socket, std::string s) @@ -583,207 +583,302 @@ 00576 } 00577 00578 -00579 ConfigReader::ConfigReader() +00579 bool Server::UserToPseudo(userrec* user,std::string message) 00580 { -00581 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00582 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00583 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00584 if (!this->readerror) -00585 this->error = CONF_FILE_NOT_FOUND; +00581 unsigned int old_fd = user->fd; +00582 user->fd = FD_MAGIC_NUMBER; +00583 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); +00584 close(old_fd); +00585 shutdown (old_fd,2); 00586 } 00587 -00588 -00589 ConfigReader::~ConfigReader() -00590 { -00591 if (this->cache) -00592 delete this->cache; -00593 if (this->errorlog) -00594 delete this->errorlog; -00595 } -00596 -00597 -00598 ConfigReader::ConfigReader(std::string filename) -00599 { -00600 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00601 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00602 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -00603 if (!this->readerror) -00604 this->error = CONF_FILE_NOT_FOUND; -00605 }; -00606 -00607 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00608 { -00609 char val[MAXBUF]; -00610 char t[MAXBUF]; -00611 char n[MAXBUF]; -00612 strlcpy(t,tag.c_str(),MAXBUF); -00613 strlcpy(n,name.c_str(),MAXBUF); -00614 int res = ReadConf(cache,t,n,index,val); -00615 if (!res) -00616 { -00617 this->error = CONF_VALUE_NOT_FOUND; -00618 return ""; -00619 } -00620 return std::string(val); +00588 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) +00589 { +00590 zombie->fd = alive->fd; +00591 alive->fd = FD_MAGIC_NUMBER; +00592 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); +00593 kill_link(alive,message.c_str()); +00594 for (int i = 0; i != MAXCHANS; i++) +00595 { +00596 if (zombie->chans[i].channel != NULL) +00597 { +00598 if (zombie->chans[i].channel->name) +00599 { +00600 chanrec* Ptr = zombie->chans[i].channel; +00601 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); +00602 if (Ptr->topicset) +00603 { +00604 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); +00605 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +00606 } +00607 userlist(zombie,Ptr); +00608 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); +00609 WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr)); +00610 WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created); +00611 +00612 } +00613 } +00614 } +00615 +00616 } +00617 +00618 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) +00619 { +00620 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); 00621 } 00622 -00623 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00623 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) 00624 { -00625 char val[MAXBUF]; -00626 char t[MAXBUF]; -00627 char n[MAXBUF]; -00628 strlcpy(t,tag.c_str(),MAXBUF); -00629 strlcpy(n,name.c_str(),MAXBUF); -00630 int res = ReadConf(cache,t,n,index,val); -00631 if (!res) -00632 { -00633 this->error = CONF_VALUE_NOT_FOUND; -00634 return false; -00635 } -00636 std::string s = val; -00637 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); -00638 } -00639 -00640 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) -00641 { -00642 char val[MAXBUF]; -00643 char t[MAXBUF]; -00644 char n[MAXBUF]; -00645 strlcpy(t,tag.c_str(),MAXBUF); -00646 strlcpy(n,name.c_str(),MAXBUF); -00647 int res = ReadConf(cache,t,n,index,val); -00648 if (!res) -00649 { -00650 this->error = CONF_VALUE_NOT_FOUND; -00651 return 0; -00652 } -00653 for (int i = 0; i < strlen(val); i++) -00654 { -00655 if (!isdigit(val[i])) -00656 { -00657 this->error = CONF_NOT_A_NUMBER; -00658 return 0; -00659 } -00660 } -00661 if ((needs_unsigned) && (atoi(val)<0)) -00662 { -00663 this->error = CONF_NOT_UNSIGNED; -00664 return 0; -00665 } -00666 return atoi(val); -00667 } -00668 -00669 long ConfigReader::GetError() -00670 { -00671 long olderr = this->error; -00672 this->error = 0; -00673 return olderr; -00674 } -00675 -00676 void ConfigReader::DumpErrors(bool bail, userrec* user) -00677 { -00678 if (bail) -00679 { -00680 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); -00681 exit(0); -00682 } -00683 else -00684 { -00685 char dataline[1024]; -00686 if (user) -00687 { -00688 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); -00689 while (!errorlog->eof()) -00690 { -00691 errorlog->getline(dataline,1024); -00692 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); -00693 } -00694 } -00695 else -00696 { -00697 WriteOpers("There were errors in the configuration file:",user->nick); -00698 while (!errorlog->eof()) -00699 { -00700 errorlog->getline(dataline,1024); -00701 WriteOpers(dataline); -00702 } -00703 } -00704 return; -00705 } -00706 } -00707 -00708 -00709 int ConfigReader::Enumerate(std::string tag) -00710 { -00711 return EnumConf(cache,tag.c_str()); -00712 } -00713 -00714 int ConfigReader::EnumerateValues(std::string tag, int index) -00715 { -00716 return EnumValues(cache, tag.c_str(), index); -00717 } -00718 -00719 bool ConfigReader::Verify() -00720 { -00721 return this->readerror; -00722 } -00723 -00724 -00725 FileReader::FileReader(std::string filename) -00726 { -00727 file_cache c; -00728 readfile(c,filename.c_str()); -00729 this->fc = c; -00730 } -00731 -00732 FileReader::FileReader() -00733 { -00734 } -00735 -00736 void FileReader::LoadFile(std::string filename) -00737 { -00738 file_cache c; -00739 readfile(c,filename.c_str()); -00740 this->fc = c; -00741 } -00742 -00743 -00744 FileReader::~FileReader() -00745 { -00746 } -00747 -00748 bool FileReader::Exists() -00749 { -00750 if (fc.size() == 0) -00751 { -00752 return(false); -00753 } -00754 else -00755 { -00756 return(true); -00757 } -00758 } -00759 -00760 std::string FileReader::GetLine(int x) -00761 { -00762 if ((x<0) || (x>fc.size())) -00763 return ""; -00764 return fc[x]; -00765 } -00766 -00767 int FileReader::FileSize() -00768 { -00769 return fc.size(); -00770 } -00771 -00772 -00773 std::vector<Module*> modules(255); -00774 std::vector<ircd_module*> factory(255); -00775 -00776 int MODCOUNT = -1; -00777 -00778 -

    Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +00625 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +00626 } +00627 +00628 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) +00629 { +00630 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +00631 } +00632 +00633 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) +00634 { +00635 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00636 } +00637 +00638 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) +00639 { +00640 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00641 } +00642 +00643 bool Server::DelGLine(std::string hostmask) +00644 { +00645 del_gline(hostmask.c_str()); +00646 } +00647 +00648 bool Server::DelQLine(std::string nickname) +00649 { +00650 del_qline(nickname.c_str()); +00651 } +00652 +00653 bool Server::DelZLine(std::string ipaddr) +00654 { +00655 del_zline(ipaddr.c_str()); +00656 } +00657 +00658 bool Server::DelKLine(std::string hostmask) +00659 { +00660 del_kline(hostmask.c_str()); +00661 } +00662 +00663 bool Server::DelELine(std::string hostmask) +00664 { +00665 del_eline(hostmask.c_str()); +00666 } +00667 +00668 long Server::CalcDuration(std::string delta) +00669 { +00670 return duration(delta.c_str()); +00671 } +00672 +00673 +00674 ConfigReader::ConfigReader() +00675 { +00676 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00677 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00678 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00679 if (!this->readerror) +00680 this->error = CONF_FILE_NOT_FOUND; +00681 } +00682 +00683 +00684 ConfigReader::~ConfigReader() +00685 { +00686 if (this->cache) +00687 delete this->cache; +00688 if (this->errorlog) +00689 delete this->errorlog; +00690 } +00691 +00692 +00693 ConfigReader::ConfigReader(std::string filename) +00694 { +00695 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00696 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00697 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +00698 if (!this->readerror) +00699 this->error = CONF_FILE_NOT_FOUND; +00700 }; +00701 +00702 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00703 { +00704 char val[MAXBUF]; +00705 char t[MAXBUF]; +00706 char n[MAXBUF]; +00707 strlcpy(t,tag.c_str(),MAXBUF); +00708 strlcpy(n,name.c_str(),MAXBUF); +00709 int res = ReadConf(cache,t,n,index,val); +00710 if (!res) +00711 { +00712 this->error = CONF_VALUE_NOT_FOUND; +00713 return ""; +00714 } +00715 return std::string(val); +00716 } +00717 +00718 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00719 { +00720 char val[MAXBUF]; +00721 char t[MAXBUF]; +00722 char n[MAXBUF]; +00723 strlcpy(t,tag.c_str(),MAXBUF); +00724 strlcpy(n,name.c_str(),MAXBUF); +00725 int res = ReadConf(cache,t,n,index,val); +00726 if (!res) +00727 { +00728 this->error = CONF_VALUE_NOT_FOUND; +00729 return false; +00730 } +00731 std::string s = val; +00732 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); +00733 } +00734 +00735 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00736 { +00737 char val[MAXBUF]; +00738 char t[MAXBUF]; +00739 char n[MAXBUF]; +00740 strlcpy(t,tag.c_str(),MAXBUF); +00741 strlcpy(n,name.c_str(),MAXBUF); +00742 int res = ReadConf(cache,t,n,index,val); +00743 if (!res) +00744 { +00745 this->error = CONF_VALUE_NOT_FOUND; +00746 return 0; +00747 } +00748 for (int i = 0; i < strlen(val); i++) +00749 { +00750 if (!isdigit(val[i])) +00751 { +00752 this->error = CONF_NOT_A_NUMBER; +00753 return 0; +00754 } +00755 } +00756 if ((needs_unsigned) && (atoi(val)<0)) +00757 { +00758 this->error = CONF_NOT_UNSIGNED; +00759 return 0; +00760 } +00761 return atoi(val); +00762 } +00763 +00764 long ConfigReader::GetError() +00765 { +00766 long olderr = this->error; +00767 this->error = 0; +00768 return olderr; +00769 } +00770 +00771 void ConfigReader::DumpErrors(bool bail, userrec* user) +00772 { +00773 if (bail) +00774 { +00775 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); +00776 exit(0); +00777 } +00778 else +00779 { +00780 char dataline[1024]; +00781 if (user) +00782 { +00783 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); +00784 while (!errorlog->eof()) +00785 { +00786 errorlog->getline(dataline,1024); +00787 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); +00788 } +00789 } +00790 else +00791 { +00792 WriteOpers("There were errors in the configuration file:",user->nick); +00793 while (!errorlog->eof()) +00794 { +00795 errorlog->getline(dataline,1024); +00796 WriteOpers(dataline); +00797 } +00798 } +00799 return; +00800 } +00801 } +00802 +00803 +00804 int ConfigReader::Enumerate(std::string tag) +00805 { +00806 return EnumConf(cache,tag.c_str()); +00807 } +00808 +00809 int ConfigReader::EnumerateValues(std::string tag, int index) +00810 { +00811 return EnumValues(cache, tag.c_str(), index); +00812 } +00813 +00814 bool ConfigReader::Verify() +00815 { +00816 return this->readerror; +00817 } +00818 +00819 +00820 FileReader::FileReader(std::string filename) +00821 { +00822 file_cache c; +00823 readfile(c,filename.c_str()); +00824 this->fc = c; +00825 } +00826 +00827 FileReader::FileReader() +00828 { +00829 } +00830 +00831 void FileReader::LoadFile(std::string filename) +00832 { +00833 file_cache c; +00834 readfile(c,filename.c_str()); +00835 this->fc = c; +00836 } +00837 +00838 +00839 FileReader::~FileReader() +00840 { +00841 } +00842 +00843 bool FileReader::Exists() +00844 { +00845 if (fc.size() == 0) +00846 { +00847 return(false); +00848 } +00849 else +00850 { +00851 return(true); +00852 } +00853 } +00854 +00855 std::string FileReader::GetLine(int x) +00856 { +00857 if ((x<0) || (x>fc.size())) +00858 return ""; +00859 return fc[x]; +00860 } +00861 +00862 int FileReader::FileSize() +00863 { +00864 return fc.size(); +00865 } +00866 +00867 +00868 std::vector<Module*> modules(255); +00869 std::vector<ircd_module*> factory(255); +00870 +00871 int MODCOUNT = -1; +00872 +00873 +

    Generated on Wed Apr 13 12:32:16 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index d1cc3fc2f..4846385fe 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -90,14 +90,14 @@ std::vector< Module * > modules (255) -std::vector< ircd_module * > factory (255) +std::vector< ircd_module * > factory (255)

    Variables

    int MODCOUNT = -1 std::vector< Module * > modules -std::vector< ircd_module * > factory +std::vector< ircd_module * > factory time_t TIME @@ -175,9 +175,9 @@ command_table cmdlist -file_cache MOTD +file_cache MOTD -file_cache RULES +file_cache RULES address_cache IP @@ -434,7 +434,7 @@ Referenced by Server::AddEx - + @@ -1180,7 +1180,7 @@ Referenced by DoAddExtended @@ -1387,7 +1387,7 @@ Definition at line 106

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

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

    @@ -1444,7 +1444,7 @@ Definition at line 65 o -
    file_cache MOTD + file_cache MOTD
    @@ -1660,7 +1660,7 @@ Definition at line 78 o -
    file_cache RULES + file_cache RULES
    @@ -1894,7 +1894,7 @@ Definition at line 87 o Definition at line 86 of file modules.cpp. -


    Generated on Sat Apr 9 14:38:26 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index 8c20d74a6..c76e38f02 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -69,10 +69,10 @@ 00062 #include <deque> 00063 #include <sstream> 00064 -00067 typedef std::deque<std::string> file_cache; -00068 typedef file_cache string_list; +00067 typedef std::deque<std::string> file_cache; +00068 typedef file_cache string_list; 00069 -00072 typedef std::deque<userrec*> chanuserlist; +00072 typedef std::deque<userrec*> chanuserlist; 00073 00074 00075 // This #define allows us to call a method in all @@ -99,208 +99,238 @@ 00096 00097 // ********************************************************************************************* 00098 -00099 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); -00100 extern void server_mode(char **parameters, int pcnt, userrec *user); -00101 -00102 // class Version holds the version information of a Module, returned -00103 // by Module::GetVersion (thanks RD) -00104 -00109 class Version : public classbase -00110 { -00111 public: -00112 const int Major, Minor, Revision, Build, Flags; -00113 Version(int major, int minor, int revision, int build, int flags); -00114 }; -00115 -00121 class Admin : public classbase -00122 { -00123 public: -00124 const std::string Name, Email, Nick; -00125 Admin(std::string name, std::string email, std::string nick); -00126 }; -00127 -00133 class Module : public classbase -00134 { -00135 public: -00136 -00140 Module(); -00141 -00145 virtual ~Module(); -00146 -00151 virtual Version GetVersion(); -00152 -00156 virtual void OnUserConnect(userrec* user); -00157 -00161 virtual void OnUserQuit(userrec* user); -00162 -00167 virtual void OnUserJoin(userrec* user, chanrec* channel); -00168 -00173 virtual void OnUserPart(userrec* user, chanrec* channel); -00174 -00180 virtual void OnPacketTransmit(std::string &data, std::string serv); -00181 -00188 virtual void OnPacketReceive(std::string &data, std::string serv); -00189 -00195 virtual void OnRehash(); -00196 -00205 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); -00206 -00216 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); -00217 -00231 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); -00232 -00233 -00238 virtual void OnOper(userrec* user); -00239 -00248 virtual void OnInfo(userrec* user); -00249 -00254 virtual void OnWhois(userrec* source, userrec* dest); -00255 -00261 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); -00262 -00271 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); -00272 -00284 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); -00285 -00293 virtual int OnUserPreNick(userrec* user, std::string newnick); -00294 -00302 virtual void OnUserPostNick(userrec* user, std::string oldnick); -00303 -00325 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); -00326 -00332 virtual string_list OnUserSync(userrec* user); -00333 -00339 virtual string_list OnChannelSync(chanrec* chan); -00340 -00344 virtual void On005Numeric(std::string &output); -00345 -00355 virtual int OnKill(userrec* source, userrec* dest, std::string reason); -00356 -00367 virtual void OnLoadModule(Module* mod,std::string name); -00368 }; -00369 +00099 #define FD_MAGIC_NUMBER -42 +00100 +00101 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +00102 extern void server_mode(char **parameters, int pcnt, userrec *user); +00103 +00104 // class Version holds the version information of a Module, returned +00105 // by Module::GetVersion (thanks RD) +00106 +00111 class Version : public classbase +00112 { +00113 public: +00114 const int Major, Minor, Revision, Build, Flags; +00115 Version(int major, int minor, int revision, int build, int flags); +00116 }; +00117 +00123 class Admin : public classbase +00124 { +00125 public: +00126 const std::string Name, Email, Nick; +00127 Admin(std::string name, std::string email, std::string nick); +00128 }; +00129 +00135 class Module : public classbase +00136 { +00137 public: +00138 +00142 Module(); +00143 +00147 virtual ~Module(); +00148 +00153 virtual Version GetVersion(); +00154 +00158 virtual void OnUserConnect(userrec* user); +00159 +00163 virtual void OnUserQuit(userrec* user); +00164 +00169 virtual void OnUserJoin(userrec* user, chanrec* channel); +00170 +00175 virtual void OnUserPart(userrec* user, chanrec* channel); +00176 +00182 virtual void OnPacketTransmit(std::string &data, std::string serv); +00183 +00190 virtual void OnPacketReceive(std::string &data, std::string serv); +00191 +00197 virtual void OnRehash(); +00198 +00207 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); +00208 +00218 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); +00219 +00233 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); +00234 +00235 +00240 virtual void OnOper(userrec* user); +00241 +00250 virtual void OnInfo(userrec* user); +00251 +00256 virtual void OnWhois(userrec* source, userrec* dest); +00257 +00263 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); +00264 +00273 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); +00274 +00286 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); +00287 +00295 virtual int OnUserPreNick(userrec* user, std::string newnick); +00296 +00304 virtual void OnUserPostNick(userrec* user, std::string oldnick); +00305 +00327 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); +00328 +00334 virtual string_list OnUserSync(userrec* user); +00335 +00341 virtual string_list OnChannelSync(chanrec* chan); +00342 +00346 virtual void On005Numeric(std::string &output); +00347 +00357 virtual int OnKill(userrec* source, userrec* dest, std::string reason); +00358 +00369 virtual void OnLoadModule(Module* mod,std::string name); 00370 -00376 class Server : public classbase -00377 { -00378 public: -00382 Server(); -00386 virtual ~Server(); -00387 -00391 virtual void SendOpers(std::string s); -00396 virtual void Log(int level, std::string s); -00401 virtual void Send(int Socket, std::string s); -00406 virtual void SendServ(int Socket, std::string s); -00411 virtual void SendFrom(int Socket, userrec* User, std::string s); -00426 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -00433 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -00438 virtual bool CommonChannels(userrec* u1, userrec* u2); -00446 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -00451 virtual void SendWallops(userrec* User, std::string text); -00452 -00456 virtual bool IsNick(std::string nick); -00460 virtual int CountUsers(chanrec* c); -00464 virtual userrec* FindNick(std::string nick); -00468 virtual chanrec* FindChannel(std::string channel); -00473 virtual std::string ChanMode(userrec* User, chanrec* Chan); -00477 virtual bool IsOnChannel(userrec* User, chanrec* Chan); -00480 virtual std::string GetServerName(); -00483 virtual std::string GetNetworkName(); -00489 virtual Admin GetAdmin(); -00508 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); -00509 -00531 virtual bool AddExtendedListMode(char modechar); -00532 -00550 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); -00551 -00573 virtual void SendMode(char **parameters, int pcnt, userrec *user); -00574 -00587 virtual void SendToModeMask(std::string modes, int flags, std::string text); -00588 -00594 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); -00595 -00601 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); -00602 -00608 virtual void ChangeUserNick(userrec* user, std::string nickname); -00609 -00620 virtual void QuitUser(userrec* user, std::string reason); -00621 -00626 virtual bool MatchText(std::string sliteral, std::string spattern); -00627 -00639 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); -00640 -00646 virtual void ChangeHost(userrec* user, std::string host); -00647 -00653 virtual void ChangeGECOS(userrec* user, std::string gecos); -00654 -00663 virtual bool IsUlined(std::string server); -00664 -00668 virtual chanuserlist GetUsers(chanrec* chan); -00669 -00670 }; -00671 -00672 #define CONF_NOT_A_NUMBER 0x000010 -00673 #define CONF_NOT_UNSIGNED 0x000080 -00674 #define CONF_VALUE_NOT_FOUND 0x000100 -00675 #define CONF_FILE_NOT_FOUND 0x000200 -00676 -00683 class ConfigReader : public classbase -00684 { -00685 protected: -00691 std::stringstream *cache; -00692 std::stringstream *errorlog; -00695 bool readerror; -00696 long error; -00697 -00698 public: -00703 ConfigReader(); // default constructor reads ircd.conf -00707 ConfigReader(std::string filename); // read a module-specific config -00711 ~ConfigReader(); -00716 std::string ReadValue(std::string tag, std::string name, int index); -00722 bool ReadFlag(std::string tag, std::string name, int index); -00731 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); -00736 long GetError(); -00743 int Enumerate(std::string tag); -00748 bool Verify(); -00755 void DumpErrors(bool bail,userrec* user); -00756 -00762 int EnumerateValues(std::string tag, int index); -00763 }; -00764 -00765 +00376 virtual void OnBackgroundTimer(time_t curtime); +00377 }; +00378 +00379 +00385 class Server : public classbase +00386 { +00387 public: +00391 Server(); +00395 virtual ~Server(); +00396 +00400 virtual void SendOpers(std::string s); +00405 virtual void Log(int level, std::string s); +00410 virtual void Send(int Socket, std::string s); +00415 virtual void SendServ(int Socket, std::string s); +00420 virtual void SendFrom(int Socket, userrec* User, std::string s); +00435 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); +00442 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); +00447 virtual bool CommonChannels(userrec* u1, userrec* u2); +00455 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); +00460 virtual void SendWallops(userrec* User, std::string text); +00461 +00465 virtual bool IsNick(std::string nick); +00469 virtual int CountUsers(chanrec* c); +00473 virtual userrec* FindNick(std::string nick); +00477 virtual chanrec* FindChannel(std::string channel); +00482 virtual std::string ChanMode(userrec* User, chanrec* Chan); +00486 virtual bool IsOnChannel(userrec* User, chanrec* Chan); +00489 virtual std::string GetServerName(); +00492 virtual std::string GetNetworkName(); +00498 virtual Admin GetAdmin(); +00517 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); +00518 +00540 virtual bool AddExtendedListMode(char modechar); +00541 +00559 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +00560 +00582 virtual void SendMode(char **parameters, int pcnt, userrec *user); +00583 +00596 virtual void SendToModeMask(std::string modes, int flags, std::string text); +00597 +00603 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); +00604 +00610 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); +00611 +00617 virtual void ChangeUserNick(userrec* user, std::string nickname); +00618 +00629 virtual void QuitUser(userrec* user, std::string reason); +00630 +00635 virtual bool MatchText(std::string sliteral, std::string spattern); +00636 +00648 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); +00649 +00655 virtual void ChangeHost(userrec* user, std::string host); +00656 +00662 virtual void ChangeGECOS(userrec* user, std::string gecos); +00663 +00672 virtual bool IsUlined(std::string server); +00673 +00677 virtual chanuserlist GetUsers(chanrec* chan); +00678 +00685 virtual bool UserToPseudo(userrec* user,std::string message); +00686 +00693 virtual bool PseudoToUser(userrec* alive,userrec* zombie,std::string message); +00694 +00702 virtual void AddGLine(long duration, std::string source, std::string reason, std::string hostmask); +00703 +00711 virtual void AddQLine(long duration, std::string source, std::string reason, std::string nickname); +00712 +00720 virtual void AddZLine(long duration, std::string source, std::string reason, std::string ipaddr); +00721 +00729 virtual void AddKLine(long duration, std::string source, std::string reason, std::string hostmask); +00730 +00738 virtual void AddELine(long duration, std::string source, std::string reason, std::string hostmask); +00739 +00742 virtual bool DelGLine(std::string hostmask); +00743 +00746 virtual bool DelQLine(std::string nickname); +00747 +00750 virtual bool DelZLine(std::string ipaddr); +00751 +00754 virtual bool DelKLine(std::string hostmask); +00755 +00758 virtual bool DelELine(std::string hostmask); +00759 +00765 virtual long CalcDuration(std::string duration); 00766 -00772 class FileReader : public classbase -00773 { -00774 file_cache fc; -00775 public: -00780 FileReader(); -00781 -00787 FileReader(std::string filename); -00788 -00792 ~FileReader(); -00793 -00799 void LoadFile(std::string filename); -00800 -00804 bool Exists(); -00805 -00810 std::string GetLine(int x); -00811 -00817 int FileSize(); -00818 }; -00819 -00820 -00827 class ModuleFactory : public classbase -00828 { -00829 public: -00830 ModuleFactory() { } -00831 virtual ~ModuleFactory() { } -00836 virtual Module * CreateModule() = 0; -00837 }; -00838 -00839 -00840 typedef DLLFactory<ModuleFactory> ircd_module; -00841 -00842 #endif -

    Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +00767 }; +00768 +00769 #define CONF_NOT_A_NUMBER 0x000010 +00770 #define CONF_NOT_UNSIGNED 0x000080 +00771 #define CONF_VALUE_NOT_FOUND 0x000100 +00772 #define CONF_FILE_NOT_FOUND 0x000200 +00773 +00780 class ConfigReader : public classbase +00781 { +00782 protected: +00788 std::stringstream *cache; +00789 std::stringstream *errorlog; +00792 bool readerror; +00793 long error; +00794 +00795 public: +00800 ConfigReader(); // default constructor reads ircd.conf +00804 ConfigReader(std::string filename); // read a module-specific config +00808 ~ConfigReader(); +00813 std::string ReadValue(std::string tag, std::string name, int index); +00819 bool ReadFlag(std::string tag, std::string name, int index); +00828 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); +00833 long GetError(); +00840 int Enumerate(std::string tag); +00845 bool Verify(); +00852 void DumpErrors(bool bail,userrec* user); +00853 +00859 int EnumerateValues(std::string tag, int index); +00860 }; +00861 +00862 +00863 +00869 class FileReader : public classbase +00870 { +00871 file_cache fc; +00872 public: +00877 FileReader(); +00878 +00884 FileReader(std::string filename); +00885 +00889 ~FileReader(); +00890 +00896 void LoadFile(std::string filename); +00897 +00901 bool Exists(); +00902 +00907 std::string GetLine(int x); +00908 +00914 int FileSize(); +00915 }; +00916 +00917 +00924 class ModuleFactory : public classbase +00925 { +00926 public: +00927 ModuleFactory() { } +00928 virtual ~ModuleFactory() { } +00933 virtual Module * CreateModule() = 0; +00934 }; +00935 +00936 +00937 typedef DLLFactory<ModuleFactory> ircd_module; +00938 +00939 #endif +

    Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 00ca6ca92..eba1650c4 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -90,29 +90,31 @@ #define FOREACH_RESULT(x) -#define CONF_NOT_A_NUMBER   0x000010 +#define FD_MAGIC_NUMBER   -42 -#define CONF_NOT_UNSIGNED   0x000080 +#define CONF_NOT_A_NUMBER   0x000010 -#define CONF_VALUE_NOT_FOUND   0x000100 +#define CONF_NOT_UNSIGNED   0x000080 -#define CONF_FILE_NOT_FOUND   0x000200 +#define CONF_VALUE_NOT_FOUND   0x000100 + +#define CONF_FILE_NOT_FOUND   0x000200

    Typedefs

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


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


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


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


    +typedef DLLFactory< ModuleFactoryircd_module

    Functions

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

    Define Documentation

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

    +

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

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

    -Referenced by ConfigReader::ConfigReader().

    -

    +

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

    -Definition at line 672 of file modules.h. +Definition at line 769 of file modules.h.

    -Referenced by ConfigReader::ReadInteger().

    -

    +

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

    -Definition at line 673 of file modules.h. +Definition at line 770 of file modules.h.

    -Referenced by ConfigReader::ReadInteger().

    -

    +

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

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

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

    @@ -560,6 +562,32 @@ Referenced by Server::AddEx Definition at line 25 of file modules.h. +

    + + + + +
    + + +
    #define FD_MAGIC_NUMBER   -42 +
    +
    + + + + + +
    +   + + +

    + +

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

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

    @@ -871,13 +899,13 @@ Referenced by Module::GetVe


    Typedef Documentation

    -

    +

    @@ -899,13 +927,13 @@ Definition at line 72 of Referenced by Server::GetUsers().
    -
    typedef std::deque<userrec*> chanuserlist + typedef std::deque<userrec*> chanuserlist
    -

    +

    @@ -924,16 +952,16 @@ Low level definition of a FileReader Definition at line 67 of file modules.h.

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

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

    +

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

    -Definition at line 840 of file modules.h. +Definition at line 937 of file modules.h.

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

    +

    @@ -978,7 +1006,7 @@ Referenced by Module::OnCha
    -
    typedef file_cache string_list + typedef file_cache string_list


    Function Documentation

    -

    +

    @@ -1036,7 +1064,7 @@ Referenced by Module::OnCha Referenced by Server::AddCommand().
    -

    +

    @@ -1082,7 +1110,7 @@ Referenced by Server::AddCo Referenced by Server::SendMode().
    -


    Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by doxygen 1.3.3
    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 @@ struct  nspace.hash< string > -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
    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 @@ nspace std -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
    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 @@
    -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index 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(nickserv,"",NICKMAX); 00057 } 00058 -

    Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index 9332b14b5..73bad4a4f 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -44,7 +44,7 @@ Definition at line 24 of file servers.cpp. -
    Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index 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 #endif 00084 -
    Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index 75986cb97..c32acb1aa 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -72,7 +72,7 @@ Definition at line 25 of Definition at line 26 of file servers.h. -
    Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structInAddr__HashComp-members.html b/docs/module-doc/structInAddr__HashComp-members.html index 79fed11b0..0fc06479c 100644 --- a/docs/module-doc/structInAddr__HashComp-members.html +++ b/docs/module-doc/structInAddr__HashComp-members.html @@ -7,7 +7,7 @@

    InAddr_HashComp Member List

    This is the complete list of members for InAddr_HashComp, including all inherited members. -
    operator()(const in_addr &s1, const in_addr &s2) constInAddr_HashComp [inline]

    Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structInAddr__HashComp.html b/docs/module-doc/structInAddr__HashComp.html index 89d1fe7d4..637339c43 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -65,7 +65,7 @@ Definition at line 159
    The documentation for this struct was generated from the following file: -
    Generated on Sat Apr 9 14:38:29 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:25 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structStrHashComp-members.html b/docs/module-doc/structStrHashComp-members.html index b560d0dcc..cc0ad3e17 100644 --- a/docs/module-doc/structStrHashComp-members.html +++ b/docs/module-doc/structStrHashComp-members.html @@ -7,7 +7,7 @@

    StrHashComp Member List

    This is the complete list of members for StrHashComp, including all inherited members. -
    operator()(const string &s1, const string &s2) constStrHashComp [inline]

    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by doxygen 1.3.3
    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 146
    The documentation for this struct was generated from the following file: -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:29 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index 1918864e2..81809b1a1 100644 --- a/docs/module-doc/structdns__ip4list-members.html +++ b/docs/module-doc/structdns__ip4list-members.html @@ -8,7 +8,7 @@

    dns_ip4list Member List

    This is the complete list of members for dns_ip4list, including all inherited members. -
    ipdns_ip4list
    nextdns_ip4list

    Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structdns__ip4list.html b/docs/module-doc/structdns__ip4list.html index 15c64c2db..70e2a350b 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -66,7 +66,7 @@ Definition at line 28 of file
    The documentation for this struct was generated from the following file: -
    Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:24 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html index 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 @@

    nspace::hash< in_addr > Member List

    This is the complete list of members for nspace::hash< in_addr >, including all inherited members. -
    operator()(const struct in_addr &a) constnspace::hash< in_addr > [inline]

    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html index 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 119
    The documentation for this struct was generated from the following file: -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html index 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 @@

    nspace::hash< string > Member List

    This is the complete list of members for nspace::hash< string >, including all inherited members. -
    operator()(const string &s) constnspace::hash< string > [inline]

    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html index 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 132
    The documentation for this struct was generated from the following file: -
    Generated on Sat Apr 9 14:38:31 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:30 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 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 -
    Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index bed3b8057..e2fa657c5 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -70,7 +70,7 @@ Definition at line 24 of Definition at line 26 of file users.cpp. -
    Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 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 #endif -
    Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 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 79 of file users.h. -
    Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index 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 void read_xline_defaults(); 00122 -00123 void add_gline(long duration, char* source, char* reason, char* hostmask); -00124 void add_qline(long duration, char* source, char* reason, char* nickname); -00125 void add_zline(long duration, char* source, char* reason, char* ipaddr); -00126 void add_kline(long duration, char* source, char* reason, char* hostmask); -00127 void add_eline(long duration, char* source, char* reason, char* hostmask); +00123 void add_gline(long duration, const char* source, const char* reason, const char* hostmask); +00124 void add_qline(long duration, const char* source, const char* reason, const char* nickname); +00125 void add_zline(long duration, const char* source, const char* reason, const char* ipaddr); +00126 void add_kline(long duration, const char* source, const char* reason, const char* hostmask); +00127 void add_eline(long duration, const char* source, const char* reason, const char* hostmask); 00128 -00129 bool del_gline(char* hostmask); -00130 bool del_qline(char* nickname); -00131 bool del_zline(char* ipaddr); -00132 bool del_kline(char* hostmask); -00133 bool del_eline(char* hostmask); +00129 bool del_gline(const char* hostmask); +00130 bool del_qline(const char* nickname); +00131 bool del_zline(const char* ipaddr); +00132 bool del_kline(const char* hostmask); +00133 bool del_eline(const char* hostmask); 00134 00135 char* matches_qline(const char* nick); 00136 char* matches_gline(const char* host); @@ -117,13 +117,13 @@ 00151 void qline_set_creation_time(char* nick, time_t create_time); 00152 void zline_set_creation_time(char* ip, time_t create_time); 00153 -00154 bool zline_make_global(char* ipaddr); -00155 bool qline_make_global(char* nickname); +00154 bool zline_make_global(const char* ipaddr); +00155 bool qline_make_global(const char* nickname); 00156 00157 void sync_xlines(serverrec* serv, char* tcp_host); 00158 00159 #endif -
    Generated on Sat Apr 9 14:38:25 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:17 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index 328946ffe..3b8a8d401 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -38,25 +38,25 @@

    Functions

    void read_xline_defaults () -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) -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) -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) -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) -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) -bool del_gline (char *hostmask) +bool del_gline (const char *hostmask) -bool del_qline (char *nickname) +bool del_qline (const char *nickname) -bool del_zline (char *ipaddr) +bool del_zline (const char *ipaddr) -bool del_kline (char *hostmask) +bool del_kline (const char *hostmask) -bool del_eline (char *hostmask) +bool del_eline (const char *hostmask) char * matches_qline (const char *nick) @@ -88,9 +88,9 @@ void zline_set_creation_time (char *ip, time_t create_time) -bool zline_make_global (char *ipaddr) +bool zline_make_global (const char *ipaddr) -bool qline_make_global (char *nickname) +bool qline_make_global (const char *nickname) void sync_xlines (serverrec *serv, char *tcp_host) @@ -110,19 +110,19 @@ - char *  + const char *  source, - char *  + const char *  reason, - char *  + const char *  hostmask @@ -143,7 +143,9 @@

    - + +

    +Referenced by Server::AddELine().

    @@ -160,19 +162,19 @@ - char *  + const char *  source, - char *  + const char *  reason, - char *  + const char *  hostmask @@ -193,7 +195,9 @@

    - + +

    +Referenced by Server::AddGLine().

    @@ -210,19 +214,19 @@ - char *  + const char *  source, - char *  + const char *  reason, - char *  + const char *  hostmask @@ -243,7 +247,9 @@

    - + +

    +Referenced by Server::AddKLine().

    @@ -260,19 +266,19 @@ - char *  + const char *  source, - char *  + const char *  reason, - char *  + const char *  nickname @@ -293,7 +299,9 @@

    - + +

    +Referenced by Server::AddQLine().

    @@ -310,19 +318,19 @@ - char *  + const char *  source, - char *  + const char *  reason, - char *  + const char *  ipaddr @@ -343,7 +351,9 @@

    - + +

    +Referenced by Server::AddZLine().

    @@ -382,7 +392,7 @@ bool del_eline (  - char *  + const char *  hostmask  )  @@ -400,7 +410,9 @@

    - + +

    +Referenced by Server::DelELine().

    @@ -411,7 +423,7 @@ bool del_gline (  - char *  + const char *  hostmask  )  @@ -429,7 +441,9 @@

    - + +

    +Referenced by Server::DelGLine().

    @@ -440,7 +454,7 @@ bool del_kline (  - char *  + const char *  hostmask  )  @@ -458,7 +472,9 @@

    - + +

    +Referenced by Server::DelKLine().

    @@ -469,7 +485,7 @@ bool del_qline (  - char *  + const char *  nickname  )  @@ -487,7 +503,9 @@

    - + +

    +Referenced by Server::DelQLine().

    @@ -498,7 +516,7 @@ bool del_zline (  - char *  + const char *  ipaddr  )  @@ -516,7 +534,9 @@

    - + +

    +Referenced by Server::DelZLine().

    @@ -738,7 +758,7 @@ bool qline_make_global (  - char *  + const char *  nickname  )  @@ -1016,7 +1036,7 @@ bool zline_make_global (  - char *  + const char *  ipaddr  )  @@ -1075,7 +1095,7 @@ -


    Generated on Sat Apr 9 14:38:27 2005 for InspIRCd by +
    Generated on Wed Apr 13 12:32:20 2005 for InspIRCd by doxygen 1.3.3
    -- cgit v1.2.3