From 9c8b44176b47d2186c88743dc1f68023c26d780b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 4 Apr 2005 18:13:55 +0000 Subject: Added new documentation for ELine class and OnUserPostNick method git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@977 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/annotated.html | 3 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/channels_8cpp-source.html | 2 +- docs/module-doc/channels_8cpp.html | 4 +- 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 | 2 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 2 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 320 ++++---- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 2 +- docs/module-doc/classDNS-members.html | 2 +- docs/module-doc/classDNS.html | 2 +- docs/module-doc/classELine-members.html | 23 + docs/module-doc/classELine.html | 53 ++ docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 2 +- docs/module-doc/classExtMode-members.html | 2 +- docs/module-doc/classExtMode.html | 2 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 2 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 96 +-- docs/module-doc/classGLine-members.html | 2 +- docs/module-doc/classGLine.html | 2 +- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 2 +- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 2 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 2 +- docs/module-doc/classKLine-members.html | 2 +- docs/module-doc/classKLine.html | 2 +- docs/module-doc/classModeParameter-members.html | 2 +- docs/module-doc/classModeParameter.html | 2 +- docs/module-doc/classModule-members.html | 15 +- docs/module-doc/classModule.html | 112 ++- 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 | 8 +- docs/module-doc/classServer-members.html | 2 +- docs/module-doc/classServer.html | 414 +++++----- docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 2 +- docs/module-doc/classXLine-members.html | 2 +- docs/module-doc/classXLine.html | 4 +- docs/module-doc/classZLine-members.html | 2 +- docs/module-doc/classZLine.html | 8 +- docs/module-doc/classchanrec-members.html | 2 +- docs/module-doc/classchanrec.html | 2 +- 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 | 4 +- docs/module-doc/classes.html | 14 +- 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 | 2 +- docs/module-doc/classuserrec-members.html | 2 +- docs/module-doc/classuserrec.html | 4 +- docs/module-doc/commands_8h-source.html | 65 +- docs/module-doc/commands_8h.html | 160 ++-- 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 | 2 +- docs/module-doc/dns_8h.html | 2 +- docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 31 +- docs/module-doc/functions_func.html | 17 +- docs/module-doc/functions_vars.html | 4 +- docs/module-doc/globals.html | 119 +-- docs/module-doc/globals_defs.html | 2 +- docs/module-doc/globals_func.html | 107 +-- docs/module-doc/globals_type.html | 2 +- docs/module-doc/globals_vars.html | 14 +- docs/module-doc/hierarchy.html | 3 +- docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 2 +- docs/module-doc/message_8h.html | 16 +- docs/module-doc/mode_8h-source.html | 2 +- docs/module-doc/mode_8h.html | 2 +- docs/module-doc/modules_8cpp-source.html | 885 +++++++++++---------- docs/module-doc/modules_8cpp.html | 10 +- docs/module-doc/modules_8h-source.html | 274 +++---- docs/module-doc/modules_8h.html | 40 +- 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/tree.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 | 106 +-- docs/module-doc/xline_8h.html | 229 +++++- 123 files changed, 1851 insertions(+), 1505 deletions(-) create mode 100644 docs/module-doc/classELine-members.html create mode 100644 docs/module-doc/classELine.html (limited to 'docs/module-doc') diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index a39d7309c..4cd59f25a 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -16,6 +16,7 @@ connectionPlease note: classes serverrec and userrec both inherit from class connection DNSAllows fast nonblocking resolution of hostnames and ip addresses dns_ip4list + ELine ExemptItemA subclass of HostItem designed to hold channel exempts (+e) ExtensibleClass Extensible is the parent class of many classes such as userrec and chanrec ExtMode @@ -43,7 +44,7 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 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 6c3fe5c2d..48cb44eb5 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 2 19:27:00 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:47 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 4365b92e9..b59c1eabb 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 2 19:27:02 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:48 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 a70095cd1..cf89697dc 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -203,7 +203,7 @@ 00196 } 00197 return std::string(""); 00198 } -
Generated on Sat Apr 2 19:27:00 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:47 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 096f50487..f83023011 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -629,7 +629,7 @@ Definition at line 103

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

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


Generated on Sat Apr 2 19:27:02 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:48 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 7b0b67194..4f24f617b 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 2 19:27:00 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:47 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 d9e5c891d..42434f60e 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 2 19:27:02 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:48 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 050bcdf02..82d9ab2bb 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 2 19:27:03 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 00a7a7b63..6fa6ccd7d 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -157,7 +157,7 @@ Definition at line 117 of
The documentation for this class was generated from the following files: -
Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 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 62a28ba1c..6e5a2d10b 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 2 19:27:03 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 01d380e55..59ad4e0d0 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 2 19:27:03 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 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 0da3d27c9..fd9766ec8 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 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 7e782ad7b..f5785a066 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 669 of file modules.h.


Constructor & Destructor Documentation

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

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

-

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

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

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

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

-

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

This method destroys the ConfigReader class.

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

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

-

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

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

-

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

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

+

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

-References cache. +References cache.

-

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

-References cache. +References cache.

-

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

-References error. +References error.

-

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

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

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

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

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

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

-

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

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

+

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

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

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

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

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

-References readerror. +References readerror.

-

00717 {
-00718         return this->readerror;
-00719 }
+
00718 {
+00719         return this->readerror;
+00720 }
 
@@ -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 677 of file modules.h. +Definition at line 683 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 682 of file modules.h. +Definition at line 688 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 678 of file modules.h. +Definition at line 684 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 681 of file modules.h. +Definition at line 687 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 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 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 852043e6d..2bc578f18 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -15,7 +15,7 @@ registration_timeoutConnectClass typeConnectClass ~classbase()classbase [inline] -
Generated on Sat Apr 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index c2207f9a2..f0cb52875 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -221,7 +221,7 @@ Definition at line 50 of fi
The documentation for this class was generated from the following file: -
Generated on Sat Apr 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 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 ad08da30b..0cffc538a 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -33,7 +33,7 @@ ReverseLookup(std::string ip)DNS tDNS [private] ~DNS()DNS -
Generated on Sat Apr 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 659dea54b..13e92c334 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -885,7 +885,7 @@ Definition at line 40 of file
The documentation for this class was generated from the following file: -
Generated on Sat Apr 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html new file mode 100644 index 000000000..61d32e586 --- /dev/null +++ b/docs/module-doc/classELine-members.html @@ -0,0 +1,23 @@ + + +InspIRCd: Member List + + + + +

ELine Member List

This is the complete list of members for ELine, including all inherited members. + + + + + + + + + +
ageclassbase
classbase()classbase [inline]
durationXLine
hostmaskELine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]

Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by + +doxygen +1.3.3
+ + diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html new file mode 100644 index 000000000..115ba2bc8 --- /dev/null +++ b/docs/module-doc/classELine.html @@ -0,0 +1,53 @@ + + +InspIRCd: ELine class Reference + + + + +

ELine Class Reference

#include <xline.h> +

+Inherits XLine. +

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

Public Attributes

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

+


Member Data Documentation

+

+ + + + +
+ + +
char ELine::hostmask[MAXBUF] +
+
+ + + + + +
+   + + +

+Hostmask (ident) to match against May contain wildcards. +

+ +

+Definition at line 88 of file xline.h.

+


The documentation for this class was generated from the following file: +
Generated on Mon Apr 4 18:12:51 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 7ae97e5be..4724c1315 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index a7297951e..f1a540a50 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 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 b061a6e0d..de190c242 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index dd21cbaa5..b10a04490 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 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 feb904d76..32368b3f8 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index ba2427a5c..60c2132c3 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 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 cb7eeb7a9..7e2ada15e 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 460fb43cf..3055133a9 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -47,7 +47,7 @@ This class contains methods for read-only manipulation of a text file in memory.

-Definition at line 758 of file modules.h.


Constructor & Destructor Documentation

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

-

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

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

-

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

This deletes the memory allocated to the file.

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

-

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

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

-References fc. +References fc.

-

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

-References fc. +References fc.

-

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

-References fc. +References fc.

-

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

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

-

00734 {
-00735         file_cache c;
-00736         readfile(c,filename.c_str());
-00737         this->fc = c;
-00738 }
+
00735 {
+00736         file_cache c;
+00737         readfile(c,filename.c_str());
+00738         this->fc = c;
+00739 }
 
@@ -354,14 +354,14 @@ References fc, and

-Definition at line 760 of file modules.h. +Definition at line 766 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 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 00cbfee28..447761d46 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index 3243ce6c3..c7c328e9c 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 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 42b7c10f0..776db944b 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index 46c62d7b4..b5d48a2db 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 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 7fb108ea0..252e99679 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 588adcc8d..2ebef6183 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 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 9ef558288..6dbff63da 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 12e4205e7..c90c28b66 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 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 ee2c186f8..8ff604d55 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index fd5149c8b..89989fb0e 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 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 ab2164bbe..819e4cf6b 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index 7c658b5db..0cc47c796 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 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 622e716dd..2f3a78996 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -10,13 +10,13 @@ classbase()classbase [inline] GetVersion()Module [virtual] Module()Module - On005Numeric(std::string &output)Module [virtual] - OnAccessCheck(userrec *source, userrec *dest, chanrec *channel, int access_type)Module [virtual] - OnChannelSync(chanrec *chan)Module [virtual] + On005Numeric(std::string &output)Module [virtual] + OnAccessCheck(userrec *source, userrec *dest, chanrec *channel, int access_type)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] - OnKill(userrec *source, userrec *dest, std::string reason)Module [virtual] - OnLoadModule(Module *mod, std::string name)Module [virtual] + OnKill(userrec *source, userrec *dest, std::string reason)Module [virtual] + OnLoadModule(Module *mod, std::string name)Module [virtual] OnOper(userrec *user)Module [virtual] OnPacketReceive(char *p)Module [virtual] OnPacketTransmit(char *p)Module [virtual] @@ -25,17 +25,18 @@ OnUserConnect(userrec *user)Module [virtual] OnUserJoin(userrec *user, chanrec *channel)Module [virtual] OnUserPart(userrec *user, chanrec *channel)Module [virtual] + OnUserPostNick(userrec *user, std::string oldnick)Module [virtual] OnUserPreInvite(userrec *source, userrec *dest, chanrec *channel)Module [virtual] OnUserPreJoin(userrec *user, chanrec *chan, const char *cname)Module [virtual] OnUserPreMessage(userrec *user, void *dest, int target_type, std::string &text)Module [virtual] OnUserPreNick(userrec *user, std::string newnick)Module [virtual] OnUserPreNotice(userrec *user, void *dest, int target_type, std::string &text)Module [virtual] OnUserQuit(userrec *user)Module [virtual] - OnUserSync(userrec *user)Module [virtual] + OnUserSync(userrec *user)Module [virtual] OnWhois(userrec *source, userrec *dest)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Sat Apr 2 19:27:06 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index a10ce0a29..527a07eb2 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -75,24 +75,27 @@ Inherits classbase. virtual int OnUserPreNick (userrec *user, std::string newnick)  Called before any nickchange, local or remote.

-virtual int OnAccessCheck (userrec *source, userrec *dest, chanrec *channel, int access_type) +virtual void OnUserPostNick (userrec *user, std::string oldnick) - Called before an action which requires a channel privilage check.


-virtual string_list OnUserSync (userrec *user) + Called after any nickchange, local or remote.


+virtual int OnAccessCheck (userrec *source, userrec *dest, chanrec *channel, int access_type) - Called during a netburst to sync user data.


-virtual string_list OnChannelSync (chanrec *chan) + Called before an action which requires a channel privilage check.


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


-virtual void On005Numeric (std::string &output) + Called during a netburst to sync user data.


+virtual string_list OnChannelSync (chanrec *chan) - Called when a 005 numeric is about to be output.


-virtual int OnKill (userrec *source, userrec *dest, std::string reason) + Called during a netburst to sync channel data.


+virtual void On005Numeric (std::string &output) - Called when a client is disconnected by KILL.


-virtual void OnLoadModule (Module *mod, std::string name) + Called when a 005 numeric is about to be output.


+virtual int OnKill (userrec *source, userrec *dest, std::string reason) - Called whenever a module is loaded.


+ Called when a client is disconnected by KILL.


+virtual void OnLoadModule (Module *mod, std::string name) + + Called whenever a module is loaded.



Detailed Description

Base class for all InspIRCd modules This class is the base class for InspIRCd modules. @@ -208,7 +211,7 @@ Definition at line 316
-

+

@@ -238,13 +241,13 @@ Called when a 005 numeric is about to be output.

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

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

-

00327 { };
+
00328 { };
 
-

+

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

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

References ACR_DEFAULT.

-

00324 { return ACR_DEFAULT; };
+
00325 { return ACR_DEFAULT; };
 
-

+

@@ -345,11 +348,11 @@ Called during a netburst to sync channel data.

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

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

References string_list.

-

00326 { string_list empty; return empty; }
+
00327 { string_list empty; return empty; }
 
@@ -459,7 +462,7 @@ Definition at line 318

-

+

@@ -504,13 +507,13 @@ Called when a client is disconnected by KILL.

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

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

-

00328 { return 0; };
+
00329 { return 0; };
 
-

+

@@ -549,9 +552,9 @@ Called whenever a module is loaded.

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

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

-

00329 { };
+
00330 { };
 
@@ -875,6 +878,51 @@ Definition at line 309

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void Module::OnUserPostNick userrec user,
std::string  oldnick
[virtual]
+
+ + + + + +
+   + + +

+Called after any nickchange, local or remote. +

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

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

+

00324 { };
+

@@ -1073,7 +1121,7 @@ Definition at line 321

Called before any nickchange, local or remote.

-This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers. +This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.

Definition at line 323 of file modules.cpp.

@@ -1174,7 +1222,7 @@ Definition at line 307

-

+

@@ -1204,11 +1252,11 @@ Called during a netburst to sync user data.

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

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

References string_list.

-

00325 { string_list empty; return empty; }
+
00326 { string_list empty; return empty; }
 
@@ -1259,7 +1307,7 @@ Definition at line 319


The documentation for this class was generated from the following files: -
Generated on Sat Apr 2 19:27:06 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:53 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 f7f87794e..7f64a72c2 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 2 19:27:06 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 4d7ca63ff..2146d55b5 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 813 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 819 of file modules.h.

Constructor & Destructor Documentation

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

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

-

00816 { }
+
00822 { }
 
@@ -91,9 +91,9 @@ Definition at line 816 of

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

-

00817 { }
+
00823 { }
 
@@ -130,7 +130,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Sat Apr 2 19:27:06 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:53 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 53b58a6d9..65fabcd6d 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 2 19:27:06 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index 5d69e90a6..dfe01a725 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -27,7 +27,7 @@ QLine class.

-Definition at line 99 of file xline.h.


Member Data Documentation

+Definition at line 108 of file xline.h.

Member Data Documentation

@@ -51,7 +51,7 @@ Set if this is a global Z:line (e.g.

it came from another server)

-Definition at line 109 of file xline.h. +Definition at line 118 of file xline.h.

@@ -77,12 +77,12 @@ Nickname to match against.

May contain wildcards.

-Definition at line 105 of file xline.h. +Definition at line 114 of file xline.h.


The documentation for this class was generated from the following file: -
Generated on Sat Apr 2 19:27:06 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:53 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 1ff9237da..75226da12 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -45,7 +45,7 @@ Server()Server ~classbase()classbase [inline] ~Server()Server [virtual] -
Generated on Sat Apr 2 19:27:07 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index f99f9bf56..23971e233 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -131,7 +131,7 @@ All modules should instantiate at least one copy of this class, and use its memb

-Definition at line 365 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 371 of file modules.h.

Constructor & Destructor Documentation

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

Creates a Server object.

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

-

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

Destroys a Server object.

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

-

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

When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'.

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

References createcommand().

-

00418 {
-00419         createcommand(cmd,f,flags,minparams);
-00420 }
+
00419 {
+00420         createcommand(cmd,f,flags,minparams);
+00421 }
 
@@ -303,16 +303,16 @@ This call is used to implement modes like +q and +a. The characteristics of thes (4) The mode and its parameter are NOT stored in the channels modes structure

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

-Definition at line 562 of file modules.cpp. +Definition at line 563 of file modules.cpp.

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

-

00563 {
-00564         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
-00565         if (res)
-00566                 ModeMakeList(modechar);
-00567         return res;
-00568 }
+
00564 {
+00565         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
+00566         if (res)
+00567                 ModeMakeList(modechar);
+00568         return res;
+00569 }
 
@@ -373,28 +373,28 @@ Adds an extended mode letter which is parsed by a module.

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

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

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

-

00543 {
-00544         if (type == MT_SERVER)
-00545         {
-00546                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
-00547                 return false;
-00548         }
-00549         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
-00550         {
-00551                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
-00552                 return false;
-00553         }
-00554         if ((params_when_on>1) || (params_when_off>1))
-00555         {
-00556                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
-00557                 return false;
-00558         }
-00559         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
-00560 }
+
00544 {
+00545         if (type == MT_SERVER)
+00546         {
+00547                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
+00548                 return false;
+00549         }
+00550         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
+00551         {
+00552                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
+00553                 return false;
+00554         }
+00555         if ((params_when_on>1) || (params_when_off>1))
+00556         {
+00557                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
+00558                 return false;
+00559         }
+00560         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
+00561 }
 
@@ -450,11 +450,11 @@ Calls the handler for a command, either implemented by the core or by another mo You can use this function to trigger other commands in the ircd, such as PRIVMSG, JOIN, KICK etc, or even as a method of callback. By defining command names that are untypeable for users on irc (e.g. those which contain a or
) you may use them as callback identifiers. The first parameter to this method is the name of the command handler you wish to call, e.g. PRIVMSG. This will be a command handler previously registered by the core or wih AddCommand(). The second parameter is an array of parameters, and the third parameter is a count of parameters in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the functiom will silently ignore it. The final parameter is the user executing the command handler, used for privilage checks, etc.

-Definition at line 407 of file modules.cpp. +Definition at line 408 of file modules.cpp.

-

00408 {
-00409         call_handler(commandname.c_str(),parameters,pcnt,user);
-00410 }
+
00409 {
+00410         call_handler(commandname.c_str(),parameters,pcnt,user);
+00411 }
 
@@ -497,13 +497,13 @@ Change GECOS (fullname) of a user.

You should always call this method to change a user's GECOS rather than writing directly to the fullname member of userrec, as any change applied via this method will be propogated to any linked servers.

-Definition at line 495 of file modules.cpp. +Definition at line 496 of file modules.cpp.

References ChangeName().

-

00496 {
-00497         ChangeName(user,gecos.c_str());
-00498 }
+
00497 {
+00498         ChangeName(user,gecos.c_str());
+00499 }
 
@@ -546,13 +546,13 @@ Change displayed hostname of a user.

You should always call this method to change a user's host rather than writing directly to the dhost member of userrec, as any change applied via this method will be propogated to any linked servers.

-Definition at line 490 of file modules.cpp. +Definition at line 491 of file modules.cpp.

References ChangeDisplayedHost().

-

00491 {
-00492         ChangeDisplayedHost(user,host.c_str());
-00493 }
+
00492 {
+00493         ChangeDisplayedHost(user,host.c_str());
+00494 }
 
@@ -595,11 +595,11 @@ Forces a user nickchange.

This command works similarly to SVSNICK, and can be used to implement Q-lines etc. If you specify an invalid nickname, the nick change will be dropped and the target user will receive the error numeric for it.

-Definition at line 391 of file modules.cpp. +Definition at line 392 of file modules.cpp.

-

00392 {
-00393         force_nickchange(user,nickname.c_str());
-00394 }
+
00393 {
+00394         force_nickchange(user,nickname.c_str());
+00395 }
 
@@ -642,13 +642,13 @@ Attempts to look up a user's privilages on a channel.

This function will return a string containing either @, , +, or an empty string, representing the user's privilages upon the channel you specify.

-Definition at line 515 of file modules.cpp. +Definition at line 516 of file modules.cpp.

References cmode().

-

00516 {
-00517         return cmode(User,Chan);
-00518 }
+
00517 {
+00518         return cmode(User,Chan);
+00519 }
 
@@ -691,13 +691,13 @@ Returns true if two users share a common channel.

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

-Definition at line 468 of file modules.cpp. +Definition at line 469 of file modules.cpp.

References common_channels().

-

00469 {
-00470         return (common_channels(u1,u2) != 0);
-00471 }
+
00470 {
+00471         return (common_channels(u1,u2) != 0);
+00472 }
 
@@ -731,11 +731,11 @@ Returns a count of the number of users on a channel.

This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel.

-Definition at line 570 of file modules.cpp. +Definition at line 571 of file modules.cpp.

-

00571 {
-00572         return usercount(c);
-00573 }
+
00572 {
+00573         return usercount(c);
+00574 }
 
@@ -769,11 +769,11 @@ Attempts to look up a channel and return a pointer to it.

This function will return NULL if the channel does not exist.

-Definition at line 510 of file modules.cpp. +Definition at line 511 of file modules.cpp.

-

00511 {
-00512         return FindChan(channel.c_str());
-00513 }
+
00512 {
+00513         return FindChan(channel.c_str());
+00514 }
 
@@ -807,11 +807,11 @@ Attempts to look up a nick and return a pointer to it.

This function will return NULL if the nick does not exist.

-Definition at line 505 of file modules.cpp. +Definition at line 506 of file modules.cpp.

-

00506 {
-00507         return Find(nick);
-00508 }
+
00507 {
+00508         return Find(nick);
+00509 }
 
@@ -844,11 +844,11 @@ Returns the information of the server as returned by the /ADMIN command.

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

-Definition at line 535 of file modules.cpp. +Definition at line 536 of file modules.cpp.

-

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

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

-

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

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

-

00526 {
-00527         return getservername();
-00528 }
+
00527 {
+00528         return getservername();
+00529 }
 
@@ -956,28 +956,28 @@ Fetches the userlist of a channel.

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

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

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

-

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

Nicks for unregistered connections will return false.

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

References isnick().

-

00501 {
-00502         return (isnick(nick.c_str()) != 0);
-00503 }
+
00502 {
+00503         return (isnick(nick.c_str()) != 0);
+00504 }
 
@@ -1060,13 +1060,13 @@ Checks if a user is on a channel.

This function will return true or false to indicate if user 'User' is on channel 'Chan'.

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

References has_channel().

-

00521 {
-00522         return has_channel(User,Chan);
-00523 }
+
00522 {
+00523         return has_channel(User,Chan);
+00524 }
 
@@ -1100,13 +1100,13 @@ Returns true if the servername you give is ulined.

ULined servers have extra privilages. They are allowed to change nicknames on remote servers, change modes of clients which are on remote servers and set modes of channels where there are no channel operators for that channel on the ulined server, amongst other things. Ulined server data is also broadcast across the mesh at all times as opposed to selectively messaged in the case of normal servers, as many ulined server types (such as services) do not support meshed links and must operate in this manner.

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

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

-

00403 {
-00404         return is_uline(server.c_str());
-00405 }
+
00404 {
+00405         return is_uline(server.c_str());
+00406 }
 
@@ -1155,11 +1155,11 @@ Forces a user to join a channel.

This is similar to svsjoin and can be used to implement redirection, etc. On success, the return value is a valid pointer to a chanrec* of the channel the user was joined to. On failure, the result is NULL.

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

-

00363 {
-00364         return add_channel(user,cname.c_str(),key.c_str(),true);
-00365 }
+
00364 {
+00365         return add_channel(user,cname.c_str(),key.c_str(),true);
+00366 }
 
@@ -1202,11 +1202,11 @@ Writes a log string.

This method writes a line of text to the log. If the level given is lower than the level given in the configuration, this command has no effect.

-Definition at line 412 of file modules.cpp. +Definition at line 413 of file modules.cpp.

-

00413 {
-00414         log(level,"%s",s.c_str());
-00415 }
+
00414 {
+00415         log(level,"%s",s.c_str());
+00416 }
 
@@ -1249,14 +1249,14 @@ Matches text against a glob pattern.

Uses the ircd's internal matching function to match string against a globbing pattern, e.g. *!*@*.com Returns true if the literal successfully matches the pattern, false if otherwise.

-Definition at line 349 of file modules.cpp. +Definition at line 350 of file modules.cpp.

-

00350 {
-00351         char literal[MAXBUF],pattern[MAXBUF];
-00352         strlcpy(literal,sliteral.c_str(),MAXBUF);
-00353         strlcpy(pattern,spattern.c_str(),MAXBUF);
-00354         return match(literal,pattern);
-00355 }
+
00351 {
+00352         char literal[MAXBUF],pattern[MAXBUF];
+00353         strlcpy(literal,sliteral.c_str(),MAXBUF);
+00354         strlcpy(pattern,spattern.c_str(),MAXBUF);
+00355         return match(literal,pattern);
+00356 }
 
@@ -1305,11 +1305,11 @@ Forces a user to part a channel.

This is similar to svspart and can be used to implement redirection, etc. Although the return value of this function is a pointer to a channel record, the returned data is undefined and should not be read or written to. This behaviour may be changed in a future version.

-Definition at line 367 of file modules.cpp. +Definition at line 368 of file modules.cpp.

-

00368 {
-00369         return del_channel(user,cname.c_str(),reason.c_str(),false);
-00370 }
+
00369 {
+00370         return del_channel(user,cname.c_str(),reason.c_str(),false);
+00371 }
 
@@ -1354,14 +1354,14 @@ To the user, it will appear as if they typed /QUIT themselves, except for the fa WARNING!

Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler.

-Definition at line 396 of file modules.cpp. +Definition at line 397 of file modules.cpp.

References userrec::nick, and send_network_quit().

-

00397 {
-00398         send_network_quit(user->nick,reason.c_str());
-00399         kill_link(user,reason.c_str());
-00400 }
+
00398 {
+00399         send_network_quit(user->nick,reason.c_str());
+00400         kill_link(user,reason.c_str());
+00401 }
 
@@ -1404,11 +1404,11 @@ Sends a line of text down a TCP/IP socket.

This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required.

-Definition at line 427 of file modules.cpp. +Definition at line 428 of file modules.cpp.

-

00428 {
-00429         Write(Socket,"%s",s.c_str());
-00430 }
+
00429 {
+00430         Write(Socket,"%s",s.c_str());
+00431 }
 
@@ -1463,18 +1463,18 @@ Sends text from a user to a channel (mulicast).

This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459).

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

-

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

+

00458 {
+00459         if (IncludeSender)
+00460         {
+00461                 WriteChannel(Channel,User,"%s",s.c_str());
+00462         }
+00463         else
+00464         {
+00465                 ChanExceptSender(Channel,User,"%s",s.c_str());
+00466         }
+00467 }
 
@@ -1523,18 +1523,18 @@ Sends text from a user to one or more channels (mulicast).

This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT.

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

-

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

+

00475 {
+00476         if (IncludeSender)
+00477         {
+00478                 WriteCommon(User,"%s",text.c_str());
+00479         }
+00480         else
+00481         {
+00482                 WriteCommonExcept(User,"%s",text.c_str());
+00483         }
+00484 }
 
@@ -1583,11 +1583,11 @@ Sends text from a user to a socket.

This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459)

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

-

00438 {
-00439         WriteFrom(Socket,User,"%s",s.c_str());
-00440 }
+
00439 {
+00440         WriteFrom(Socket,User,"%s",s.c_str());
+00441 }
 
@@ -1643,13 +1643,13 @@ modes[2] = user->nick;

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

The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state!

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

References server_mode().

-

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

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

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

-

00345 {
-00346         WriteOpers("%s",s.c_str());
-00347 }
+
00346 {
+00347         WriteOpers("%s",s.c_str());
+00348 }
 
@@ -1730,11 +1730,11 @@ Sends text from the server to a socket.

This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459)

-Definition at line 432 of file modules.cpp. +Definition at line 433 of file modules.cpp.

-

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

:localserver TEXT

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

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

References connection::fd.

-

00443 {
-00444         if (!Source)
-00445         {
-00446                 // if source is NULL, then the message originates from the local server
-00447                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
-00448         }
-00449         else
-00450         {
-00451                 // otherwise it comes from the user specified
-00452                 WriteTo(Source,Dest,"%s",s.c_str());
-00453         }
-00454 }
+
00444 {
+00445         if (!Source)
+00446         {
+00447                 // if source is NULL, then the message originates from the local server
+00448                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
+00449         }
+00450         else
+00451         {
+00452                 // otherwise it comes from the user specified
+00453                 WriteTo(Source,Dest,"%s",s.c_str());
+00454         }
+00455 }
 
@@ -1853,11 +1853,11 @@ These can be RFC specified modes such as +i, or module provided modes, including Serv->SendToModeMask("xi", WM_OR, "m00");

Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message.

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

-

00358 {
-00359         WriteMode(modes.c_str(),flags,"%s",text.c_str());
-00360 }
+
00359 {
+00360         WriteMode(modes.c_str(),flags,"%s",text.c_str());
+00361 }
 
@@ -1900,17 +1900,17 @@ Sends a WALLOPS message.

This method writes a WALLOPS message to all users with the +w flag, originating from the specified user.

-Definition at line 485 of file modules.cpp. +Definition at line 486 of file modules.cpp.

-

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

The documentation for this class was generated from the following files: -
Generated on Sat Apr 2 19:27:07 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 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 0e8d709cb..9b517dc80 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -14,7 +14,7 @@ RevisionVersion Version(int major, int minor, int revision, int build)Version ~classbase()classbase [inline] -
Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 1e4926a2e..165a74c82 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -189,7 +189,7 @@ Definition at line 105 of
The documentation for this class was generated from the following files: -
Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 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 3c74d5900..6adda8c2a 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 2 19:27:08 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 671da7549..29339e3bc 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -12,7 +12,7 @@

Inherits classbase.

-Inherited by GLine, KLine, QLine, and ZLine. +Inherited by ELine, GLine, KLine, QLine, and ZLine.

List of all members. @@ -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 2 19:27:08 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 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 a389cacf9..e255f32c5 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 2 19:27:08 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index fe72d8fdf..310335b58 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -27,7 +27,7 @@ ZLine class.

-Definition at line 84 of file xline.h.


Member Data Documentation

+Definition at line 93 of file xline.h.

Member Data Documentation

@@ -51,7 +51,7 @@ IP Address (xx.yy.zz.aa) to match against May contain wildcards.

-Definition at line 90 of file xline.h. +Definition at line 99 of file xline.h.

@@ -77,12 +77,12 @@ Set if this is a global Z:line (e.g.

it came from another server)

-Definition at line 94 of file xline.h. +Definition at line 103 of file xline.h.


The documentation for this class was generated from the following file: -
Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 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 07cb91143..e7a73c026 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 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index ead7ab3bf..500221ee4 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -829,7 +829,7 @@ Referenced by chanrec()
The documentation for this class was generated from the following files: -
Generated on Sat Apr 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 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 39fd05f00..b592d0499 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 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index e22f3d99b..00af10405 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 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 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 35f2d7bfa..03013e5f6 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -18,7 +18,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
Generated on Sat Apr 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 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 2496e353a..8f88460a4 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -198,7 +198,7 @@ Definition at line 43 of
The documentation for this class was generated from the following file: -
Generated on Sat Apr 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:50 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 9e5b261eb..2159fac9b 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 57e902e8f..2350d6f2c 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::SendTo(), serverrec::serverrec(), and userrec::userrec().

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


The documentation for this class was generated from the following file: -
Generated on Sat Apr 2 19:27:04 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:51 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 6bae22e2d..5d1bdb706 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -7,14 +7,13 @@

InspIRCd Compound Index

  A  
-
  D  
-
  H  
-
Module   serverrec   
Admin   DNS   HostItem   ModuleFactory   StrHashComp   
  B  
-
dns_ip4list   
  I  
+
DNS   
  H  
+
Module   serverrec   
Admin   dns_ip4list   HostItem   ModuleFactory   StrHashComp   
  B  
+
  E  
+
  I  
  N  
  U  
-
BanItem   
  E  
-
InAddr_HashComp   nspace::hash< in_addr > (nspace)   ucrec   
  C  
+
BanItem   ELine   InAddr_HashComp   nspace::hash< in_addr > (nspace)   ucrec   
  C  
ExemptItem   Invited   nspace::hash< string > (nspace)   userrec   
chanrec   Extensible   InviteItem   
  P  
  V  
classbase   ExtMode   ircd_connector   packet   Version   
command_t   
  F  
@@ -25,7 +24,8 @@
  M  
  S  
  Z  
-
connection   GLine   ModeParameter   Server   ZLine   

Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +connection   GLine   ModeParameter   Server   ZLine   
  D  
+
Generated on Mon Apr 4 18:12:50 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 d6222ebc8..0728e3b21 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 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 0cf1f062b..db1d38877 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 2 19:27:05 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:52 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 33f942840..2039fe3ce 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 2 19:27:06 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:53 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classpacket.html b/docs/module-doc/classpacket.html index 4dea5d915..7586d3523 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 2 19:27:06 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:53 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 d385c5516..355406ed8 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 2 19:27:07 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index 46db0c244..a2a10308f 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 2 19:27:07 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 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 408b6ca8c..ded768059 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 2 19:27:07 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index ff52338c9..65046d31e 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -160,7 +160,7 @@ Referenced by userrec::userre
The documentation for this class was generated from the following file:
-
Generated on Sat Apr 2 19:27:07 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 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 0544bab85..61528cf42 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -63,7 +63,7 @@ userrec()userrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
Generated on Sat Apr 2 19:27:07 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 92061165c..e37a6dc18 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -774,7 +774,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma

Definition at line 102 of file users.h.

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

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


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

Generated on Sat Apr 2 19:27:01 2005 for InspIRCd by +00080 void handle_eline(char **parameters, int pcnt, userrec *user); +00081 void handle_server(char **parameters, int pcnt, userrec *user); +00082 +00085 void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv); +00086 void process_restricted_commands(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host,char* ipaddr,int port); +00087 +00090 void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00091 void handle_dollar(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00092 void handle_J(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00093 void handle_R(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00094 void handle_plus(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00095 void handle_b(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00096 void handle_a(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00097 void handle_F(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00098 void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00099 void handle_AT(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00100 void handle_k(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00101 void handle_n(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00102 void handle_Q(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00103 void handle_K(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00104 void handle_L(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00105 void handle_m(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00106 void handle_M(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00107 void handle_T(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00108 void handle_t(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00109 void handle_i(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00110 void handle_P(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00111 void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); +00112 +00115 bool is_uline(const char* server); +00116 +00117 #endif +

Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index 2d226d8c3..dbf9eb9f7 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -111,64 +111,66 @@ void handle_qline (char **parameters, int pcnt, userrec *user) -void handle_server (char **parameters, int pcnt, userrec *user) +void handle_eline (char **parameters, int pcnt, userrec *user) -void handle_link_packet (char *udp_msg, char *tcp_host, serverrec *serv) +void handle_server (char **parameters, int pcnt, userrec *user) - Special functions for processing server to server traffic.

-void process_restricted_commands (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *ipaddr, int port) +void handle_link_packet (char *udp_msg, char *tcp_host, serverrec *serv) -void handle_amp (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host) + Special functions for processing server to server traffic.


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


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


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


+bool is_uline (const char *server) + + Functions for u:lined servers.



Function Documentation

-

+

@@ -268,7 +270,7 @@
-

+

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

+

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

+

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

+

@@ -626,7 +628,51 @@ These are the handlers for server commands (tokens).
-

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void handle_eline char **  parameters,
int  pcnt,
userrec user
+
+ + + + + +
+   + + +

+

+

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

+

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

+

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

+

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

+

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

+

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

+

@@ -1494,7 +1540,7 @@ Special functions for processing server to server traffic.
-

+

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

+

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

+

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

+

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

+

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

+

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

+

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

+

@@ -2690,7 +2736,7 @@ Special functions for processing server to server traffic.
-

+

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

+

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

+

@@ -3242,7 +3288,7 @@ Special functions for processing server to server traffic.
-

+

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

+

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

-Referenced by Server::IsUlined().

-

+

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


Generated on Sat Apr 2 19:27:02 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:49 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 967461256..db4a23d38 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 2 19:27:01 2005 for InspIRCd by +

Generated on Mon Apr 4 18:12:47 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 f8376a84f..45445700a 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 2 19:27:02 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:49 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 4fdac2e1c..cb44a9bb7 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -41,7 +41,7 @@ 00048 00049 #endif 00050 -

Generated on Sat Apr 2 19:27:01 2005 for InspIRCd by +

Generated on Mon Apr 4 18:12:47 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 cfbcba959..f5b54eb9b 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 2 19:27:02 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:49 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 150054e43..1f86c06cd 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -69,7 +69,7 @@ 00092 }; 00093 00094 #endif -

Generated on Sat Apr 2 19:27:01 2005 for InspIRCd by +

Generated on Mon Apr 4 18:12:47 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 eb3e96120..601b39633 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 2 19:27:02 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 85c6906fc..199cc96e4 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 2 19:27:00 2005 for InspIRCd by +
Generated on Mon Apr 4 18:12:47 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index af08ab6e5..1bd992f14 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -141,7 +141,7 @@ Here is a list of all class members with links to the classes they belong to:

serverrec
  • host : ConnectClass, connection, ircd_connector
  • HostItem() : HostItem
  • hostmask -: GLine, KLine +: ELine, GLine, KLine

    - i -

    -
    Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index d0a4959ae..5f0209a6b 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -68,7 +68,7 @@ : connection
  • hops_away : serverrec
  • host : ConnectClass, connection, ircd_connector
  • hostmask -: GLine, KLine +: ELine, GLine, KLine

    - i -

    • i @@ -178,7 +178,7 @@
  • -
    Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index dcdc4f88a..341598a04 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -26,7 +26,8 @@ Here is a list of all file members with links to the files they belong to:

    modules.h
  • ACR_DEFAULT : modules.h
  • ACR_DENY : modules.h
  • add_ban() -: mode.h
  • add_gline() +: mode.h
  • add_eline() +: xline.h
  • add_gline() : xline.h
  • add_kline() : xline.h
  • add_qline() : xline.h
  • add_zline() @@ -36,7 +37,7 @@ Here is a list of all file members with links to the files they belong to:

    modules.cpp, channels.cpp
  • AdminNick : modules.cpp, channels.cpp
  • allowed_umode() : mode.h
  • apply_lines() -: xline.h
  • auth_cookies +: xline.h
  • auth_cookies : modules.cpp, channels.cpp

    - b -

    - f - @@ -109,68 +111,69 @@ Here is a list of all file members with links to the files they belong to:

    mode.h
  • give_ops() : mode.h
  • give_voice() : mode.h
  • gline_set_creation_time() -: xline.h +: xline.h

    - h -

    - l - @@ -206,11 +209,12 @@ Here is a list of all file members with links to the files they belong to:

    modules.cpp, channels.cpp

    - m -

    @@ -246,19 +250,19 @@ Here is a list of all file members with links to the files they belong to:

    modules.cpp, channels.cpp
  • process_modes() : mode.h
  • process_module_umode() : mode.h
  • process_restricted_commands() -: commands.h +: commands.h

    - q -

    +: xline.h
  • qline_set_creation_time() +: xline.h

    - r -

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

    - s -

    +: xline.h

    - t -

    • take_ban() @@ -318,9 +323,9 @@ Here is a list of all file members with links to the files they belong to:

      - z -

      -
      Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +: xline.h
    • zline_set_creation_time() +: xline.h
    +
    Generated on Mon Apr 4 18:12:54 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 3e5ca617c..6e861d151 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -87,7 +87,7 @@
  • -
    Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:55 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 73514aae8..77d980b66 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -14,13 +14,14 @@

    - a -

    +: xline.h

    - b -

    - d -

    - e -

    +: xline.h

    - f -

    +: xline.h

    - h -

    - q -

    +: xline.h
  • qline_set_creation_time() +: xline.h

    - r -

    +: modules.h, mode.h
  • stats_e() +: xline.h
  • stats_g() +: xline.h
  • stats_k() +: xline.h
  • stats_q() +: xline.h
  • stats_z() +: xline.h
  • sync_xlines() +: xline.h

    - t -

    • take_ban() @@ -201,9 +206,9 @@

      - z -

      -
      Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +: xline.h
    • zline_set_creation_time() +: xline.h
    +
    Generated on Mon Apr 4 18:12:54 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 60912caf5..4f8651a3a 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -26,7 +26,7 @@ : modules.h
  • user_hash : modules.cpp
  • VoidPointer : base.h -
    Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:55 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 47abb81ca..a4764fd01 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 -

    - s -

    -
    Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 0fa7d730b..442453cb0 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -40,6 +40,7 @@
  • Version
  • XLine -
    Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index eb5d41b9d..c94c45c29 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@

    InspIRCd Documentation

    -


    Generated on Sat Apr 2 19:27:00 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:47 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 84d328fee..abbd2bd81 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 2 19:27:01 2005 for InspIRCd by +

    Generated on Mon Apr 4 18:12:47 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 a33dee092..d07ea2c5d 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -155,7 +155,7 @@

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

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

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

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

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

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

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

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

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

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

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

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

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

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


    Generated on Sat Apr 2 19:27:02 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:49 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 67a5190f5..3a8bbcd18 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -53,7 +53,7 @@ 00046 00047 00048 #endif -

    Generated on Sat Apr 2 19:27:01 2005 for InspIRCd by +

    Generated on Mon Apr 4 18:12:47 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 96fdf232e..9b8672283 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ -
    Generated on Sat Apr 2 19:27:02 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:49 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 a2703b95e..8b4297c73 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -328,459 +328,460 @@ 00321 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; 00322 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; 00323 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; -00324 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; -00325 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } -00326 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } -00327 void Module::On005Numeric(std::string &output) { }; -00328 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; -00329 void Module::OnLoadModule(Module* mod,std::string name) { }; -00330 +00324 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; +00325 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; +00326 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } +00327 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } +00328 void Module::On005Numeric(std::string &output) { }; +00329 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; +00330 void Module::OnLoadModule(Module* mod,std::string name) { }; 00331 -00332 // server is a wrapper class that provides methods to all of the C-style -00333 // exports in the core -00334 // -00335 -00336 Server::Server() -00337 { -00338 } -00339 -00340 Server::~Server() -00341 { -00342 } -00343 -00344 void Server::SendOpers(std::string s) -00345 { -00346 WriteOpers("%s",s.c_str()); -00347 } -00348 -00349 bool Server::MatchText(std::string sliteral, std::string spattern) -00350 { -00351 char literal[MAXBUF],pattern[MAXBUF]; -00352 strlcpy(literal,sliteral.c_str(),MAXBUF); -00353 strlcpy(pattern,spattern.c_str(),MAXBUF); -00354 return match(literal,pattern); -00355 } -00356 -00357 void Server::SendToModeMask(std::string modes, int flags, std::string text) -00358 { -00359 WriteMode(modes.c_str(),flags,"%s",text.c_str()); -00360 } -00361 -00362 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) -00363 { -00364 return add_channel(user,cname.c_str(),key.c_str(),true); -00365 } -00366 -00367 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) -00368 { -00369 return del_channel(user,cname.c_str(),reason.c_str(),false); -00370 } -00371 -00372 chanuserlist Server::GetUsers(chanrec* chan) -00373 { -00374 chanuserlist userl; -00375 userl.clear(); -00376 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) -00377 { -00378 if (i->second) -00379 { -00380 if (has_channel(i->second,chan)) -00381 { -00382 if (isnick(i->second->nick)) -00383 { -00384 userl.push_back(i->second); -00385 } -00386 } -00387 } -00388 } -00389 return userl; -00390 } -00391 void Server::ChangeUserNick(userrec* user, std::string nickname) -00392 { -00393 force_nickchange(user,nickname.c_str()); -00394 } -00395 -00396 void Server::QuitUser(userrec* user, std::string reason) -00397 { -00398 send_network_quit(user->nick,reason.c_str()); -00399 kill_link(user,reason.c_str()); -00400 } -00401 -00402 bool Server::IsUlined(std::string server) -00403 { -00404 return is_uline(server.c_str()); -00405 } -00406 -00407 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) -00408 { -00409 call_handler(commandname.c_str(),parameters,pcnt,user); -00410 } -00411 -00412 void Server::Log(int level, std::string s) -00413 { -00414 log(level,"%s",s.c_str()); -00415 } -00416 -00417 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams) -00418 { -00419 createcommand(cmd,f,flags,minparams); -00420 } -00421 -00422 void Server::SendMode(char **parameters, int pcnt, userrec *user) -00423 { -00424 server_mode(parameters,pcnt,user); -00425 } -00426 -00427 void Server::Send(int Socket, std::string s) -00428 { -00429 Write(Socket,"%s",s.c_str()); -00430 } -00431 -00432 void Server::SendServ(int Socket, std::string s) -00433 { -00434 WriteServ(Socket,"%s",s.c_str()); -00435 } -00436 -00437 void Server::SendFrom(int Socket, userrec* User, std::string s) -00438 { -00439 WriteFrom(Socket,User,"%s",s.c_str()); -00440 } -00441 -00442 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) -00443 { -00444 if (!Source) -00445 { -00446 // if source is NULL, then the message originates from the local server -00447 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); -00448 } -00449 else -00450 { -00451 // otherwise it comes from the user specified -00452 WriteTo(Source,Dest,"%s",s.c_str()); -00453 } -00454 } -00455 -00456 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00457 { -00458 if (IncludeSender) -00459 { -00460 WriteChannel(Channel,User,"%s",s.c_str()); -00461 } -00462 else -00463 { -00464 ChanExceptSender(Channel,User,"%s",s.c_str()); -00465 } -00466 } -00467 -00468 bool Server::CommonChannels(userrec* u1, userrec* u2) -00469 { -00470 return (common_channels(u1,u2) != 0); -00471 } -00472 -00473 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00474 { -00475 if (IncludeSender) -00476 { -00477 WriteCommon(User,"%s",text.c_str()); -00478 } -00479 else -00480 { -00481 WriteCommonExcept(User,"%s",text.c_str()); -00482 } -00483 } -00484 -00485 void Server::SendWallops(userrec* User, std::string text) -00486 { -00487 WriteWallOps(User,false,"%s",text.c_str()); -00488 } -00489 -00490 void Server::ChangeHost(userrec* user, std::string host) -00491 { -00492 ChangeDisplayedHost(user,host.c_str()); -00493 } -00494 -00495 void Server::ChangeGECOS(userrec* user, std::string gecos) -00496 { -00497 ChangeName(user,gecos.c_str()); -00498 } -00499 -00500 bool Server::IsNick(std::string nick) -00501 { -00502 return (isnick(nick.c_str()) != 0); -00503 } -00504 -00505 userrec* Server::FindNick(std::string nick) -00506 { -00507 return Find(nick); -00508 } -00509 -00510 chanrec* Server::FindChannel(std::string channel) -00511 { -00512 return FindChan(channel.c_str()); -00513 } -00514 -00515 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00516 { -00517 return cmode(User,Chan); -00518 } -00519 -00520 bool Server::IsOnChannel(userrec* User, chanrec* Chan) -00521 { -00522 return has_channel(User,Chan); -00523 } -00524 -00525 std::string Server::GetServerName() -00526 { -00527 return getservername(); -00528 } -00529 -00530 std::string Server::GetNetworkName() -00531 { -00532 return getnetworkname(); -00533 } -00534 -00535 Admin Server::GetAdmin() -00536 { -00537 return Admin(getadminname(),getadminemail(),getadminnick()); -00538 } -00539 +00332 +00333 // server is a wrapper class that provides methods to all of the C-style +00334 // exports in the core +00335 // +00336 +00337 Server::Server() +00338 { +00339 } +00340 +00341 Server::~Server() +00342 { +00343 } +00344 +00345 void Server::SendOpers(std::string s) +00346 { +00347 WriteOpers("%s",s.c_str()); +00348 } +00349 +00350 bool Server::MatchText(std::string sliteral, std::string spattern) +00351 { +00352 char literal[MAXBUF],pattern[MAXBUF]; +00353 strlcpy(literal,sliteral.c_str(),MAXBUF); +00354 strlcpy(pattern,spattern.c_str(),MAXBUF); +00355 return match(literal,pattern); +00356 } +00357 +00358 void Server::SendToModeMask(std::string modes, int flags, std::string text) +00359 { +00360 WriteMode(modes.c_str(),flags,"%s",text.c_str()); +00361 } +00362 +00363 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) +00364 { +00365 return add_channel(user,cname.c_str(),key.c_str(),true); +00366 } +00367 +00368 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) +00369 { +00370 return del_channel(user,cname.c_str(),reason.c_str(),false); +00371 } +00372 +00373 chanuserlist Server::GetUsers(chanrec* chan) +00374 { +00375 chanuserlist userl; +00376 userl.clear(); +00377 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) +00378 { +00379 if (i->second) +00380 { +00381 if (has_channel(i->second,chan)) +00382 { +00383 if (isnick(i->second->nick)) +00384 { +00385 userl.push_back(i->second); +00386 } +00387 } +00388 } +00389 } +00390 return userl; +00391 } +00392 void Server::ChangeUserNick(userrec* user, std::string nickname) +00393 { +00394 force_nickchange(user,nickname.c_str()); +00395 } +00396 +00397 void Server::QuitUser(userrec* user, std::string reason) +00398 { +00399 send_network_quit(user->nick,reason.c_str()); +00400 kill_link(user,reason.c_str()); +00401 } +00402 +00403 bool Server::IsUlined(std::string server) +00404 { +00405 return is_uline(server.c_str()); +00406 } +00407 +00408 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) +00409 { +00410 call_handler(commandname.c_str(),parameters,pcnt,user); +00411 } +00412 +00413 void Server::Log(int level, std::string s) +00414 { +00415 log(level,"%s",s.c_str()); +00416 } +00417 +00418 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams) +00419 { +00420 createcommand(cmd,f,flags,minparams); +00421 } +00422 +00423 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00424 { +00425 server_mode(parameters,pcnt,user); +00426 } +00427 +00428 void Server::Send(int Socket, std::string s) +00429 { +00430 Write(Socket,"%s",s.c_str()); +00431 } +00432 +00433 void Server::SendServ(int Socket, std::string s) +00434 { +00435 WriteServ(Socket,"%s",s.c_str()); +00436 } +00437 +00438 void Server::SendFrom(int Socket, userrec* User, std::string s) +00439 { +00440 WriteFrom(Socket,User,"%s",s.c_str()); +00441 } +00442 +00443 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00444 { +00445 if (!Source) +00446 { +00447 // if source is NULL, then the message originates from the local server +00448 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); +00449 } +00450 else +00451 { +00452 // otherwise it comes from the user specified +00453 WriteTo(Source,Dest,"%s",s.c_str()); +00454 } +00455 } +00456 +00457 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00458 { +00459 if (IncludeSender) +00460 { +00461 WriteChannel(Channel,User,"%s",s.c_str()); +00462 } +00463 else +00464 { +00465 ChanExceptSender(Channel,User,"%s",s.c_str()); +00466 } +00467 } +00468 +00469 bool Server::CommonChannels(userrec* u1, userrec* u2) +00470 { +00471 return (common_channels(u1,u2) != 0); +00472 } +00473 +00474 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00475 { +00476 if (IncludeSender) +00477 { +00478 WriteCommon(User,"%s",text.c_str()); +00479 } +00480 else +00481 { +00482 WriteCommonExcept(User,"%s",text.c_str()); +00483 } +00484 } +00485 +00486 void Server::SendWallops(userrec* User, std::string text) +00487 { +00488 WriteWallOps(User,false,"%s",text.c_str()); +00489 } +00490 +00491 void Server::ChangeHost(userrec* user, std::string host) +00492 { +00493 ChangeDisplayedHost(user,host.c_str()); +00494 } +00495 +00496 void Server::ChangeGECOS(userrec* user, std::string gecos) +00497 { +00498 ChangeName(user,gecos.c_str()); +00499 } +00500 +00501 bool Server::IsNick(std::string nick) +00502 { +00503 return (isnick(nick.c_str()) != 0); +00504 } +00505 +00506 userrec* Server::FindNick(std::string nick) +00507 { +00508 return Find(nick); +00509 } +00510 +00511 chanrec* Server::FindChannel(std::string channel) +00512 { +00513 return FindChan(channel.c_str()); +00514 } +00515 +00516 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00517 { +00518 return cmode(User,Chan); +00519 } +00520 +00521 bool Server::IsOnChannel(userrec* User, chanrec* Chan) +00522 { +00523 return has_channel(User,Chan); +00524 } +00525 +00526 std::string Server::GetServerName() +00527 { +00528 return getservername(); +00529 } +00530 +00531 std::string Server::GetNetworkName() +00532 { +00533 return getnetworkname(); +00534 } +00535 +00536 Admin Server::GetAdmin() +00537 { +00538 return Admin(getadminname(),getadminemail(),getadminnick()); +00539 } 00540 00541 -00542 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) -00543 { -00544 if (type == MT_SERVER) -00545 { -00546 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); -00547 return false; -00548 } -00549 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -00550 { -00551 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); -00552 return false; -00553 } -00554 if ((params_when_on>1) || (params_when_off>1)) -00555 { -00556 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); -00557 return false; -00558 } -00559 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -00560 } -00561 -00562 bool Server::AddExtendedListMode(char modechar) -00563 { -00564 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -00565 if (res) -00566 ModeMakeList(modechar); -00567 return res; -00568 } -00569 -00570 int Server::CountUsers(chanrec* c) -00571 { -00572 return usercount(c); -00573 } -00574 +00542 +00543 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) +00544 { +00545 if (type == MT_SERVER) +00546 { +00547 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); +00548 return false; +00549 } +00550 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +00551 { +00552 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); +00553 return false; +00554 } +00555 if ((params_when_on>1) || (params_when_off>1)) +00556 { +00557 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); +00558 return false; +00559 } +00560 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +00561 } +00562 +00563 bool Server::AddExtendedListMode(char modechar) +00564 { +00565 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +00566 if (res) +00567 ModeMakeList(modechar); +00568 return res; +00569 } +00570 +00571 int Server::CountUsers(chanrec* c) +00572 { +00573 return usercount(c); +00574 } 00575 -00576 ConfigReader::ConfigReader() -00577 { -00578 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00579 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00580 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00581 if (!this->readerror) -00582 this->error = CONF_FILE_NOT_FOUND; -00583 } -00584 +00576 +00577 ConfigReader::ConfigReader() +00578 { +00579 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00580 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00581 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00582 if (!this->readerror) +00583 this->error = CONF_FILE_NOT_FOUND; +00584 } 00585 -00586 ConfigReader::~ConfigReader() -00587 { -00588 if (this->cache) -00589 delete this->cache; -00590 if (this->errorlog) -00591 delete this->errorlog; -00592 } -00593 +00586 +00587 ConfigReader::~ConfigReader() +00588 { +00589 if (this->cache) +00590 delete this->cache; +00591 if (this->errorlog) +00592 delete this->errorlog; +00593 } 00594 -00595 ConfigReader::ConfigReader(std::string filename) -00596 { -00597 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00598 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00599 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -00600 if (!this->readerror) -00601 this->error = CONF_FILE_NOT_FOUND; -00602 }; -00603 -00604 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00605 { -00606 char val[MAXBUF]; -00607 char t[MAXBUF]; -00608 char n[MAXBUF]; -00609 strlcpy(t,tag.c_str(),MAXBUF); -00610 strlcpy(n,name.c_str(),MAXBUF); -00611 int res = ReadConf(cache,t,n,index,val); -00612 if (!res) -00613 { -00614 this->error = CONF_VALUE_NOT_FOUND; -00615 return ""; -00616 } -00617 return std::string(val); -00618 } -00619 -00620 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) -00621 { -00622 char val[MAXBUF]; -00623 char t[MAXBUF]; -00624 char n[MAXBUF]; -00625 strlcpy(t,tag.c_str(),MAXBUF); -00626 strlcpy(n,name.c_str(),MAXBUF); -00627 int res = ReadConf(cache,t,n,index,val); -00628 if (!res) -00629 { -00630 this->error = CONF_VALUE_NOT_FOUND; -00631 return false; -00632 } -00633 std::string s = val; -00634 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); -00635 } -00636 -00637 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) -00638 { -00639 char val[MAXBUF]; -00640 char t[MAXBUF]; -00641 char n[MAXBUF]; -00642 strlcpy(t,tag.c_str(),MAXBUF); -00643 strlcpy(n,name.c_str(),MAXBUF); -00644 int res = ReadConf(cache,t,n,index,val); -00645 if (!res) -00646 { -00647 this->error = CONF_VALUE_NOT_FOUND; -00648 return 0; -00649 } -00650 for (int i = 0; i < strlen(val); i++) -00651 { -00652 if (!isdigit(val[i])) -00653 { -00654 this->error = CONF_NOT_A_NUMBER; -00655 return 0; -00656 } -00657 } -00658 if ((needs_unsigned) && (atoi(val)<0)) -00659 { -00660 this->error = CONF_NOT_UNSIGNED; -00661 return 0; -00662 } -00663 return atoi(val); -00664 } -00665 -00666 long ConfigReader::GetError() -00667 { -00668 long olderr = this->error; -00669 this->error = 0; -00670 return olderr; -00671 } -00672 -00673 void ConfigReader::DumpErrors(bool bail, userrec* user) -00674 { -00675 if (bail) -00676 { -00677 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); -00678 exit(0); -00679 } -00680 else -00681 { -00682 char dataline[1024]; -00683 if (user) -00684 { -00685 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); -00686 while (!errorlog->eof()) -00687 { -00688 errorlog->getline(dataline,1024); -00689 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); -00690 } -00691 } -00692 else -00693 { -00694 WriteOpers("There were errors in the configuration file:",user->nick); -00695 while (!errorlog->eof()) -00696 { -00697 errorlog->getline(dataline,1024); -00698 WriteOpers(dataline); -00699 } -00700 } -00701 return; -00702 } -00703 } -00704 +00595 +00596 ConfigReader::ConfigReader(std::string filename) +00597 { +00598 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00599 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00600 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +00601 if (!this->readerror) +00602 this->error = CONF_FILE_NOT_FOUND; +00603 }; +00604 +00605 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00606 { +00607 char val[MAXBUF]; +00608 char t[MAXBUF]; +00609 char n[MAXBUF]; +00610 strlcpy(t,tag.c_str(),MAXBUF); +00611 strlcpy(n,name.c_str(),MAXBUF); +00612 int res = ReadConf(cache,t,n,index,val); +00613 if (!res) +00614 { +00615 this->error = CONF_VALUE_NOT_FOUND; +00616 return ""; +00617 } +00618 return std::string(val); +00619 } +00620 +00621 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00622 { +00623 char val[MAXBUF]; +00624 char t[MAXBUF]; +00625 char n[MAXBUF]; +00626 strlcpy(t,tag.c_str(),MAXBUF); +00627 strlcpy(n,name.c_str(),MAXBUF); +00628 int res = ReadConf(cache,t,n,index,val); +00629 if (!res) +00630 { +00631 this->error = CONF_VALUE_NOT_FOUND; +00632 return false; +00633 } +00634 std::string s = val; +00635 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); +00636 } +00637 +00638 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00639 { +00640 char val[MAXBUF]; +00641 char t[MAXBUF]; +00642 char n[MAXBUF]; +00643 strlcpy(t,tag.c_str(),MAXBUF); +00644 strlcpy(n,name.c_str(),MAXBUF); +00645 int res = ReadConf(cache,t,n,index,val); +00646 if (!res) +00647 { +00648 this->error = CONF_VALUE_NOT_FOUND; +00649 return 0; +00650 } +00651 for (int i = 0; i < strlen(val); i++) +00652 { +00653 if (!isdigit(val[i])) +00654 { +00655 this->error = CONF_NOT_A_NUMBER; +00656 return 0; +00657 } +00658 } +00659 if ((needs_unsigned) && (atoi(val)<0)) +00660 { +00661 this->error = CONF_NOT_UNSIGNED; +00662 return 0; +00663 } +00664 return atoi(val); +00665 } +00666 +00667 long ConfigReader::GetError() +00668 { +00669 long olderr = this->error; +00670 this->error = 0; +00671 return olderr; +00672 } +00673 +00674 void ConfigReader::DumpErrors(bool bail, userrec* user) +00675 { +00676 if (bail) +00677 { +00678 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); +00679 exit(0); +00680 } +00681 else +00682 { +00683 char dataline[1024]; +00684 if (user) +00685 { +00686 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); +00687 while (!errorlog->eof()) +00688 { +00689 errorlog->getline(dataline,1024); +00690 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); +00691 } +00692 } +00693 else +00694 { +00695 WriteOpers("There were errors in the configuration file:",user->nick); +00696 while (!errorlog->eof()) +00697 { +00698 errorlog->getline(dataline,1024); +00699 WriteOpers(dataline); +00700 } +00701 } +00702 return; +00703 } +00704 } 00705 -00706 int ConfigReader::Enumerate(std::string tag) -00707 { -00708 return EnumConf(cache,tag.c_str()); -00709 } -00710 -00711 int ConfigReader::EnumerateValues(std::string tag, int index) -00712 { -00713 return EnumValues(cache, tag.c_str(), index); -00714 } -00715 -00716 bool ConfigReader::Verify() -00717 { -00718 return this->readerror; -00719 } -00720 +00706 +00707 int ConfigReader::Enumerate(std::string tag) +00708 { +00709 return EnumConf(cache,tag.c_str()); +00710 } +00711 +00712 int ConfigReader::EnumerateValues(std::string tag, int index) +00713 { +00714 return EnumValues(cache, tag.c_str(), index); +00715 } +00716 +00717 bool ConfigReader::Verify() +00718 { +00719 return this->readerror; +00720 } 00721 -00722 FileReader::FileReader(std::string filename) -00723 { -00724 file_cache c; -00725 readfile(c,filename.c_str()); -00726 this->fc = c; -00727 } -00728 -00729 FileReader::FileReader() -00730 { -00731 } -00732 -00733 void FileReader::LoadFile(std::string filename) -00734 { -00735 file_cache c; -00736 readfile(c,filename.c_str()); -00737 this->fc = c; -00738 } -00739 +00722 +00723 FileReader::FileReader(std::string filename) +00724 { +00725 file_cache c; +00726 readfile(c,filename.c_str()); +00727 this->fc = c; +00728 } +00729 +00730 FileReader::FileReader() +00731 { +00732 } +00733 +00734 void FileReader::LoadFile(std::string filename) +00735 { +00736 file_cache c; +00737 readfile(c,filename.c_str()); +00738 this->fc = c; +00739 } 00740 -00741 FileReader::~FileReader() -00742 { -00743 } -00744 -00745 bool FileReader::Exists() -00746 { -00747 if (fc.size() == 0) -00748 { -00749 return(false); -00750 } -00751 else -00752 { -00753 return(true); -00754 } -00755 } -00756 -00757 std::string FileReader::GetLine(int x) -00758 { -00759 if ((x<0) || (x>fc.size())) -00760 return ""; -00761 return fc[x]; -00762 } -00763 -00764 int FileReader::FileSize() -00765 { -00766 return fc.size(); -00767 } -00768 +00741 +00742 FileReader::~FileReader() +00743 { +00744 } +00745 +00746 bool FileReader::Exists() +00747 { +00748 if (fc.size() == 0) +00749 { +00750 return(false); +00751 } +00752 else +00753 { +00754 return(true); +00755 } +00756 } +00757 +00758 std::string FileReader::GetLine(int x) +00759 { +00760 if ((x<0) || (x>fc.size())) +00761 return ""; +00762 return fc[x]; +00763 } +00764 +00765 int FileReader::FileSize() +00766 { +00767 return fc.size(); +00768 } 00769 -00770 std::vector<Module*> modules(255); -00771 std::vector<ircd_module*> factory(255); -00772 -00773 int MODCOUNT = -1; -00774 +00770 +00771 std::vector<Module*> modules(255); +00772 std::vector<ircd_module*> factory(255); +00773 +00774 int MODCOUNT = -1; 00775 -

    Generated on Sat Apr 2 19:27:01 2005 for InspIRCd by +00776 +

    Generated on Mon Apr 4 18:12:48 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 6ebc61ef2..1d49c4368 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -414,7 +414,7 @@ Definition at line 273

    References EMode, and ModeDefined().

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

    00274 {
     00275         if (ModeDefined(modechar,type)) {
    @@ -762,7 +762,7 @@ Definition at line 283
     

    References EMode, ExtModeListIter, and MT_CHANNEL.

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

    00284 {
     00285         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    @@ -975,7 +975,7 @@ Definition at line 178
     

    Definition at line 177 of file modules.cpp.

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

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

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

    @@ -1868,7 +1868,7 @@ Definition at line 85 o Definition at line 84 of file modules.cpp. -


    Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:49 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 bf7b33764..af553f1c7 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -155,143 +155,145 @@ 00267 00279 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); 00280 -00291 virtual int OnUserPreNick(userrec* user, std::string newnick); -00292 -00314 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); -00315 -00321 virtual string_list OnUserSync(userrec* user); -00322 -00328 virtual string_list OnChannelSync(chanrec* chan); -00329 -00333 virtual void On005Numeric(std::string &output); -00334 -00344 virtual int OnKill(userrec* source, userrec* dest, std::string reason); -00345 -00356 virtual void OnLoadModule(Module* mod,std::string name); -00357 }; -00358 -00359 -00365 class Server : public classbase -00366 { -00367 public: -00371 Server(); -00375 virtual ~Server(); -00376 -00380 virtual void SendOpers(std::string s); -00385 virtual void Log(int level, std::string s); -00390 virtual void Send(int Socket, std::string s); -00395 virtual void SendServ(int Socket, std::string s); -00400 virtual void SendFrom(int Socket, userrec* User, std::string s); -00415 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -00422 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -00427 virtual bool CommonChannels(userrec* u1, userrec* u2); -00435 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -00440 virtual void SendWallops(userrec* User, std::string text); -00441 -00445 virtual bool IsNick(std::string nick); -00449 virtual int CountUsers(chanrec* c); -00453 virtual userrec* FindNick(std::string nick); -00457 virtual chanrec* FindChannel(std::string channel); -00462 virtual std::string ChanMode(userrec* User, chanrec* Chan); -00466 virtual bool IsOnChannel(userrec* User, chanrec* Chan); -00469 virtual std::string GetServerName(); -00472 virtual std::string GetNetworkName(); -00478 virtual Admin GetAdmin(); -00497 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); -00498 -00520 virtual bool AddExtendedListMode(char modechar); -00521 -00536 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams); -00537 -00559 virtual void SendMode(char **parameters, int pcnt, userrec *user); -00560 -00573 virtual void SendToModeMask(std::string modes, int flags, std::string text); -00574 -00580 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); -00581 -00587 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); -00588 -00594 virtual void ChangeUserNick(userrec* user, std::string nickname); -00595 -00606 virtual void QuitUser(userrec* user, std::string reason); -00607 -00612 virtual bool MatchText(std::string sliteral, std::string spattern); +00288 virtual int OnUserPreNick(userrec* user, std::string newnick); +00289 +00297 virtual void OnUserPostNick(userrec* user, std::string oldnick); +00298 +00320 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); +00321 +00327 virtual string_list OnUserSync(userrec* user); +00328 +00334 virtual string_list OnChannelSync(chanrec* chan); +00335 +00339 virtual void On005Numeric(std::string &output); +00340 +00350 virtual int OnKill(userrec* source, userrec* dest, std::string reason); +00351 +00362 virtual void OnLoadModule(Module* mod,std::string name); +00363 }; +00364 +00365 +00371 class Server : public classbase +00372 { +00373 public: +00377 Server(); +00381 virtual ~Server(); +00382 +00386 virtual void SendOpers(std::string s); +00391 virtual void Log(int level, std::string s); +00396 virtual void Send(int Socket, std::string s); +00401 virtual void SendServ(int Socket, std::string s); +00406 virtual void SendFrom(int Socket, userrec* User, std::string s); +00421 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); +00428 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); +00433 virtual bool CommonChannels(userrec* u1, userrec* u2); +00441 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); +00446 virtual void SendWallops(userrec* User, std::string text); +00447 +00451 virtual bool IsNick(std::string nick); +00455 virtual int CountUsers(chanrec* c); +00459 virtual userrec* FindNick(std::string nick); +00463 virtual chanrec* FindChannel(std::string channel); +00468 virtual std::string ChanMode(userrec* User, chanrec* Chan); +00472 virtual bool IsOnChannel(userrec* User, chanrec* Chan); +00475 virtual std::string GetServerName(); +00478 virtual std::string GetNetworkName(); +00484 virtual Admin GetAdmin(); +00503 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); +00504 +00526 virtual bool AddExtendedListMode(char modechar); +00527 +00542 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams); +00543 +00565 virtual void SendMode(char **parameters, int pcnt, userrec *user); +00566 +00579 virtual void SendToModeMask(std::string modes, int flags, std::string text); +00580 +00586 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); +00587 +00593 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); +00594 +00600 virtual void ChangeUserNick(userrec* user, std::string nickname); +00601 +00612 virtual void QuitUser(userrec* user, std::string reason); 00613 -00625 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); -00626 -00632 virtual void ChangeHost(userrec* user, std::string host); -00633 -00639 virtual void ChangeGECOS(userrec* user, std::string gecos); -00640 -00649 virtual bool IsUlined(std::string server); -00650 -00654 virtual chanuserlist GetUsers(chanrec* chan); -00655 -00656 }; -00657 -00658 #define CONF_NOT_A_NUMBER 0x000010 -00659 #define CONF_NOT_UNSIGNED 0x000080 -00660 #define CONF_VALUE_NOT_FOUND 0x000100 -00661 #define CONF_FILE_NOT_FOUND 0x000200 -00662 -00669 class ConfigReader : public classbase -00670 { -00671 protected: -00677 std::stringstream *cache; -00678 std::stringstream *errorlog; -00681 bool readerror; -00682 long error; -00683 -00684 public: -00689 ConfigReader(); // default constructor reads ircd.conf -00693 ConfigReader(std::string filename); // read a module-specific config -00697 ~ConfigReader(); -00702 std::string ReadValue(std::string tag, std::string name, int index); -00708 bool ReadFlag(std::string tag, std::string name, int index); -00717 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); -00722 long GetError(); -00729 int Enumerate(std::string tag); -00734 bool Verify(); -00741 void DumpErrors(bool bail,userrec* user); -00742 -00748 int EnumerateValues(std::string tag, int index); -00749 }; -00750 -00751 -00752 -00758 class FileReader : public classbase -00759 { -00760 file_cache fc; -00761 public: -00766 FileReader(); -00767 -00773 FileReader(std::string filename); -00774 -00778 ~FileReader(); -00779 -00785 void LoadFile(std::string filename); -00786 -00790 bool Exists(); -00791 -00796 std::string GetLine(int x); -00797 -00803 int FileSize(); -00804 }; -00805 -00806 -00813 class ModuleFactory : public classbase -00814 { -00815 public: -00816 ModuleFactory() { } -00817 virtual ~ModuleFactory() { } -00822 virtual Module * CreateModule() = 0; -00823 }; -00824 -00825 -00826 typedef DLLFactory<ModuleFactory> ircd_module; -00827 -00828 #endif -

    Generated on Sat Apr 2 19:27:01 2005 for InspIRCd by +00618 virtual bool MatchText(std::string sliteral, std::string spattern); +00619 +00631 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); +00632 +00638 virtual void ChangeHost(userrec* user, std::string host); +00639 +00645 virtual void ChangeGECOS(userrec* user, std::string gecos); +00646 +00655 virtual bool IsUlined(std::string server); +00656 +00660 virtual chanuserlist GetUsers(chanrec* chan); +00661 +00662 }; +00663 +00664 #define CONF_NOT_A_NUMBER 0x000010 +00665 #define CONF_NOT_UNSIGNED 0x000080 +00666 #define CONF_VALUE_NOT_FOUND 0x000100 +00667 #define CONF_FILE_NOT_FOUND 0x000200 +00668 +00675 class ConfigReader : public classbase +00676 { +00677 protected: +00683 std::stringstream *cache; +00684 std::stringstream *errorlog; +00687 bool readerror; +00688 long error; +00689 +00690 public: +00695 ConfigReader(); // default constructor reads ircd.conf +00699 ConfigReader(std::string filename); // read a module-specific config +00703 ~ConfigReader(); +00708 std::string ReadValue(std::string tag, std::string name, int index); +00714 bool ReadFlag(std::string tag, std::string name, int index); +00723 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); +00728 long GetError(); +00735 int Enumerate(std::string tag); +00740 bool Verify(); +00747 void DumpErrors(bool bail,userrec* user); +00748 +00754 int EnumerateValues(std::string tag, int index); +00755 }; +00756 +00757 +00758 +00764 class FileReader : public classbase +00765 { +00766 file_cache fc; +00767 public: +00772 FileReader(); +00773 +00779 FileReader(std::string filename); +00780 +00784 ~FileReader(); +00785 +00791 void LoadFile(std::string filename); +00792 +00796 bool Exists(); +00797 +00802 std::string GetLine(int x); +00803 +00809 int FileSize(); +00810 }; +00811 +00812 +00819 class ModuleFactory : public classbase +00820 { +00821 public: +00822 ModuleFactory() { } +00823 virtual ~ModuleFactory() { } +00828 virtual Module * CreateModule() = 0; +00829 }; +00830 +00831 +00832 typedef DLLFactory<ModuleFactory> ircd_module; +00833 +00834 #endif +

    Generated on Mon Apr 4 18:12:48 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 97ae37e03..6110e3423 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -371,7 +371,7 @@ Definition at line 39 of

    Definition at line 37 of file modules.h.

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

    @@ -419,9 +419,9 @@ Definition at line 38 of

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

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

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

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

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

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

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

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

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

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

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

    @@ -525,7 +525,7 @@ Referenced by ConfigReader:

    Definition at line 23 of file modules.h.

    -Referenced by Server::AddExtendedMode(), userrec::HasPermission(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam(). +Referenced by Server::AddExtendedMode(), userrec::HasPermission(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam().

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

    Definition at line 31 of file modules.h.

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

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

    Definition at line 32 of file modules.h.

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

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

    Definition at line 33 of file modules.h.

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

    @@ -790,7 +790,7 @@ Holds a list of users in a channel.

    Definition at line 65 of file modules.h.

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

    @@ -818,7 +818,7 @@ Low level definition of a FileReader Definition at line 60 of file modules.h.

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

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

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

    @@ -868,7 +868,7 @@ Definition at line 826 of

    Definition at line 61 of file modules.h.

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


    Function Documentation

    @@ -921,7 +921,7 @@ Referenced by Module::OnCha

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

    @@ -967,10 +967,10 @@ Referenced by Server::AddCo

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


    Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:49 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index 014ca9eec..e09ffb727 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 2 19:27:08 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index 7e85c3917..8a147e855 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -9,7 +9,7 @@ nspace std -
    Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index b46008528..290626e8f 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@
    -
    Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:54 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 981320c6c..69c2744fc 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -61,7 +61,7 @@ 00054 strlcpy(nickserv,"",NICKMAX); 00055 } 00056 -

    Generated on Sat Apr 2 19:27:01 2005 for InspIRCd by +

    Generated on Mon Apr 4 18:12:48 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 57a0d2aa3..107be2edd 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -16,7 +16,7 @@ Go to the source code of this file.
    -
    Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:49 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 0f62a5074..a6b8ae022 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 2 19:27:01 2005 for InspIRCd by +

    Generated on Mon Apr 4 18:12:48 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 58bce0381..940178e64 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 2 19:27:03 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:49 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 4c06ed1f0..6c46a44db 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 2 19:27:05 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:52 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 01f69360b..1bd5ecbe2 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -65,7 +65,7 @@ Definition at line 157
    The documentation for this struct was generated from the following file: -
    Generated on Sat Apr 2 19:27:05 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:52 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 b3cda59e4..178105df5 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 2 19:27:07 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structStrHashComp.html b/docs/module-doc/structStrHashComp.html index a62da9a43..16f2091dc 100644 --- a/docs/module-doc/structStrHashComp.html +++ b/docs/module-doc/structStrHashComp.html @@ -62,7 +62,7 @@ Definition at line 144
    The documentation for this struct was generated from the following file: -
    Generated on Sat Apr 2 19:27:07 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:54 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 f8be24ed2..b93619f7f 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 2 19:27:05 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:51 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 ff5618eed..9a03eba11 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 2 19:27:05 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:51 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 b07a9b88f..a8fc64f74 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 2 19:27:08 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:54 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 7be1fb4b0..76fba1003 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 117
    The documentation for this struct was generated from the following file: -
    Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:54 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 4e32e0f61..cb5db4820 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 2 19:27:08 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:54 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 09bfece49..bcbf0d2c1 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 130
    The documentation for this struct was generated from the following file: -
    Generated on Sat Apr 2 19:27:08 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/tree.html b/docs/module-doc/tree.html index f9a0859d1..b95f5848c 100644 --- a/docs/module-doc/tree.html +++ b/docs/module-doc/tree.html @@ -142,6 +142,7 @@

    |o*connection

    |o*DNS

    |o*dns_ip4list

    +

    |o*ELine

    |o*ExemptItem

    |o*Extensible

    |o*ExtMode

    @@ -205,6 +206,7 @@

    ||o*Version

    ||\+XLine

    +

    || o*ELine

    || o*GLine

    || o*KLine

    || o*QLine

    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 9fdea3e20..fb42722e2 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -169,7 +169,7 @@ 00162 } 00163 00164 -

    Generated on Sat Apr 2 19:27:01 2005 for InspIRCd by +

    Generated on Mon Apr 4 18:12:48 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 1c2f6b03d..33f785662 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -44,7 +44,7 @@ Definition at line 24 of file users.cpp. -
    Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:49 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 92d23f111..3cf8bf716 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -122,7 +122,7 @@ 00200 00201 00202 #endif -

    Generated on Sat Apr 2 19:27:01 2005 for InspIRCd by +

    Generated on Mon Apr 4 18:12:48 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 ca1f80611..19d6f7743 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -243,7 +243,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line 75 of file users.h. -
    Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:50 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 98797f21c..14c8d74da 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -64,58 +64,66 @@ 00079 char hostmask[MAXBUF]; 00080 }; 00081 -00084 class ZLine : public XLine -00085 { -00086 public: -00090 char ipaddr[MAXBUF]; -00094 bool is_global; -00095 }; -00096 -00099 class QLine : public XLine -00100 { -00101 public: -00105 char nick[MAXBUF]; -00109 bool is_global; -00110 }; -00111 -00112 void read_xline_defaults(); -00113 -00114 void add_gline(long duration, char* source, char* reason, char* hostmask); -00115 void add_qline(long duration, char* source, char* reason, char* nickname); -00116 void add_zline(long duration, char* source, char* reason, char* ipaddr); -00117 void add_kline(long duration, char* source, char* reason, char* hostmask); -00118 -00119 bool del_gline(char* hostmask); -00120 bool del_qline(char* nickname); -00121 bool del_zline(char* ipaddr); -00122 bool del_kline(char* hostmask); -00123 -00124 char* matches_qline(const char* nick); -00125 char* matches_gline(const char* host); -00126 char* matches_zline(const char* ipaddr); -00127 char* matches_kline(const char* host); +00082 class ELine : public XLine +00083 { +00084 public: +00088 char hostmask[MAXBUF]; +00089 }; +00090 +00093 class ZLine : public XLine +00094 { +00095 public: +00099 char ipaddr[MAXBUF]; +00103 bool is_global; +00104 }; +00105 +00108 class QLine : public XLine +00109 { +00110 public: +00114 char nick[MAXBUF]; +00118 bool is_global; +00119 }; +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); 00128 -00129 void expire_lines(); -00130 void apply_lines(); -00131 -00132 void stats_k(userrec* user); -00133 void stats_g(userrec* user); -00134 void stats_q(userrec* user); -00135 void stats_z(userrec* user); -00136 -00137 void gline_set_creation_time(char* host, time_t create_time); -00138 void qline_set_creation_time(char* nick, time_t create_time); -00139 void zline_set_creation_time(char* ip, time_t create_time); +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); +00134 +00135 char* matches_qline(const char* nick); +00136 char* matches_gline(const char* host); +00137 char* matches_zline(const char* ipaddr); +00138 char* matches_kline(const char* host); +00139 char* matches_exception(const char* host); 00140 -00141 bool zline_make_global(char* ipaddr); -00142 bool qline_make_global(char* nickname); +00141 void expire_lines(); +00142 void apply_lines(); 00143 -00144 void sync_xlines(serverrec* serv, char* tcp_host); -00145 -00146 #endif -00147 -00148 -

    Generated on Sat Apr 2 19:27:02 2005 for InspIRCd by +00144 void stats_k(userrec* user); +00145 void stats_g(userrec* user); +00146 void stats_q(userrec* user); +00147 void stats_z(userrec* user); +00148 void stats_e(userrec* user); +00149 +00150 void gline_set_creation_time(char* host, time_t create_time); +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); +00156 +00157 void sync_xlines(serverrec* serv, char* tcp_host); +00158 +00159 #endif +

    Generated on Mon Apr 4 18:12:48 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 f9e922106..b14c53e16 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -18,6 +18,8 @@ Go to the source code of this file. + + @@ -44,48 +46,106 @@ - + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +

    Compounds

    class  ELine
    class  GLine
     GLine class. More...

    void add_kline (long duration, char *source, char *reason, char *hostmask)
    bool del_gline (char *hostmask)
    void add_eline (long duration, char *source, char *reason, char *hostmask)
    bool del_gline (char *hostmask)
    bool del_qline (char *nickname)
    bool del_zline (char *ipaddr)
    bool del_kline (char *hostmask)
    bool del_qline (char *nickname)
    bool del_eline (char *hostmask)
    bool del_zline (char *ipaddr)
    char * matches_qline (const char *nick)
    bool del_kline (char *hostmask)
    char * matches_gline (const char *host)
    char * matches_qline (const char *nick)
    char * matches_zline (const char *ipaddr)
    char * matches_gline (const char *host)
    char * matches_kline (const char *host)
    char * matches_zline (const char *ipaddr)
    char * matches_exception (const char *host)
    char * matches_kline (const char *host)
    void expire_lines ()
    void expire_lines ()
    void apply_lines ()
    void apply_lines ()
    void stats_k (userrec *user)
    void stats_k (userrec *user)
    void stats_g (userrec *user)
    void stats_g (userrec *user)
    void stats_q (userrec *user)
    void stats_q (userrec *user)
    void stats_z (userrec *user)
    void stats_z (userrec *user)
    void stats_e (userrec *user)
    void gline_set_creation_time (char *host, time_t create_time)
    void gline_set_creation_time (char *host, time_t create_time)
    void qline_set_creation_time (char *nick, time_t create_time)
    void qline_set_creation_time (char *nick, time_t create_time)
    void zline_set_creation_time (char *ip, time_t create_time)
    void zline_set_creation_time (char *ip, time_t create_time)
    bool zline_make_global (char *ipaddr)
    bool zline_make_global (char *ipaddr)
    bool qline_make_global (char *nickname)
    bool qline_make_global (char *nickname)
    void sync_xlines (serverrec *serv, char *tcp_host)
    void sync_xlines (serverrec *serv, char *tcp_host)

    Function Documentation

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void add_eline long  duration,
    char *  source,
    char *  reason,
    char *  hostmask
    +
    + + + + + +
    +   + + +

    +

    @@ -286,7 +346,7 @@
    -

    +

    @@ -314,7 +374,36 @@
    -

    +

    + + + + +
    + + + + + + + + + + +
    bool del_eline char *  hostmask  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    @@ -343,7 +432,7 @@
    -

    +

    @@ -372,7 +461,7 @@
    -

    +

    @@ -401,7 +490,7 @@
    -

    +

    @@ -430,7 +519,7 @@
    -

    +

    @@ -458,7 +547,7 @@
    -

    +

    @@ -496,7 +585,36 @@
    -

    +

    + + + + +
    + + + + + + + + + + +
    char* matches_exception const char *  host  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    @@ -525,7 +643,7 @@
    -

    +

    @@ -554,7 +672,7 @@
    -

    +

    @@ -583,7 +701,7 @@
    -

    +

    @@ -612,7 +730,7 @@
    -

    +

    @@ -641,7 +759,7 @@
    -

    +

    @@ -707,7 +825,36 @@
    -

    +

    + + + + +
    + + + + + + + + + + +
    void stats_e userrec user  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    @@ -736,7 +883,7 @@
    -

    +

    @@ -765,7 +912,7 @@
    -

    +

    @@ -794,7 +941,7 @@
    -

    +

    @@ -823,7 +970,7 @@
    -

    +

    @@ -861,7 +1008,7 @@
    -

    +

    @@ -890,7 +1037,7 @@
    -

    +

    @@ -928,7 +1075,7 @@
    -


    Generated on Sat Apr 2 19:27:03 2005 for InspIRCd by +
    Generated on Mon Apr 4 18:12:50 2005 for InspIRCd by doxygen 1.3.3
    -- cgit v1.2.3