From 3f4b15c2cfe51a654b5167273f5a95b29e757cf1 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 14 Apr 2005 21:13:24 +0000 Subject: New documentation on today's new methods etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1096 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/annotated.html | 2 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/channels_8cpp-source.html | 2 +- docs/module-doc/channels_8cpp.html | 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 | 2 +- docs/module-doc/classELine.html | 2 +- docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 2 +- docs/module-doc/classExtMode-members.html | 2 +- docs/module-doc/classExtMode.html | 2 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 2 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 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 | 39 +- docs/module-doc/classModule.html | 356 +++++++-- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 12 +- docs/module-doc/classQLine-members.html | 2 +- docs/module-doc/classQLine.html | 2 +- docs/module-doc/classServer-members.html | 3 +- docs/module-doc/classServer.html | 623 ++++++++------- docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 2 +- docs/module-doc/classXLine-members.html | 2 +- docs/module-doc/classXLine.html | 2 +- docs/module-doc/classZLine-members.html | 2 +- docs/module-doc/classZLine.html | 2 +- docs/module-doc/classchanrec-members.html | 2 +- docs/module-doc/classchanrec.html | 12 +- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 2 +- docs/module-doc/classcommand__t-members.html | 2 +- docs/module-doc/classcommand__t.html | 2 +- docs/module-doc/classconnection-members.html | 2 +- docs/module-doc/classconnection.html | 6 +- docs/module-doc/classes.html | 2 +- docs/module-doc/classircd__connector-members.html | 2 +- docs/module-doc/classircd__connector.html | 2 +- docs/module-doc/classpacket-members.html | 2 +- docs/module-doc/classpacket.html | 2 +- docs/module-doc/classserverrec-members.html | 2 +- docs/module-doc/classserverrec.html | 2 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 4 +- docs/module-doc/classuserrec-members.html | 2 +- docs/module-doc/classuserrec.html | 8 +- docs/module-doc/commands_8h-source.html | 2 +- docs/module-doc/commands_8h.html | 6 +- 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 | 62 +- docs/module-doc/functions_func.html | 50 +- docs/module-doc/functions_vars.html | 2 +- docs/module-doc/globals.html | 2 +- docs/module-doc/globals_defs.html | 2 +- docs/module-doc/globals_func.html | 2 +- docs/module-doc/globals_type.html | 2 +- docs/module-doc/globals_vars.html | 2 +- docs/module-doc/hierarchy.html | 2 +- docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 2 +- docs/module-doc/message_8h.html | 16 +- docs/module-doc/mode_8h-source.html | 2 +- docs/module-doc/mode_8h.html | 2 +- docs/module-doc/modules_8cpp-source.html | 889 +++++++++++---------- docs/module-doc/modules_8cpp.html | 10 +- docs/module-doc/modules_8h-source.html | 365 ++++----- docs/module-doc/modules_8h.html | 38 +- docs/module-doc/namespacenspace.html | 2 +- docs/module-doc/namespaces.html | 2 +- docs/module-doc/namespacestd.html | 2 +- docs/module-doc/servers_8cpp-source.html | 2 +- docs/module-doc/servers_8cpp.html | 2 +- docs/module-doc/servers_8h-source.html | 2 +- docs/module-doc/servers_8h.html | 2 +- .../module-doc/structInAddr__HashComp-members.html | 2 +- docs/module-doc/structInAddr__HashComp.html | 2 +- docs/module-doc/structStrHashComp-members.html | 2 +- docs/module-doc/structStrHashComp.html | 2 +- docs/module-doc/structdns__ip4list-members.html | 2 +- docs/module-doc/structdns__ip4list.html | 2 +- ..._1nspace_1_1hash_3_01in__addr_01_4-members.html | 2 +- ...nspace_1_1nspace_1_1hash_3_01in__addr_01_4.html | 2 +- ..._1_1nspace_1_1hash_3_01string_01_4-members.html | 2 +- ...ctnspace_1_1nspace_1_1hash_3_01string_01_4.html | 2 +- docs/module-doc/users_8cpp-source.html | 2 +- docs/module-doc/users_8cpp.html | 2 +- docs/module-doc/users_8h-source.html | 2 +- docs/module-doc/users_8h.html | 2 +- docs/module-doc/xline_8h-source.html | 2 +- docs/module-doc/xline_8h.html | 22 +- 122 files changed, 1763 insertions(+), 1380 deletions(-) (limited to 'docs/module-doc') diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 063ba905d..7f013c9a5 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -44,7 +44,7 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Wed Apr 13 13:06:59 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:07 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 d74fe850b..3dee6c172 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -55,7 +55,7 @@ 00079 00080 #endif 00081 -
Generated on Wed Apr 13 13:06:51 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:04 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 2b801d16a..7591aa4ec 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -49,7 +49,7 @@ Definition at line 25 of file base.h. -
Generated on Wed Apr 13 13:06:55 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:05 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 feec5850b..ddf1b9260 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -204,7 +204,7 @@ 00197 } 00198 return std::string(""); 00199 } -
Generated on Wed Apr 13 13:06:51 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:04 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 02b46ae0a..da7d18977 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -631,7 +631,7 @@ Definition at line 103

-Definition at line 872 of file modules.cpp. +Definition at line 905 of file modules.cpp.

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


Generated on Wed Apr 13 13:06:56 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:05 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 a06c53542..f96275870 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 Wed Apr 13 13:06:51 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:04 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 61e8e1065..2fe9a34f4 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 Wed Apr 13 13:06:56 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:06 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 ec44fe4b4..e2db61c78 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -13,7 +13,7 @@ NameAdmin NickAdmin ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:00 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:07 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 9207c24c3..89a744fc6 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -157,7 +157,7 @@ Definition at line 126 of
The documentation for this class was generated from the following files: -
Generated on Wed Apr 13 13:07:00 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:07 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 9d10e7e0c..6f15ca75d 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Wed Apr 13 13:07:00 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:07 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 7fe70ef2e..bf26a509c 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -22,7 +22,7 @@ A subclass of HostItem designed to h

Definition at line 45 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:00 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:07 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 093439ed2..41df03056 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -24,7 +24,7 @@ Verify()ConfigReader ~classbase()classbase [inline] ~ConfigReader()ConfigReader -
Generated on Wed Apr 13 13:07:02 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 1e81811f5..0b29b92b3 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 790 of file modules.h.


Constructor & Destructor Documentation

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

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

-

00676 {
-00677         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00678         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00679         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
-00680         if (!this->readerror)
-00681                 this->error = CONF_FILE_NOT_FOUND;
-00682 }
+
00709 {
+00710         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00711         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00712         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
+00713         if (!this->readerror)
+00714                 this->error = CONF_FILE_NOT_FOUND;
+00715 }
 
@@ -141,17 +141,17 @@ Overloaded constructor.

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

-Definition at line 694 of file modules.cpp. +Definition at line 727 of file modules.cpp.

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

-

00695 {
-00696         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00697         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00698         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
-00699         if (!this->readerror)
-00700                 this->error = CONF_FILE_NOT_FOUND;
-00701 };
+
00728 {
+00729         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00730         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00731         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
+00732         if (!this->readerror)
+00733                 this->error = CONF_FILE_NOT_FOUND;
+00734 };
 
@@ -184,16 +184,16 @@ Default destructor.

This method destroys the ConfigReader class.

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

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

-

00686 {
-00687         if (this->cache)
-00688                 delete this->cache;
-00689         if (this->errorlog)
-00690                 delete this->errorlog;
-00691 }
+
00719 {
+00720         if (this->cache)
+00721                 delete this->cache;
+00722         if (this->errorlog)
+00723                 delete this->errorlog;
+00724 }
 
@@ -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 772 of file modules.cpp. -

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

-

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

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

+

00806 {
+00807         if (bail)
+00808         {
+00809                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
+00810                 exit(0);
+00811         }
+00812         else
+00813         {
+00814                 char dataline[1024];
+00815                 if (user)
+00816                 {
+00817                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
+00818                         while (!errorlog->eof())
+00819                         {
+00820                                 errorlog->getline(dataline,1024);
+00821                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
+00822                         }
+00823                 }
+00824                 else
+00825                 {
+00826                         WriteOpers("There were errors in the configuration file:",user->nick);
+00827                         while (!errorlog->eof())
+00828                         {
+00829                                 errorlog->getline(dataline,1024);
+00830                                 WriteOpers(dataline);
+00831                         }
+00832                 }
+00833                 return;
+00834         }
+00835 }
 
@@ -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 805 of file modules.cpp. +Definition at line 838 of file modules.cpp.

-References cache. +References cache.

-

00806 {
-00807         return EnumConf(cache,tag.c_str());
-00808 }
+
00839 {
+00840         return EnumConf(cache,tag.c_str());
+00841 }
 
@@ -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 810 of file modules.cpp. +Definition at line 843 of file modules.cpp.

-References cache. +References cache.

-

00811 {
-00812         return EnumValues(cache, tag.c_str(), index);
-00813 }
+
00844 {
+00845         return EnumValues(cache, tag.c_str(), index);
+00846 }
 
@@ -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 765 of file modules.cpp. +Definition at line 798 of file modules.cpp.

-References error. +References error.

-

00766 {
-00767         long olderr = this->error;
-00768         this->error = 0;
-00769         return olderr;
-00770 }
+
00799 {
+00800         long olderr = this->error;
+00801         this->error = 0;
+00802         return olderr;
+00803 }
 
@@ -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 719 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

00720 {
-00721         char val[MAXBUF];
-00722         char t[MAXBUF];
-00723         char n[MAXBUF];
-00724         strlcpy(t,tag.c_str(),MAXBUF);
-00725         strlcpy(n,name.c_str(),MAXBUF);
-00726         int res = ReadConf(cache,t,n,index,val);
-00727         if (!res)
-00728         {
-00729                 this->error = CONF_VALUE_NOT_FOUND;
-00730                 return false;
-00731         }
-00732         std::string s = val;
-00733         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
-00734 }
+Definition at line 752 of file modules.cpp.
+

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

00753 {
+00754         char val[MAXBUF];
+00755         char t[MAXBUF];
+00756         char n[MAXBUF];
+00757         strlcpy(t,tag.c_str(),MAXBUF);
+00758         strlcpy(n,name.c_str(),MAXBUF);
+00759         int res = ReadConf(cache,t,n,index,val);
+00760         if (!res)
+00761         {
+00762                 this->error = CONF_VALUE_NOT_FOUND;
+00763                 return false;
+00764         }
+00765         std::string s = val;
+00766         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
+00767 }
 
@@ -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 736 of file modules.cpp. -

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

-

00737 {
-00738         char val[MAXBUF];
-00739         char t[MAXBUF];
-00740         char n[MAXBUF];
-00741         strlcpy(t,tag.c_str(),MAXBUF);
-00742         strlcpy(n,name.c_str(),MAXBUF);
-00743         int res = ReadConf(cache,t,n,index,val);
-00744         if (!res)
-00745         {
-00746                 this->error = CONF_VALUE_NOT_FOUND;
-00747                 return 0;
-00748         }
-00749         for (int i = 0; i < strlen(val); i++)
-00750         {
-00751                 if (!isdigit(val[i]))
-00752                 {
-00753                         this->error = CONF_NOT_A_NUMBER;
-00754                         return 0;
-00755                 }
-00756         }
-00757         if ((needs_unsigned) && (atoi(val)<0))
-00758         {
-00759                 this->error = CONF_NOT_UNSIGNED;
-00760                 return 0;
-00761         }
-00762         return atoi(val);
-00763 }
+Definition at line 769 of file modules.cpp.
+

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

+

00770 {
+00771         char val[MAXBUF];
+00772         char t[MAXBUF];
+00773         char n[MAXBUF];
+00774         strlcpy(t,tag.c_str(),MAXBUF);
+00775         strlcpy(n,name.c_str(),MAXBUF);
+00776         int res = ReadConf(cache,t,n,index,val);
+00777         if (!res)
+00778         {
+00779                 this->error = CONF_VALUE_NOT_FOUND;
+00780                 return 0;
+00781         }
+00782         for (int i = 0; i < strlen(val); i++)
+00783         {
+00784                 if (!isdigit(val[i]))
+00785                 {
+00786                         this->error = CONF_NOT_A_NUMBER;
+00787                         return 0;
+00788                 }
+00789         }
+00790         if ((needs_unsigned) && (atoi(val)<0))
+00791         {
+00792                 this->error = CONF_NOT_UNSIGNED;
+00793                 return 0;
+00794         }
+00795         return atoi(val);
+00796 }
 
@@ -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 703 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

00704 {
-00705         char val[MAXBUF];
-00706         char t[MAXBUF];
-00707         char n[MAXBUF];
-00708         strlcpy(t,tag.c_str(),MAXBUF);
-00709         strlcpy(n,name.c_str(),MAXBUF);
-00710         int res = ReadConf(cache,t,n,index,val);
-00711         if (!res)
-00712         {
-00713                 this->error = CONF_VALUE_NOT_FOUND;
-00714                 return "";
-00715         }
-00716         return std::string(val);
-00717 }
+Definition at line 736 of file modules.cpp.
+

+References cache, CONF_VALUE_NOT_FOUND, and error. +

+

00737 {
+00738         char val[MAXBUF];
+00739         char t[MAXBUF];
+00740         char n[MAXBUF];
+00741         strlcpy(t,tag.c_str(),MAXBUF);
+00742         strlcpy(n,name.c_str(),MAXBUF);
+00743         int res = ReadConf(cache,t,n,index,val);
+00744         if (!res)
+00745         {
+00746                 this->error = CONF_VALUE_NOT_FOUND;
+00747                 return "";
+00748         }
+00749         return std::string(val);
+00750 }
 
@@ -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 815 of file modules.cpp. +Definition at line 848 of file modules.cpp.

-References readerror. +References readerror.

-

00816 {
-00817         return this->readerror;
-00818 }
+
00849 {
+00850         return this->readerror;
+00851 }
 
@@ -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 798 of file modules.h. +Definition at line 843 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 803 of file modules.h. +Definition at line 848 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 799 of file modules.h. +Definition at line 844 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 802 of file modules.h. +Definition at line 847 of file modules.h.

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


The documentation for this class was generated from the following files: -
Generated on Wed Apr 13 13:07:02 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 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 67a6fc7eb..69f89b214 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -16,7 +16,7 @@ registration_timeoutConnectClass typeConnectClass ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:02 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index 22ced2f81..30f45a86b 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -253,7 +253,7 @@ Definition at line 50 of fi
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:02 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 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 c65070c21..77c7e1e72 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -34,7 +34,7 @@ SetNS(std::string dnsserver)DNS tDNS [private] ~DNS()DNS -
Generated on Wed Apr 13 13:07:03 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 5e989b3c1..d3ddffde0 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -916,7 +916,7 @@ Definition at line 40 of file
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:03 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index 115372b7a..f4e7e62cd 100644 --- a/docs/module-doc/classELine-members.html +++ b/docs/module-doc/classELine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index fb1f5e8d1..798b4de00 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -45,7 +45,7 @@ Definition at line 88 of fi
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 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 e9e633ed6..165293051 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index b82a0e5eb..1f6cdbbec 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -22,7 +22,7 @@ A subclass of HostItem designed to h

Definition at line 53 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 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 43f83c522..d1cc0a3f0 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -16,7 +16,7 @@ params_when_onExtMode typeExtMode ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index d21a80cf6..a33d73ee6 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -247,7 +247,7 @@ Referenced by ExtMode()
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 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 fb2a1aa55..61de1acf8 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -13,7 +13,7 @@ GetExt(std::string key)Extensible Shrink(std::string key)Extensible ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 8fcf2334e..581ccf2a9 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -170,7 +170,7 @@ Definition at line 54 of fil
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 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 983b773c8..92f2cb3ad 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -17,7 +17,7 @@ LoadFile(std::string filename)FileReader ~classbase()classbase [inline] ~FileReader()FileReader -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index d966d1e3a..355ce9f4e 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 879 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 924 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 828 of file modules.cpp. +Definition at line 861 of file modules.cpp.

-

00829 {
-00830 }
+
00862 {
+00863 }
 
@@ -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 821 of file modules.cpp. +Definition at line 854 of file modules.cpp.

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

-

00822 {
-00823         file_cache c;
-00824         readfile(c,filename.c_str());
-00825         this->fc = c;
-00826 }
+
00855 {
+00856         file_cache c;
+00857         readfile(c,filename.c_str());
+00858         this->fc = c;
+00859 }
 
@@ -155,10 +155,10 @@ Default destructor.

This deletes the memory allocated to the file.

-Definition at line 840 of file modules.cpp. +Definition at line 873 of file modules.cpp.

-

00841 {
-00842 }
+
00874 {
+00875 }
 
@@ -192,20 +192,20 @@ Returns true if the file exists This function will return false if the file coul

-Definition at line 844 of file modules.cpp. +Definition at line 877 of file modules.cpp.

-References fc. +References fc.

-

00845 {
-00846         if (fc.size() == 0)
-00847         {
-00848                 return(false);
-00849         }
-00850         else
-00851         {
-00852                 return(true);
-00853         }
-00854 }
+
00878 {
+00879         if (fc.size() == 0)
+00880         {
+00881                 return(false);
+00882         }
+00883         else
+00884         {
+00885                 return(true);
+00886         }
+00887 }
 
@@ -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 863 of file modules.cpp. +Definition at line 896 of file modules.cpp.

-References fc. +References fc.

-

00864 {
-00865         return fc.size();
-00866 }
+
00897 {
+00898         return fc.size();
+00899 }
 
@@ -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 856 of file modules.cpp. +Definition at line 889 of file modules.cpp.

-References fc. +References fc.

-

00857 {
-00858         if ((x<0) || (x>fc.size()))
-00859                 return "";
-00860         return fc[x];
-00861 }
+
00890 {
+00891         if ((x<0) || (x>fc.size()))
+00892                 return "";
+00893         return fc[x];
+00894 }
 
@@ -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 832 of file modules.cpp. +Definition at line 865 of file modules.cpp.

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

-

00833 {
-00834         file_cache c;
-00835         readfile(c,filename.c_str());
-00836         this->fc = c;
-00837 }
+
00866 {
+00867         file_cache c;
+00868         readfile(c,filename.c_str());
+00869         this->fc = c;
+00870 }
 
@@ -354,14 +354,14 @@ References fc, and

-Definition at line 881 of file modules.h. +Definition at line 926 of file modules.h.

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


The documentation for this class was generated from the following files: -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 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 972c24a0f..53595b093 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index f43a0cd3b..2043a3e24 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -53,7 +53,7 @@ Definition at line 79 of fi
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 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 680ce0eed..79b0a5408 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index ccd23eb8e..2bf9efed1 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -178,7 +178,7 @@ Definition at line 32 of
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 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 9df94a8df..4b99665ce 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 1e143532a..6503085d2 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -22,7 +22,7 @@ A subclass of HostItem designed to h

Definition at line 61 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 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 f1f46fa52..e566cd328 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -10,7 +10,7 @@ channelInvited classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 4db5c69c6..42ace6809 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -52,7 +52,7 @@ Referenced by userrec::Invite
The documentation for this class was generated from the following file:
-
Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 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 8cc7289bd..66f32b10c 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:05 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index 2f2388f53..d7d1aef42 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -53,7 +53,7 @@ Definition at line 68 of fi
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:05 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 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 041f4e35e..8f2fad505 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -12,7 +12,7 @@ modeModeParameter parameterModeParameter ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:05 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index eb42e3972..9e5d44f79 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 Wed Apr 13 13:07:05 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 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 ac84cbfa3..593d237e1 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -10,35 +10,40 @@ 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] - OnBackgroundTimer(time_t curtime)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] + OnBackgroundTimer(time_t curtime)Module [virtual] + OnChannelSync(chanrec *chan)Module [virtual] + OnCheckReady(userrec *user)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] - OnOper(userrec *user)Module [virtual] + OnInfo(userrec *user)Module [virtual] + OnKill(userrec *source, userrec *dest, std::string reason)Module [virtual] + OnLoadModule(Module *mod, std::string name)Module [virtual] + OnOper(userrec *user)Module [virtual] OnPacketReceive(std::string &data, std::string serv)Module [virtual] OnPacketTransmit(std::string &data, std::string serv)Module [virtual] + OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user)Module [virtual] OnRehash()Module [virtual] - OnSendList(userrec *user, chanrec *channel, char mode)Module [virtual] + OnSendList(userrec *user, chanrec *channel, char mode)Module [virtual] OnServerRaw(std::string &raw, bool inbound, userrec *user)Module [virtual] OnUserConnect(userrec *user)Module [virtual] OnUserJoin(userrec *user, chanrec *channel)Module [virtual] + OnUserKick(userrec *source, userrec *user, chanrec *chan, std::string reason)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] + 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] + OnUserPreKick(userrec *source, userrec *user, chanrec *chan, std::string reason)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] - OnWhois(userrec *source, userrec *dest)Module [virtual] + OnUserRegister(userrec *user)Module [virtual] + OnUserSync(userrec *user)Module [virtual] + OnWhois(userrec *source, userrec *dest)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Wed Apr 13 13:07:06 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:10 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index c861d87d2..d92491df6 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -54,54 +54,69 @@ Inherits classbase. virtual int OnUserPreJoin (userrec *user, chanrec *chan, const char *cname)  Called whenever a user is about to join a channel, before any processing is done.

-virtual void OnOper (userrec *user) +virtual int OnUserPreKick (userrec *source, userrec *user, chanrec *chan, std::string reason) - Called whenever a user opers locally.


-virtual void OnInfo (userrec *user) + Called whenever a user is about to be kicked.


+virtual void OnUserKick (userrec *source, userrec *user, chanrec *chan, std::string reason) - Called whenever a user types /INFO.


-virtual void OnWhois (userrec *source, userrec *dest) + Called whenever a user is kicked.


+virtual void OnOper (userrec *user) - Called whenever a /WHOIS is performed on a local user.


-virtual int OnUserPreInvite (userrec *source, userrec *dest, chanrec *channel) + Called whenever a user opers locally.


+virtual void OnInfo (userrec *user) - Called whenever a user is about to invite another user into a channel, before any processing is done.


-virtual int OnUserPreMessage (userrec *user, void *dest, int target_type, std::string &text) + Called whenever a user types /INFO.


+virtual void OnWhois (userrec *source, userrec *dest) - Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done.


-virtual int OnUserPreNotice (userrec *user, void *dest, int target_type, std::string &text) + Called whenever a /WHOIS is performed on a local user.


+virtual int OnUserPreInvite (userrec *source, userrec *dest, chanrec *channel) - Called whenever a user is about to NOTICE A user or a channel, before any processing is done.


-virtual int OnUserPreNick (userrec *user, std::string newnick) + Called whenever a user is about to invite another user into a channel, before any processing is done.


+virtual int OnUserPreMessage (userrec *user, void *dest, int target_type, std::string &text) - Called before any nickchange, local or remote.


-virtual void OnUserPostNick (userrec *user, std::string oldnick) + Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done.


+virtual int OnUserPreNotice (userrec *user, void *dest, int target_type, std::string &text) - Called after any nickchange, local or remote.


-virtual int OnAccessCheck (userrec *source, userrec *dest, chanrec *channel, int access_type) + Called whenever a user is about to NOTICE A user or a channel, before any processing is done.


+virtual int OnUserPreNick (userrec *user, std::string newnick) - Called before an action which requires a channel privilage check.


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


+virtual void OnUserPostNick (userrec *user, std::string oldnick) - Called during a netburst to sync user data.


-virtual string_list OnChannelSync (chanrec *chan) + 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 channel data.


-virtual void On005Numeric (std::string &output) + Called before an action which requires a channel privilage check.


+virtual string_list OnUserSync (userrec *user) - 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 user data.


+virtual string_list OnChannelSync (chanrec *chan) - Called when a client is disconnected by KILL.


-virtual void OnLoadModule (Module *mod, std::string name) + Called during a netburst to sync channel data.


+virtual void On005Numeric (std::string &output) - Called whenever a module is loaded.


-virtual void OnBackgroundTimer (time_t curtime) + Called when a 005 numeric is about to be output.


+virtual int OnKill (userrec *source, userrec *dest, std::string reason) - Called once every five seconds for background processing.


-virtual void OnSendList (userrec *user, chanrec *channel, char mode) + Called when a client is disconnected by KILL.


+virtual void OnLoadModule (Module *mod, std::string name) - Called whenever a list is needed for a listmode.


+ Called whenever a module is loaded.


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


+virtual void OnSendList (userrec *user, chanrec *channel, char mode) + + Called whenever a list is needed for a listmode.


+virtual int OnPreCommand (std::string command, char **parameters, int pcnt, userrec *user) + + Called whenever any command is about to be executed.


+virtual bool OnCheckReady (userrec *user) + + Called to check if a user who is connecting can now be allowed to register If any modules return false for this function, the user is held in the waiting state until all modules return true.


+virtual void OnUserRegister (userrec *user) + + Called whenever a user is about to register their connection (e.g.



Detailed Description

Base class for all InspIRCd modules This class is the base class for InspIRCd modules. @@ -219,7 +234,7 @@ References VF_VENDOR.
-

+

@@ -255,7 +270,7 @@ Definition at line 330
-

+

@@ -326,7 +341,7 @@ References ACR_DEFAULT.
-

+

@@ -362,7 +377,7 @@ Definition at line 333
-

+

@@ -400,6 +415,42 @@ References string_list.
+

+ + + + +
+ + + + + + + + + + +
bool Module::OnCheckReady userrec user  )  [virtual]
+
+ + + + + +
+   + + +

+Called to check if a user who is connecting can now be allowed to register If any modules return false for this function, the user is held in the waiting state until all modules return true. +

+For example a module which implements ident lookups will continue to return false for a user until their ident lookup is completed. Note that the registration timeout for a user overrides these checks, if the registration timeout is reached, the user is disconnected even if modules report that the user is not ready to connect. +

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

+

00336 { return true; };
+

@@ -469,7 +520,7 @@ Definition at line 317
-

+

@@ -506,7 +557,7 @@ Definition at line 320
-

+

@@ -557,7 +608,7 @@ Definition at line 331
-

+

@@ -602,7 +653,7 @@ Definition at line 332
-

+

@@ -728,6 +779,63 @@ Definition at line 312
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int Module::OnPreCommand std::string  command,
char **  parameters,
int  pcnt,
userrec user
[virtual]
+
+ + + + + +
+   + + +

+Called whenever any command is about to be executed. +

+This event occurs for all registered commands, wether they are registered in the core, or another module, but it will not occur for invalid commands (e.g. ones which do not exist within the command table). By returning 1 from this method you may prevent the command being executed. If you do this, no output is created by the core, and it is down to your module to produce any output neccessary. Note that unless you return 1, you should not destroy any structures (e.g. by using Server::QuitUser) otherwise when the command's handler function executes after your method returns, it will be passed an invalid pointer to the user object and crash!) +

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

+

00335 { return 0; };
+

@@ -763,7 +871,7 @@ Definition at line 314
-

+

@@ -946,6 +1054,63 @@ Definition at line 310
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void Module::OnUserKick userrec source,
userrec user,
chanrec chan,
std::string  reason
[virtual]
+
+ + + + + +
+   + + +

+Called whenever a user is kicked. +

+If this method is called, the kick is already underway and cannot be prevented, so to prevent a kick, please use Module::OnUserPreKick instead of this method. +

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

+

00339 { };
+

@@ -991,7 +1156,7 @@ Definition at line 311
-

+

@@ -1036,7 +1201,7 @@ Definition at line 326
-

+

@@ -1140,7 +1305,64 @@ Definition at line 316
-

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
int Module::OnUserPreKick userrec source,
userrec user,
chanrec chan,
std::string  reason
[virtual]
+
+ + + + + +
+   + + +

+Called whenever a user is about to be kicked. +

+Returning a value of 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. +

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

+

00338 { return 0; };
+
+

@@ -1197,7 +1419,7 @@ Definition at line 323
-

+

@@ -1242,7 +1464,7 @@ Definition at line 325
-

+

@@ -1335,7 +1557,43 @@ Definition at line 309
-

+

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

+Called whenever a user is about to register their connection (e.g. +

+before the user is sent the MOTD etc). Modules can use this method if they are performing a function which must be done before the actual connection is completed (e.g. ident lookups, dnsbl lookups, etc). Note that you should NOT delete the user record here by causing a disconnection! Use OnUserConnect for that instead. +

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

+

00337 { };
+
+

@@ -1373,7 +1631,7 @@ References string_list.
-

+

@@ -1420,7 +1678,7 @@ Definition at line 321


The documentation for this class was generated from the following files: -
Generated on Wed Apr 13 13:07:06 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:10 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 aeac803fd..d1256ba4e 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -12,7 +12,7 @@ ModuleFactory()ModuleFactory [inline] ~classbase()classbase [inline] ~ModuleFactory()ModuleFactory [inline, virtual] -
Generated on Wed Apr 13 13:07:07 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:10 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 7267d125c..40be137ac 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 934 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 979 of file modules.h.

Constructor & Destructor Documentation

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

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

-

00937 { }
+
00982 { }
 
@@ -91,9 +91,9 @@ Definition at line 937 of

-Definition at line 938 of file modules.h. +Definition at line 983 of file modules.h.

-

00938 { }
+
00983 { }
 
@@ -130,7 +130,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Wed Apr 13 13:07:07 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:10 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 018f91543..6a03308e6 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:07 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:10 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index 29091ab9b..086ff1795 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -82,7 +82,7 @@ Definition at line 114 of f
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:07 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:10 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 36ff9a776..78242dd4a 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -38,6 +38,7 @@ IsNick(std::string nick)Server [virtual] IsOnChannel(userrec *User, chanrec *Chan)Server [virtual] IsUlined(std::string server)Server [virtual] + IsValidMask(std::string mask)Server [virtual] JoinUserToChannel(userrec *user, std::string cname, std::string key)Server [virtual] Log(int level, std::string s)Server [virtual] MatchText(std::string sliteral, std::string spattern)Server [virtual] @@ -58,7 +59,7 @@ UserToPseudo(userrec *user, std::string message)Server [virtual] ~classbase()classbase [inline] ~Server()Server [virtual] -
Generated on Wed Apr 13 13:07:09 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:11 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index f3ce7e7ae..91f92e9e2 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -162,6 +162,9 @@ Inherits classbase. virtual long CalcDuration (std::string duration)  Calculates a duration This method will take a string containing a formatted duration (e.g.

+virtual bool IsValidMask (std::string mask) + + Returns true if a nick!ident string is correctly formatted, false if otherwise.



Detailed Description

Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers. @@ -170,7 +173,7 @@ All modules should instantiate at least one copy of this class, and use its memb

-Definition at line 395 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 437 of file modules.h.

Constructor & Destructor Documentation

@@ -200,10 +203,10 @@ Default constructor.

Creates a Server object.

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

-

00341 {
-00342 }
+
00346 {
+00347 }
 
@@ -236,10 +239,10 @@ Default destructor.

Destroys a Server object.

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

-

00345 {
-00346 }
+
00350 {
+00351 }
 
@@ -303,13 +306,13 @@ This allows modules to add extra commands into the command table. You must place typedef void (handlerfunc) (char**, int, userrec*); ... void handle_kill(char **parameters, int pcnt, userrec *user)

When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'. The source parameter is used for resource tracking, and should contain the name of your module (with file extension) e.g. "m_blarp.so". If you place the wrong identifier here, you can cause crashes if your module is unloaded.

-Definition at line 421 of file modules.cpp. +Definition at line 426 of file modules.cpp.

References createcommand().

-

00422 {
-00423         createcommand(cmd,f,flags,minparams,source);
-00424 }
+
00427 {
+00428         createcommand(cmd,f,flags,minparams,source);
+00429 }
 
@@ -364,13 +367,13 @@ Adds a E-line The E-line is enforced as soon as it is added.

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

-Definition at line 639 of file modules.cpp. +Definition at line 644 of file modules.cpp.

References add_eline(), and duration().

-

00640 {
-00641         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00642 }
+
00645 {
+00646         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00647 }
 
@@ -409,16 +412,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 566 of file modules.cpp. +Definition at line 571 of file modules.cpp.

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

-

00567 {
-00568         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
-00569         if (res)
-00570                 ModeMakeList(modechar);
-00571         return res;
-00572 }
+
00572 {
+00573         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
+00574         if (res)
+00575                 ModeMakeList(modechar);
+00576         return res;
+00577 }
 
@@ -479,28 +482,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 546 of file modules.cpp. +Definition at line 551 of file modules.cpp.

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

-

00547 {
-00548         if (type == MT_SERVER)
-00549         {
-00550                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
-00551                 return false;
-00552         }
-00553         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
+
00552 {
+00553         if (type == MT_SERVER)
 00554         {
-00555                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
+00555                 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
 00556                 return false;
 00557         }
-00558         if ((params_when_on>1) || (params_when_off>1))
+00558         if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
 00559         {
-00560                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
+00560                 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
 00561                 return false;
 00562         }
-00563         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
-00564 }
+00563         if ((params_when_on>1) || (params_when_off>1))
+00564         {
+00565                 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
+00566                 return false;
+00567         }
+00568         return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
+00569 }
 
@@ -555,13 +558,13 @@ Adds a G-line The G-line is propogated to all of the servers in the mesh and enf

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

-Definition at line 619 of file modules.cpp. +Definition at line 624 of file modules.cpp.

References add_gline(), and duration().

-

00620 {
-00621         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00622 }
+
00625 {
+00626         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00627 }
 
@@ -616,13 +619,13 @@ Adds a K-line The K-line is enforced as soon as it is added.

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

-Definition at line 634 of file modules.cpp. +Definition at line 639 of file modules.cpp.

References add_kline(), and duration().

-

00635 {
-00636         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00637 }
+
00640 {
+00641         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00642 }
 
@@ -677,13 +680,13 @@ Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enf

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

-Definition at line 624 of file modules.cpp. +Definition at line 629 of file modules.cpp.

References add_qline(), and duration().

-

00625 {
-00626         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
-00627 }
+
00630 {
+00631         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
+00632 }
 
@@ -738,13 +741,13 @@ Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enf

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

-Definition at line 629 of file modules.cpp. +Definition at line 634 of file modules.cpp.

References add_zline(), and duration().

-

00630 {
-00631         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
-00632 }
+
00635 {
+00636         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
+00637 }
 
@@ -778,13 +781,13 @@ Calculates a duration This method will take a string containing a formatted dura

"1w2d") and return its value as a total number of seconds. This is the same function used internally by /GLINE etc to set the ban times.

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

References duration().

-

00670 {
-00671         return duration(delta.c_str());
-00672 }
+
00675 {
+00676         return duration(delta.c_str());
+00677 }
 
@@ -840,11 +843,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 411 of file modules.cpp. +Definition at line 416 of file modules.cpp.

-

00412 {
-00413         call_handler(commandname.c_str(),parameters,pcnt,user);
-00414 }
+
00417 {
+00418         call_handler(commandname.c_str(),parameters,pcnt,user);
+00419 }
 
@@ -887,13 +890,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 499 of file modules.cpp. +Definition at line 504 of file modules.cpp.

References ChangeName().

-

00500 {
-00501         ChangeName(user,gecos.c_str());
-00502 }
+
00505 {
+00506         ChangeName(user,gecos.c_str());
+00507 }
 
@@ -936,13 +939,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 494 of file modules.cpp. +Definition at line 499 of file modules.cpp.

References ChangeDisplayedHost().

-

00495 {
-00496         ChangeDisplayedHost(user,host.c_str());
-00497 }
+
00500 {
+00501         ChangeDisplayedHost(user,host.c_str());
+00502 }
 
@@ -985,11 +988,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 395 of file modules.cpp. +Definition at line 400 of file modules.cpp.

-

00396 {
-00397         force_nickchange(user,nickname.c_str());
-00398 }
+
00401 {
+00402         force_nickchange(user,nickname.c_str());
+00403 }
 
@@ -1032,13 +1035,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 519 of file modules.cpp. +Definition at line 524 of file modules.cpp.

References cmode().

-

00520 {
-00521         return cmode(User,Chan);
-00522 }
+
00525 {
+00526         return cmode(User,Chan);
+00527 }
 
@@ -1081,13 +1084,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 472 of file modules.cpp. +Definition at line 477 of file modules.cpp.

References common_channels().

-

00473 {
-00474         return (common_channels(u1,u2) != 0);
-00475 }
+
00478 {
+00479         return (common_channels(u1,u2) != 0);
+00480 }
 
@@ -1121,11 +1124,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 574 of file modules.cpp. +Definition at line 579 of file modules.cpp.

-

00575 {
-00576         return usercount(c);
-00577 }
+
00580 {
+00581         return usercount(c);
+00582 }
 
@@ -1159,13 +1162,13 @@ Deletes a local E-Line.

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

References del_eline().

-

00665 {
-00666         del_eline(hostmask.c_str());
-00667 }
+
00670 {
+00671         del_eline(hostmask.c_str());
+00672 }
 
@@ -1199,13 +1202,13 @@ Deletes a G-Line from all servers on the mesh.

-Definition at line 644 of file modules.cpp. +Definition at line 649 of file modules.cpp.

References del_gline().

-

00645 {
-00646         del_gline(hostmask.c_str());
-00647 }
+
00650 {
+00651         del_gline(hostmask.c_str());
+00652 }
 
@@ -1239,13 +1242,13 @@ Deletes a local K-Line.

-Definition at line 659 of file modules.cpp. +Definition at line 664 of file modules.cpp.

References del_kline().

-

00660 {
-00661         del_kline(hostmask.c_str());
-00662 }
+
00665 {
+00666         del_kline(hostmask.c_str());
+00667 }
 
@@ -1279,13 +1282,13 @@ Deletes a Q-Line from all servers on the mesh.

-Definition at line 649 of file modules.cpp. +Definition at line 654 of file modules.cpp.

References del_qline().

-

00650 {
-00651         del_qline(nickname.c_str());
-00652 }
+
00655 {
+00656         del_qline(nickname.c_str());
+00657 }
 
@@ -1319,13 +1322,13 @@ Deletes a Z-Line from all servers on the mesh.

-Definition at line 654 of file modules.cpp. +Definition at line 659 of file modules.cpp.

References del_zline().

-

00655 {
-00656         del_zline(ipaddr.c_str());
-00657 }
+
00660 {
+00661         del_zline(ipaddr.c_str());
+00662 }
 
@@ -1359,11 +1362,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 514 of file modules.cpp. +Definition at line 519 of file modules.cpp.

-

00515 {
-00516         return FindChan(channel.c_str());
-00517 }
+
00520 {
+00521         return FindChan(channel.c_str());
+00522 }
 
@@ -1397,11 +1400,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 509 of file modules.cpp. +Definition at line 514 of file modules.cpp.

-

00510 {
-00511         return Find(nick);
-00512 }
+
00515 {
+00516         return Find(nick);
+00517 }
 
@@ -1434,11 +1437,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 539 of file modules.cpp. +Definition at line 544 of file modules.cpp.

-

00540 {
-00541         return Admin(getadminname(),getadminemail(),getadminnick());
-00542 }
+
00545 {
+00546         return Admin(getadminname(),getadminemail(),getadminnick());
+00547 }
 
@@ -1471,11 +1474,11 @@ Returns the network name, global to all linked servers.

-Definition at line 534 of file modules.cpp. +Definition at line 539 of file modules.cpp.

-

00535 {
-00536         return getnetworkname();
-00537 }
+
00540 {
+00541         return getnetworkname();
+00542 }
 
@@ -1508,11 +1511,11 @@ Returns the server name of the server where the module is loaded.

-Definition at line 529 of file modules.cpp. +Definition at line 534 of file modules.cpp.

-

00530 {
-00531         return getservername();
-00532 }
+
00535 {
+00536         return getservername();
+00537 }
 
@@ -1546,28 +1549,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 376 of file modules.cpp. +Definition at line 381 of file modules.cpp.

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

-

00377 {
-00378         chanuserlist userl;
-00379         userl.clear();
-00380         for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
-00381         {
-00382                 if (i->second)
-00383                 {
-00384                         if (has_channel(i->second,chan))
-00385                         {
-00386                                 if (isnick(i->second->nick))
-00387                                 {
-00388                                         userl.push_back(i->second);
-00389                                 }
-00390                         }
-00391                 }
-00392         }
-00393         return userl;
-00394 }
+
00382 {
+00383         chanuserlist userl;
+00384         userl.clear();
+00385         for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
+00386         {
+00387                 if (i->second)
+00388                 {
+00389                         if (has_channel(i->second,chan))
+00390                         {
+00391                                 if (isnick(i->second->nick))
+00392                                 {
+00393                                         userl.push_back(i->second);
+00394                                 }
+00395                         }
+00396                 }
+00397         }
+00398         return userl;
+00399 }
 
@@ -1601,13 +1604,13 @@ Returns true if a nick is valid.

Nicks for unregistered connections will return false.

-Definition at line 504 of file modules.cpp. +Definition at line 509 of file modules.cpp.

References isnick().

-

00505 {
-00506         return (isnick(nick.c_str()) != 0);
-00507 }
+
00510 {
+00511         return (isnick(nick.c_str()) != 0);
+00512 }
 
@@ -1650,13 +1653,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 524 of file modules.cpp. +Definition at line 529 of file modules.cpp.

References has_channel().

-

00525 {
-00526         return has_channel(User,Chan);
-00527 }
+
00530 {
+00531         return has_channel(User,Chan);
+00532 }
 
@@ -1690,13 +1693,75 @@ 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 406 of file modules.cpp. +Definition at line 411 of file modules.cpp.

References is_uline().

-

00407 {
-00408         return is_uline(server.c_str());
-00409 }
+
00412 {
+00413         return is_uline(server.c_str());
+00414 }
+
+ + +

+ + + + +
+ + + + + + + + + + +
bool Server::IsValidMask std::string  mask  )  [virtual]
+
+ + + +
+   + + +

+Returns true if a nick!ident string is correctly formatted, false if otherwise. +

+ +

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

+

00680 {
+00681         const char* dest = mask.c_str();
+00682         if (strchr(dest,'!')==0)
+00683                 return false;
+00684         if (strchr(dest,'@')==0)
+00685                 return false;
+00686         for (int i = 0; i < strlen(dest); i++)
+00687                 if (dest[i] < 32)
+00688                         return false;
+00689         for (int i = 0; i < strlen(dest); i++)
+00690                 if (dest[i] > 126)
+00691                         return false;
+00692         int c = 0;
+00693         for (int i = 0; i < strlen(dest); i++)
+00694                 if (dest[i] == '!')
+00695                         c++;
+00696         if (c>1)
+00697                 return false;
+00698         c = 0;
+00699         for (int i = 0; i < strlen(dest); i++)
+00700                 if (dest[i] == '@')
+00701                         c++;
+00702         if (c>1)
+00703                 return false;
+00704 
+00705         return true;
+00706 }
 
@@ -1745,11 +1810,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 366 of file modules.cpp. +Definition at line 371 of file modules.cpp.

-

00367 {
-00368         return add_channel(user,cname.c_str(),key.c_str(),true);
-00369 }
+
00372 {
+00373         return add_channel(user,cname.c_str(),key.c_str(),true);
+00374 }
 
@@ -1792,11 +1857,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 416 of file modules.cpp. +Definition at line 421 of file modules.cpp.

-

00417 {
-00418         log(level,"%s",s.c_str());
-00419 }
+
00422 {
+00423         log(level,"%s",s.c_str());
+00424 }
 
@@ -1839,14 +1904,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 353 of file modules.cpp. +Definition at line 358 of file modules.cpp.

-

00354 {
-00355         char literal[MAXBUF],pattern[MAXBUF];
-00356         strlcpy(literal,sliteral.c_str(),MAXBUF);
-00357         strlcpy(pattern,spattern.c_str(),MAXBUF);
-00358         return match(literal,pattern);
-00359 }
+
00359 {
+00360         char literal[MAXBUF],pattern[MAXBUF];
+00361         strlcpy(literal,sliteral.c_str(),MAXBUF);
+00362         strlcpy(pattern,spattern.c_str(),MAXBUF);
+00363         return match(literal,pattern);
+00364 }
 
@@ -1895,11 +1960,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 371 of file modules.cpp. +Definition at line 376 of file modules.cpp.

-

00372 {
-00373         return del_channel(user,cname.c_str(),reason.c_str(),false);
-00374 }
+
00377 {
+00378         return del_channel(user,cname.c_str(),reason.c_str(),false);
+00379 }
 
@@ -1948,38 +2013,38 @@ This user takes one user, and switches their file descriptor with another user,

The user in 'alive' is booted off the server with the given message. The user referred to by 'zombie' should have previously been locked with Server::ZombifyUser, otherwise stale sockets and file descriptor leaks can occur. After this call, the pointer to alive will be invalid, and the pointer to zombie will be equivalent in effect to the old pointer to alive.

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

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

-

00590 {
-00591         zombie->fd = alive->fd;
-00592         alive->fd = FD_MAGIC_NUMBER;
-00593         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
-00594         kill_link(alive,message.c_str());
-00595         for (int i = 0; i != MAXCHANS; i++)
-00596         {
-00597                 if (zombie->chans[i].channel != NULL)
-00598                 {
-00599                         if (zombie->chans[i].channel->name)
-00600                         {
-00601                                 chanrec* Ptr = zombie->chans[i].channel;
-00602                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
-00603                                 if (Ptr->topicset)
-00604                                 {
-00605                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
-00606                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
-00607                                 }
-00608                                 userlist(zombie,Ptr);
-00609                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
-00610                                 WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr));
-00611                                 WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created);
-00612 
-00613                         }
-00614                 }
-00615         }
-00616 
-00617 }
+
00595 {
+00596         zombie->fd = alive->fd;
+00597         alive->fd = FD_MAGIC_NUMBER;
+00598         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
+00599         kill_link(alive,message.c_str());
+00600         for (int i = 0; i != MAXCHANS; i++)
+00601         {
+00602                 if (zombie->chans[i].channel != NULL)
+00603                 {
+00604                         if (zombie->chans[i].channel->name)
+00605                         {
+00606                                 chanrec* Ptr = zombie->chans[i].channel;
+00607                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
+00608                                 if (Ptr->topicset)
+00609                                 {
+00610                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
+00611                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
+00612                                 }
+00613                                 userlist(zombie,Ptr);
+00614                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
+00615                                 WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr));
+00616                                 WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created);
+00617 
+00618                         }
+00619                 }
+00620         }
+00621 
+00622 }
 
@@ -2024,14 +2089,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 400 of file modules.cpp. +Definition at line 405 of file modules.cpp.

References userrec::nick, and send_network_quit().

-

00401 {
-00402         send_network_quit(user->nick,reason.c_str());
-00403         kill_link(user,reason.c_str());
-00404 }
+
00406 {
+00407         send_network_quit(user->nick,reason.c_str());
+00408         kill_link(user,reason.c_str());
+00409 }
 
@@ -2074,11 +2139,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 431 of file modules.cpp. +Definition at line 436 of file modules.cpp.

-

00432 {
-00433         Write(Socket,"%s",s.c_str());
-00434 }
+
00437 {
+00438         Write(Socket,"%s",s.c_str());
+00439 }
 
@@ -2133,18 +2198,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 460 of file modules.cpp. -

-

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

+

00466 {
+00467         if (IncludeSender)
+00468         {
+00469                 WriteChannel(Channel,User,"%s",s.c_str());
+00470         }
+00471         else
+00472         {
+00473                 ChanExceptSender(Channel,User,"%s",s.c_str());
+00474         }
+00475 }
 
@@ -2193,18 +2258,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 477 of file modules.cpp. -

-

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

+

00483 {
+00484         if (IncludeSender)
+00485         {
+00486                 WriteCommon(User,"%s",text.c_str());
+00487         }
+00488         else
+00489         {
+00490                 WriteCommonExcept(User,"%s",text.c_str());
+00491         }
+00492 }
 
@@ -2253,11 +2318,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 441 of file modules.cpp. +Definition at line 446 of file modules.cpp.

-

00442 {
-00443         WriteFrom(Socket,User,"%s",s.c_str());
-00444 }
+
00447 {
+00448         WriteFrom(Socket,User,"%s",s.c_str());
+00449 }
 
@@ -2313,13 +2378,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 426 of file modules.cpp. +Definition at line 431 of file modules.cpp.

References server_mode().

-

00427 {
-00428         server_mode(parameters,pcnt,user);
-00429 }
+
00432 {
+00433         server_mode(parameters,pcnt,user);
+00434 }
 
@@ -2353,11 +2418,11 @@ Sends text to all opers.

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

-Definition at line 348 of file modules.cpp. +Definition at line 353 of file modules.cpp.

-

00349 {
-00350         WriteOpers("%s",s.c_str());
-00351 }
+
00354 {
+00355         WriteOpers("%s",s.c_str());
+00356 }
 
@@ -2400,11 +2465,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 436 of file modules.cpp. +Definition at line 441 of file modules.cpp.

-

00437 {
-00438         WriteServ(Socket,"%s",s.c_str());
-00439 }
+
00442 {
+00443         WriteServ(Socket,"%s",s.c_str());
+00444 }
 
@@ -2457,22 +2522,22 @@ The format will become:

:localserver TEXT

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

-Definition at line 446 of file modules.cpp. +Definition at line 451 of file modules.cpp.

References connection::fd.

-

00447 {
-00448         if (!Source)
-00449         {
-00450                 // if source is NULL, then the message originates from the local server
-00451                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
-00452         }
-00453         else
+
00452 {
+00453         if (!Source)
 00454         {
-00455                 // otherwise it comes from the user specified
-00456                 WriteTo(Source,Dest,"%s",s.c_str());
+00455                 // if source is NULL, then the message originates from the local server
+00456                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
 00457         }
-00458 }
+00458         else
+00459         {
+00460                 // otherwise it comes from the user specified
+00461                 WriteTo(Source,Dest,"%s",s.c_str());
+00462         }
+00463 }
 
@@ -2523,11 +2588,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 361 of file modules.cpp. +Definition at line 366 of file modules.cpp.

-

00362 {
-00363         WriteMode(modes.c_str(),flags,"%s",text.c_str());
-00364 }
+
00367 {
+00368         WriteMode(modes.c_str(),flags,"%s",text.c_str());
+00369 }
 
@@ -2570,11 +2635,11 @@ Sends a WALLOPS message.

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

-Definition at line 489 of file modules.cpp. +Definition at line 494 of file modules.cpp.

-

00490 {
-00491         WriteWallOps(User,false,"%s",text.c_str());
-00492 }
+
00495 {
+00496         WriteWallOps(User,false,"%s",text.c_str());
+00497 }
 
@@ -2617,23 +2682,23 @@ Remove a user's connection to the irc server, but leave their client in existenc

When you call this function, the user's file descriptor will be replaced with the value of FD_MAGIC_NUMBER and their old file descriptor will be closed. This idle client will remain until it is restored with a valid file descriptor, or is removed from IRC by an operator After this call, the pointer to user will be invalid.

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

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

-

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

The documentation for this class was generated from the following files: -
Generated on Wed Apr 13 13:07:09 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:11 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 e4c059a89..22b11ae12 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -15,7 +15,7 @@ RevisionVersion Version(int major, int minor, int revision, int build, int flags)Version ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index a14cd802d..90163dac4 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -221,7 +221,7 @@ Definition at line 114 of
The documentation for this class was generated from the following files: -
Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:12 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 d7a035758..70ee3d9a4 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -14,7 +14,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 5134ae284..a52185e26 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -171,7 +171,7 @@ Definition at line 48 of fi
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:12 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 a1c0d958e..b7d8a6d3e 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index 7c580d073..733b17f7d 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -82,7 +82,7 @@ Definition at line 103 of f
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:12 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 bcb74395c..f179afa50 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 Wed Apr 13 13:07:01 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:07 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 00d40233e..847ed794e 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -488,7 +488,7 @@ Creation time.

Definition at line 111 of file channels.h.

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

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

Definition at line 99 of file channels.h.

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

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

Definition at line 119 of file channels.h.

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

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

Definition at line 108 of file channels.h.

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

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

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


The documentation for this class was generated from the following files: -
Generated on Wed Apr 13 13:07:01 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:07 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 4ef49d007..a6078ae0e 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -9,7 +9,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:01 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:07 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index 642201943..82774d87f 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -132,7 +132,7 @@ Referenced by classbase().
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:01 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:07 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 482a71372..5500e9811 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -19,7 +19,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
Generated on Wed Apr 13 13:07:01 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 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 7236a7cb6..2fc652fee 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -227,7 +227,7 @@ Definition at line 43 of
The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:01 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 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 39afc71bf..d880b6ccd 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 Wed Apr 13 13:07:03 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 5532b0afb..741aacc0b 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::PseudoToUser(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo(). +Referenced by ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo().

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

Definition at line 182 of file connection.h.

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

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


The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:03 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:08 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 22b55fe9d..ee2923bdd 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -25,7 +25,7 @@
  S  
  Z  
connection   GLine   ModeParameter   Server   ZLine   
  D  
-
Generated on Wed Apr 13 13:06:59 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:07 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 a624cbdbc..5e1e81721 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 Wed Apr 13 13:07:05 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 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 43dd61b12..3844fe40f 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 Wed Apr 13 13:07:05 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:09 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 670a3c093..c75c4516a 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 Wed Apr 13 13:07:07 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:10 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classpacket.html b/docs/module-doc/classpacket.html index 7742aa8d5..8d1cad1f0 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 Wed Apr 13 13:07:07 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:10 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 4fbcbfddf..78cb72a73 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 Wed Apr 13 13:07:09 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:11 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index e584d2ec1..01c1ed42e 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 Wed Apr 13 13:07:09 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:11 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 80948312f..e67768d59 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -13,7 +13,7 @@ ucrec()ucrec [inline] ~classbase()classbase [inline] ~ucrec()ucrec [inline, virtual] -
Generated on Wed Apr 13 13:07:09 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:11 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 8dcaa46e0..f0deddd51 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -127,7 +127,7 @@ If the record is not in use, this value will be NULL.

Definition at line 213 of file channels.h.

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

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


The documentation for this class was generated from the following file: -
Generated on Wed Apr 13 13:07:09 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:11 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 ba3fb470e..a01ce8fcb 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -64,7 +64,7 @@ userrec()userrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:12 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 86de19f34..91f7c9f56 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -553,7 +553,7 @@ Referenced by userrec().

Definition at line 127 of file users.h.

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

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

Definition at line 110 of file users.h.

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

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

Definition at line 106 of file users.h.

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

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


The documentation for this class was generated from the following files: -
Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:12 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 8292a4851..f36e89f4a 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -118,7 +118,7 @@ 00121 long duration(const char* str); 00122 00123 #endif -

Generated on Wed Apr 13 13:06:52 2005 for InspIRCd by +

Generated on Thu Apr 14 21:12:04 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 c2e73c903..09189a549 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -207,7 +207,7 @@ Other useful functions.

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

@@ -3722,7 +3722,7 @@ Functions for u:lined servers.

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

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


Generated on Wed Apr 13 13:06:57 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:06 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 66fa4b815..372f6b7e9 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 Wed Apr 13 13:06:52 2005 for InspIRCd by +

Generated on Thu Apr 14 21:12:04 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 6b1c36e2d..927e225fa 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 Wed Apr 13 13:06:57 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:06 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 0b7e7f7d6..37bd74454 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -42,7 +42,7 @@ 00051 00052 #endif 00053 -

Generated on Wed Apr 13 13:06:52 2005 for InspIRCd by +

Generated on Thu Apr 14 21:12:04 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 d67e8e91b..24400c431 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -17,7 +17,7 @@  A structure that defines a command. More...

-
Generated on Wed Apr 13 13:06:57 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:06 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 3b554ce4f..c78dbf151 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -70,7 +70,7 @@ 00093 }; 00094 00095 #endif -

Generated on Wed Apr 13 13:06:52 2005 for InspIRCd by +

Generated on Thu Apr 14 21:12:04 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 6156f8382..ef05dab84 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -20,7 +20,7 @@ struct  dns_ip4list -
Generated on Wed Apr 13 13:06:57 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:06 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 16d19a30f..3618e2421 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -23,7 +23,7 @@ users.h [code] xline.h [code] -
Generated on Wed Apr 13 13:06:51 2005 for InspIRCd by +
Generated on Thu Apr 14 21:12:04 2005 for InspIRCd by doxygen 1.3.3
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 107b5912e..053e5be0b 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -173,7 +173,8 @@ Here is a list of all class members with links to the classes they belong to:

userrec
  • IsNick() : Server
  • IsOnChannel() : Server
  • IsUlined() -: Server +: Server
  • IsValidMask() +: Server

    - j -

    - ~ -

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

      serverrec
    • ~ucrec() : ucrec
    • ~userrec() : userrec
    -
    Generated on Wed Apr 13 13:07:00 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index 6fbe3d1b4..17807689c 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -124,7 +124,8 @@ : userrec
  • IsNick() : Server
  • IsOnChannel() : Server
  • IsUlined() -: Server +: Server
  • IsValidMask() +: Server

    - j -

  • -
    Generated on Wed Apr 13 13:07:00 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 1dd06ad2f..09a85d4b2 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -334,7 +334,7 @@ Here is a list of all file members with links to the files they belong to:

    zline_make_global() : xline.h
  • zline_set_creation_time() : xline.h -
    Generated on Wed Apr 13 13:07:11 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 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 a4ba2f7aa..ec8fc44d5 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -92,7 +92,7 @@ : modules.h
  • VF_STATIC : modules.h
  • VF_VENDOR : modules.h -
    Generated on Wed Apr 13 13:07:11 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 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 c708d10ff..4aa645e7e 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -211,7 +211,7 @@
  • zline_make_global() : xline.h
  • zline_set_creation_time() : xline.h -
    Generated on Wed Apr 13 13:07:11 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 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 084529969..d8a8ef1ee 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -26,7 +26,7 @@ : modules.h
  • user_hash : modules.cpp
  • VoidPointer : base.h -
    Generated on Wed Apr 13 13:07:11 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 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 104b12073..7d1d958cc 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -105,7 +105,7 @@ : modules.cpp
  • WHOWAS_MAX : modules.cpp, channels.cpp
  • WHOWAS_STALE : modules.cpp, channels.cpp -
    Generated on Wed Apr 13 13:07:11 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 4e9f519c8..eefb83ad1 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -54,7 +54,7 @@
  • nspace::hash< string >
  • StrHashComp -
    Generated on Wed Apr 13 13:06:59 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index 0ddc531b9..7b499b6a8 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@

    InspIRCd Documentation

    -


    Generated on Wed Apr 13 13:06:51 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:04 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 f92c6a26c..f29440be0 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -57,7 +57,7 @@ 00050 void send_network_quit(const char* nick, const char* reason); 00051 00052 #endif -

  • Generated on Wed Apr 13 13:06:52 2005 for InspIRCd by +

    Generated on Thu Apr 14 21:12:04 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 1b7bd5428..ab99943bb 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -155,7 +155,7 @@

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

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

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

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

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

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

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

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

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

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

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

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

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

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


    Generated on Wed Apr 13 13:06:57 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:06 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 9ae105811..b99a4b3b5 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -53,7 +53,7 @@ 00046 00047 00048 #endif -

    Generated on Wed Apr 13 13:06:52 2005 for InspIRCd by +

    Generated on Thu Apr 14 21:12:04 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 4a285875f..569a85763 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ -
    Generated on Wed Apr 13 13:06:57 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:06 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 e96be8f92..77272f2aa 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -323,424 +323,424 @@ 00316 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } 00317 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } 00318 Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } -00319 void Module::OnOper(userrec* user) { }; -00320 void Module::OnInfo(userrec* user) { }; -00321 void Module::OnWhois(userrec* source, userrec* dest) { }; -00322 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; -00323 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00324 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00325 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; -00326 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; -00327 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; -00328 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } -00329 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } -00330 void Module::On005Numeric(std::string &output) { }; -00331 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; -00332 void Module::OnLoadModule(Module* mod,std::string name) { }; -00333 void Module::OnBackgroundTimer(time_t curtime) { }; -00334 void Module::OnSendList(userrec* user, chanrec* channel, char mode) { }; -00335 -00336 // server is a wrapper class that provides methods to all of the C-style -00337 // exports in the core -00338 // -00339 -00340 Server::Server() -00341 { -00342 } -00343 -00344 Server::~Server() -00345 { -00346 } -00347 -00348 void Server::SendOpers(std::string s) -00349 { -00350 WriteOpers("%s",s.c_str()); +00319 void Module::OnOper(userrec* user) { }; +00320 void Module::OnInfo(userrec* user) { }; +00321 void Module::OnWhois(userrec* source, userrec* dest) { }; +00322 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; +00323 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00324 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00325 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; +00326 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; +00327 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; +00328 string_list Module::OnUserSync(userrec* user) { string_list empty; return empty; } +00329 string_list Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; } +00330 void Module::On005Numeric(std::string &output) { }; +00331 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; +00332 void Module::OnLoadModule(Module* mod,std::string name) { }; +00333 void Module::OnBackgroundTimer(time_t curtime) { }; +00334 void Module::OnSendList(userrec* user, chanrec* channel, char mode) { }; +00335 int Module::OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) { return 0; }; +00336 bool Module::OnCheckReady(userrec* user) { return true; }; +00337 void Module::OnUserRegister(userrec* user) { }; +00338 int Module::OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { return 0; }; +00339 void Module::OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { }; +00340 +00341 // server is a wrapper class that provides methods to all of the C-style +00342 // exports in the core +00343 // +00344 +00345 Server::Server() +00346 { +00347 } +00348 +00349 Server::~Server() +00350 { 00351 } 00352 -00353 bool Server::MatchText(std::string sliteral, std::string spattern) +00353 void Server::SendOpers(std::string s) 00354 { -00355 char literal[MAXBUF],pattern[MAXBUF]; -00356 strlcpy(literal,sliteral.c_str(),MAXBUF); -00357 strlcpy(pattern,spattern.c_str(),MAXBUF); -00358 return match(literal,pattern); -00359 } -00360 -00361 void Server::SendToModeMask(std::string modes, int flags, std::string text) -00362 { -00363 WriteMode(modes.c_str(),flags,"%s",text.c_str()); +00355 WriteOpers("%s",s.c_str()); +00356 } +00357 +00358 bool Server::MatchText(std::string sliteral, std::string spattern) +00359 { +00360 char literal[MAXBUF],pattern[MAXBUF]; +00361 strlcpy(literal,sliteral.c_str(),MAXBUF); +00362 strlcpy(pattern,spattern.c_str(),MAXBUF); +00363 return match(literal,pattern); 00364 } 00365 -00366 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) +00366 void Server::SendToModeMask(std::string modes, int flags, std::string text) 00367 { -00368 return add_channel(user,cname.c_str(),key.c_str(),true); +00368 WriteMode(modes.c_str(),flags,"%s",text.c_str()); 00369 } 00370 -00371 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) +00371 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) 00372 { -00373 return del_channel(user,cname.c_str(),reason.c_str(),false); +00373 return add_channel(user,cname.c_str(),key.c_str(),true); 00374 } 00375 -00376 chanuserlist Server::GetUsers(chanrec* chan) +00376 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) 00377 { -00378 chanuserlist userl; -00379 userl.clear(); -00380 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) -00381 { -00382 if (i->second) -00383 { -00384 if (has_channel(i->second,chan)) -00385 { -00386 if (isnick(i->second->nick)) -00387 { -00388 userl.push_back(i->second); -00389 } -00390 } -00391 } -00392 } -00393 return userl; -00394 } -00395 void Server::ChangeUserNick(userrec* user, std::string nickname) -00396 { -00397 force_nickchange(user,nickname.c_str()); -00398 } -00399 -00400 void Server::QuitUser(userrec* user, std::string reason) +00378 return del_channel(user,cname.c_str(),reason.c_str(),false); +00379 } +00380 +00381 chanuserlist Server::GetUsers(chanrec* chan) +00382 { +00383 chanuserlist userl; +00384 userl.clear(); +00385 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) +00386 { +00387 if (i->second) +00388 { +00389 if (has_channel(i->second,chan)) +00390 { +00391 if (isnick(i->second->nick)) +00392 { +00393 userl.push_back(i->second); +00394 } +00395 } +00396 } +00397 } +00398 return userl; +00399 } +00400 void Server::ChangeUserNick(userrec* user, std::string nickname) 00401 { -00402 send_network_quit(user->nick,reason.c_str()); -00403 kill_link(user,reason.c_str()); -00404 } -00405 -00406 bool Server::IsUlined(std::string server) -00407 { -00408 return is_uline(server.c_str()); +00402 force_nickchange(user,nickname.c_str()); +00403 } +00404 +00405 void Server::QuitUser(userrec* user, std::string reason) +00406 { +00407 send_network_quit(user->nick,reason.c_str()); +00408 kill_link(user,reason.c_str()); 00409 } 00410 -00411 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) +00411 bool Server::IsUlined(std::string server) 00412 { -00413 call_handler(commandname.c_str(),parameters,pcnt,user); +00413 return is_uline(server.c_str()); 00414 } 00415 -00416 void Server::Log(int level, std::string s) +00416 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) 00417 { -00418 log(level,"%s",s.c_str()); +00418 call_handler(commandname.c_str(),parameters,pcnt,user); 00419 } 00420 -00421 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) +00421 void Server::Log(int level, std::string s) 00422 { -00423 createcommand(cmd,f,flags,minparams,source); +00423 log(level,"%s",s.c_str()); 00424 } 00425 -00426 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00426 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) 00427 { -00428 server_mode(parameters,pcnt,user); +00428 createcommand(cmd,f,flags,minparams,source); 00429 } 00430 -00431 void Server::Send(int Socket, std::string s) +00431 void Server::SendMode(char **parameters, int pcnt, userrec *user) 00432 { -00433 Write(Socket,"%s",s.c_str()); +00433 server_mode(parameters,pcnt,user); 00434 } 00435 -00436 void Server::SendServ(int Socket, std::string s) +00436 void Server::Send(int Socket, std::string s) 00437 { -00438 WriteServ(Socket,"%s",s.c_str()); +00438 Write(Socket,"%s",s.c_str()); 00439 } 00440 -00441 void Server::SendFrom(int Socket, userrec* User, std::string s) +00441 void Server::SendServ(int Socket, std::string s) 00442 { -00443 WriteFrom(Socket,User,"%s",s.c_str()); +00443 WriteServ(Socket,"%s",s.c_str()); 00444 } 00445 -00446 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00446 void Server::SendFrom(int Socket, userrec* User, std::string s) 00447 { -00448 if (!Source) -00449 { -00450 // if source is NULL, then the message originates from the local server -00451 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); -00452 } -00453 else +00448 WriteFrom(Socket,User,"%s",s.c_str()); +00449 } +00450 +00451 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00452 { +00453 if (!Source) 00454 { -00455 // otherwise it comes from the user specified -00456 WriteTo(Source,Dest,"%s",s.c_str()); +00455 // if source is NULL, then the message originates from the local server +00456 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); 00457 } -00458 } -00459 -00460 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00461 { -00462 if (IncludeSender) -00463 { -00464 WriteChannel(Channel,User,"%s",s.c_str()); -00465 } -00466 else -00467 { -00468 ChanExceptSender(Channel,User,"%s",s.c_str()); -00469 } -00470 } -00471 -00472 bool Server::CommonChannels(userrec* u1, userrec* u2) -00473 { -00474 return (common_channels(u1,u2) != 0); +00458 else +00459 { +00460 // otherwise it comes from the user specified +00461 WriteTo(Source,Dest,"%s",s.c_str()); +00462 } +00463 } +00464 +00465 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00466 { +00467 if (IncludeSender) +00468 { +00469 WriteChannel(Channel,User,"%s",s.c_str()); +00470 } +00471 else +00472 { +00473 ChanExceptSender(Channel,User,"%s",s.c_str()); +00474 } 00475 } 00476 -00477 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00477 bool Server::CommonChannels(userrec* u1, userrec* u2) 00478 { -00479 if (IncludeSender) -00480 { -00481 WriteCommon(User,"%s",text.c_str()); -00482 } -00483 else -00484 { -00485 WriteCommonExcept(User,"%s",text.c_str()); -00486 } -00487 } -00488 -00489 void Server::SendWallops(userrec* User, std::string text) -00490 { -00491 WriteWallOps(User,false,"%s",text.c_str()); +00479 return (common_channels(u1,u2) != 0); +00480 } +00481 +00482 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00483 { +00484 if (IncludeSender) +00485 { +00486 WriteCommon(User,"%s",text.c_str()); +00487 } +00488 else +00489 { +00490 WriteCommonExcept(User,"%s",text.c_str()); +00491 } 00492 } 00493 -00494 void Server::ChangeHost(userrec* user, std::string host) +00494 void Server::SendWallops(userrec* User, std::string text) 00495 { -00496 ChangeDisplayedHost(user,host.c_str()); +00496 WriteWallOps(User,false,"%s",text.c_str()); 00497 } 00498 -00499 void Server::ChangeGECOS(userrec* user, std::string gecos) +00499 void Server::ChangeHost(userrec* user, std::string host) 00500 { -00501 ChangeName(user,gecos.c_str()); +00501 ChangeDisplayedHost(user,host.c_str()); 00502 } 00503 -00504 bool Server::IsNick(std::string nick) +00504 void Server::ChangeGECOS(userrec* user, std::string gecos) 00505 { -00506 return (isnick(nick.c_str()) != 0); +00506 ChangeName(user,gecos.c_str()); 00507 } 00508 -00509 userrec* Server::FindNick(std::string nick) +00509 bool Server::IsNick(std::string nick) 00510 { -00511 return Find(nick); +00511 return (isnick(nick.c_str()) != 0); 00512 } 00513 -00514 chanrec* Server::FindChannel(std::string channel) +00514 userrec* Server::FindNick(std::string nick) 00515 { -00516 return FindChan(channel.c_str()); +00516 return Find(nick); 00517 } 00518 -00519 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00519 chanrec* Server::FindChannel(std::string channel) 00520 { -00521 return cmode(User,Chan); +00521 return FindChan(channel.c_str()); 00522 } 00523 -00524 bool Server::IsOnChannel(userrec* User, chanrec* Chan) +00524 std::string Server::ChanMode(userrec* User, chanrec* Chan) 00525 { -00526 return has_channel(User,Chan); +00526 return cmode(User,Chan); 00527 } 00528 -00529 std::string Server::GetServerName() +00529 bool Server::IsOnChannel(userrec* User, chanrec* Chan) 00530 { -00531 return getservername(); +00531 return has_channel(User,Chan); 00532 } 00533 -00534 std::string Server::GetNetworkName() +00534 std::string Server::GetServerName() 00535 { -00536 return getnetworkname(); +00536 return getservername(); 00537 } 00538 -00539 Admin Server::GetAdmin() +00539 std::string Server::GetNetworkName() 00540 { -00541 return Admin(getadminname(),getadminemail(),getadminnick()); +00541 return getnetworkname(); 00542 } 00543 -00544 -00545 -00546 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) -00547 { -00548 if (type == MT_SERVER) -00549 { -00550 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); -00551 return false; -00552 } -00553 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +00544 Admin Server::GetAdmin() +00545 { +00546 return Admin(getadminname(),getadminemail(),getadminnick()); +00547 } +00548 +00549 +00550 +00551 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) +00552 { +00553 if (type == MT_SERVER) 00554 { -00555 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); +00555 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); 00556 return false; 00557 } -00558 if ((params_when_on>1) || (params_when_off>1)) +00558 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) 00559 { -00560 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); +00560 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); 00561 return false; 00562 } -00563 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -00564 } -00565 -00566 bool Server::AddExtendedListMode(char modechar) -00567 { -00568 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -00569 if (res) -00570 ModeMakeList(modechar); -00571 return res; -00572 } -00573 -00574 int Server::CountUsers(chanrec* c) -00575 { -00576 return usercount(c); +00563 if ((params_when_on>1) || (params_when_off>1)) +00564 { +00565 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); +00566 return false; +00567 } +00568 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +00569 } +00570 +00571 bool Server::AddExtendedListMode(char modechar) +00572 { +00573 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +00574 if (res) +00575 ModeMakeList(modechar); +00576 return res; 00577 } 00578 -00579 -00580 bool Server::UserToPseudo(userrec* user,std::string message) -00581 { -00582 unsigned int old_fd = user->fd; -00583 user->fd = FD_MAGIC_NUMBER; -00584 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); -00585 close(old_fd); -00586 shutdown (old_fd,2); -00587 } -00588 -00589 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) -00590 { -00591 zombie->fd = alive->fd; -00592 alive->fd = FD_MAGIC_NUMBER; -00593 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); -00594 kill_link(alive,message.c_str()); -00595 for (int i = 0; i != MAXCHANS; i++) -00596 { -00597 if (zombie->chans[i].channel != NULL) -00598 { -00599 if (zombie->chans[i].channel->name) -00600 { -00601 chanrec* Ptr = zombie->chans[i].channel; -00602 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); -00603 if (Ptr->topicset) -00604 { -00605 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); -00606 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -00607 } -00608 userlist(zombie,Ptr); -00609 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); -00610 WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr)); -00611 WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created); -00612 -00613 } -00614 } -00615 } -00616 -00617 } -00618 -00619 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) -00620 { -00621 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00579 int Server::CountUsers(chanrec* c) +00580 { +00581 return usercount(c); +00582 } +00583 +00584 +00585 bool Server::UserToPseudo(userrec* user,std::string message) +00586 { +00587 unsigned int old_fd = user->fd; +00588 user->fd = FD_MAGIC_NUMBER; +00589 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); +00590 close(old_fd); +00591 shutdown (old_fd,2); +00592 } +00593 +00594 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) +00595 { +00596 zombie->fd = alive->fd; +00597 alive->fd = FD_MAGIC_NUMBER; +00598 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); +00599 kill_link(alive,message.c_str()); +00600 for (int i = 0; i != MAXCHANS; i++) +00601 { +00602 if (zombie->chans[i].channel != NULL) +00603 { +00604 if (zombie->chans[i].channel->name) +00605 { +00606 chanrec* Ptr = zombie->chans[i].channel; +00607 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); +00608 if (Ptr->topicset) +00609 { +00610 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); +00611 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +00612 } +00613 userlist(zombie,Ptr); +00614 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); +00615 WriteServ(zombie->fd,"324 %s %s +%s",zombie->nick, Ptr->name,chanmodes(Ptr)); +00616 WriteServ(zombie->fd,"329 %s %s %d", zombie->nick, Ptr->name, Ptr->created); +00617 +00618 } +00619 } +00620 } +00621 00622 } 00623 -00624 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) +00624 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) 00625 { -00626 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +00626 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); 00627 } 00628 -00629 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) +00629 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) 00630 { -00631 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +00631 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); 00632 } 00633 -00634 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) +00634 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) 00635 { -00636 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00636 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); 00637 } 00638 -00639 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) +00639 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) 00640 { -00641 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00641 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); 00642 } 00643 -00644 bool Server::DelGLine(std::string hostmask) +00644 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) 00645 { -00646 del_gline(hostmask.c_str()); +00646 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); 00647 } 00648 -00649 bool Server::DelQLine(std::string nickname) +00649 bool Server::DelGLine(std::string hostmask) 00650 { -00651 del_qline(nickname.c_str()); +00651 del_gline(hostmask.c_str()); 00652 } 00653 -00654 bool Server::DelZLine(std::string ipaddr) +00654 bool Server::DelQLine(std::string nickname) 00655 { -00656 del_zline(ipaddr.c_str()); +00656 del_qline(nickname.c_str()); 00657 } 00658 -00659 bool Server::DelKLine(std::string hostmask) +00659 bool Server::DelZLine(std::string ipaddr) 00660 { -00661 del_kline(hostmask.c_str()); +00661 del_zline(ipaddr.c_str()); 00662 } 00663 -00664 bool Server::DelELine(std::string hostmask) +00664 bool Server::DelKLine(std::string hostmask) 00665 { -00666 del_eline(hostmask.c_str()); +00666 del_kline(hostmask.c_str()); 00667 } 00668 -00669 long Server::CalcDuration(std::string delta) +00669 bool Server::DelELine(std::string hostmask) 00670 { -00671 return duration(delta.c_str()); +00671 del_eline(hostmask.c_str()); 00672 } 00673 -00674 -00675 ConfigReader::ConfigReader() -00676 { -00677 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00678 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00679 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00680 if (!this->readerror) -00681 this->error = CONF_FILE_NOT_FOUND; -00682 } -00683 -00684 -00685 ConfigReader::~ConfigReader() -00686 { -00687 if (this->cache) -00688 delete this->cache; -00689 if (this->errorlog) -00690 delete this->errorlog; -00691 } -00692 -00693 -00694 ConfigReader::ConfigReader(std::string filename) -00695 { -00696 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00697 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00698 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -00699 if (!this->readerror) -00700 this->error = CONF_FILE_NOT_FOUND; -00701 }; -00702 -00703 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00704 { -00705 char val[MAXBUF]; -00706 char t[MAXBUF]; -00707 char n[MAXBUF]; -00708 strlcpy(t,tag.c_str(),MAXBUF); -00709 strlcpy(n,name.c_str(),MAXBUF); -00710 int res = ReadConf(cache,t,n,index,val); -00711 if (!res) -00712 { -00713 this->error = CONF_VALUE_NOT_FOUND; -00714 return ""; -00715 } -00716 return std::string(val); -00717 } -00718 -00719 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) -00720 { -00721 char val[MAXBUF]; -00722 char t[MAXBUF]; -00723 char n[MAXBUF]; -00724 strlcpy(t,tag.c_str(),MAXBUF); -00725 strlcpy(n,name.c_str(),MAXBUF); -00726 int res = ReadConf(cache,t,n,index,val); -00727 if (!res) -00728 { -00729 this->error = CONF_VALUE_NOT_FOUND; -00730 return false; -00731 } -00732 std::string s = val; -00733 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); -00734 } +00674 long Server::CalcDuration(std::string delta) +00675 { +00676 return duration(delta.c_str()); +00677 } +00678 +00679 bool Server::IsValidMask(std::string mask) +00680 { +00681 const char* dest = mask.c_str(); +00682 if (strchr(dest,'!')==0) +00683 return false; +00684 if (strchr(dest,'@')==0) +00685 return false; +00686 for (int i = 0; i < strlen(dest); i++) +00687 if (dest[i] < 32) +00688 return false; +00689 for (int i = 0; i < strlen(dest); i++) +00690 if (dest[i] > 126) +00691 return false; +00692 int c = 0; +00693 for (int i = 0; i < strlen(dest); i++) +00694 if (dest[i] == '!') +00695 c++; +00696 if (c>1) +00697 return false; +00698 c = 0; +00699 for (int i = 0; i < strlen(dest); i++) +00700 if (dest[i] == '@') +00701 c++; +00702 if (c>1) +00703 return false; +00704 +00705 return true; +00706 } +00707 +00708 ConfigReader::ConfigReader() +00709 { +00710 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00711 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00712 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00713 if (!this->readerror) +00714 this->error = CONF_FILE_NOT_FOUND; +00715 } +00716 +00717 +00718 ConfigReader::~ConfigReader() +00719 { +00720 if (this->cache) +00721 delete this->cache; +00722 if (this->errorlog) +00723 delete this->errorlog; +00724 } +00725 +00726 +00727 ConfigReader::ConfigReader(std::string filename) +00728 { +00729 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00730 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00731 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); +00732 if (!this->readerror) +00733 this->error = CONF_FILE_NOT_FOUND; +00734 }; 00735 -00736 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00736 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) 00737 { 00738 char val[MAXBUF]; 00739 char t[MAXBUF]; @@ -751,135 +751,168 @@ 00744 if (!res) 00745 { 00746 this->error = CONF_VALUE_NOT_FOUND; -00747 return 0; +00747 return ""; 00748 } -00749 for (int i = 0; i < strlen(val); i++) -00750 { -00751 if (!isdigit(val[i])) -00752 { -00753 this->error = CONF_NOT_A_NUMBER; -00754 return 0; -00755 } -00756 } -00757 if ((needs_unsigned) && (atoi(val)<0)) -00758 { -00759 this->error = CONF_NOT_UNSIGNED; -00760 return 0; -00761 } -00762 return atoi(val); -00763 } -00764 -00765 long ConfigReader::GetError() -00766 { -00767 long olderr = this->error; -00768 this->error = 0; -00769 return olderr; -00770 } -00771 -00772 void ConfigReader::DumpErrors(bool bail, userrec* user) -00773 { -00774 if (bail) -00775 { -00776 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); -00777 exit(0); -00778 } -00779 else -00780 { -00781 char dataline[1024]; -00782 if (user) -00783 { -00784 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); -00785 while (!errorlog->eof()) -00786 { -00787 errorlog->getline(dataline,1024); -00788 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); -00789 } -00790 } -00791 else -00792 { -00793 WriteOpers("There were errors in the configuration file:",user->nick); -00794 while (!errorlog->eof()) -00795 { -00796 errorlog->getline(dataline,1024); -00797 WriteOpers(dataline); -00798 } -00799 } -00800 return; -00801 } -00802 } -00803 +00749 return std::string(val); +00750 } +00751 +00752 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00753 { +00754 char val[MAXBUF]; +00755 char t[MAXBUF]; +00756 char n[MAXBUF]; +00757 strlcpy(t,tag.c_str(),MAXBUF); +00758 strlcpy(n,name.c_str(),MAXBUF); +00759 int res = ReadConf(cache,t,n,index,val); +00760 if (!res) +00761 { +00762 this->error = CONF_VALUE_NOT_FOUND; +00763 return false; +00764 } +00765 std::string s = val; +00766 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); +00767 } +00768 +00769 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00770 { +00771 char val[MAXBUF]; +00772 char t[MAXBUF]; +00773 char n[MAXBUF]; +00774 strlcpy(t,tag.c_str(),MAXBUF); +00775 strlcpy(n,name.c_str(),MAXBUF); +00776 int res = ReadConf(cache,t,n,index,val); +00777 if (!res) +00778 { +00779 this->error = CONF_VALUE_NOT_FOUND; +00780 return 0; +00781 } +00782 for (int i = 0; i < strlen(val); i++) +00783 { +00784 if (!isdigit(val[i])) +00785 { +00786 this->error = CONF_NOT_A_NUMBER; +00787 return 0; +00788 } +00789 } +00790 if ((needs_unsigned) && (atoi(val)<0)) +00791 { +00792 this->error = CONF_NOT_UNSIGNED; +00793 return 0; +00794 } +00795 return atoi(val); +00796 } +00797 +00798 long ConfigReader::GetError() +00799 { +00800 long olderr = this->error; +00801 this->error = 0; +00802 return olderr; +00803 } 00804 -00805 int ConfigReader::Enumerate(std::string tag) +00805 void ConfigReader::DumpErrors(bool bail, userrec* user) 00806 { -00807 return EnumConf(cache,tag.c_str()); -00808 } -00809 -00810 int ConfigReader::EnumerateValues(std::string tag, int index) -00811 { -00812 return EnumValues(cache, tag.c_str(), index); -00813 } -00814 -00815 bool ConfigReader::Verify() -00816 { -00817 return this->readerror; -00818 } -00819 -00820 -00821 FileReader::FileReader(std::string filename) -00822 { -00823 file_cache c; -00824 readfile(c,filename.c_str()); -00825 this->fc = c; -00826 } -00827 -00828 FileReader::FileReader() -00829 { -00830 } -00831 -00832 void FileReader::LoadFile(std::string filename) -00833 { -00834 file_cache c; -00835 readfile(c,filename.c_str()); -00836 this->fc = c; -00837 } -00838 -00839 -00840 FileReader::~FileReader() -00841 { -00842 } -00843 -00844 bool FileReader::Exists() -00845 { -00846 if (fc.size() == 0) -00847 { -00848 return(false); -00849 } -00850 else -00851 { -00852 return(true); -00853 } -00854 } -00855 -00856 std::string FileReader::GetLine(int x) -00857 { -00858 if ((x<0) || (x>fc.size())) -00859 return ""; -00860 return fc[x]; -00861 } -00862 -00863 int FileReader::FileSize() -00864 { -00865 return fc.size(); -00866 } -00867 -00868 -00869 std::vector<Module*> modules(255); -00870 std::vector<ircd_module*> factory(255); +00807 if (bail) +00808 { +00809 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); +00810 exit(0); +00811 } +00812 else +00813 { +00814 char dataline[1024]; +00815 if (user) +00816 { +00817 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); +00818 while (!errorlog->eof()) +00819 { +00820 errorlog->getline(dataline,1024); +00821 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); +00822 } +00823 } +00824 else +00825 { +00826 WriteOpers("There were errors in the configuration file:",user->nick); +00827 while (!errorlog->eof()) +00828 { +00829 errorlog->getline(dataline,1024); +00830 WriteOpers(dataline); +00831 } +00832 } +00833 return; +00834 } +00835 } +00836 +00837 +00838 int ConfigReader::Enumerate(std::string tag) +00839 { +00840 return EnumConf(cache,tag.c_str()); +00841 } +00842 +00843 int ConfigReader::EnumerateValues(std::string tag, int index) +00844 { +00845 return EnumValues(cache, tag.c_str(), index); +00846 } +00847 +00848 bool ConfigReader::Verify() +00849 { +00850 return this->readerror; +00851 } +00852 +00853 +00854 FileReader::FileReader(std::string filename) +00855 { +00856 file_cache c; +00857 readfile(c,filename.c_str()); +00858 this->fc = c; +00859 } +00860 +00861 FileReader::FileReader() +00862 { +00863 } +00864 +00865 void FileReader::LoadFile(std::string filename) +00866 { +00867 file_cache c; +00868 readfile(c,filename.c_str()); +00869 this->fc = c; +00870 } 00871 -00872 int MODCOUNT = -1; -00873 -00874 -

    Generated on Wed Apr 13 13:06:54 2005 for InspIRCd by +00872 +00873 FileReader::~FileReader() +00874 { +00875 } +00876 +00877 bool FileReader::Exists() +00878 { +00879 if (fc.size() == 0) +00880 { +00881 return(false); +00882 } +00883 else +00884 { +00885 return(true); +00886 } +00887 } +00888 +00889 std::string FileReader::GetLine(int x) +00890 { +00891 if ((x<0) || (x>fc.size())) +00892 return ""; +00893 return fc[x]; +00894 } +00895 +00896 int FileReader::FileSize() +00897 { +00898 return fc.size(); +00899 } +00900 +00901 +00902 std::vector<Module*> modules(255); +00903 std::vector<ircd_module*> factory(255); +00904 +00905 int MODCOUNT = -1; +00906 +00907 +

    Generated on Thu Apr 14 21:12:05 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 b747ffdf1..d66fc4457 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -416,7 +416,7 @@ Definition at line 275

    References EMode, and ModeDefined().

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

    00276 {
     00277         if (ModeDefined(modechar,type)) {
    @@ -764,7 +764,7 @@ Definition at line 285
     

    References EMode, ExtModeListIter, and MT_CHANNEL.

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

    00286 {
     00287         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    @@ -977,7 +977,7 @@ Definition at line 180
     

    Definition at line 179 of file modules.cpp.

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

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

    -Definition at line 872 of file modules.cpp. +Definition at line 905 of file modules.cpp.

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


    Generated on Wed Apr 13 13:06:58 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:06 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 f2e507304..51290f271 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -151,189 +151,198 @@ 00219 00233 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); 00234 -00235 -00240 virtual void OnOper(userrec* user); -00241 -00250 virtual void OnInfo(userrec* user); -00251 -00256 virtual void OnWhois(userrec* source, userrec* dest); -00257 -00263 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); -00264 -00273 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); -00274 -00286 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); -00287 -00295 virtual int OnUserPreNick(userrec* user, std::string newnick); -00296 -00304 virtual void OnUserPostNick(userrec* user, std::string oldnick); -00305 -00327 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); -00328 -00334 virtual string_list OnUserSync(userrec* user); -00335 -00341 virtual string_list OnChannelSync(chanrec* chan); -00342 -00346 virtual void On005Numeric(std::string &output); +00240 virtual int OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason); +00241 +00246 virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason); +00247 +00252 virtual void OnOper(userrec* user); +00253 +00262 virtual void OnInfo(userrec* user); +00263 +00268 virtual void OnWhois(userrec* source, userrec* dest); +00269 +00275 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); +00276 +00285 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); +00286 +00298 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); +00299 +00307 virtual int OnUserPreNick(userrec* user, std::string newnick); +00308 +00316 virtual void OnUserPostNick(userrec* user, std::string oldnick); +00317 +00339 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); +00340 +00346 virtual string_list OnUserSync(userrec* user); 00347 -00357 virtual int OnKill(userrec* source, userrec* dest, std::string reason); -00358 -00369 virtual void OnLoadModule(Module* mod,std::string name); +00353 virtual string_list OnChannelSync(chanrec* chan); +00354 +00358 virtual void On005Numeric(std::string &output); +00359 +00369 virtual int OnKill(userrec* source, userrec* dest, std::string reason); 00370 -00376 virtual void OnBackgroundTimer(time_t curtime); -00377 -00385 virtual void OnSendList(userrec* user, chanrec* channel, char mode); -00386 -00387 }; -00388 +00381 virtual void OnLoadModule(Module* mod,std::string name); +00382 +00388 virtual void OnBackgroundTimer(time_t curtime); 00389 -00395 class Server : public classbase -00396 { -00397 public: -00401 Server(); -00405 virtual ~Server(); -00406 -00410 virtual void SendOpers(std::string s); -00415 virtual void Log(int level, std::string s); -00420 virtual void Send(int Socket, std::string s); -00425 virtual void SendServ(int Socket, std::string s); -00430 virtual void SendFrom(int Socket, userrec* User, std::string s); -00445 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -00452 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -00457 virtual bool CommonChannels(userrec* u1, userrec* u2); -00465 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -00470 virtual void SendWallops(userrec* User, std::string text); -00471 -00475 virtual bool IsNick(std::string nick); -00479 virtual int CountUsers(chanrec* c); -00483 virtual userrec* FindNick(std::string nick); -00487 virtual chanrec* FindChannel(std::string channel); -00492 virtual std::string ChanMode(userrec* User, chanrec* Chan); -00496 virtual bool IsOnChannel(userrec* User, chanrec* Chan); -00499 virtual std::string GetServerName(); -00502 virtual std::string GetNetworkName(); -00508 virtual Admin GetAdmin(); -00527 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); -00528 -00550 virtual bool AddExtendedListMode(char modechar); -00551 -00569 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); -00570 -00592 virtual void SendMode(char **parameters, int pcnt, userrec *user); -00593 -00606 virtual void SendToModeMask(std::string modes, int flags, std::string text); -00607 -00613 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); -00614 -00620 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); -00621 -00627 virtual void ChangeUserNick(userrec* user, std::string nickname); -00628 -00639 virtual void QuitUser(userrec* user, std::string reason); -00640 -00645 virtual bool MatchText(std::string sliteral, std::string spattern); -00646 -00658 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); -00659 -00665 virtual void ChangeHost(userrec* user, std::string host); -00666 -00672 virtual void ChangeGECOS(userrec* user, std::string gecos); -00673 -00682 virtual bool IsUlined(std::string server); -00683 -00687 virtual chanuserlist GetUsers(chanrec* chan); -00688 -00695 virtual bool UserToPseudo(userrec* user,std::string message); -00696 -00703 virtual bool PseudoToUser(userrec* alive,userrec* zombie,std::string message); -00704 -00712 virtual void AddGLine(long duration, std::string source, std::string reason, std::string hostmask); -00713 -00721 virtual void AddQLine(long duration, std::string source, std::string reason, std::string nickname); -00722 -00730 virtual void AddZLine(long duration, std::string source, std::string reason, std::string ipaddr); -00731 -00739 virtual void AddKLine(long duration, std::string source, std::string reason, std::string hostmask); -00740 -00748 virtual void AddELine(long duration, std::string source, std::string reason, std::string hostmask); -00749 -00752 virtual bool DelGLine(std::string hostmask); -00753 -00756 virtual bool DelQLine(std::string nickname); -00757 -00760 virtual bool DelZLine(std::string ipaddr); -00761 -00764 virtual bool DelKLine(std::string hostmask); -00765 -00768 virtual bool DelELine(std::string hostmask); -00769 -00775 virtual long CalcDuration(std::string duration); -00776 -00777 }; -00778 -00779 #define CONF_NOT_A_NUMBER 0x000010 -00780 #define CONF_NOT_UNSIGNED 0x000080 -00781 #define CONF_VALUE_NOT_FOUND 0x000100 -00782 #define CONF_FILE_NOT_FOUND 0x000200 -00783 -00790 class ConfigReader : public classbase -00791 { -00792 protected: -00798 std::stringstream *cache; -00799 std::stringstream *errorlog; -00802 bool readerror; -00803 long error; -00804 -00805 public: -00810 ConfigReader(); // default constructor reads ircd.conf -00814 ConfigReader(std::string filename); // read a module-specific config -00818 ~ConfigReader(); -00823 std::string ReadValue(std::string tag, std::string name, int index); -00829 bool ReadFlag(std::string tag, std::string name, int index); -00838 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); -00843 long GetError(); -00850 int Enumerate(std::string tag); -00855 bool Verify(); -00862 void DumpErrors(bool bail,userrec* user); -00863 -00869 int EnumerateValues(std::string tag, int index); -00870 }; -00871 -00872 -00873 -00879 class FileReader : public classbase -00880 { -00881 file_cache fc; -00882 public: -00887 FileReader(); -00888 -00894 FileReader(std::string filename); -00895 -00899 ~FileReader(); -00900 -00906 void LoadFile(std::string filename); -00907 -00911 bool Exists(); -00912 -00917 std::string GetLine(int x); +00397 virtual void OnSendList(userrec* user, chanrec* channel, char mode); +00398 +00409 virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user); +00410 +00419 virtual bool OnCheckReady(userrec* user); +00420 +00428 virtual void OnUserRegister(userrec* user); +00429 }; +00430 +00431 +00437 class Server : public classbase +00438 { +00439 public: +00443 Server(); +00447 virtual ~Server(); +00448 +00452 virtual void SendOpers(std::string s); +00457 virtual void Log(int level, std::string s); +00462 virtual void Send(int Socket, std::string s); +00467 virtual void SendServ(int Socket, std::string s); +00472 virtual void SendFrom(int Socket, userrec* User, std::string s); +00487 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); +00494 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); +00499 virtual bool CommonChannels(userrec* u1, userrec* u2); +00507 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); +00512 virtual void SendWallops(userrec* User, std::string text); +00513 +00517 virtual bool IsNick(std::string nick); +00521 virtual int CountUsers(chanrec* c); +00525 virtual userrec* FindNick(std::string nick); +00529 virtual chanrec* FindChannel(std::string channel); +00534 virtual std::string ChanMode(userrec* User, chanrec* Chan); +00538 virtual bool IsOnChannel(userrec* User, chanrec* Chan); +00541 virtual std::string GetServerName(); +00544 virtual std::string GetNetworkName(); +00550 virtual Admin GetAdmin(); +00569 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); +00570 +00592 virtual bool AddExtendedListMode(char modechar); +00593 +00611 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +00612 +00634 virtual void SendMode(char **parameters, int pcnt, userrec *user); +00635 +00648 virtual void SendToModeMask(std::string modes, int flags, std::string text); +00649 +00655 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); +00656 +00662 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); +00663 +00669 virtual void ChangeUserNick(userrec* user, std::string nickname); +00670 +00681 virtual void QuitUser(userrec* user, std::string reason); +00682 +00687 virtual bool MatchText(std::string sliteral, std::string spattern); +00688 +00700 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); +00701 +00707 virtual void ChangeHost(userrec* user, std::string host); +00708 +00714 virtual void ChangeGECOS(userrec* user, std::string gecos); +00715 +00724 virtual bool IsUlined(std::string server); +00725 +00729 virtual chanuserlist GetUsers(chanrec* chan); +00730 +00737 virtual bool UserToPseudo(userrec* user,std::string message); +00738 +00745 virtual bool PseudoToUser(userrec* alive,userrec* zombie,std::string message); +00746 +00754 virtual void AddGLine(long duration, std::string source, std::string reason, std::string hostmask); +00755 +00763 virtual void AddQLine(long duration, std::string source, std::string reason, std::string nickname); +00764 +00772 virtual void AddZLine(long duration, std::string source, std::string reason, std::string ipaddr); +00773 +00781 virtual void AddKLine(long duration, std::string source, std::string reason, std::string hostmask); +00782 +00790 virtual void AddELine(long duration, std::string source, std::string reason, std::string hostmask); +00791 +00794 virtual bool DelGLine(std::string hostmask); +00795 +00798 virtual bool DelQLine(std::string nickname); +00799 +00802 virtual bool DelZLine(std::string ipaddr); +00803 +00806 virtual bool DelKLine(std::string hostmask); +00807 +00810 virtual bool DelELine(std::string hostmask); +00811 +00817 virtual long CalcDuration(std::string duration); +00818 +00821 virtual bool IsValidMask(std::string mask); +00822 }; +00823 +00824 #define CONF_NOT_A_NUMBER 0x000010 +00825 #define CONF_NOT_UNSIGNED 0x000080 +00826 #define CONF_VALUE_NOT_FOUND 0x000100 +00827 #define CONF_FILE_NOT_FOUND 0x000200 +00828 +00835 class ConfigReader : public classbase +00836 { +00837 protected: +00843 std::stringstream *cache; +00844 std::stringstream *errorlog; +00847 bool readerror; +00848 long error; +00849 +00850 public: +00855 ConfigReader(); // default constructor reads ircd.conf +00859 ConfigReader(std::string filename); // read a module-specific config +00863 ~ConfigReader(); +00868 std::string ReadValue(std::string tag, std::string name, int index); +00874 bool ReadFlag(std::string tag, std::string name, int index); +00883 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); +00888 long GetError(); +00895 int Enumerate(std::string tag); +00900 bool Verify(); +00907 void DumpErrors(bool bail,userrec* user); +00908 +00914 int EnumerateValues(std::string tag, int index); +00915 }; +00916 +00917 00918 -00924 int FileSize(); -00925 }; -00926 -00927 -00934 class ModuleFactory : public classbase -00935 { -00936 public: -00937 ModuleFactory() { } -00938 virtual ~ModuleFactory() { } -00943 virtual Module * CreateModule() = 0; -00944 }; +00924 class FileReader : public classbase +00925 { +00926 file_cache fc; +00927 public: +00932 FileReader(); +00933 +00939 FileReader(std::string filename); +00940 +00944 ~FileReader(); 00945 -00946 -00947 typedef DLLFactory<ModuleFactory> ircd_module; -00948 -00949 #endif -

    Generated on Wed Apr 13 13:06:54 2005 for InspIRCd by +00951 void LoadFile(std::string filename); +00952 +00956 bool Exists(); +00957 +00962 std::string GetLine(int x); +00963 +00969 int FileSize(); +00970 }; +00971 +00972 +00979 class ModuleFactory : public classbase +00980 { +00981 public: +00982 ModuleFactory() { } +00983 virtual ~ModuleFactory() { } +00988 virtual Module * CreateModule() = 0; +00989 }; +00990 +00991 +00992 typedef DLLFactory<ModuleFactory> ircd_module; +00993 +00994 #endif +

    Generated on Thu Apr 14 21:12:05 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 df15e8431..e300895ea 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -429,9 +429,9 @@ Definition at line 38 of

    -Definition at line 782 of file modules.h. +Definition at line 827 of file modules.h.

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

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

    -Definition at line 779 of file modules.h. +Definition at line 824 of file modules.h.

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

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

    -Definition at line 780 of file modules.h. +Definition at line 825 of file modules.h.

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

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

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

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

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

    @@ -585,7 +585,7 @@ Definition at line 25 of

    Definition at line 99 of file modules.h.

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

    @@ -673,7 +673,7 @@ Definition at line 87 of

    Definition at line 31 of file modules.h.

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

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

    Definition at line 32 of file modules.h.

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

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

    Definition at line 33 of file modules.h.

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

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

    Definition at line 72 of file modules.h.

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

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

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

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

    -Definition at line 947 of file modules.h. +Definition at line 992 of file modules.h.

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

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

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

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


    Generated on Wed Apr 13 13:06:58 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:07 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index 440f1e4bc..c295a2cf8 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ struct  nspace.hash< string > -
    Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index 15091e34a..e5b688c1e 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -9,7 +9,7 @@ nspace std -
    Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index d7985e66c..c389b0268 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@
    -
    Generated on Wed Apr 13 13:07:11 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 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 bb6b4af3b..d533fcd44 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -63,7 +63,7 @@ 00056 strlcpy(nickserv,"",NICKMAX); 00057 } 00058 -

    Generated on Wed Apr 13 13:06:54 2005 for InspIRCd by +

    Generated on Thu Apr 14 21:12:05 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 ac04da4a2..806401815 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -44,7 +44,7 @@ Definition at line 24 of file servers.cpp. -
    Generated on Wed Apr 13 13:06:58 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:07 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 61f4383d1..e5377da99 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -61,7 +61,7 @@ 00082 00083 #endif 00084 -

    Generated on Wed Apr 13 13:06:54 2005 for InspIRCd by +

    Generated on Thu Apr 14 21:12:05 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 d55f0f7f3..e68c8ffa4 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -72,7 +72,7 @@ Definition at line 25 of Definition at line 26 of file servers.h. -
    Generated on Wed Apr 13 13:06:58 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:07 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 44fcc27d9..8fec8e7b0 100644 --- a/docs/module-doc/structInAddr__HashComp-members.html +++ b/docs/module-doc/structInAddr__HashComp-members.html @@ -7,7 +7,7 @@

    InAddr_HashComp Member List

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

    Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:09 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 bf29a6572..23e516f5e 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -65,7 +65,7 @@ Definition at line 159
    The documentation for this struct was generated from the following file: -
    Generated on Wed Apr 13 13:07:04 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:09 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 09a2d1bdd..58e8d84e2 100644 --- a/docs/module-doc/structStrHashComp-members.html +++ b/docs/module-doc/structStrHashComp-members.html @@ -7,7 +7,7 @@

    StrHashComp Member List

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

    Generated on Wed Apr 13 13:07:09 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:11 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/structStrHashComp.html b/docs/module-doc/structStrHashComp.html index 34affe75e..4766b5ddd 100644 --- a/docs/module-doc/structStrHashComp.html +++ b/docs/module-doc/structStrHashComp.html @@ -62,7 +62,7 @@ Definition at line 146
    The documentation for this struct was generated from the following file: -
    Generated on Wed Apr 13 13:07:09 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:11 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 34db54b45..70b2ca792 100644 --- a/docs/module-doc/structdns__ip4list-members.html +++ b/docs/module-doc/structdns__ip4list-members.html @@ -8,7 +8,7 @@

    dns_ip4list Member List

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

    Generated on Wed Apr 13 13:07:03 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:08 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 1de9fc20b..61880b1cb 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -66,7 +66,7 @@ Definition at line 28 of file
    The documentation for this struct was generated from the following file: -
    Generated on Wed Apr 13 13:07:03 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:08 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 c98697612..3a7b969b0 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html @@ -7,7 +7,7 @@

    nspace::hash< in_addr > Member List

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

    Generated on Wed Apr 13 13:07:11 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 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 0dd5fe614..1c999dc23 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html @@ -55,7 +55,7 @@ Definition at line 119
    The documentation for this struct was generated from the following file: -
    Generated on Wed Apr 13 13:07:10 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 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 927815f5b..88557067a 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html @@ -7,7 +7,7 @@

    nspace::hash< string > Member List

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

    Generated on Wed Apr 13 13:07:11 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 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 10bdd4af6..292091cac 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html @@ -57,7 +57,7 @@ Definition at line 132
    The documentation for this struct was generated from the following file: -
    Generated on Wed Apr 13 13:07:11 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:12 2005 for InspIRCd by doxygen 1.3.3
    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 06dfc91c3..a5955b093 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -171,7 +171,7 @@ 00164 } 00165 00166 -

    Generated on Wed Apr 13 13:06:55 2005 for InspIRCd by +

    Generated on Thu Apr 14 21:12:05 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 01afb703b..218fb718e 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -70,7 +70,7 @@ Definition at line 24 of Definition at line 26 of file users.cpp. -
    Generated on Wed Apr 13 13:06:58 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:07 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 8c3382e57..3f6ddafdc 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -126,7 +126,7 @@ 00208 00209 00210 #endif -

    Generated on Wed Apr 13 13:06:55 2005 for InspIRCd by +

    Generated on Thu Apr 14 21:12:05 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 1f6e74ff9..48027bc27 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -243,7 +243,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line 79 of file users.h. -
    Generated on Wed Apr 13 13:06:59 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:07 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 cae4e0a91..4cb72cda8 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -123,7 +123,7 @@ 00157 void sync_xlines(serverrec* serv, char* tcp_host); 00158 00159 #endif -

    Generated on Wed Apr 13 13:06:55 2005 for InspIRCd by +

    Generated on Thu Apr 14 21:12:05 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 3427e8c2e..7e0c6d191 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -145,7 +145,7 @@

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

    @@ -197,7 +197,7 @@ Referenced by Server::AddEL

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

    @@ -249,7 +249,7 @@ Referenced by Server::AddGL

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

    @@ -301,7 +301,7 @@ Referenced by Server::AddKL

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

    @@ -353,7 +353,7 @@ Referenced by Server::AddQL

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

    @@ -412,7 +412,7 @@ Referenced by Server::AddZL

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

    @@ -443,7 +443,7 @@ Referenced by Server::DelEL

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

    @@ -474,7 +474,7 @@ Referenced by Server::DelGL

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

    @@ -505,7 +505,7 @@ Referenced by Server::DelKL

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

    @@ -536,7 +536,7 @@ Referenced by Server::DelQL

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

    @@ -1095,7 +1095,7 @@ Referenced by Server::DelZL -


    Generated on Wed Apr 13 13:06:59 2005 for InspIRCd by +
    Generated on Thu Apr 14 21:12:07 2005 for InspIRCd by doxygen 1.3.3
    -- cgit v1.2.3