summaryrefslogtreecommitdiff
path: root/docs/man
diff options
context:
space:
mode:
Diffstat (limited to 'docs/man')
-rw-r--r--docs/man/man3/Admin.324
-rw-r--r--docs/man/man3/BanItem.36
-rw-r--r--docs/man/man3/ConfigReader.3304
-rw-r--r--docs/man/man3/ConnectClass.360
-rw-r--r--docs/man/man3/ExemptItem.36
-rw-r--r--docs/man/man3/ExtMode.330
-rw-r--r--docs/man/man3/Extensible.326
-rw-r--r--docs/man/man3/FileReader.3106
-rw-r--r--docs/man/man3/GLine.312
-rw-r--r--docs/man/man3/HostItem.330
-rw-r--r--docs/man/man3/InAddr_HashComp.322
-rw-r--r--docs/man/man3/InviteItem.36
-rw-r--r--docs/man/man3/Invited.310
-rw-r--r--docs/man/man3/KLine.312
-rw-r--r--docs/man/man3/ModeParameter.320
-rw-r--r--docs/man/man3/Module.3167
-rw-r--r--docs/man/man3/ModuleFactory.322
-rw-r--r--docs/man/man3/QLine.318
-rw-r--r--docs/man/man3/Server.3510
-rw-r--r--docs/man/man3/StrHashComp.316
-rw-r--r--docs/man/man3/Version.328
-rw-r--r--docs/man/man3/XLine.336
-rw-r--r--docs/man/man3/ZLine.318
-rw-r--r--docs/man/man3/base.h.310
-rw-r--r--docs/man/man3/channels.cpp.3154
-rw-r--r--docs/man/man3/channels.h.344
-rw-r--r--docs/man/man3/chanrec.3299
-rw-r--r--docs/man/man3/classbase.328
-rw-r--r--docs/man/man3/command_t.342
-rw-r--r--docs/man/man3/commands.h.318
-rw-r--r--docs/man/man3/connection.3168
-rw-r--r--docs/man/man3/connection.h.324
-rw-r--r--docs/man/man3/ctables.h.34
-rw-r--r--docs/man/man3/ircd_connector.3116
-rw-r--r--docs/man/man3/message.h.32
-rw-r--r--docs/man/man3/mode.h.32
-rw-r--r--docs/man/man3/modules.cpp.3371
-rw-r--r--docs/man/man3/modules.h.392
-rw-r--r--docs/man/man3/nspace.36
-rw-r--r--docs/man/man3/nspace_nspace_hash_ in_addr _.314
-rw-r--r--docs/man/man3/nspace_nspace_hash_ string _.318
-rw-r--r--docs/man/man3/packet.38
-rw-r--r--docs/man/man3/serverrec.3143
-rw-r--r--docs/man/man3/servers.cpp.32
-rw-r--r--docs/man/man3/servers.h.38
-rw-r--r--docs/man/man3/std.32
-rw-r--r--docs/man/man3/ucrec.330
-rw-r--r--docs/man/man3/userrec.3380
-rw-r--r--docs/man/man3/users.cpp.36
-rw-r--r--docs/man/man3/users.h.332
-rw-r--r--docs/man/man3/xline.h.312
51 files changed, 1818 insertions, 1706 deletions
diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3
index 050082e5a..c467589a8 100644
--- a/docs/man/man3/Admin.3
+++ b/docs/man/man3/Admin.3
@@ -1,8 +1,8 @@
-.TH "Admin" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "Admin" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-Admin \- Holds /ADMIN data This class contains the admin details of the local server.
+Admin \- Holds /ADMIN data This class contains the admin details of the local server.
.PP
.SH SYNOPSIS
@@ -34,31 +34,31 @@ Inherits \fBclassbase\fP.
.in -1c
.SH "Detailed Description"
.PP
-Holds /ADMIN data This class contains the admin details of the local server.
+Holds /ADMIN data This class contains the admin details of the local server.
It is constructed by class \fBServer\fP, and has three read-only values, Name, Email and Nick that contain the specified values for the server where the module is running.
.PP
-Definition at line 104 of file modules.h.
+Definition at line 114 of file modules.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "Admin::Admin (std::string name, std::string email, std::string nick)"
.PP
-Definition at line 283 of file modules.cpp.
+Definition at line 295 of file modules.cpp.
.PP
.nf
-283 : Name(name), Email(email), Nick(nick) { };
+295 : Name(name), Email(email), Nick(nick) { };
.fi
.SH "Member Data Documentation"
.PP
-.SS "const std::string Admin::Email"
+.SS "const std::string \fBAdmin::Email\fP"
.PP
-Definition at line 107 of file modules.h.
-.SS "const std::string Admin::Name"
+Definition at line 117 of file modules.h.
+.SS "const std::string \fBAdmin::Name\fP"
.PP
-Definition at line 107 of file modules.h.
-.SS "const std::string Admin::Nick"
+Definition at line 117 of file modules.h.
+.SS "const std::string \fBAdmin::Nick\fP"
.PP
-Definition at line 107 of file modules.h.
+Definition at line 117 of file modules.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/BanItem.3 b/docs/man/man3/BanItem.3
index de063285c..0cff6dab3 100644
--- a/docs/man/man3/BanItem.3
+++ b/docs/man/man3/BanItem.3
@@ -1,8 +1,8 @@
-.TH "BanItem" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "BanItem" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-BanItem \- A subclass of \fBHostItem\fP designed to hold channel bans (+b).
+BanItem \- A subclass of \fBHostItem\fP designed to hold channel bans (+b).
.PP
.SH SYNOPSIS
@@ -14,7 +14,7 @@ Inherits \fBHostItem\fP.
.PP
.SH "Detailed Description"
.PP
-A subclass of \fBHostItem\fP designed to hold channel bans (+b).Definition at line 34 of file channels.h.
+A subclass of \fBHostItem\fP designed to hold channel bans (+b). Definition at line 45 of file channels.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3
index 29fcef35f..fc31d292e 100644
--- a/docs/man/man3/ConfigReader.3
+++ b/docs/man/man3/ConfigReader.3
@@ -1,8 +1,8 @@
-.TH "ConfigReader" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "ConfigReader" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-ConfigReader \- Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file.
+ConfigReader \- Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file.
.PP
.SH SYNOPSIS
@@ -18,43 +18,47 @@ Inherits \fBclassbase\fP.
.ti -1c
.RI "\fBConfigReader\fP ()"
.br
-.RI "\fIDefault constructor.\fP"
+.RI "\fIDefault constructor. \fP"
.ti -1c
.RI "\fBConfigReader\fP (std::string filename)"
.br
-.RI "\fIOverloaded constructor.\fP"
+.RI "\fIOverloaded constructor. \fP"
.ti -1c
.RI "\fB~ConfigReader\fP ()"
.br
-.RI "\fIDefault destructor.\fP"
+.RI "\fIDefault destructor. \fP"
.ti -1c
.RI "std::string \fBReadValue\fP (std::string tag, std::string name, int index)"
.br
-.RI "\fIRetrieves a value from the config file.\fP"
+.RI "\fIRetrieves a value from the config file. \fP"
.ti -1c
.RI "bool \fBReadFlag\fP (std::string tag, std::string name, int index)"
.br
-.RI "\fIRetrieves a boolean value from the config file.\fP"
+.RI "\fIRetrieves a boolean value from the config file. \fP"
.ti -1c
.RI "long \fBReadInteger\fP (std::string tag, std::string name, int index, bool needs_unsigned)"
.br
-.RI "\fIRetrieves an integer value from the config file.\fP"
+.RI "\fIRetrieves an integer value from the config file. \fP"
.ti -1c
.RI "long \fBGetError\fP ()"
.br
-.RI "\fIReturns the last error to occur.\fP"
+.RI "\fIReturns the last error to occur. \fP"
.ti -1c
.RI "int \fBEnumerate\fP (std::string tag)"
.br
-.RI "\fICounts the number of times a given tag appears in the config file.\fP"
+.RI "\fICounts the number of times a given tag appears in the config file. \fP"
.ti -1c
.RI "bool \fBVerify\fP ()"
.br
-.RI "\fIReturns true if a config file is valid.\fP"
+.RI "\fIReturns true if a config file is valid. \fP"
+.ti -1c
+.RI "void \fBDumpErrors\fP (bool bail, \fBuserrec\fP *user)"
+.br
+.RI "\fIDumps the list of errors in a config file to an output location. \fP"
.ti -1c
.RI "int \fBEnumerateValues\fP (std::string tag, int index)"
.br
-.RI "\fIReturns the number of items within a tag.\fP"
+.RI "\fIReturns the number of items within a tag. \fP"
.in -1c
.SS "Protected Attributes"
@@ -62,203 +66,257 @@ Inherits \fBclassbase\fP.
.ti -1c
.RI "std::stringstream * \fBcache\fP"
.br
-.RI "\fIThe contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed).\fP"
+.RI "\fIThe contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed). \fP"
+.ti -1c
+.RI "std::stringstream * \fBerrorlog\fP"
+.br
.ti -1c
.RI "bool \fBreaderror\fP"
.br
-.RI "\fIUsed to store errors.\fP"
+.RI "\fIUsed to store errors. \fP"
.ti -1c
.RI "long \fBerror\fP"
.br
.in -1c
.SH "Detailed Description"
.PP
-Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file.
+Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file.
It may either be instantiated with one parameter or none. Constructing the class using one parameter allows you to specify a path to your own configuration file, otherwise, inspircd.conf is read.
.PP
-Definition at line 618 of file modules.h.
+Definition at line 641 of file modules.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "ConfigReader::ConfigReader ()"
.PP
-Default constructor.This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.Definition at line 553 of file modules.cpp.
+Default constructor. This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.Definition at line 566 of file modules.cpp.
.PP
-References cache, CONF_FILE_NOT_FOUND, error, and readerror.
+References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror.
.PP
.nf
-554 {
-555 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-556 this->readerror = LoadConf(CONFIG_FILE,this->cache);
-557 if (!this->readerror)
-558 this->error = CONF_FILE_NOT_FOUND;
-559 }
+567 {
+568 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+569 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+570 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
+571 if (!this->readerror)
+572 this->error = CONF_FILE_NOT_FOUND;
+573 }
.fi
.SS "ConfigReader::ConfigReader (std::string filename)"
.PP
-Overloaded constructor.This constructor initialises the ConfigReader class to read a user-specified config fileDefinition at line 569 of file modules.cpp.
+Overloaded constructor. This constructor initialises the ConfigReader class to read a user-specified config fileDefinition at line 585 of file modules.cpp.
.PP
-References cache, CONF_FILE_NOT_FOUND, error, and readerror.
+References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror.
.PP
.nf
-570 {
-571 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-572 this->readerror = LoadConf(filename.c_str(),this->cache);
-573 if (!this->readerror)
-574 this->error = CONF_FILE_NOT_FOUND;
-575 };
+586 {
+587 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+588 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+589 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
+590 if (!this->readerror)
+591 this->error = CONF_FILE_NOT_FOUND;
+592 };
.fi
-.SS "ConfigReader::~ConfigReader ()"
+.SS "ConfigReader::~\fBConfigReader\fP ()"
.PP
-Default destructor.This method destroys the ConfigReader class.Definition at line 562 of file modules.cpp.
+Default destructor. This method destroys the ConfigReader class.Definition at line 576 of file modules.cpp.
.PP
-References cache.
+References cache, and errorlog.
.PP
.nf
-563 {
-564 if (this->cache)
-565 delete this->cache;
-566 }
+577 {
+578 if (this->cache)
+579 delete this->cache;
+580 if (this->errorlog)
+581 delete this->errorlog;
+582 }
.fi
.SH "Member Function Documentation"
.PP
-.SS "int ConfigReader::Enumerate (std::string tag)"
+.SS "void ConfigReader::DumpErrors (bool bail, \fBuserrec\fP * user)"
.PP
-Counts the number of times a given tag appears in the config file.This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of \fBConfigReader::ReadValue\fP to loop through all copies of a multiple instance tag.Definition at line 647 of file modules.cpp.
+Dumps the list of errors in a config file to an output location. If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers.Definition at line 663 of file modules.cpp.
+.PP
+References errorlog, connection::fd, and userrec::nick.
.PP
.nf
-648 {
-649 return EnumConf(cache,tag.c_str());
-650 }
+664 {
+665 if (bail)
+666 {
+667 printf('There were errors in your configuration:\n%s',errorlog->str().c_str());
+668 exit(0);
+669 }
+670 else
+671 {
+672 char dataline[1024];
+673 if (user)
+674 {
+675 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick);
+676 while (!errorlog->eof())
+677 {
+678 errorlog->getline(dataline,1024);
+679 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline);
+680 }
+681 }
+682 else
+683 {
+684 WriteOpers('There were errors in the configuration file:',user->nick);
+685 while (!errorlog->eof())
+686 {
+687 errorlog->getline(dataline,1024);
+688 WriteOpers(dataline);
+689 }
+690 }
+691 return;
+692 }
+693 }
.fi
-.SS "int ConfigReader::EnumerateValues (std::string tag, int index)"
+.SS "int ConfigReader::Enumerate (std::string tag)"
+.PP
+Counts the number of times a given tag appears in the config file. This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of \fBConfigReader::ReadValue\fP to loop through all copies of a multiple instance tag.Definition at line 696 of file modules.cpp.
.PP
-Returns the number of items within a tag.For example if the tag was <test tag='blah' data='foo'> then this function would return 2. Spaces and newlines both qualify as valid seperators between values.Definition at line 652 of file modules.cpp.
+References cache.
.PP
.nf
-653 {
-654 return EnumValues(cache, tag.c_str(), index);
-655 }
+697 {
+698 return EnumConf(cache,tag.c_str());
+699 }
.fi
-.SS "long ConfigReader::GetError ()"
+.SS "int ConfigReader::EnumerateValues (std::string tag, int index)"
.PP
-Returns the last error to occur.Valid errors can be found by looking in \fBmodules.h\fP. Any nonzero value indicates an error condition. A call to \fBGetError()\fP resets the error flag back to 0.Definition at line 639 of file modules.cpp.
+Returns the number of items within a tag. For example if the tag was <test tag='blah' data='foo'> then this function would return 2. Spaces and newlines both qualify as valid seperators between values.Definition at line 701 of file modules.cpp.
.PP
-References error.
+References cache.
.PP
.nf
-640 {
-641 long olderr = this->error;
-642 this->error = 0;
-643 return olderr;
-644 }
+702 {
+703 return EnumValues(cache, tag.c_str(), index);
+704 }
.fi
-.SS "bool ConfigReader::ReadFlag (std::string tag, std::string name, int index)"
+.SS "long ConfigReader::GetError ()"
.PP
-Retrieves a boolean value from the config file.This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values '1', 'yes' and 'true' in the config file count as true to ReadFlag, and any other value counts as false.Definition at line 593 of file modules.cpp.
+Returns the last error to occur. Valid errors can be found by looking in \fBmodules.h\fP. Any nonzero value indicates an error condition. A call to \fBGetError()\fP resets the error flag back to 0.Definition at line 656 of file modules.cpp.
.PP
-References CONF_VALUE_NOT_FOUND, and error.
+References error.
.PP
.nf
-594 {
-595 char val[MAXBUF];
-596 char t[MAXBUF];
-597 char n[MAXBUF];
-598 strncpy(t,tag.c_str(),MAXBUF);
-599 strncpy(n,name.c_str(),MAXBUF);
-600 int res = ReadConf(cache,t,n,index,val);
-601 if (!res)
-602 {
-603 this->error = CONF_VALUE_NOT_FOUND;
-604 return false;
-605 }
-606 std::string s = val;
-607 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1'));
-608 }
+657 {
+658 long olderr = this->error;
+659 this->error = 0;
+660 return olderr;
+661 }
.fi
-.SS "long ConfigReader::ReadInteger (std::string tag, std::string name, int index, bool needs_unsigned)"
+.SS "bool ConfigReader::ReadFlag (std::string tag, std::string name, int index)"
.PP
-Retrieves an integer value from the config file.This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to \fBGetError()\fP will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and \fBGetError()\fP will return CONF_NOT_UNSIGNEDDefinition at line 610 of file modules.cpp.
+Retrieves a boolean value from the config file. This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values '1', 'yes' and 'true' in the config file count as true to ReadFlag, and any other value counts as false.Definition at line 610 of file modules.cpp.
.PP
-References CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error.
+References cache, CONF_VALUE_NOT_FOUND, and error.
.PP
.nf
611 {
612 char val[MAXBUF];
613 char t[MAXBUF];
614 char n[MAXBUF];
-615 strncpy(t,tag.c_str(),MAXBUF);
-616 strncpy(n,name.c_str(),MAXBUF);
+615 strlcpy(t,tag.c_str(),MAXBUF);
+616 strlcpy(n,name.c_str(),MAXBUF);
617 int res = ReadConf(cache,t,n,index,val);
618 if (!res)
619 {
620 this->error = CONF_VALUE_NOT_FOUND;
-621 return 0;
+621 return false;
622 }
-623 for (int i = 0; i < strlen(val); i++)
-624 {
-625 if (!isdigit(val[i]))
-626 {
-627 this->error = CONF_NOT_A_NUMBER;
-628 return 0;
-629 }
-630 }
-631 if ((needs_unsigned) && (atoi(val)<0))
-632 {
-633 this->error = CONF_NOT_UNSIGNED;
-634 return 0;
-635 }
-636 return atoi(val);
-637 }
+623 std::string s = val;
+624 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1'));
+625 }
+.fi
+.SS "long ConfigReader::ReadInteger (std::string tag, std::string name, int index, bool needs_unsigned)"
+.PP
+Retrieves an integer value from the config file. This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to \fBGetError()\fP will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and \fBGetError()\fP will return CONF_NOT_UNSIGNEDDefinition at line 627 of file modules.cpp.
+.PP
+References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error.
+.PP
+.nf
+628 {
+629 char val[MAXBUF];
+630 char t[MAXBUF];
+631 char n[MAXBUF];
+632 strlcpy(t,tag.c_str(),MAXBUF);
+633 strlcpy(n,name.c_str(),MAXBUF);
+634 int res = ReadConf(cache,t,n,index,val);
+635 if (!res)
+636 {
+637 this->error = CONF_VALUE_NOT_FOUND;
+638 return 0;
+639 }
+640 for (int i = 0; i < strlen(val); i++)
+641 {
+642 if (!isdigit(val[i]))
+643 {
+644 this->error = CONF_NOT_A_NUMBER;
+645 return 0;
+646 }
+647 }
+648 if ((needs_unsigned) && (atoi(val)<0))
+649 {
+650 this->error = CONF_NOT_UNSIGNED;
+651 return 0;
+652 }
+653 return atoi(val);
+654 }
.fi
.SS "std::string ConfigReader::ReadValue (std::string tag, std::string name, int index)"
.PP
-Retrieves a value from the config file.This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve.Definition at line 577 of file modules.cpp.
+Retrieves a value from the config file. This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve.Definition at line 594 of file modules.cpp.
.PP
-References CONF_VALUE_NOT_FOUND, and error.
+References cache, CONF_VALUE_NOT_FOUND, and error.
.PP
.nf
-578 {
-579 char val[MAXBUF];
-580 char t[MAXBUF];
-581 char n[MAXBUF];
-582 strncpy(t,tag.c_str(),MAXBUF);
-583 strncpy(n,name.c_str(),MAXBUF);
-584 int res = ReadConf(cache,t,n,index,val);
-585 if (!res)
-586 {
-587 this->error = CONF_VALUE_NOT_FOUND;
-588 return '';
-589 }
-590 return std::string(val);
-591 }
+595 {
+596 char val[MAXBUF];
+597 char t[MAXBUF];
+598 char n[MAXBUF];
+599 strlcpy(t,tag.c_str(),MAXBUF);
+600 strlcpy(n,name.c_str(),MAXBUF);
+601 int res = ReadConf(cache,t,n,index,val);
+602 if (!res)
+603 {
+604 this->error = CONF_VALUE_NOT_FOUND;
+605 return '';
+606 }
+607 return std::string(val);
+608 }
.fi
.SS "bool ConfigReader::Verify ()"
.PP
-Returns true if a config file is valid.This method is partially implemented and will only return false if the config file does not exist or could not be opened.Definition at line 657 of file modules.cpp.
+Returns true if a config file is valid. This method is partially implemented and will only return false if the config file does not exist or could not be opened.Definition at line 706 of file modules.cpp.
.PP
References readerror.
.PP
.nf
-658 {
-659 return this->readerror;
-660 }
+707 {
+708 return this->readerror;
+709 }
.fi
.SH "Member Data Documentation"
.PP
-.SS "std::stringstream* ConfigReader::cache\fC [protected]\fP"
+.SS "std::stringstream* \fBConfigReader::cache\fP\fC [protected]\fP"
.PP
-The contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed).It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.Definition at line 626 of file modules.h.
+The contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed). It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.Definition at line 649 of file modules.h.
.PP
-Referenced by ConfigReader(), and ~ConfigReader().
-.SS "long ConfigReader::error\fC [protected]\fP"
+Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader().
+.SS "long \fBConfigReader::error\fP\fC [protected]\fP"
.PP
-Definition at line 630 of file modules.h.
+Definition at line 654 of file modules.h.
.PP
Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue().
-.SS "bool ConfigReader::readerror\fC [protected]\fP"
+.SS "std::stringstream* \fBConfigReader::errorlog\fP\fC [protected]\fP"
+.PP
+Definition at line 650 of file modules.h.
+.PP
+Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader().
+.SS "bool \fBConfigReader::readerror\fP\fC [protected]\fP"
.PP
-Used to store errors.Definition at line 629 of file modules.h.
+Used to store errors. Definition at line 653 of file modules.h.
.PP
Referenced by ConfigReader(), and Verify().
diff --git a/docs/man/man3/ConnectClass.3 b/docs/man/man3/ConnectClass.3
index beb774677..b19e07801 100644
--- a/docs/man/man3/ConnectClass.3
+++ b/docs/man/man3/ConnectClass.3
@@ -1,8 +1,8 @@
-.TH "ConnectClass" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "ConnectClass" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-ConnectClass \- Holds information relevent to <connect allow> and <connect deny> tags in the config file.
+ConnectClass \- Holds information relevent to <connect allow> and <connect deny> tags in the config file.
.PP
.SH SYNOPSIS
@@ -25,58 +25,68 @@ Inherits \fBclassbase\fP.
.ti -1c
.RI "int \fBtype\fP"
.br
-.RI "\fIType of line, either CC_ALLOW or CC_DENY.\fP"
+.RI "\fIType of line, either CC_ALLOW or CC_DENY. \fP"
.ti -1c
.RI "int \fBregistration_timeout\fP"
.br
-.RI "\fIMax time to register the connection in seconds.\fP"
+.RI "\fIMax time to register the connection in seconds. \fP"
.ti -1c
.RI "int \fBflood\fP"
.br
-.RI "\fINumber of lines in buffer before excess flood is triggered.\fP"
+.RI "\fINumber of lines in buffer before excess flood is triggered. \fP"
.ti -1c
.RI "char \fBhost\fP [MAXBUF]"
.br
-.RI "\fIHost mask for this line.\fP"
+.RI "\fIHost mask for this line. \fP"
.ti -1c
.RI "char \fBpass\fP [MAXBUF]"
.br
-.RI "\fI(Optional) Password for this line\fP"
+.RI "\fI(Optional) Password for this line \fP"
.in -1c
.SH "Detailed Description"
.PP
-Holds information relevent to <connect allow> and <connect deny> tags in the config file.Definition at line 34 of file users.h.
+Holds information relevent to <connect allow> and <connect deny> tags in the config file. Definition at line 45 of file users.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "ConnectClass::ConnectClass ()\fC [inline]\fP"
.PP
-Definition at line 53 of file users.h.
+Definition at line 64 of file users.h.
+.PP
+References flood, host, pass, and registration_timeout.
.PP
.nf
-54 {
-55 registration_timeout = 0;
-56 flood = 0;
-57 strcpy(host,'');
-58 strcpy(pass,'');
-59 }
+65 {
+66 registration_timeout = 0;
+67 flood = 0;
+68 strlcpy(host,'',MAXBUF);
+69 strlcpy(pass,'',MAXBUF);
+70 }
.fi
.SH "Member Data Documentation"
.PP
-.SS "int ConnectClass::flood"
+.SS "int \fBConnectClass::flood\fP"
+.PP
+Number of lines in buffer before excess flood is triggered. Definition at line 56 of file users.h.
+.PP
+Referenced by ConnectClass().
+.SS "char \fBConnectClass::host\fP[MAXBUF]"
+.PP
+Host mask for this line. Definition at line 59 of file users.h.
+.PP
+Referenced by ConnectClass().
+.SS "char \fBConnectClass::pass\fP[MAXBUF]"
.PP
-Number of lines in buffer before excess flood is triggered.Definition at line 45 of file users.h.
-.SS "char ConnectClass::host[MAXBUF]"
+(Optional) Password for this line Definition at line 62 of file users.h.
.PP
-Host mask for this line.Definition at line 48 of file users.h.
-.SS "char ConnectClass::pass[MAXBUF]"
+Referenced by ConnectClass().
+.SS "int \fBConnectClass::registration_timeout\fP"
.PP
-(Optional) Password for this lineDefinition at line 51 of file users.h.
-.SS "int ConnectClass::registration_timeout"
+Max time to register the connection in seconds. Definition at line 53 of file users.h.
.PP
-Max time to register the connection in seconds.Definition at line 42 of file users.h.
-.SS "int ConnectClass::type"
+Referenced by ConnectClass().
+.SS "int \fBConnectClass::type\fP"
.PP
-Type of line, either CC_ALLOW or CC_DENY.Definition at line 39 of file users.h.
+Type of line, either CC_ALLOW or CC_DENY. Definition at line 50 of file users.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3
index 94b9a29eb..39ecb407b 100644
--- a/docs/man/man3/ExemptItem.3
+++ b/docs/man/man3/ExemptItem.3
@@ -1,8 +1,8 @@
-.TH "ExemptItem" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "ExemptItem" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-ExemptItem \- A subclass of \fBHostItem\fP designed to hold channel exempts (+e).
+ExemptItem \- A subclass of \fBHostItem\fP designed to hold channel exempts (+e).
.PP
.SH SYNOPSIS
@@ -14,7 +14,7 @@ Inherits \fBHostItem\fP.
.PP
.SH "Detailed Description"
.PP
-A subclass of \fBHostItem\fP designed to hold channel exempts (+e).Definition at line 42 of file channels.h.
+A subclass of \fBHostItem\fP designed to hold channel exempts (+e). Definition at line 53 of file channels.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/ExtMode.3 b/docs/man/man3/ExtMode.3
index d2da027f5..1be57e1ec 100644
--- a/docs/man/man3/ExtMode.3
+++ b/docs/man/man3/ExtMode.3
@@ -1,4 +1,4 @@
-.TH "ExtMode" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "ExtMode" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -41,31 +41,31 @@ Inherits \fBclassbase\fP.
.PP
.SS "ExtMode::ExtMode (char mc, int ty, bool oper, int p_on, int p_off)\fC [inline]\fP"
.PP
-Definition at line 175 of file modules.cpp.
+Definition at line 190 of file modules.cpp.
.PP
.nf
-175 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
+190 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
.fi
.SH "Member Data Documentation"
.PP
-.SS "bool ExtMode::list"
+.SS "bool \fBExtMode::list\fP"
.PP
-Definition at line 174 of file modules.cpp.
-.SS "char ExtMode::modechar"
+Definition at line 189 of file modules.cpp.
+.SS "char \fBExtMode::modechar\fP"
.PP
-Definition at line 169 of file modules.cpp.
-.SS "bool ExtMode::needsoper"
+Definition at line 184 of file modules.cpp.
+.SS "bool \fBExtMode::needsoper\fP"
.PP
-Definition at line 173 of file modules.cpp.
-.SS "int ExtMode::params_when_off"
+Definition at line 188 of file modules.cpp.
+.SS "int \fBExtMode::params_when_off\fP"
.PP
-Definition at line 172 of file modules.cpp.
-.SS "int ExtMode::params_when_on"
+Definition at line 187 of file modules.cpp.
+.SS "int \fBExtMode::params_when_on\fP"
.PP
-Definition at line 171 of file modules.cpp.
-.SS "int ExtMode::type"
+Definition at line 186 of file modules.cpp.
+.SS "int \fBExtMode::type\fP"
.PP
-Definition at line 170 of file modules.cpp.
+Definition at line 185 of file modules.cpp.
.SH "Author"
.PP
diff --git a/docs/man/man3/Extensible.3 b/docs/man/man3/Extensible.3
index dc2356ca4..f234a10f9 100644
--- a/docs/man/man3/Extensible.3
+++ b/docs/man/man3/Extensible.3
@@ -1,8 +1,8 @@
-.TH "Extensible" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "Extensible" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-Extensible \- class Extensible is the parent class of many classes such as userrec and chanrec.
+Extensible \- class Extensible is the parent class of many classes such as userrec and chanrec.
.PP
.SH SYNOPSIS
@@ -20,15 +20,15 @@ Inherited by \fBchanrec\fP, \fBcommand_t\fP, \fBconnection\fP, and \fBircd_conne
.ti -1c
.RI "bool \fBExtend\fP (std::string key, char *p)"
.br
-.RI "\fIExtend an Extensible class.\fP"
+.RI "\fIExtend an Extensible class. \fP"
.ti -1c
.RI "bool \fBShrink\fP (std::string key)"
.br
-.RI "\fIShrink an Extensible class.\fP"
+.RI "\fIShrink an Extensible class. \fP"
.ti -1c
.RI "char * \fBGetExt\fP (std::string key)"
.br
-.RI "\fIGet an extension item.\fP"
+.RI "\fIGet an extension item. \fP"
.in -1c
.SS "Private Attributes"
@@ -36,31 +36,31 @@ Inherited by \fBchanrec\fP, \fBcommand_t\fP, \fBconnection\fP, and \fBircd_conne
.ti -1c
.RI "std::map< std::string, char * > \fBExtension_Items\fP"
.br
-.RI "\fIPrivate data store.\fP"
+.RI "\fIPrivate data store. \fP"
.in -1c
.SH "Detailed Description"
.PP
-class Extensible is the parent class of many classes such as userrec and chanrec.
+class Extensible is the parent class of many classes such as userrec and chanrec.
class Extensible implements a system which allows modules to 'extend' the class by attaching data within a map associated with the object. In this way modules can store their own custom information within user objects, channel objects and server objects, without breaking other modules (this is more sensible than using a flags variable, and each module defining bits within the flag as 'theirs' as it is less prone to conflict and supports arbitary data storage).
.PP
-Definition at line 38 of file base.h.
+Definition at line 50 of file base.h.
.SH "Member Function Documentation"
.PP
.SS "bool Extensible::Extend (std::string key, char * p)"
.PP
-Extend an Extensible class.You must provide a key to store the data as, and a void* to the data (typedef VoidPointer) The data will be inserted into the map. If the data already exists, you may not insert it twice, \fBExtensible::Extend\fP will return false in this case. On successful extension, Extend returns true.
+Extend an Extensible class. You must provide a key to store the data as, and a void* to the data (typedef VoidPointer) The data will be inserted into the map. If the data already exists, you may not insert it twice, \fBExtensible::Extend\fP will return false in this case. On successful extension, Extend returns true.
.SS "char* Extensible::GetExt (std::string key)"
.PP
-Get an extension item.You must provide a key name, which is case sensitive. If you provide a non-existent key name, the function returns NULL, otherwise a pointer to the item referenced by the key is returned.
+Get an extension item. You must provide a key name, which is case sensitive. If you provide a non-existent key name, the function returns NULL, otherwise a pointer to the item referenced by the key is returned.
.SS "bool Extensible::Shrink (std::string key)"
.PP
-Shrink an Extensible class.You must provide a key name. The given key name will be removed from the classes data. If you provide a nonexistent key (case is important) then the function will return false. Returns true on success.
+Shrink an Extensible class. You must provide a key name. The given key name will be removed from the classes data. If you provide a nonexistent key (case is important) then the function will return false. Returns true on success.
.SH "Member Data Documentation"
.PP
-.SS "std::map<std::string,char*> Extensible::Extension_Items\fC [private]\fP"
+.SS "std::map<std::string,char*> \fBExtensible::Extension_Items\fP\fC [private]\fP"
.PP
-Private data store.Definition at line 42 of file base.h.
+Private data store. Definition at line 54 of file base.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3
index ec0652118..60ee3d2dd 100644
--- a/docs/man/man3/FileReader.3
+++ b/docs/man/man3/FileReader.3
@@ -1,8 +1,8 @@
-.TH "FileReader" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "FileReader" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-FileReader \- Caches a text file into memory and can be used to retrieve lines from it.
+FileReader \- Caches a text file into memory and can be used to retrieve lines from it.
.PP
.SH SYNOPSIS
@@ -18,31 +18,31 @@ Inherits \fBclassbase\fP.
.ti -1c
.RI "\fBFileReader\fP ()"
.br
-.RI "\fIDefault constructor.\fP"
+.RI "\fIDefault constructor. \fP"
.ti -1c
.RI "\fBFileReader\fP (std::string filename)"
.br
-.RI "\fISecondary constructor.\fP"
+.RI "\fISecondary constructor. \fP"
.ti -1c
.RI "\fB~FileReader\fP ()"
.br
-.RI "\fIDefault destructor.\fP"
+.RI "\fIDefault destructor. \fP"
.ti -1c
.RI "void \fBLoadFile\fP (std::string filename)"
.br
-.RI "\fIUsed to load a file.\fP"
+.RI "\fIUsed to load a file. \fP"
.ti -1c
.RI "bool \fBExists\fP ()"
.br
-.RI "\fIReturns true if the file exists This function will return false if the file could not be opened.\fP"
+.RI "\fIReturns true if the file exists This function will return false if the file could not be opened. \fP"
.ti -1c
.RI "std::string \fBGetLine\fP (int x)"
.br
-.RI "\fIRetrieve one line from the file.\fP"
+.RI "\fIRetrieve one line from the file. \fP"
.ti -1c
.RI "int \fBFileSize\fP ()"
.br
-.RI "\fIReturns the size of the file in lines.\fP"
+.RI "\fIReturns the size of the file in lines. \fP"
.in -1c
.SS "Private Attributes"
@@ -53,104 +53,104 @@ Inherits \fBclassbase\fP.
.in -1c
.SH "Detailed Description"
.PP
-Caches a text file into memory and can be used to retrieve lines from it.
+Caches a text file into memory and can be used to retrieve lines from it.
This class contains methods for read-only manipulation of a text file in memory. Either use the constructor type with one parameter to load a file into memory at construction, or use the LoadFile method to load a file.
.PP
-Definition at line 699 of file modules.h.
+Definition at line 730 of file modules.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "FileReader::FileReader ()"
.PP
-Default constructor.This method does not load any file into memory, you must use the LoadFile method after constructing the class this way.Definition at line 670 of file modules.cpp.
+Default constructor. This method does not load any file into memory, you must use the LoadFile method after constructing the class this way.Definition at line 719 of file modules.cpp.
.PP
.nf
-671 {
-672 }
+720 {
+721 }
.fi
.SS "FileReader::FileReader (std::string filename)"
.PP
-Secondary constructor.This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, \fBFileReader::FileSize\fP returns 0.Definition at line 663 of file modules.cpp.
+Secondary constructor. This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, \fBFileReader::FileSize\fP returns 0.Definition at line 712 of file modules.cpp.
.PP
References fc, and file_cache.
.PP
.nf
-664 {
-665 file_cache c;
-666 readfile(c,filename.c_str());
-667 this->fc = c;
-668 }
+713 {
+714 file_cache c;
+715 readfile(c,filename.c_str());
+716 this->fc = c;
+717 }
.fi
-.SS "FileReader::~FileReader ()"
+.SS "FileReader::~\fBFileReader\fP ()"
.PP
-Default destructor.This deletes the memory allocated to the file.Definition at line 682 of file modules.cpp.
+Default destructor. This deletes the memory allocated to the file.Definition at line 731 of file modules.cpp.
.PP
.nf
-683 {
-684 }
+732 {
+733 }
.fi
.SH "Member Function Documentation"
.PP
.SS "bool FileReader::Exists ()"
.PP
-Returns true if the file exists This function will return false if the file could not be opened.Definition at line 686 of file modules.cpp.
+Returns true if the file exists This function will return false if the file could not be opened. Definition at line 735 of file modules.cpp.
.PP
References fc.
.PP
.nf
-687 {
-688 if (fc.size() == 0)
-689 {
-690 return(false);
-691 }
-692 else
-693 {
-694 return(true);
-695 }
-696 }
+736 {
+737 if (fc.size() == 0)
+738 {
+739 return(false);
+740 }
+741 else
+742 {
+743 return(true);
+744 }
+745 }
.fi
.SS "int FileReader::FileSize ()"
.PP
-Returns the size of the file in lines.This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems.Definition at line 705 of file modules.cpp.
+Returns the size of the file in lines. This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems.Definition at line 754 of file modules.cpp.
.PP
References fc.
.PP
.nf
-706 {
-707 return fc.size();
-708 }
+755 {
+756 return fc.size();
+757 }
.fi
.SS "std::string FileReader::GetLine (int x)"
.PP
-Retrieve one line from the file.This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it.Definition at line 698 of file modules.cpp.
+Retrieve one line from the file. This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it.Definition at line 747 of file modules.cpp.
.PP
References fc.
.PP
.nf
-699 {
-700 if ((x<0) || (x>fc.size()))
-701 return '';
-702 return fc[x];
-703 }
+748 {
+749 if ((x<0) || (x>fc.size()))
+750 return '';
+751 return fc[x];
+752 }
.fi
.SS "void FileReader::LoadFile (std::string filename)"
.PP
-Used to load a file.This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, \fBFileReader::FileSize\fP returns 0.Definition at line 674 of file modules.cpp.
+Used to load a file. This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, \fBFileReader::FileSize\fP returns 0.Definition at line 723 of file modules.cpp.
.PP
References fc, and file_cache.
.PP
.nf
-675 {
-676 file_cache c;
-677 readfile(c,filename.c_str());
-678 this->fc = c;
-679 }
+724 {
+725 file_cache c;
+726 readfile(c,filename.c_str());
+727 this->fc = c;
+728 }
.fi
.SH "Member Data Documentation"
.PP
-.SS "\fBfile_cache\fP FileReader::fc\fC [private]\fP"
+.SS "\fBfile_cache\fP \fBFileReader::fc\fP\fC [private]\fP"
.PP
-Definition at line 701 of file modules.h.
+Definition at line 732 of file modules.h.
.PP
Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile().
diff --git a/docs/man/man3/GLine.3 b/docs/man/man3/GLine.3
index 1808a91af..16bdc1fbf 100644
--- a/docs/man/man3/GLine.3
+++ b/docs/man/man3/GLine.3
@@ -1,8 +1,8 @@
-.TH "GLine" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "GLine" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-GLine \- GLine class.
+GLine \- GLine class.
.PP
.SH SYNOPSIS
@@ -18,16 +18,16 @@ Inherits \fBXLine\fP.
.ti -1c
.RI "char \fBhostmask\fP [MAXBUF]"
.br
-.RI "\fIHostmask (ident) to match against May contain wildcards.\fP"
+.RI "\fIHostmask (ident) to match against May contain wildcards. \fP"
.in -1c
.SH "Detailed Description"
.PP
-GLine class.Definition at line 57 of file xline.h.
+GLine class. Definition at line 73 of file xline.h.
.SH "Member Data Documentation"
.PP
-.SS "char GLine::hostmask[MAXBUF]"
+.SS "char \fBGLine::hostmask\fP[MAXBUF]"
.PP
-Hostmask (ident) to match against May contain wildcards.Definition at line 63 of file xline.h.
+Hostmask (ident) to match against May contain wildcards. Definition at line 79 of file xline.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3
index d8f7eb9ea..9f9171770 100644
--- a/docs/man/man3/HostItem.3
+++ b/docs/man/man3/HostItem.3
@@ -1,8 +1,8 @@
-.TH "HostItem" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "HostItem" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-HostItem \- Holds an entry for a ban list, exemption list, or invite list.
+HostItem \- Holds an entry for a ban list, exemption list, or invite list.
.PP
.SH SYNOPSIS
@@ -39,38 +39,38 @@ Inherited by \fBBanItem\fP, \fBExemptItem\fP, and \fBInviteItem\fP.
.in -1c
.SH "Detailed Description"
.PP
-Holds an entry for a ban list, exemption list, or invite list.
+Holds an entry for a ban list, exemption list, or invite list.
This class contains a single element in a channel list, such as a banlist.
.PP
-Definition at line 18 of file channels.h.
+Definition at line 29 of file channels.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "HostItem::HostItem ()\fC [inline]\fP"
.PP
-Definition at line 25 of file channels.h.
+Definition at line 36 of file channels.h.
.PP
.nf
-25 { /* stub */ }
+36 { /* stub */ }
.fi
-.SS "virtual HostItem::~HostItem ()\fC [inline, virtual]\fP"
+.SS "virtual HostItem::~\fBHostItem\fP ()\fC [inline, virtual]\fP"
.PP
-Definition at line 26 of file channels.h.
+Definition at line 37 of file channels.h.
.PP
.nf
-26 { /* stub */ }
+37 { /* stub */ }
.fi
.SH "Member Data Documentation"
.PP
-.SS "char HostItem::data[MAXBUF]"
+.SS "char \fBHostItem::data\fP[MAXBUF]"
.PP
-Definition at line 23 of file channels.h.
-.SS "char HostItem::set_by[NICKMAX]"
+Definition at line 34 of file channels.h.
+.SS "char \fBHostItem::set_by\fP[NICKMAX]"
.PP
-Definition at line 22 of file channels.h.
-.SS "time_t HostItem::set_time"
+Definition at line 33 of file channels.h.
+.SS "time_t \fBHostItem::set_time\fP"
.PP
-Definition at line 21 of file channels.h.
+Definition at line 32 of file channels.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/InAddr_HashComp.3 b/docs/man/man3/InAddr_HashComp.3
index 6075e0457..01929e516 100644
--- a/docs/man/man3/InAddr_HashComp.3
+++ b/docs/man/man3/InAddr_HashComp.3
@@ -1,4 +1,4 @@
-.TH "InAddr_HashComp" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "InAddr_HashComp" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -17,18 +17,18 @@ InAddr_HashComp \-
.PP
.SS "bool InAddr_HashComp::operator() (const in_addr & s1, const in_addr & s2) const\fC [inline]\fP"
.PP
-Definition at line 135 of file modules.cpp.
+Definition at line 150 of file modules.cpp.
.PP
.nf
-136 {
-137 size_t q;
-138 size_t p;
-139
-140 memcpy(&q,&s1,sizeof(size_t));
-141 memcpy(&p,&s2,sizeof(size_t));
-142
-143 return (q == p);
-144 }
+151 {
+152 size_t q;
+153 size_t p;
+154
+155 memcpy(&q,&s1,sizeof(size_t));
+156 memcpy(&p,&s2,sizeof(size_t));
+157
+158 return (q == p);
+159 }
.fi
diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3
index 9687c48d5..8e1a1453a 100644
--- a/docs/man/man3/InviteItem.3
+++ b/docs/man/man3/InviteItem.3
@@ -1,8 +1,8 @@
-.TH "InviteItem" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "InviteItem" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-InviteItem \- A subclass of \fBHostItem\fP designed to hold channel invites (+I).
+InviteItem \- A subclass of \fBHostItem\fP designed to hold channel invites (+I).
.PP
.SH SYNOPSIS
@@ -14,7 +14,7 @@ Inherits \fBHostItem\fP.
.PP
.SH "Detailed Description"
.PP
-A subclass of \fBHostItem\fP designed to hold channel invites (+I).Definition at line 50 of file channels.h.
+A subclass of \fBHostItem\fP designed to hold channel invites (+I). Definition at line 61 of file channels.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/Invited.3 b/docs/man/man3/Invited.3
index 3281a6887..a6e52eb0d 100644
--- a/docs/man/man3/Invited.3
+++ b/docs/man/man3/Invited.3
@@ -1,8 +1,8 @@
-.TH "Invited" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "Invited" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-Invited \- Holds a channel name to which a user has been invited.
+Invited \- Holds a channel name to which a user has been invited.
.PP
.SH SYNOPSIS
@@ -21,12 +21,12 @@ Inherits \fBclassbase\fP.
.in -1c
.SH "Detailed Description"
.PP
-Holds a channel name to which a user has been invited.Definition at line 25 of file users.h.
+Holds a channel name to which a user has been invited. Definition at line 36 of file users.h.
.SH "Member Data Documentation"
.PP
-.SS "char Invited::channel[CHANMAX]"
+.SS "char \fBInvited::channel\fP[CHANMAX]"
.PP
-Definition at line 28 of file users.h.
+Definition at line 39 of file users.h.
.PP
Referenced by userrec::InviteTo().
diff --git a/docs/man/man3/KLine.3 b/docs/man/man3/KLine.3
index ec00ca87d..7ce3c2dc7 100644
--- a/docs/man/man3/KLine.3
+++ b/docs/man/man3/KLine.3
@@ -1,8 +1,8 @@
-.TH "KLine" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "KLine" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-KLine \- KLine class.
+KLine \- KLine class.
.PP
.SH SYNOPSIS
@@ -18,16 +18,16 @@ Inherits \fBXLine\fP.
.ti -1c
.RI "char \fBhostmask\fP [MAXBUF]"
.br
-.RI "\fIHostmask (ident) to match against May contain wildcards.\fP"
+.RI "\fIHostmask (ident) to match against May contain wildcards. \fP"
.in -1c
.SH "Detailed Description"
.PP
-KLine class.Definition at line 46 of file xline.h.
+KLine class. Definition at line 62 of file xline.h.
.SH "Member Data Documentation"
.PP
-.SS "char KLine::hostmask[MAXBUF]"
+.SS "char \fBKLine::hostmask\fP[MAXBUF]"
.PP
-Hostmask (ident) to match against May contain wildcards.Definition at line 52 of file xline.h.
+Hostmask (ident) to match against May contain wildcards. Definition at line 68 of file xline.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3
index 7d83d8d88..a3ae736f6 100644
--- a/docs/man/man3/ModeParameter.3
+++ b/docs/man/man3/ModeParameter.3
@@ -1,8 +1,8 @@
-.TH "ModeParameter" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "ModeParameter" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-ModeParameter \- Holds a custom parameter to a module-defined channel mode e.g.
+ModeParameter \- Holds a custom parameter to a module-defined channel mode e.g.
.PP
.SH SYNOPSIS
@@ -27,26 +27,26 @@ Inherits \fBclassbase\fP.
.in -1c
.SH "Detailed Description"
.PP
-Holds a custom parameter to a module-defined channel mode e.g.
+Holds a custom parameter to a module-defined channel mode e.g.
for +L this would hold the channel name.
.PP
-Definition at line 59 of file channels.h.
+Definition at line 70 of file channels.h.
.SH "Member Data Documentation"
.PP
-.SS "char ModeParameter::channel[CHANMAX]"
+.SS "char \fBModeParameter::channel\fP[CHANMAX]"
.PP
-Definition at line 64 of file channels.h.
+Definition at line 75 of file channels.h.
.PP
Referenced by chanrec::SetCustomModeParam().
-.SS "char ModeParameter::mode"
+.SS "char \fBModeParameter::mode\fP"
.PP
-Definition at line 62 of file channels.h.
+Definition at line 73 of file channels.h.
.PP
Referenced by chanrec::SetCustomModeParam().
-.SS "char ModeParameter::parameter[MAXBUF]"
+.SS "char \fBModeParameter::parameter\fP[MAXBUF]"
.PP
-Definition at line 63 of file channels.h.
+Definition at line 74 of file channels.h.
.PP
Referenced by chanrec::SetCustomModeParam().
diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3
index f48f1d650..1974eb93a 100644
--- a/docs/man/man3/Module.3
+++ b/docs/man/man3/Module.3
@@ -1,8 +1,8 @@
-.TH "Module" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "Module" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-Module \- Base class for all InspIRCd modules This class is the base class for InspIRCd modules.
+Module \- Base class for all InspIRCd modules This class is the base class for InspIRCd modules.
.PP
.SH SYNOPSIS
@@ -18,127 +18,131 @@ Inherits \fBclassbase\fP.
.ti -1c
.RI "\fBModule\fP ()"
.br
-.RI "\fIDefault constructor creates a module class.\fP"
+.RI "\fIDefault constructor creates a module class. \fP"
.ti -1c
.RI "virtual \fB~Module\fP ()"
.br
-.RI "\fIDefault destructor destroys a module class.\fP"
+.RI "\fIDefault destructor destroys a module class. \fP"
.ti -1c
.RI "virtual \fBVersion\fP \fBGetVersion\fP ()"
.br
-.RI "\fIReturns the version number of a Module.\fP"
+.RI "\fIReturns the version number of a Module. \fP"
.ti -1c
.RI "virtual void \fBOnUserConnect\fP (\fBuserrec\fP *user)"
.br
-.RI "\fICalled when a user connects.\fP"
+.RI "\fICalled when a user connects. \fP"
.ti -1c
.RI "virtual void \fBOnUserQuit\fP (\fBuserrec\fP *user)"
.br
-.RI "\fICalled when a user quits.\fP"
+.RI "\fICalled when a user quits. \fP"
.ti -1c
.RI "virtual void \fBOnUserJoin\fP (\fBuserrec\fP *user, \fBchanrec\fP *channel)"
.br
-.RI "\fICalled when a user joins a channel.\fP"
+.RI "\fICalled when a user joins a channel. \fP"
.ti -1c
.RI "virtual void \fBOnUserPart\fP (\fBuserrec\fP *user, \fBchanrec\fP *channel)"
.br
-.RI "\fICalled when a user parts a channel.\fP"
+.RI "\fICalled when a user parts a channel. \fP"
.ti -1c
.RI "virtual void \fBOnPacketTransmit\fP (char *p)"
.br
-.RI "\fICalled before a packet is transmitted across the irc network between two irc servers.\fP"
+.RI "\fICalled before a packet is transmitted across the irc network between two irc servers. \fP"
.ti -1c
.RI "virtual void \fBOnPacketReceive\fP (char *p)"
.br
-.RI "\fICalled after a packet is received from another irc server.\fP"
+.RI "\fICalled after a packet is received from another irc server. \fP"
.ti -1c
.RI "virtual void \fBOnRehash\fP ()"
.br
-.RI "\fICalled on rehash.\fP"
+.RI "\fICalled on rehash. \fP"
.ti -1c
.RI "virtual void \fBOnServerRaw\fP (std::string &raw, bool inbound, \fBuserrec\fP *user)"
.br
-.RI "\fICalled when a raw command is transmitted or received.\fP"
+.RI "\fICalled when a raw command is transmitted or received. \fP"
.ti -1c
.RI "virtual int \fBOnExtendedMode\fP (\fBuserrec\fP *user, void *target, char modechar, int type, bool mode_on, \fBstring_list\fP &params)"
.br
-.RI "\fICalled whenever an extended mode is to be processed.\fP"
+.RI "\fICalled whenever an extended mode is to be processed. \fP"
.ti -1c
.RI "virtual int \fBOnUserPreJoin\fP (\fBuserrec\fP *user, \fBchanrec\fP *chan, const char *cname)"
.br
-.RI "\fICalled whenever a user is about to join a channel, before any processing is done.\fP"
+.RI "\fICalled whenever a user is about to join a channel, before any processing is done. \fP"
.ti -1c
.RI "virtual void \fBOnOper\fP (\fBuserrec\fP *user)"
.br
-.RI "\fICalled whenever a user opers locally.\fP"
+.RI "\fICalled whenever a user opers locally. \fP"
.ti -1c
.RI "virtual void \fBOnInfo\fP (\fBuserrec\fP *user)"
.br
-.RI "\fICalled whenever a user types /INFO.\fP"
+.RI "\fICalled whenever a user types /INFO. \fP"
.ti -1c
.RI "virtual void \fBOnWhois\fP (\fBuserrec\fP *source, \fBuserrec\fP *dest)"
.br
-.RI "\fICalled whenever a /WHOIS is performed on a local user.\fP"
+.RI "\fICalled whenever a /WHOIS is performed on a local user. \fP"
.ti -1c
-.RI "virtual int \fBOnUserPreMessage\fP (\fBuserrec\fP *user, void *dest, int target_type, std::string text)"
+.RI "virtual int \fBOnUserPreInvite\fP (\fBuserrec\fP *source, \fBuserrec\fP *dest, \fBchanrec\fP *channel)"
.br
-.RI "\fICalled whenever a user is about to PRIVMSG A user or a channel, before any processing is done.\fP"
+.RI "\fICalled whenever a user is about to invite another user into a channel, before any processing is done. \fP"
.ti -1c
-.RI "virtual int \fBOnUserPreNotice\fP (\fBuserrec\fP *user, void *dest, int target_type, std::string text)"
+.RI "virtual int \fBOnUserPreMessage\fP (\fBuserrec\fP *user, void *dest, int target_type, std::string &text)"
.br
-.RI "\fICalled whenever a user is about to NOTICE A user or a channel, before any processing is done.\fP"
+.RI "\fICalled whenever a user is about to PRIVMSG A user or a channel, before any processing is done. \fP"
+.ti -1c
+.RI "virtual int \fBOnUserPreNotice\fP (\fBuserrec\fP *user, void *dest, int target_type, std::string &text)"
+.br
+.RI "\fICalled whenever a user is about to NOTICE A user or a channel, before any processing is done. \fP"
.ti -1c
.RI "virtual int \fBOnUserPreNick\fP (\fBuserrec\fP *user, std::string newnick)"
.br
-.RI "\fICalled before any nickchange, local or remote.\fP"
+.RI "\fICalled before any nickchange, local or remote. \fP"
.ti -1c
.RI "virtual int \fBOnAccessCheck\fP (\fBuserrec\fP *source, \fBuserrec\fP *dest, \fBchanrec\fP *channel, int access_type)"
.br
-.RI "\fICalled before an action which requires a channel privilage check.\fP"
+.RI "\fICalled before an action which requires a channel privilage check. \fP"
.ti -1c
.RI "virtual \fBstring_list\fP \fBOnUserSync\fP (\fBuserrec\fP *user)"
.br
-.RI "\fICalled during a netburst to sync user data.\fP"
+.RI "\fICalled during a netburst to sync user data. \fP"
.ti -1c
.RI "virtual \fBstring_list\fP \fBOnChannelSync\fP (\fBchanrec\fP *chan)"
.br
-.RI "\fICalled during a netburst to sync channel data.\fP"
+.RI "\fICalled during a netburst to sync channel data. \fP"
.in -1c
.SH "Detailed Description"
.PP
-Base class for all InspIRCd modules This class is the base class for InspIRCd modules.
+Base class for all InspIRCd modules This class is the base class for InspIRCd modules.
All modules must inherit from this class, its methods will be called when irc server events occur. class inherited from module must be instantiated by the \fBModuleFactory\fP class (see relevent section) for the plugin to be initialised.
.PP
-Definition at line 116 of file modules.h.
+Definition at line 126 of file modules.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "Module::Module ()"
.PP
-Default constructor creates a module class.Definition at line 285 of file modules.cpp.
+Default constructor creates a module class. Definition at line 297 of file modules.cpp.
.PP
.nf
-285 { }
+297 { }
.fi
-.SS "Module::~Module ()\fC [virtual]\fP"
+.SS "Module::~\fBModule\fP ()\fC [virtual]\fP"
.PP
-Default destructor destroys a module class.Definition at line 286 of file modules.cpp.
+Default destructor destroys a module class. Definition at line 298 of file modules.cpp.
.PP
.nf
-286 { }
+298 { }
.fi
.SH "Member Function Documentation"
.PP
.SS "\fBVersion\fP Module::GetVersion ()\fC [virtual]\fP"
.PP
-Returns the version number of a Module.The method should return a \fBVersion\fP object with its version information assigned via \fBVersion::Version\fPDefinition at line 297 of file modules.cpp.
+Returns the version number of a Module. The method should return a \fBVersion\fP object with its version information assigned via \fBVersion::Version\fPDefinition at line 309 of file modules.cpp.
.PP
.nf
-297 { return Version(1,0,0,0); }
+309 { return Version(1,0,0,0); }
.fi
.SS "int Module::OnAccessCheck (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel, int access_type)\fC [virtual]\fP"
.PP
-Called before an action which requires a channel privilage check.This function is called before many functions which check a users status on a channel, for example before opping a user, deopping a user, kicking a user, etc. There are several values for access_type which indicate for what reason access is being checked. These are:
+Called before an action which requires a channel privilage check. This function is called before many functions which check a users status on a channel, for example before opping a user, deopping a user, kicking a user, etc. There are several values for access_type which indicate for what reason access is being checked. These are:
.br
.br
@@ -162,148 +166,155 @@ Called before an action which requires a channel privilage check.This function i
.br
.br
- Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined).Definition at line 304 of file modules.cpp.
+ Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined).Definition at line 317 of file modules.cpp.
.PP
References ACR_DEFAULT.
.PP
.nf
-304 { return ACR_DEFAULT; };
+317 { return ACR_DEFAULT; };
.fi
.SS "\fBstring_list\fP Module::OnChannelSync (\fBchanrec\fP * chan)\fC [virtual]\fP"
.PP
-Called during a netburst to sync channel data.This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 306 of file modules.cpp.
+Called during a netburst to sync channel data. This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 319 of file modules.cpp.
.PP
References string_list.
.PP
.nf
-306 { string_list empty; return empty; }
+319 { string_list empty; return empty; }
.fi
.SS "int Module::OnExtendedMode (\fBuserrec\fP * user, void * target, char modechar, int type, bool mode_on, \fBstring_list\fP & params)\fC [virtual]\fP"
.PP
-Called whenever an extended mode is to be processed.The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with \fBServer::AddExtendedMode\fP If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it.Definition at line 296 of file modules.cpp.
+Called whenever an extended mode is to be processed. The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with \fBServer::AddExtendedMode\fP If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it.Definition at line 308 of file modules.cpp.
.PP
.nf
-296 { return false; }
+308 { return false; }
.fi
.SS "void Module::OnInfo (\fBuserrec\fP * user)\fC [virtual]\fP"
.PP
-Called whenever a user types /INFO.The userrec will contain the information of the user who typed the command. Modules may use this method to output their own credits in /INFO (which is the ircd's version of an about box). It is purposefully not possible to modify any info that has already been output, or halt the list. You must write a 371 numeric to the user, containing your info in the following format:
+Called whenever a user types /INFO. The userrec will contain the information of the user who typed the command. Modules may use this method to output their own credits in /INFO (which is the ircd's version of an about box). It is purposefully not possible to modify any info that has already been output, or halt the list. You must write a 371 numeric to the user, containing your info in the following format:
.PP
-<nick> :information hereDefinition at line 299 of file modules.cpp.
+<nick> :information hereDefinition at line 311 of file modules.cpp.
.PP
.nf
-299 { };
+311 { };
.fi
.SS "void Module::OnOper (\fBuserrec\fP * user)\fC [virtual]\fP"
.PP
-Called whenever a user opers locally.The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.Definition at line 298 of file modules.cpp.
+Called whenever a user opers locally. The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.Definition at line 310 of file modules.cpp.
.PP
.nf
-298 { };
+310 { };
.fi
.SS "void Module::OnPacketReceive (char * p)\fC [virtual]\fP"
.PP
-Called after a packet is received from another irc server.The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd.Definition at line 292 of file modules.cpp.
+Called after a packet is received from another irc server. The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd.Definition at line 304 of file modules.cpp.
.PP
.nf
-292 { }
+304 { }
.fi
.SS "void Module::OnPacketTransmit (char * p)\fC [virtual]\fP"
.PP
-Called before a packet is transmitted across the irc network between two irc servers.The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.Definition at line 291 of file modules.cpp.
+Called before a packet is transmitted across the irc network between two irc servers. The packet is represented as a char*, as it should be regarded as a buffer, and not a string. This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.Definition at line 303 of file modules.cpp.
.PP
.nf
-291 { }
+303 { }
.fi
.SS "void Module::OnRehash ()\fC [virtual]\fP"
.PP
-Called on rehash.This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application.Definition at line 293 of file modules.cpp.
+Called on rehash. This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application.Definition at line 305 of file modules.cpp.
.PP
.nf
-293 { }
+305 { }
.fi
.SS "void Module::OnServerRaw (std::string & raw, bool inbound, \fBuserrec\fP * user)\fC [virtual]\fP"
.PP
-Called when a raw command is transmitted or received.This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter 'raw'. If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets.Definition at line 294 of file modules.cpp.
+Called when a raw command is transmitted or received. This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter 'raw'. If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets.Definition at line 306 of file modules.cpp.
.PP
.nf
-294 { }
+306 { }
.fi
.SS "void Module::OnUserConnect (\fBuserrec\fP * user)\fC [virtual]\fP"
.PP
-Called when a user connects.The details of the connecting user are available to you in the parameter userrec *userDefinition at line 287 of file modules.cpp.
+Called when a user connects. The details of the connecting user are available to you in the parameter userrec *userDefinition at line 299 of file modules.cpp.
.PP
.nf
-287 { }
+299 { }
.fi
.SS "void Module::OnUserJoin (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP"
.PP
-Called when a user joins a channel.The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channelDefinition at line 289 of file modules.cpp.
+Called when a user joins a channel. The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channelDefinition at line 301 of file modules.cpp.
.PP
.nf
-289 { }
+301 { }
.fi
.SS "void Module::OnUserPart (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP"
.PP
-Called when a user parts a channel.The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channelDefinition at line 290 of file modules.cpp.
+Called when a user parts a channel. The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channelDefinition at line 302 of file modules.cpp.
+.PP
+.nf
+302 { }
+.fi
+.SS "int Module::OnUserPreInvite (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel)\fC [virtual]\fP"
+.PP
+Called whenever a user is about to invite another user into a channel, before any processing is done. Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels.Definition at line 313 of file modules.cpp.
.PP
.nf
-290 { }
+313 { return 0; };
.fi
.SS "int Module::OnUserPreJoin (\fBuserrec\fP * user, \fBchanrec\fP * chan, const char * cname)\fC [virtual]\fP"
.PP
-Called whenever a user is about to join a channel, before any processing is done.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. This is useful for modules which may want to mimic +b, +k, +l etc. Returning -1 from this function forces the join to be allowed, bypassing restrictions such as banlists, invite, keys etc.
+Called whenever a user is about to join a channel, before any processing is done. 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. This is useful for modules which may want to mimic +b, +k, +l etc. Returning -1 from this function forces the join to be allowed, bypassing restrictions such as banlists, invite, keys etc.
.PP
IMPORTANT NOTE!
.PP
-If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.Definition at line 295 of file modules.cpp.
+If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.Definition at line 307 of file modules.cpp.
.PP
.nf
-295 { return 0; }
+307 { return 0; }
.fi
-.SS "int Module::OnUserPreMessage (\fBuserrec\fP * user, void * dest, int target_type, std::string text)\fC [virtual]\fP"
+.SS "int Module::OnUserPreMessage (\fBuserrec\fP * user, void * dest, int target_type, std::string & text)\fC [virtual]\fP"
.PP
-Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done.Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.Definition at line 301 of file modules.cpp.
+Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done. Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.Definition at line 314 of file modules.cpp.
.PP
.nf
-301 { return 0; };
+314 { return 0; };
.fi
.SS "int Module::OnUserPreNick (\fBuserrec\fP * user, std::string newnick)\fC [virtual]\fP"
.PP
-Called before any nickchange, local or remote.This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.Definition at line 303 of file modules.cpp.
+Called before any nickchange, local or remote. This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.Definition at line 316 of file modules.cpp.
.PP
.nf
-303 { return 0; };
+316 { return 0; };
.fi
-.SS "int Module::OnUserPreNotice (\fBuserrec\fP * user, void * dest, int target_type, std::string text)\fC [virtual]\fP"
+.SS "int Module::OnUserPreNotice (\fBuserrec\fP * user, void * dest, int target_type, std::string & text)\fC [virtual]\fP"
.PP
-Called whenever a user is about to NOTICE A user or a channel, before any processing is done.Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.Definition at line 302 of file modules.cpp.
+Called whenever a user is about to NOTICE A user or a channel, before any processing is done. Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.Definition at line 315 of file modules.cpp.
.PP
.nf
-302 { return 0; };
+315 { return 0; };
.fi
.SS "void Module::OnUserQuit (\fBuserrec\fP * user)\fC [virtual]\fP"
.PP
-Called when a user quits.The details of the exiting user are available to you in the parameter userrec *userDefinition at line 288 of file modules.cpp.
+Called when a user quits. The details of the exiting user are available to you in the parameter userrec *userDefinition at line 300 of file modules.cpp.
.PP
.nf
-288 { }
+300 { }
.fi
.SS "\fBstring_list\fP Module::OnUserSync (\fBuserrec\fP * user)\fC [virtual]\fP"
.PP
-Called during a netburst to sync user data.This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 305 of file modules.cpp.
+Called during a netburst to sync user data. This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.Definition at line 318 of file modules.cpp.
.PP
References string_list.
.PP
.nf
-305 { string_list empty; return empty; }
+318 { string_list empty; return empty; }
.fi
.SS "void Module::OnWhois (\fBuserrec\fP * source, \fBuserrec\fP * dest)\fC [virtual]\fP"
.PP
-Called whenever a /WHOIS is performed on a local user.The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.Definition at line 300 of file modules.cpp.
+Called whenever a /WHOIS is performed on a local user. The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.Definition at line 312 of file modules.cpp.
.PP
.nf
-300 { };
+312 { };
.fi
diff --git a/docs/man/man3/ModuleFactory.3 b/docs/man/man3/ModuleFactory.3
index 353f4cd7a..fcecbc9ee 100644
--- a/docs/man/man3/ModuleFactory.3
+++ b/docs/man/man3/ModuleFactory.3
@@ -1,8 +1,8 @@
-.TH "ModuleFactory" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "ModuleFactory" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-ModuleFactory \- Instantiates classes inherited from \fBModule\fP This class creates a class inherited from type \fBModule\fP, using new.
+ModuleFactory \- Instantiates classes inherited from \fBModule\fP This class creates a class inherited from type \fBModule\fP, using new.
.PP
.SH SYNOPSIS
@@ -24,36 +24,36 @@ Inherits \fBclassbase\fP.
.ti -1c
.RI "virtual \fBModule\fP * \fBCreateModule\fP ()=0"
.br
-.RI "\fICreates a new module.\fP"
+.RI "\fICreates a new module. \fP"
.in -1c
.SH "Detailed Description"
.PP
-Instantiates classes inherited from \fBModule\fP This class creates a class inherited from type \fBModule\fP, using new.
+Instantiates classes inherited from \fBModule\fP This class creates a class inherited from type \fBModule\fP, using new.
This is to allow for modules to create many different variants of \fBModule\fP, dependent on architecture, configuration, etc. In most cases, the simple class shown in the example module m_foobar.so will suffice for most modules.
.PP
-Definition at line 754 of file modules.h.
+Definition at line 785 of file modules.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "ModuleFactory::ModuleFactory ()\fC [inline]\fP"
.PP
-Definition at line 757 of file modules.h.
+Definition at line 788 of file modules.h.
.PP
.nf
-757 { }
+788 { }
.fi
-.SS "virtual ModuleFactory::~ModuleFactory ()\fC [inline, virtual]\fP"
+.SS "virtual ModuleFactory::~\fBModuleFactory\fP ()\fC [inline, virtual]\fP"
.PP
-Definition at line 758 of file modules.h.
+Definition at line 789 of file modules.h.
.PP
.nf
-758 { }
+789 { }
.fi
.SH "Member Function Documentation"
.PP
.SS "virtual \fBModule\fP* ModuleFactory::CreateModule ()\fC [pure virtual]\fP"
.PP
-Creates a new module.Your inherited class of ModuleFactory must return a pointer to your \fBModule\fP class using this method.
+Creates a new module. Your inherited class of ModuleFactory must return a pointer to your \fBModule\fP class using this method.
.SH "Author"
.PP
diff --git a/docs/man/man3/QLine.3 b/docs/man/man3/QLine.3
index fefd462c3..bef14dac0 100644
--- a/docs/man/man3/QLine.3
+++ b/docs/man/man3/QLine.3
@@ -1,8 +1,8 @@
-.TH "QLine" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "QLine" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-QLine \- QLine class.
+QLine \- QLine class.
.PP
.SH SYNOPSIS
@@ -18,23 +18,23 @@ Inherits \fBXLine\fP.
.ti -1c
.RI "char \fBnick\fP [MAXBUF]"
.br
-.RI "\fINickname to match against.\fP"
+.RI "\fINickname to match against. \fP"
.ti -1c
.RI "bool \fBis_global\fP"
.br
-.RI "\fISet if this is a global Z:line (e.g.\fP"
+.RI "\fISet if this is a global Z:line (e.g. \fP"
.in -1c
.SH "Detailed Description"
.PP
-QLine class.Definition at line 83 of file xline.h.
+QLine class. Definition at line 99 of file xline.h.
.SH "Member Data Documentation"
.PP
-.SS "bool QLine::is_global"
+.SS "bool \fBQLine::is_global\fP"
.PP
-Set if this is a global Z:line (e.g.it came from another server)Definition at line 93 of file xline.h.
-.SS "char QLine::nick[MAXBUF]"
+Set if this is a global Z:line (e.g. it came from another server)Definition at line 109 of file xline.h.
+.SS "char \fBQLine::nick\fP[MAXBUF]"
.PP
-Nickname to match against.May contain wildcards.Definition at line 89 of file xline.h.
+Nickname to match against. May contain wildcards.Definition at line 105 of file xline.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3
index 60026555c..93ea60a25 100644
--- a/docs/man/man3/Server.3
+++ b/docs/man/man3/Server.3
@@ -1,8 +1,8 @@
-.TH "Server" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "Server" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-Server \- 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.
+Server \- 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.
.PP
.SH SYNOPSIS
@@ -18,193 +18,193 @@ Inherits \fBclassbase\fP.
.ti -1c
.RI "\fBServer\fP ()"
.br
-.RI "\fIDefault constructor.\fP"
+.RI "\fIDefault constructor. \fP"
.ti -1c
.RI "virtual \fB~Server\fP ()"
.br
-.RI "\fIDefault destructor.\fP"
+.RI "\fIDefault destructor. \fP"
.ti -1c
.RI "virtual void \fBSendOpers\fP (std::string s)"
.br
-.RI "\fISends text to all opers.\fP"
+.RI "\fISends text to all opers. \fP"
.ti -1c
.RI "virtual void \fBLog\fP (int level, std::string s)"
.br
-.RI "\fIWrites a log string.\fP"
+.RI "\fIWrites a log string. \fP"
.ti -1c
.RI "virtual void \fBSend\fP (int Socket, std::string s)"
.br
-.RI "\fISends a line of text down a TCP/IP socket.\fP"
+.RI "\fISends a line of text down a TCP/IP socket. \fP"
.ti -1c
.RI "virtual void \fBSendServ\fP (int Socket, std::string s)"
.br
-.RI "\fISends text from the server to a socket.\fP"
+.RI "\fISends text from the server to a socket. \fP"
.ti -1c
.RI "virtual void \fBSendFrom\fP (int Socket, \fBuserrec\fP *User, std::string s)"
.br
-.RI "\fISends text from a user to a socket.\fP"
+.RI "\fISends text from a user to a socket. \fP"
.ti -1c
.RI "virtual void \fBSendTo\fP (\fBuserrec\fP *Source, \fBuserrec\fP *Dest, std::string s)"
.br
-.RI "\fISends text from a user to another user.\fP"
+.RI "\fISends text from a user to another user. \fP"
.ti -1c
.RI "virtual void \fBSendChannel\fP (\fBuserrec\fP *User, \fBchanrec\fP *Channel, std::string s, bool IncludeSender)"
.br
-.RI "\fISends text from a user to a channel (mulicast).\fP"
+.RI "\fISends text from a user to a channel (mulicast). \fP"
.ti -1c
.RI "virtual bool \fBCommonChannels\fP (\fBuserrec\fP *u1, \fBuserrec\fP *u2)"
.br
-.RI "\fIReturns true if two users share a common channel.\fP"
+.RI "\fIReturns true if two users share a common channel. \fP"
.ti -1c
.RI "virtual void \fBSendCommon\fP (\fBuserrec\fP *User, std::string text, bool IncludeSender)"
.br
-.RI "\fISends text from a user to one or more channels (mulicast).\fP"
+.RI "\fISends text from a user to one or more channels (mulicast). \fP"
.ti -1c
.RI "virtual void \fBSendWallops\fP (\fBuserrec\fP *User, std::string text)"
.br
-.RI "\fISends a WALLOPS message.\fP"
+.RI "\fISends a WALLOPS message. \fP"
.ti -1c
.RI "virtual bool \fBIsNick\fP (std::string nick)"
.br
-.RI "\fIReturns true if a nick is valid.\fP"
+.RI "\fIReturns true if a nick is valid. \fP"
.ti -1c
.RI "virtual int \fBCountUsers\fP (\fBchanrec\fP *c)"
.br
-.RI "\fIReturns a count of the number of users on a channel.\fP"
+.RI "\fIReturns a count of the number of users on a channel. \fP"
.ti -1c
.RI "virtual \fBuserrec\fP * \fBFindNick\fP (std::string nick)"
.br
-.RI "\fIAttempts to look up a nick and return a pointer to it.\fP"
+.RI "\fIAttempts to look up a nick and return a pointer to it. \fP"
.ti -1c
.RI "virtual \fBchanrec\fP * \fBFindChannel\fP (std::string channel)"
.br
-.RI "\fIAttempts to look up a channel and return a pointer to it.\fP"
+.RI "\fIAttempts to look up a channel and return a pointer to it. \fP"
.ti -1c
.RI "virtual std::string \fBChanMode\fP (\fBuserrec\fP *User, \fBchanrec\fP *Chan)"
.br
-.RI "\fIAttempts to look up a user's privilages on a channel.\fP"
+.RI "\fIAttempts to look up a user's privilages on a channel. \fP"
.ti -1c
.RI "virtual bool \fBIsOnChannel\fP (\fBuserrec\fP *User, \fBchanrec\fP *Chan)"
.br
-.RI "\fIChecks if a user is on a channel.\fP"
+.RI "\fIChecks if a user is on a channel. \fP"
.ti -1c
.RI "virtual std::string \fBGetServerName\fP ()"
.br
-.RI "\fIReturns the server name of the server where the module is loaded.\fP"
+.RI "\fIReturns the server name of the server where the module is loaded. \fP"
.ti -1c
.RI "virtual std::string \fBGetNetworkName\fP ()"
.br
-.RI "\fIReturns the network name, global to all linked servers.\fP"
+.RI "\fIReturns the network name, global to all linked servers. \fP"
.ti -1c
.RI "virtual \fBAdmin\fP \fBGetAdmin\fP ()"
.br
-.RI "\fIReturns the information of the server as returned by the /ADMIN command.\fP"
+.RI "\fIReturns the information of the server as returned by the /ADMIN command. \fP"
.ti -1c
.RI "virtual bool \fBAddExtendedMode\fP (char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)"
.br
-.RI "\fIAdds an extended mode letter which is parsed by a module.\fP"
+.RI "\fIAdds an extended mode letter which is parsed by a module. \fP"
.ti -1c
.RI "virtual bool \fBAddExtendedListMode\fP (char modechar)"
.br
-.RI "\fIAdds an extended mode letter which is parsed by a module and handled in a list fashion.\fP"
+.RI "\fIAdds an extended mode letter which is parsed by a module and handled in a list fashion. \fP"
.ti -1c
.RI "virtual void \fBAddCommand\fP (char *cmd, handlerfunc f, char flags, int minparams)"
.br
-.RI "\fIAdds a command to the command table.\fP"
+.RI "\fIAdds a command to the command table. \fP"
.ti -1c
.RI "virtual void \fBSendMode\fP (char **parameters, int pcnt, \fBuserrec\fP *user)"
.br
-.RI "\fISends a servermode.\fP"
+.RI "\fISends a servermode. \fP"
.ti -1c
.RI "virtual void \fBSendToModeMask\fP (std::string modes, int flags, std::string text)"
.br
-.RI "\fISends to all users matching a mode mask You must specify one or more usermodes as the first parameter.\fP"
+.RI "\fISends to all users matching a mode mask You must specify one or more usermodes as the first parameter. \fP"
.ti -1c
.RI "virtual \fBchanrec\fP * \fBJoinUserToChannel\fP (\fBuserrec\fP *user, std::string cname, std::string key)"
.br
-.RI "\fIForces a user to join a channel.\fP"
+.RI "\fIForces a user to join a channel. \fP"
.ti -1c
.RI "virtual \fBchanrec\fP * \fBPartUserFromChannel\fP (\fBuserrec\fP *user, std::string cname, std::string reason)"
.br
-.RI "\fIForces a user to part a channel.\fP"
+.RI "\fIForces a user to part a channel. \fP"
.ti -1c
.RI "virtual void \fBChangeUserNick\fP (\fBuserrec\fP *user, std::string nickname)"
.br
-.RI "\fIForces a user nickchange.\fP"
+.RI "\fIForces a user nickchange. \fP"
.ti -1c
.RI "virtual void \fBQuitUser\fP (\fBuserrec\fP *user, std::string reason)"
.br
-.RI "\fIForces a user to quit with the specified reason.\fP"
+.RI "\fIForces a user to quit with the specified reason. \fP"
.ti -1c
.RI "virtual bool \fBMatchText\fP (std::string sliteral, std::string spattern)"
.br
-.RI "\fIMatches text against a glob pattern.\fP"
+.RI "\fIMatches text against a glob pattern. \fP"
.ti -1c
.RI "virtual void \fBCallCommandHandler\fP (std::string commandname, char **parameters, int pcnt, \fBuserrec\fP *user)"
.br
-.RI "\fICalls the handler for a command, either implemented by the core or by another module.\fP"
+.RI "\fICalls the handler for a command, either implemented by the core or by another module. \fP"
.ti -1c
.RI "virtual void \fBChangeHost\fP (\fBuserrec\fP *user, std::string host)"
.br
-.RI "\fIChange displayed hostname of a user.\fP"
+.RI "\fIChange displayed hostname of a user. \fP"
.ti -1c
.RI "virtual void \fBChangeGECOS\fP (\fBuserrec\fP *user, std::string gecos)"
.br
-.RI "\fIChange GECOS (fullname) of a user.\fP"
+.RI "\fIChange GECOS (fullname) of a user. \fP"
.ti -1c
.RI "virtual bool \fBIsUlined\fP (std::string server)"
.br
-.RI "\fIReturns true if the servername you give is ulined.\fP"
+.RI "\fIReturns true if the servername you give is ulined. \fP"
.ti -1c
.RI "virtual \fBchanuserlist\fP \fBGetUsers\fP (\fBchanrec\fP *chan)"
.br
-.RI "\fIFetches the userlist of a channel.\fP"
+.RI "\fIFetches the userlist of a channel. \fP"
.in -1c
.SH "Detailed Description"
.PP
-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.
+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.
All modules should instantiate at least one copy of this class, and use its member functions to perform their tasks.
.PP
-Definition at line 314 of file modules.h.
+Definition at line 337 of file modules.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "Server::Server ()"
.PP
-Default constructor.Creates a Server object.Definition at line 313 of file modules.cpp.
+Default constructor. Creates a Server object.Definition at line 326 of file modules.cpp.
.PP
.nf
-314 {
-315 }
+327 {
+328 }
.fi
-.SS "Server::~Server ()\fC [virtual]\fP"
+.SS "Server::~\fBServer\fP ()\fC [virtual]\fP"
.PP
-Default destructor.Destroys a Server object.Definition at line 317 of file modules.cpp.
+Default destructor. Destroys a Server object.Definition at line 330 of file modules.cpp.
.PP
.nf
-318 {
-319 }
+331 {
+332 }
.fi
.SH "Member Function Documentation"
.PP
.SS "void Server::AddCommand (char * cmd, handlerfunc f, char flags, int minparams)\fC [virtual]\fP"
.PP
-Adds a command to the command table.This allows modules to add extra commands into the command table. You must place a function within your module which is is of type handlerfunc:
+Adds a command to the command table. This allows modules to add extra commands into the command table. You must place a function within your module which is is of type handlerfunc:
.PP
typedef void (handlerfunc) (char**, int, userrec*); ... void \fBhandle_kill(char **parameters, int pcnt, userrec *user)\fP
.PP
-When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'.Definition at line 394 of file modules.cpp.
+When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'.Definition at line 407 of file modules.cpp.
.PP
References createcommand().
.PP
.nf
-395 {
-396 createcommand(cmd,f,flags,minparams);
-397 }
+408 {
+409 createcommand(cmd,f,flags,minparams);
+410 }
.fi
.SS "bool Server::AddExtendedListMode (char modechar)\fC [virtual]\fP"
.PP
-Adds an extended mode letter which is parsed by a module and handled in a list fashion.This call is used to implement modes like +q and +a. The characteristics of these modes are as follows:
+Adds an extended mode letter which is parsed by a module and handled in a list fashion. This call is used to implement modes like +q and +a. The characteristics of these modes are as follows:
.PP
(1) They are ALWAYS on channels, not on users, therefore their type is MT_CHANNEL
.PP
@@ -214,329 +214,329 @@ Adds an extended mode letter which is parsed by a module and handled in a list f
.PP
(4) The mode and its parameter are NOT stored in the channels modes structure
.PP
-It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing.Definition at line 539 of file modules.cpp.
+It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing.Definition at line 552 of file modules.cpp.
.PP
-References DoAddExtendedMode(), and ModeMakeList().
+References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL.
.PP
.nf
-540 {
-541 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
-542 if (res)
-543 ModeMakeList(modechar);
-544 return res;
-545 }
+553 {
+554 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
+555 if (res)
+556 ModeMakeList(modechar);
+557 return res;
+558 }
.fi
.SS "bool Server::AddExtendedMode (char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)\fC [virtual]\fP"
.PP
-Adds an extended mode letter which is parsed by a module.This allows modules to add extra mode letters, e.g. +x for hostcloak. the 'type' parameter is either MT_CHANNEL, MT_CLIENT, or MT_SERVER, to indicate wether the mode is a channel mode, a client mode, or a server mode. requires_oper is used with MT_CLIENT type modes only to indicate the mode can only be set or unset by an oper. If this is used for MT_CHANNEL type modes it is ignored. params_when_on is the number of modes to expect when the mode is turned on (for type MT_CHANNEL only), e.g. with mode +k, this would have a value of 1. the params_when_off value has a similar value to params_when_on, except it indicates the number of parameters to expect when the mode is disabled. Modes which act in a similar way to channel mode +l (e.g. require a parameter to enable, but not to disable) should use this parameter. The function returns false if the mode is unavailable, and will not attempt to allocate another character, as this will confuse users. This also means that as only one module can claim a specific mode character, the core does not need to keep track of which modules own which modes, which speeds up operation of the server. In this version, a mode can have at most one parameter, attempting to use more parameters will have undefined effects.Definition at line 519 of file modules.cpp.
-.PP
-References DoAddExtendedMode(), MT_CLIENT, and MT_SERVER.
-.PP
-.nf
-520 {
-521 if (type == MT_SERVER)
-522 {
-523 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion');
-524 return false;
-525 }
-526 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
-527 {
-528 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported');
-529 return false;
-530 }
-531 if ((params_when_on>1) || (params_when_off>1))
-532 {
-533 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported');
-534 return false;
-535 }
-536 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
-537 }
+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 532 of file modules.cpp.
+.PP
+References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER.
+.PP
+.nf
+533 {
+534 if (type == MT_SERVER)
+535 {
+536 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion');
+537 return false;
+538 }
+539 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
+540 {
+541 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported');
+542 return false;
+543 }
+544 if ((params_when_on>1) || (params_when_off>1))
+545 {
+546 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported');
+547 return false;
+548 }
+549 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
+550 }
.fi
.SS "void Server::CallCommandHandler (std::string commandname, char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP"
.PP
-Calls the handler for a command, either implemented by the core or by another module.You can use this function to trigger other commands in the ircd, such as PRIVMSG, JOIN, KICK etc, or even as a method of callback. By defining command names that are untypeable for users on irc (e.g. those which contain a or
+Calls the handler for a command, either implemented by the core or by another module. You can use this function to trigger other commands in the ircd, such as PRIVMSG, JOIN, KICK etc, or even as a method of callback. By defining command names that are untypeable for users on irc (e.g. those which contain a or
.br
-) you may use them as callback identifiers. The first parameter to this method is the name of the command handler you wish to call, e.g. PRIVMSG. This will be a command handler previously registered by the core or wih \fBAddCommand()\fP. The second parameter is an array of parameters, and the third parameter is a count of parameters in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the functiom will silently ignore it. The final parameter is the user executing the command handler, used for privilage checks, etc.Definition at line 384 of file modules.cpp.
+) you may use them as callback identifiers. The first parameter to this method is the name of the command handler you wish to call, e.g. PRIVMSG. This will be a command handler previously registered by the core or wih \fBAddCommand()\fP. The second parameter is an array of parameters, and the third parameter is a count of parameters in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the functiom will silently ignore it. The final parameter is the user executing the command handler, used for privilage checks, etc.Definition at line 397 of file modules.cpp.
.PP
.nf
-385 {
-386 call_handler(commandname.c_str(),parameters,pcnt,user);
-387 }
+398 {
+399 call_handler(commandname.c_str(),parameters,pcnt,user);
+400 }
.fi
.SS "void Server::ChangeGECOS (\fBuserrec\fP * user, std::string gecos)\fC [virtual]\fP"
.PP
-Change GECOS (fullname) of a user.You should always call this method to change a user's GECOS rather than writing directly to the fullname member of userrec, as any change applied via this method will be propogated to any linked servers.Definition at line 472 of file modules.cpp.
+Change GECOS (fullname) of a user. You should always call this method to change a user's GECOS rather than writing directly to the fullname member of userrec, as any change applied via this method will be propogated to any linked servers.Definition at line 485 of file modules.cpp.
.PP
References ChangeName().
.PP
.nf
-473 {
-474 ChangeName(user,gecos.c_str());
-475 }
+486 {
+487 ChangeName(user,gecos.c_str());
+488 }
.fi
.SS "void Server::ChangeHost (\fBuserrec\fP * user, std::string host)\fC [virtual]\fP"
.PP
-Change displayed hostname of a user.You should always call this method to change a user's host rather than writing directly to the dhost member of userrec, as any change applied via this method will be propogated to any linked servers.Definition at line 467 of file modules.cpp.
+Change displayed hostname of a user. You should always call this method to change a user's host rather than writing directly to the dhost member of userrec, as any change applied via this method will be propogated to any linked servers.Definition at line 480 of file modules.cpp.
.PP
References ChangeDisplayedHost().
.PP
.nf
-468 {
-469 ChangeDisplayedHost(user,host.c_str());
-470 }
+481 {
+482 ChangeDisplayedHost(user,host.c_str());
+483 }
.fi
.SS "void Server::ChangeUserNick (\fBuserrec\fP * user, std::string nickname)\fC [virtual]\fP"
.PP
-Forces a user nickchange.This command works similarly to SVSNICK, and can be used to implement Q-lines etc. If you specify an invalid nickname, the nick change will be dropped and the target user will receive the error numeric for it.Definition at line 368 of file modules.cpp.
+Forces a user nickchange. This command works similarly to SVSNICK, and can be used to implement Q-lines etc. If you specify an invalid nickname, the nick change will be dropped and the target user will receive the error numeric for it.Definition at line 381 of file modules.cpp.
.PP
.nf
-369 {
-370 force_nickchange(user,nickname.c_str());
-371 }
+382 {
+383 force_nickchange(user,nickname.c_str());
+384 }
.fi
.SS "std::string Server::ChanMode (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP"
.PP
-Attempts to look up a user's privilages on a channel.This function will return a string containing either @, , +, or an empty string, representing the user's privilages upon the channel you specify.Definition at line 492 of file modules.cpp.
+Attempts to look up a user's privilages on a channel. This function will return a string containing either @, , +, or an empty string, representing the user's privilages upon the channel you specify.Definition at line 505 of file modules.cpp.
.PP
References cmode().
.PP
.nf
-493 {
-494 return cmode(User,Chan);
-495 }
+506 {
+507 return cmode(User,Chan);
+508 }
.fi
.SS "bool Server::CommonChannels (\fBuserrec\fP * u1, \fBuserrec\fP * u2)\fC [virtual]\fP"
.PP
-Returns true if two users share a common channel.This method is used internally by the NICK and QUIT commands, and the \fBServer::SendCommon\fP method.Definition at line 445 of file modules.cpp.
+Returns true if two users share a common channel. This method is used internally by the NICK and QUIT commands, and the \fBServer::SendCommon\fP method.Definition at line 458 of file modules.cpp.
.PP
References common_channels().
.PP
.nf
-446 {
-447 return (common_channels(u1,u2) != 0);
-448 }
+459 {
+460 return (common_channels(u1,u2) != 0);
+461 }
.fi
.SS "int Server::CountUsers (\fBchanrec\fP * c)\fC [virtual]\fP"
.PP
-Returns a count of the number of users on a channel.This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel.Definition at line 547 of file modules.cpp.
+Returns a count of the number of users on a channel. This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel.Definition at line 560 of file modules.cpp.
.PP
.nf
-548 {
-549 return usercount(c);
-550 }
+561 {
+562 return usercount(c);
+563 }
.fi
.SS "\fBchanrec\fP * Server::FindChannel (std::string channel)\fC [virtual]\fP"
.PP
-Attempts to look up a channel and return a pointer to it.This function will return NULL if the channel does not exist.Definition at line 487 of file modules.cpp.
+Attempts to look up a channel and return a pointer to it. This function will return NULL if the channel does not exist.Definition at line 500 of file modules.cpp.
.PP
.nf
-488 {
-489 return FindChan(channel.c_str());
-490 }
+501 {
+502 return FindChan(channel.c_str());
+503 }
.fi
.SS "\fBuserrec\fP * Server::FindNick (std::string nick)\fC [virtual]\fP"
.PP
-Attempts to look up a nick and return a pointer to it.This function will return NULL if the nick does not exist.Definition at line 482 of file modules.cpp.
+Attempts to look up a nick and return a pointer to it. This function will return NULL if the nick does not exist.Definition at line 495 of file modules.cpp.
.PP
.nf
-483 {
-484 return Find(nick);
-485 }
+496 {
+497 return Find(nick);
+498 }
.fi
.SS "\fBAdmin\fP Server::GetAdmin ()\fC [virtual]\fP"
.PP
-Returns the information of the server as returned by the /ADMIN command.See the \fBAdmin\fP class for further information of the return value. The members \fBAdmin::Nick\fP, \fBAdmin::Email\fP and \fBAdmin::Name\fP contain the information for the server where the module is loaded.Definition at line 512 of file modules.cpp.
+Returns the information of the server as returned by the /ADMIN command. See the \fBAdmin\fP class for further information of the return value. The members \fBAdmin::Nick\fP, \fBAdmin::Email\fP and \fBAdmin::Name\fP contain the information for the server where the module is loaded.Definition at line 525 of file modules.cpp.
.PP
.nf
-513 {
-514 return Admin(getadminname(),getadminemail(),getadminnick());
-515 }
+526 {
+527 return Admin(getadminname(),getadminemail(),getadminnick());
+528 }
.fi
.SS "std::string Server::GetNetworkName ()\fC [virtual]\fP"
.PP
-Returns the network name, global to all linked servers.Definition at line 507 of file modules.cpp.
+Returns the network name, global to all linked servers. Definition at line 520 of file modules.cpp.
.PP
.nf
-508 {
-509 return getnetworkname();
-510 }
+521 {
+522 return getnetworkname();
+523 }
.fi
.SS "std::string Server::GetServerName ()\fC [virtual]\fP"
.PP
-Returns the server name of the server where the module is loaded.Definition at line 502 of file modules.cpp.
+Returns the server name of the server where the module is loaded. Definition at line 515 of file modules.cpp.
.PP
.nf
-503 {
-504 return getservername();
-505 }
+516 {
+517 return getservername();
+518 }
.fi
.SS "\fBchanuserlist\fP Server::GetUsers (\fBchanrec\fP * chan)\fC [virtual]\fP"
.PP
-Fetches the userlist of a channel.This function must be here and not a member of userrec or chanrec due to include constraints.Definition at line 349 of file modules.cpp.
+Fetches the userlist of a channel. This function must be here and not a member of userrec or chanrec due to include constraints.Definition at line 362 of file modules.cpp.
.PP
References chanuserlist, clientlist, has_channel(), and isnick().
.PP
.nf
-350 {
-351 chanuserlist userl;
-352 userl.clear();
-353 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
-354 {
-355 if (i->second)
-356 {
-357 if (has_channel(i->second,chan))
-358 {
-359 if (isnick(i->second->nick))
-360 {
-361 userl.push_back(i->second);
-362 }
-363 }
-364 }
-365 }
-366 return userl;
-367 }
+363 {
+364 chanuserlist userl;
+365 userl.clear();
+366 for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
+367 {
+368 if (i->second)
+369 {
+370 if (has_channel(i->second,chan))
+371 {
+372 if (isnick(i->second->nick))
+373 {
+374 userl.push_back(i->second);
+375 }
+376 }
+377 }
+378 }
+379 return userl;
+380 }
.fi
.SS "bool Server::IsNick (std::string nick)\fC [virtual]\fP"
.PP
-Returns true if a nick is valid.Nicks for unregistered connections will return false.Definition at line 477 of file modules.cpp.
+Returns true if a nick is valid. Nicks for unregistered connections will return false.Definition at line 490 of file modules.cpp.
.PP
References isnick().
.PP
.nf
-478 {
-479 return (isnick(nick.c_str()) != 0);
-480 }
+491 {
+492 return (isnick(nick.c_str()) != 0);
+493 }
.fi
.SS "bool Server::IsOnChannel (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP"
.PP
-Checks if a user is on a channel.This function will return true or false to indicate if user 'User' is on channel 'Chan'.Definition at line 497 of file modules.cpp.
+Checks if a user is on a channel. This function will return true or false to indicate if user 'User' is on channel 'Chan'.Definition at line 510 of file modules.cpp.
.PP
References has_channel().
.PP
.nf
-498 {
-499 return has_channel(User,Chan);
-500 }
+511 {
+512 return has_channel(User,Chan);
+513 }
.fi
.SS "bool Server::IsUlined (std::string server)\fC [virtual]\fP"
.PP
-Returns true if the servername you give is ulined.ULined servers have extra privilages. They are allowed to change nicknames on remote servers, change modes of clients which are on remote servers and set modes of channels where there are no channel operators for that channel on the ulined server, amongst other things. Ulined server data is also broadcast across the mesh at all times as opposed to selectively messaged in the case of normal servers, as many ulined server types (such as services) do not support meshed links and must operate in this manner.Definition at line 379 of file modules.cpp.
+Returns true if the servername you give is ulined. ULined servers have extra privilages. They are allowed to change nicknames on remote servers, change modes of clients which are on remote servers and set modes of channels where there are no channel operators for that channel on the ulined server, amongst other things. Ulined server data is also broadcast across the mesh at all times as opposed to selectively messaged in the case of normal servers, as many ulined server types (such as services) do not support meshed links and must operate in this manner.Definition at line 392 of file modules.cpp.
.PP
References is_uline().
.PP
.nf
-380 {
-381 return is_uline(server.c_str());
-382 }
+393 {
+394 return is_uline(server.c_str());
+395 }
.fi
.SS "\fBchanrec\fP * Server::JoinUserToChannel (\fBuserrec\fP * user, std::string cname, std::string key)\fC [virtual]\fP"
.PP
-Forces a user to join a channel.This is similar to svsjoin and can be used to implement redirection, etc. On success, the return value is a valid pointer to a chanrec* of the channel the user was joined to. On failure, the result is NULL.Definition at line 339 of file modules.cpp.
+Forces a user to join a channel. This is similar to svsjoin and can be used to implement redirection, etc. On success, the return value is a valid pointer to a chanrec* of the channel the user was joined to. On failure, the result is NULL.Definition at line 352 of file modules.cpp.
.PP
.nf
-340 {
-341 return add_channel(user,cname.c_str(),key.c_str(),true);
-342 }
+353 {
+354 return add_channel(user,cname.c_str(),key.c_str(),true);
+355 }
.fi
.SS "void Server::Log (int level, std::string s)\fC [virtual]\fP"
.PP
-Writes a log string.This method writes a line of text to the log. If the level given is lower than the level given in the configuration, this command has no effect.Definition at line 389 of file modules.cpp.
+Writes a log string. This method writes a line of text to the log. If the level given is lower than the level given in the configuration, this command has no effect.Definition at line 402 of file modules.cpp.
.PP
.nf
-390 {
-391 log(level,'%s',s.c_str());
-392 }
+403 {
+404 log(level,'%s',s.c_str());
+405 }
.fi
.SS "bool Server::MatchText (std::string sliteral, std::string spattern)\fC [virtual]\fP"
.PP
-Matches text against a glob pattern.Uses the ircd's internal matching function to match string against a globbing pattern, e.g. *!*@*.com Returns true if the literal successfully matches the pattern, false if otherwise.Definition at line 326 of file modules.cpp.
+Matches text against a glob pattern. Uses the ircd's internal matching function to match string against a globbing pattern, e.g. *!*@*.com Returns true if the literal successfully matches the pattern, false if otherwise.Definition at line 339 of file modules.cpp.
.PP
.nf
-327 {
-328 char literal[MAXBUF],pattern[MAXBUF];
-329 strncpy(literal,sliteral.c_str(),MAXBUF);
-330 strncpy(pattern,spattern.c_str(),MAXBUF);
-331 return match(literal,pattern);
-332 }
+340 {
+341 char literal[MAXBUF],pattern[MAXBUF];
+342 strlcpy(literal,sliteral.c_str(),MAXBUF);
+343 strlcpy(pattern,spattern.c_str(),MAXBUF);
+344 return match(literal,pattern);
+345 }
.fi
.SS "\fBchanrec\fP * Server::PartUserFromChannel (\fBuserrec\fP * user, std::string cname, std::string reason)\fC [virtual]\fP"
.PP
-Forces a user to part a channel.This is similar to svspart and can be used to implement redirection, etc. Although the return value of this function is a pointer to a channel record, the returned data is undefined and should not be read or written to. This behaviour may be changed in a future version.Definition at line 344 of file modules.cpp.
+Forces a user to part a channel. This is similar to svspart and can be used to implement redirection, etc. Although the return value of this function is a pointer to a channel record, the returned data is undefined and should not be read or written to. This behaviour may be changed in a future version.Definition at line 357 of file modules.cpp.
.PP
.nf
-345 {
-346 return del_channel(user,cname.c_str(),reason.c_str(),false);
-347 }
+358 {
+359 return del_channel(user,cname.c_str(),reason.c_str(),false);
+360 }
.fi
.SS "void Server::QuitUser (\fBuserrec\fP * user, std::string reason)\fC [virtual]\fP"
.PP
-Forces a user to quit with the specified reason.To the user, it will appear as if they typed /QUIT themselves, except for the fact that this function may bypass the quit prefix specified in the config file.
+Forces a user to quit with the specified reason. To the user, it will appear as if they typed /QUIT themselves, except for the fact that this function may bypass the quit prefix specified in the config file.
.PP
WARNING!
.PP
-Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler.Definition at line 373 of file modules.cpp.
+Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler.Definition at line 386 of file modules.cpp.
.PP
References userrec::nick, and send_network_quit().
.PP
.nf
-374 {
-375 send_network_quit(user->nick,reason.c_str());
-376 kill_link(user,reason.c_str());
-377 }
+387 {
+388 send_network_quit(user->nick,reason.c_str());
+389 kill_link(user,reason.c_str());
+390 }
.fi
.SS "void Server::Send (int Socket, std::string s)\fC [virtual]\fP"
.PP
-Sends a line of text down a TCP/IP socket.This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required.Definition at line 404 of file modules.cpp.
+Sends a line of text down a TCP/IP socket. This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required.Definition at line 417 of file modules.cpp.
.PP
.nf
-405 {
-406 Write(Socket,'%s',s.c_str());
-407 }
+418 {
+419 Write(Socket,'%s',s.c_str());
+420 }
.fi
.SS "void Server::SendChannel (\fBuserrec\fP * User, \fBchanrec\fP * Channel, std::string s, bool IncludeSender)\fC [virtual]\fP"
.PP
-Sends text from a user to a channel (mulicast).This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459).Definition at line 433 of file modules.cpp.
+Sends text from a user to a channel (mulicast). This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459).Definition at line 446 of file modules.cpp.
.PP
.nf
-434 {
-435 if (IncludeSender)
-436 {
-437 WriteChannel(Channel,User,'%s',s.c_str());
-438 }
-439 else
-440 {
-441 ChanExceptSender(Channel,User,'%s',s.c_str());
-442 }
-443 }
+447 {
+448 if (IncludeSender)
+449 {
+450 WriteChannel(Channel,User,'%s',s.c_str());
+451 }
+452 else
+453 {
+454 ChanExceptSender(Channel,User,'%s',s.c_str());
+455 }
+456 }
.fi
.SS "void Server::SendCommon (\fBuserrec\fP * User, std::string text, bool IncludeSender)\fC [virtual]\fP"
.PP
-Sends text from a user to one or more channels (mulicast).This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT.Definition at line 450 of file modules.cpp.
+Sends text from a user to one or more channels (mulicast). This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT.Definition at line 463 of file modules.cpp.
.PP
.nf
-451 {
-452 if (IncludeSender)
-453 {
-454 WriteCommon(User,'%s',text.c_str());
-455 }
-456 else
-457 {
-458 WriteCommonExcept(User,'%s',text.c_str());
-459 }
-460 }
+464 {
+465 if (IncludeSender)
+466 {
+467 WriteCommon(User,'%s',text.c_str());
+468 }
+469 else
+470 {
+471 WriteCommonExcept(User,'%s',text.c_str());
+472 }
+473 }
.fi
.SS "void Server::SendFrom (int Socket, \fBuserrec\fP * User, std::string s)\fC [virtual]\fP"
.PP
-Sends text from a user to a socket.This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459)Definition at line 414 of file modules.cpp.
+Sends text from a user to a socket. This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459)Definition at line 427 of file modules.cpp.
.PP
.nf
-415 {
-416 WriteFrom(Socket,User,'%s',s.c_str());
-417 }
+428 {
+429 WriteFrom(Socket,User,'%s',s.c_str());
+430 }
.fi
.SS "void Server::SendMode (char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP"
.PP
-Sends a servermode.you must format the parameters array with the target, modes and parameters for those modes.
+Sends a servermode. you must format the parameters array with the target, modes and parameters for those modes.
.PP
For example:
.PP
@@ -550,36 +550,36 @@ modes[2] = user->nick;
.PP
Srv->SendMode(modes,3,user);
.PP
-The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state!Definition at line 399 of file modules.cpp.
+The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state!Definition at line 412 of file modules.cpp.
.PP
References server_mode().
.PP
.nf
-400 {
-401 server_mode(parameters,pcnt,user);
-402 }
+413 {
+414 server_mode(parameters,pcnt,user);
+415 }
.fi
.SS "void Server::SendOpers (std::string s)\fC [virtual]\fP"
.PP
-Sends text to all opers.This method sends a server notice to all opers with the usermode +s.Definition at line 321 of file modules.cpp.
+Sends text to all opers. This method sends a server notice to all opers with the usermode +s.Definition at line 334 of file modules.cpp.
.PP
.nf
-322 {
-323 WriteOpers('%s',s.c_str());
-324 }
+335 {
+336 WriteOpers('%s',s.c_str());
+337 }
.fi
.SS "void Server::SendServ (int Socket, std::string s)\fC [virtual]\fP"
.PP
-Sends text from the server to a socket.This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459)Definition at line 409 of file modules.cpp.
+Sends text from the server to a socket. This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459)Definition at line 422 of file modules.cpp.
.PP
.nf
-410 {
-411 WriteServ(Socket,'%s',s.c_str());
-412 }
+423 {
+424 WriteServ(Socket,'%s',s.c_str());
+425 }
.fi
.SS "void Server::SendTo (\fBuserrec\fP * Source, \fBuserrec\fP * Dest, std::string s)\fC [virtual]\fP"
.PP
-Sends text from a user to another user.This method writes a line of text to a user, with a user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459) If you specify NULL as the source, then the data will originate from the local server, e.g. instead of:
+Sends text from a user to another user. This method writes a line of text to a user, with a user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459) If you specify NULL as the source, then the data will originate from the local server, e.g. instead of:
.PP
:user!ident TEXT
.PP
@@ -587,45 +587,45 @@ The format will become:
.PP
:localserver TEXT
.PP
-Which is useful for numerics and server notices to single users, etc.Definition at line 419 of file modules.cpp.
+Which is useful for numerics and server notices to single users, etc.Definition at line 432 of file modules.cpp.
.PP
References connection::fd.
.PP
.nf
-420 {
-421 if (!Source)
-422 {
-423 // if source is NULL, then the message originates from the local server
-424 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str());
-425 }
-426 else
-427 {
-428 // otherwise it comes from the user specified
-429 WriteTo(Source,Dest,'%s',s.c_str());
-430 }
-431 }
+433 {
+434 if (!Source)
+435 {
+436 // if source is NULL, then the message originates from the local server
+437 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str());
+438 }
+439 else
+440 {
+441 // otherwise it comes from the user specified
+442 WriteTo(Source,Dest,'%s',s.c_str());
+443 }
+444 }
.fi
.SS "void Server::SendToModeMask (std::string modes, int flags, std::string text)\fC [virtual]\fP"
.PP
-Sends to all users matching a mode mask You must specify one or more usermodes as the first parameter.These can be RFC specified modes such as +i, or module provided modes, including ones provided by your own module. In the second parameter you must place a flag value which indicates wether the modes you have given will be logically ANDed or OR'ed. You may use one of either WM_AND or WM_OR. for example, if you were to use:
+Sends to all users matching a mode mask You must specify one or more usermodes as the first parameter. These can be RFC specified modes such as +i, or module provided modes, including ones provided by your own module. In the second parameter you must place a flag value which indicates wether the modes you have given will be logically ANDed or OR'ed. You may use one of either WM_AND or WM_OR. for example, if you were to use:
.PP
Serv->SendToModeMask('xi', WM_OR, 'm00');
.PP
-Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message.Definition at line 334 of file modules.cpp.
+Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message.Definition at line 347 of file modules.cpp.
.PP
.nf
-335 {
-336 WriteMode(modes.c_str(),flags,'%s',text.c_str());
-337 }
+348 {
+349 WriteMode(modes.c_str(),flags,'%s',text.c_str());
+350 }
.fi
.SS "void Server::SendWallops (\fBuserrec\fP * User, std::string text)\fC [virtual]\fP"
.PP
-Sends a WALLOPS message.This method writes a WALLOPS message to all users with the +w flag, originating from the specified user.Definition at line 462 of file modules.cpp.
+Sends a WALLOPS message. This method writes a WALLOPS message to all users with the +w flag, originating from the specified user.Definition at line 475 of file modules.cpp.
.PP
.nf
-463 {
-464 WriteWallOps(User,false,'%s',text.c_str());
-465 }
+476 {
+477 WriteWallOps(User,false,'%s',text.c_str());
+478 }
.fi
diff --git a/docs/man/man3/StrHashComp.3 b/docs/man/man3/StrHashComp.3
index 953b79a2c..138cf2edb 100644
--- a/docs/man/man3/StrHashComp.3
+++ b/docs/man/man3/StrHashComp.3
@@ -1,4 +1,4 @@
-.TH "StrHashComp" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "StrHashComp" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -17,15 +17,15 @@ StrHashComp \-
.PP
.SS "bool StrHashComp::operator() (const string & s1, const string & s2) const\fC [inline]\fP"
.PP
-Definition at line 122 of file modules.cpp.
+Definition at line 137 of file modules.cpp.
.PP
.nf
-123 {
-124 char a[MAXBUF],b[MAXBUF];
-125 strcpy(a,s1.c_str());
-126 strcpy(b,s2.c_str());
-127 return (strcasecmp(a,b) == 0);
-128 }
+138 {
+139 char a[MAXBUF],b[MAXBUF];
+140 strlcpy(a,s1.c_str(),MAXBUF);
+141 strlcpy(b,s2.c_str(),MAXBUF);
+142 return (strcasecmp(a,b) == 0);
+143 }
.fi
diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3
index d62906a16..2f44abcd1 100644
--- a/docs/man/man3/Version.3
+++ b/docs/man/man3/Version.3
@@ -1,8 +1,8 @@
-.TH "Version" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "Version" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-Version \- Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module.
+Version \- Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module.
.PP
.SH SYNOPSIS
@@ -37,34 +37,34 @@ Inherits \fBclassbase\fP.
.in -1c
.SH "Detailed Description"
.PP
-Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module.
+Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module.
A class of type Version is returned by the GetVersion method of the \fBModule\fP class.
.PP
-Definition at line 92 of file modules.h.
+Definition at line 102 of file modules.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "Version::Version (int major, int minor, int revision, int build)"
.PP
-Definition at line 279 of file modules.cpp.
+Definition at line 291 of file modules.cpp.
.PP
.nf
-279 : Major(major), Minor(minor), Revision(revision), Build(build) { };
+291 : Major(major), Minor(minor), Revision(revision), Build(build) { };
.fi
.SH "Member Data Documentation"
.PP
-.SS "const int Version::Build"
+.SS "const int \fBVersion::Build\fP"
.PP
-Definition at line 95 of file modules.h.
-.SS "const int Version::Major"
+Definition at line 105 of file modules.h.
+.SS "const int \fBVersion::Major\fP"
.PP
-Definition at line 95 of file modules.h.
-.SS "const int Version::Minor"
+Definition at line 105 of file modules.h.
+.SS "const int \fBVersion::Minor\fP"
.PP
-Definition at line 95 of file modules.h.
-.SS "const int Version::Revision"
+Definition at line 105 of file modules.h.
+.SS "const int \fBVersion::Revision\fP"
.PP
-Definition at line 95 of file modules.h.
+Definition at line 105 of file modules.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/XLine.3 b/docs/man/man3/XLine.3
index 8c2c1ca02..3dcffb0b1 100644
--- a/docs/man/man3/XLine.3
+++ b/docs/man/man3/XLine.3
@@ -1,8 +1,8 @@
-.TH "XLine" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "XLine" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-XLine \- XLine is the base class for ban lines such as G lines and K lines.
+XLine \- XLine is the base class for ban lines such as G lines and K lines.
.PP
.SH SYNOPSIS
@@ -20,44 +20,44 @@ Inherited by \fBGLine\fP, \fBKLine\fP, \fBQLine\fP, and \fBZLine\fP.
.ti -1c
.RI "time_t \fBset_time\fP"
.br
-.RI "\fIThe time the line was added.\fP"
+.RI "\fIThe time the line was added. \fP"
.ti -1c
.RI "long \fBduration\fP"
.br
-.RI "\fIThe duration of the ban, or 0 if permenant.\fP"
+.RI "\fIThe duration of the ban, or 0 if permenant. \fP"
.ti -1c
.RI "char \fBsource\fP [MAXBUF]"
.br
-.RI "\fISource of the ban.\fP"
+.RI "\fISource of the ban. \fP"
.ti -1c
.RI "char \fBreason\fP [MAXBUF]"
.br
-.RI "\fIReason for the ban.\fP"
+.RI "\fIReason for the ban. \fP"
.ti -1c
.RI "long \fBn_matches\fP"
.br
-.RI "\fINumber of times the core matches the ban, for statistics.\fP"
+.RI "\fINumber of times the core matches the ban, for statistics. \fP"
.in -1c
.SH "Detailed Description"
.PP
-XLine is the base class for ban lines such as G lines and K lines.Definition at line 18 of file xline.h.
+XLine is the base class for ban lines such as G lines and K lines. Definition at line 34 of file xline.h.
.SH "Member Data Documentation"
.PP
-.SS "long XLine::duration"
+.SS "long \fBXLine::duration\fP"
.PP
-The duration of the ban, or 0 if permenant.Definition at line 28 of file xline.h.
-.SS "long XLine::n_matches"
+The duration of the ban, or 0 if permenant. Definition at line 44 of file xline.h.
+.SS "long \fBXLine::n_matches\fP"
.PP
-Number of times the core matches the ban, for statistics.Definition at line 40 of file xline.h.
-.SS "char XLine::reason[MAXBUF]"
+Number of times the core matches the ban, for statistics. Definition at line 56 of file xline.h.
+.SS "char \fBXLine::reason\fP[MAXBUF]"
.PP
-Reason for the ban.Definition at line 36 of file xline.h.
-.SS "time_t XLine::set_time"
+Reason for the ban. Definition at line 52 of file xline.h.
+.SS "time_t \fBXLine::set_time\fP"
.PP
-The time the line was added.Definition at line 24 of file xline.h.
-.SS "char XLine::source[MAXBUF]"
+The time the line was added. Definition at line 40 of file xline.h.
+.SS "char \fBXLine::source\fP[MAXBUF]"
.PP
-Source of the ban.This can be a servername or an oper nicknameDefinition at line 32 of file xline.h.
+Source of the ban. This can be a servername or an oper nicknameDefinition at line 48 of file xline.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/ZLine.3 b/docs/man/man3/ZLine.3
index ddb27e9b1..99a67a12f 100644
--- a/docs/man/man3/ZLine.3
+++ b/docs/man/man3/ZLine.3
@@ -1,8 +1,8 @@
-.TH "ZLine" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "ZLine" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-ZLine \- ZLine class.
+ZLine \- ZLine class.
.PP
.SH SYNOPSIS
@@ -18,23 +18,23 @@ Inherits \fBXLine\fP.
.ti -1c
.RI "char \fBipaddr\fP [MAXBUF]"
.br
-.RI "\fIIP Address (xx.yy.zz.aa) to match against May contain wildcards.\fP"
+.RI "\fIIP Address (xx.yy.zz.aa) to match against May contain wildcards. \fP"
.ti -1c
.RI "bool \fBis_global\fP"
.br
-.RI "\fISet if this is a global Z:line (e.g.\fP"
+.RI "\fISet if this is a global Z:line (e.g. \fP"
.in -1c
.SH "Detailed Description"
.PP
-ZLine class.Definition at line 68 of file xline.h.
+ZLine class. Definition at line 84 of file xline.h.
.SH "Member Data Documentation"
.PP
-.SS "char ZLine::ipaddr[MAXBUF]"
+.SS "char \fBZLine::ipaddr\fP[MAXBUF]"
.PP
-IP Address (xx.yy.zz.aa) to match against May contain wildcards.Definition at line 74 of file xline.h.
-.SS "bool ZLine::is_global"
+IP Address (xx.yy.zz.aa) to match against May contain wildcards. Definition at line 90 of file xline.h.
+.SS "bool \fBZLine::is_global\fP"
.PP
-Set if this is a global Z:line (e.g.it came from another server)Definition at line 78 of file xline.h.
+Set if this is a global Z:line (e.g. it came from another server)Definition at line 94 of file xline.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/base.h.3 b/docs/man/man3/base.h.3
index 64b58a308..3ab34e375 100644
--- a/docs/man/man3/base.h.3
+++ b/docs/man/man3/base.h.3
@@ -1,4 +1,4 @@
-.TH "base.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "base.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -21,11 +21,11 @@ base.h \-
.ti -1c
.RI "class \fBclassbase\fP"
.br
-.RI "\fIThe base class for all inspircd classes.\fP"
+.RI "\fIThe base class for all inspircd classes. \fP"
.ti -1c
.RI "class \fBExtensible\fP"
.br
-.RI "\fIclass Extensible is the parent class of many classes such as userrec and chanrec.\fP"
+.RI "\fIclass Extensible is the parent class of many classes such as userrec and chanrec. \fP"
.in -1c
.SS "Typedefs"
@@ -36,9 +36,9 @@ base.h \-
.in -1c
.SH "Typedef Documentation"
.PP
-.SS "typedef void* VoidPointer"
+.SS "typedef void* \fBVoidPointer\fP"
.PP
-Definition at line 13 of file base.h.
+Definition at line 25 of file base.h.
.SH "Author"
.PP
Generated automatically by Doxygen for InspIRCd from the source code.
diff --git a/docs/man/man3/channels.cpp.3 b/docs/man/man3/channels.cpp.3
index f1fe73602..929482350 100644
--- a/docs/man/man3/channels.cpp.3
+++ b/docs/man/man3/channels.cpp.3
@@ -1,4 +1,4 @@
-.TH "channels.cpp" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "channels.cpp" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -166,9 +166,6 @@ channels.cpp \-
.RI "std::vector< std::string > \fBmodule_names\fP"
.br
.ti -1c
-.RI "char \fBbannerBuffer\fP [MAXBUF]"
-.br
-.ti -1c
.RI "int \fBboundPortCount\fP"
.br
.ti -1c
@@ -203,125 +200,124 @@ channels.cpp \-
.PP
.SS "#define nspace std"
.PP
-Definition at line 41 of file channels.cpp.
+Definition at line 57 of file channels.cpp.
.SH "Variable Documentation"
.PP
-.SS "char AdminEmail[MAXBUF]"
+.SS "char \fBAdminEmail\fP[MAXBUF]"
.PP
-Definition at line 55 of file channels.cpp.
-.SS "char AdminName[MAXBUF]"
+Definition at line 71 of file channels.cpp.
+.SS "char \fBAdminName\fP[MAXBUF]"
.PP
-Definition at line 54 of file channels.cpp.
-.SS "char AdminNick[MAXBUF]"
+Definition at line 70 of file channels.cpp.
+.SS "char \fBAdminNick\fP[MAXBUF]"
.PP
-Definition at line 56 of file channels.cpp.
-.SS "std::vector<long> auth_cookies"
+Definition at line 72 of file channels.cpp.
+.SS "std::vector<long> \fBauth_cookies\fP"
.PP
-Definition at line 84 of file channels.cpp.
-.SS "char bannerBuffer[MAXBUF]"
+Definition at line 99 of file channels.cpp.
+.SS "int \fBboundPortCount\fP"
.PP
-Definition at line 77 of file channels.cpp.
-.SS "int boundPortCount"
+Definition at line 93 of file channels.cpp.
+.SS "std::stringstream \fBconfig_f\fP"
.PP
-Definition at line 78 of file channels.cpp.
-.SS "std::stringstream config_f"
+Definition at line 100 of file channels.cpp.
.PP
-Definition at line 85 of file channels.cpp.
-.SS "std::vector<\fBModeParameter\fP> custom_mode_params"
+Referenced by userrec::HasPermission().
+.SS "std::vector<\fBModeParameter\fP> \fBcustom_mode_params\fP"
.PP
-Definition at line 94 of file channels.cpp.
+Definition at line 109 of file channels.cpp.
.PP
Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam().
-.SS "int debugging"
+.SS "int \fBdebugging\fP"
.PP
-Definition at line 65 of file channels.cpp.
-.SS "int defaultRoute"
+Definition at line 81 of file channels.cpp.
+.SS "int \fBdefaultRoute\fP"
.PP
-Definition at line 82 of file channels.cpp.
-.SS "int DieDelay"
+Definition at line 97 of file channels.cpp.
+.SS "int \fBDieDelay\fP"
.PP
-Definition at line 68 of file channels.cpp.
-.SS "char diepass[MAXBUF]"
+Definition at line 84 of file channels.cpp.
+.SS "char \fBdiepass\fP[MAXBUF]"
.PP
-Definition at line 57 of file channels.cpp.
-.SS "char DieValue[MAXBUF]"
+Definition at line 73 of file channels.cpp.
+.SS "char \fBDieValue\fP[MAXBUF]"
.PP
-Definition at line 63 of file channels.cpp.
+Definition at line 79 of file channels.cpp.
.SS "vector<\fBircd_module\fP*> factory"
.PP
-Definition at line 48 of file channels.cpp.
-.SS "std::vector<int> fd_reap"
+Definition at line 64 of file channels.cpp.
+.SS "std::vector<int> \fBfd_reap\fP"
.PP
-Definition at line 74 of file channels.cpp.
-.SS "char list[MAXBUF]"
+Definition at line 90 of file channels.cpp.
+.SS "char \fBlist\fP[MAXBUF]"
.PP
-Definition at line 61 of file channels.cpp.
-.SS "FILE* log_file"
-.PP
-Definition at line 89 of file channels.cpp.
-.SS "int LogLevel"
+Definition at line 77 of file channels.cpp.
+.SS "FILE* \fBlog_file\fP"
.PP
-Definition at line 50 of file channels.cpp.
-.SS "int MaxWhoResults"
+Definition at line 104 of file channels.cpp.
+.SS "int \fBLogLevel\fP"
.PP
-Definition at line 71 of file channels.cpp.
-.SS "\fBserverrec\fP* me[32]"
+Definition at line 66 of file channels.cpp.
+.SS "int \fBMaxWhoResults\fP"
.PP
Definition at line 87 of file channels.cpp.
-.SS "int MODCOUNT = -1"
+.SS "\fBserverrec\fP* \fBme\fP[32]"
.PP
-Definition at line 714 of file modules.cpp.
-.SS "std::vector<std::string> module_names"
+Definition at line 102 of file channels.cpp.
+.SS "int \fBMODCOUNT\fP = -1"
.PP
-Definition at line 75 of file channels.cpp.
+Definition at line 763 of file modules.cpp.
+.SS "std::vector<std::string> \fBmodule_names\fP"
+.PP
+Definition at line 91 of file channels.cpp.
.SS "vector<\fBModule\fP*> modules"
.PP
-Definition at line 47 of file channels.cpp.
-.SS "char motd[MAXBUF]"
+Definition at line 63 of file channels.cpp.
+.SS "char \fBmotd\fP[MAXBUF]"
.PP
-Definition at line 59 of file channels.cpp.
-.SS "time_t nb_start"
+Definition at line 75 of file channels.cpp.
+.SS "time_t \fBnb_start\fP"
.PP
-Definition at line 72 of file channels.cpp.
-.SS "int NetBufferSize"
+Definition at line 88 of file channels.cpp.
+.SS "int \fBNetBufferSize\fP"
.PP
-Definition at line 70 of file channels.cpp.
-.SS "char Network[MAXBUF]"
+Definition at line 86 of file channels.cpp.
+.SS "char \fBNetwork\fP[MAXBUF]"
.PP
-Definition at line 52 of file channels.cpp.
-.SS "int portCount"
+Definition at line 68 of file channels.cpp.
+.SS "int \fBportCount\fP"
.PP
-Definition at line 79 of file channels.cpp.
-.SS "int ports[MAXSOCKS]"
+Definition at line 94 of file channels.cpp.
+.SS "int \fBports\fP[MAXSOCKS]"
.PP
-Definition at line 81 of file channels.cpp.
-.SS "char PrefixQuit[MAXBUF]"
+Definition at line 96 of file channels.cpp.
+.SS "char \fBPrefixQuit\fP[MAXBUF]"
.PP
-Definition at line 62 of file channels.cpp.
-.SS "char restartpass[MAXBUF]"
+Definition at line 78 of file channels.cpp.
+.SS "char \fBrestartpass\fP[MAXBUF]"
.PP
-Definition at line 58 of file channels.cpp.
-.SS "char rules[MAXBUF]"
+Definition at line 74 of file channels.cpp.
+.SS "char \fBrules\fP[MAXBUF]"
.PP
-Definition at line 60 of file channels.cpp.
-.SS "char ServerDesc[MAXBUF]"
+Definition at line 76 of file channels.cpp.
+.SS "char \fBServerDesc\fP[MAXBUF]"
.PP
-Definition at line 53 of file channels.cpp.
-.SS "char ServerName[MAXBUF]"
+Definition at line 69 of file channels.cpp.
+.SS "char \fBServerName\fP[MAXBUF]"
.PP
-Definition at line 51 of file channels.cpp.
-.SS "time_t startup_time"
+Definition at line 67 of file channels.cpp.
+.SS "time_t \fBstartup_time\fP"
.PP
-Definition at line 69 of file channels.cpp.
-.SS "int UDPportCount"
+Definition at line 85 of file channels.cpp.
+.SS "int \fBUDPportCount\fP"
.PP
-Definition at line 80 of file channels.cpp.
-.SS "int WHOWAS_MAX"
+Definition at line 95 of file channels.cpp.
+.SS "int \fBWHOWAS_MAX\fP"
.PP
-Definition at line 67 of file channels.cpp.
-.SS "int WHOWAS_STALE"
+Definition at line 83 of file channels.cpp.
+.SS "int \fBWHOWAS_STALE\fP"
.PP
-Definition at line 66 of file channels.cpp.
+Definition at line 82 of file channels.cpp.
.SH "Author"
.PP
Generated automatically by Doxygen for InspIRCd from the source code.
diff --git a/docs/man/man3/channels.h.3 b/docs/man/man3/channels.h.3
index bae8d2f2a..fa8009f18 100644
--- a/docs/man/man3/channels.h.3
+++ b/docs/man/man3/channels.h.3
@@ -1,4 +1,4 @@
-.TH "channels.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "channels.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -23,31 +23,31 @@ channels.h \-
.ti -1c
.RI "class \fBBanItem\fP"
.br
-.RI "\fIA subclass of \fBHostItem\fP designed to hold channel bans (+b).\fP"
+.RI "\fIA subclass of \fBHostItem\fP designed to hold channel bans (+b). \fP"
.ti -1c
.RI "class \fBchanrec\fP"
.br
-.RI "\fIHolds all relevent information for a channel.\fP"
+.RI "\fIHolds all relevent information for a channel. \fP"
.ti -1c
.RI "class \fBExemptItem\fP"
.br
-.RI "\fIA subclass of \fBHostItem\fP designed to hold channel exempts (+e).\fP"
+.RI "\fIA subclass of \fBHostItem\fP designed to hold channel exempts (+e). \fP"
.ti -1c
.RI "class \fBHostItem\fP"
.br
-.RI "\fIHolds an entry for a ban list, exemption list, or invite list.\fP"
+.RI "\fIHolds an entry for a ban list, exemption list, or invite list. \fP"
.ti -1c
.RI "class \fBInviteItem\fP"
.br
-.RI "\fIA subclass of \fBHostItem\fP designed to hold channel invites (+I).\fP"
+.RI "\fIA subclass of \fBHostItem\fP designed to hold channel invites (+I). \fP"
.ti -1c
.RI "class \fBModeParameter\fP"
.br
-.RI "\fIHolds a custom parameter to a module-defined channel mode e.g.\fP"
+.RI "\fIHolds a custom parameter to a module-defined channel mode e.g. \fP"
.ti -1c
.RI "class \fBucrec\fP"
.br
-.RI "\fIHolds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class.\fP"
+.RI "\fIHolds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class. \fP"
.in -1c
.SS "Defines"
@@ -74,44 +74,44 @@ channels.h \-
.ti -1c
.RI "typedef std::vector< \fBBanItem\fP > \fBBanList\fP"
.br
-.RI "\fIHolds a complete ban list.\fP"
+.RI "\fIHolds a complete ban list. \fP"
.ti -1c
.RI "typedef std::vector< \fBExemptItem\fP > \fBExemptList\fP"
.br
-.RI "\fIHolds a complete exempt list.\fP"
+.RI "\fIHolds a complete exempt list. \fP"
.ti -1c
.RI "typedef std::vector< \fBInviteItem\fP > \fBInviteList\fP"
.br
-.RI "\fIHolds a complete invite list.\fP"
+.RI "\fIHolds a complete invite list. \fP"
.in -1c
.SH "Define Documentation"
.PP
.SS "#define UCMODE_FOUNDER 16"
.PP
-Definition at line 184 of file channels.h.
+Definition at line 195 of file channels.h.
.SS "#define UCMODE_HOP 4"
.PP
-Definition at line 182 of file channels.h.
+Definition at line 193 of file channels.h.
.SS "#define UCMODE_OP 1"
.PP
-Definition at line 180 of file channels.h.
+Definition at line 191 of file channels.h.
.SS "#define UCMODE_PROTECT 8"
.PP
-Definition at line 183 of file channels.h.
+Definition at line 194 of file channels.h.
.SS "#define UCMODE_VOICE 2"
.PP
-Definition at line 181 of file channels.h.
+Definition at line 192 of file channels.h.
.SH "Typedef Documentation"
.PP
-.SS "typedef std::vector<\fBBanItem\fP> BanList"
+.SS "typedef std::vector<\fBBanItem\fP> \fBBanList\fP"
.PP
-Holds a complete ban list.Definition at line 69 of file channels.h.
-.SS "typedef std::vector<\fBExemptItem\fP> ExemptList"
+Holds a complete ban list. Definition at line 80 of file channels.h.
+.SS "typedef std::vector<\fBExemptItem\fP> \fBExemptList\fP"
.PP
-Holds a complete exempt list.Definition at line 73 of file channels.h.
-.SS "typedef std::vector<\fBInviteItem\fP> InviteList"
+Holds a complete exempt list. Definition at line 84 of file channels.h.
+.SS "typedef std::vector<\fBInviteItem\fP> \fBInviteList\fP"
.PP
-Holds a complete invite list.Definition at line 77 of file channels.h.
+Holds a complete invite list. Definition at line 88 of file channels.h.
.SH "Author"
.PP
Generated automatically by Doxygen for InspIRCd from the source code.
diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3
index 203c96ce0..afac25b94 100644
--- a/docs/man/man3/chanrec.3
+++ b/docs/man/man3/chanrec.3
@@ -1,8 +1,8 @@
-.TH "chanrec" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "chanrec" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-chanrec \- Holds all relevent information for a channel.
+chanrec \- Holds all relevent information for a channel.
.PP
.SH SYNOPSIS
@@ -18,23 +18,23 @@ Inherits \fBExtensible\fP.
.ti -1c
.RI "void \fBSetCustomMode\fP (char mode, bool mode_on)"
.br
-.RI "\fISets or unsets a custom mode in the channels info.\fP"
+.RI "\fISets or unsets a custom mode in the channels info. \fP"
.ti -1c
.RI "void \fBSetCustomModeParam\fP (char mode, char *parameter, bool mode_on)"
.br
-.RI "\fISets or unsets the parameters for a custom mode in a channels info.\fP"
+.RI "\fISets or unsets the parameters for a custom mode in a channels info. \fP"
.ti -1c
.RI "bool \fBIsCustomModeSet\fP (char mode)"
.br
-.RI "\fIReturns true if a custom mode is set on a channel.\fP"
+.RI "\fIReturns true if a custom mode is set on a channel. \fP"
.ti -1c
.RI "std::string \fBGetModeParameter\fP (char mode)"
.br
-.RI "\fIReturns the parameter for a custom mode on a channel.\fP"
+.RI "\fIReturns the parameter for a custom mode on a channel. \fP"
.ti -1c
.RI "\fBchanrec\fP ()"
.br
-.RI "\fICreates a channel record and initialises it with default values.\fP"
+.RI "\fICreates a channel record and initialises it with default values. \fP"
.ti -1c
.RI "virtual \fB~chanrec\fP ()"
.br
@@ -45,267 +45,274 @@ Inherits \fBExtensible\fP.
.ti -1c
.RI "char \fBname\fP [CHANMAX]"
.br
-.RI "\fIThe channels name.\fP"
+.RI "\fIThe channels name. \fP"
.ti -1c
.RI "char \fBcustom_modes\fP [MAXMODES]"
.br
-.RI "\fICustom modes for the channel.\fP"
+.RI "\fICustom modes for the channel. \fP"
.ti -1c
.RI "char \fBtopic\fP [MAXBUF]"
.br
-.RI "\fIChannel topic.\fP"
+.RI "\fIChannel topic. \fP"
.ti -1c
.RI "time_t \fBcreated\fP"
.br
-.RI "\fICreation time.\fP"
+.RI "\fICreation time. \fP"
.ti -1c
.RI "time_t \fBtopicset\fP"
.br
-.RI "\fITime topic was set.\fP"
+.RI "\fITime topic was set. \fP"
.ti -1c
.RI "char \fBsetby\fP [NICKMAX]"
.br
-.RI "\fIThe last user to set the topic.\fP"
+.RI "\fIThe last user to set the topic. \fP"
.ti -1c
.RI "long \fBlimit\fP"
.br
-.RI "\fIContains the channel user limit.\fP"
+.RI "\fIContains the channel user limit. \fP"
.ti -1c
.RI "char \fBkey\fP [32]"
.br
-.RI "\fIContains the channel key.\fP"
+.RI "\fIContains the channel key. \fP"
.ti -1c
.RI "short int \fBtopiclock\fP"
.br
-.RI "\fINonzero if the mode +t is set.\fP"
+.RI "\fINonzero if the mode +t is set. \fP"
.ti -1c
.RI "short int \fBnoexternal\fP"
.br
-.RI "\fINonzero if the mode +n is set.\fP"
+.RI "\fINonzero if the mode +n is set. \fP"
.ti -1c
.RI "short int \fBinviteonly\fP"
.br
-.RI "\fINonzero if the mode +i is set.\fP"
+.RI "\fINonzero if the mode +i is set. \fP"
.ti -1c
.RI "short int \fBmoderated\fP"
.br
-.RI "\fINonzero if the mode +m is set.\fP"
+.RI "\fINonzero if the mode +m is set. \fP"
.ti -1c
.RI "short int \fBsecret\fP"
.br
-.RI "\fINonzero if the mode +s is set.\fP"
+.RI "\fINonzero if the mode +s is set. \fP"
.ti -1c
.RI "short int \fBc_private\fP"
.br
-.RI "\fINonzero if the mode +p is set.\fP"
+.RI "\fINonzero if the mode +p is set. \fP"
.ti -1c
.RI "\fBBanList\fP \fBbans\fP"
.br
-.RI "\fIThe list of all bans set on the channel.\fP"
+.RI "\fIThe list of all bans set on the channel. \fP"
.in -1c
.SH "Detailed Description"
.PP
-Holds all relevent information for a channel.
+Holds all relevent information for a channel.
This class represents a channel, and contains its name, modes, time created, topic, topic set time, etc, and an instance of the BanList type.
.PP
-Definition at line 83 of file channels.h.
+Definition at line 94 of file channels.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "chanrec::chanrec ()"
.PP
-Creates a channel record and initialises it with default values.Definition at line 96 of file channels.cpp.
+Creates a channel record and initialises it with default values. Definition at line 111 of file channels.cpp.
.PP
-References c_private, created, inviteonly, limit, moderated, noexternal, secret, topiclock, and topicset.
+References c_private, created, custom_modes, inviteonly, key, limit, moderated, name, noexternal, secret, setby, topic, topiclock, and topicset.
.PP
.nf
-97 {
-98 strcpy(name,'');
-99 strcpy(custom_modes,'');
-100 strcpy(topic,'');
-101 strcpy(setby,'');
-102 strcpy(key,'');
-103 created = topicset = limit = 0;
-104 topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
-105 }
+112 {
+113 strcpy(name,'');
+114 strcpy(custom_modes,'');
+115 strcpy(topic,'');
+116 strcpy(setby,'');
+117 strcpy(key,'');
+118 created = topicset = limit = 0;
+119 topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
+120 }
.fi
-.SS "virtual chanrec::~chanrec ()\fC [inline, virtual]\fP"
+.SS "virtual chanrec::~\fBchanrec\fP ()\fC [inline, virtual]\fP"
.PP
-Definition at line 174 of file channels.h.
+Definition at line 185 of file channels.h.
.PP
.nf
-174 { /* stub */ }
+185 { /* stub */ }
.fi
.SH "Member Function Documentation"
.PP
.SS "std::string chanrec::GetModeParameter (char mode)"
.PP
-Returns the parameter for a custom mode on a channel.For example if '+L #foo' is set, and you pass this method 'L', it will return '#foo'. If the mode is not set on the channel, or the mode has no parameters associated with it, it will return an empty string.Definition at line 172 of file channels.cpp.
+Returns the parameter for a custom mode on a channel. For example if '+L #foo' is set, and you pass this method 'L', it will return '#foo'. If the mode is not set on the channel, or the mode has no parameters associated with it, it will return an empty string.Definition at line 184 of file channels.cpp.
.PP
References custom_mode_params.
.PP
.nf
-173 {
-174 if (custom_mode_params.size())
-175 {
-176 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-177 {
-178 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-179 {
-180 return std::string(i->parameter);
-181 }
-182 }
-183 }
-184 return std::string('');
-185 }
+185 {
+186 if (custom_mode_params.size())
+187 {
+188 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
+189 {
+190 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
+191 {
+192 return std::string(i->parameter);
+193 }
+194 }
+195 }
+196 return std::string('');
+197 }
.fi
.SS "bool chanrec::IsCustomModeSet (char mode)"
.PP
-Returns true if a custom mode is set on a channel.Definition at line 166 of file channels.cpp.
+Returns true if a custom mode is set on a channel. Definition at line 178 of file channels.cpp.
+.PP
+References DEBUG.
.PP
.nf
-167 {
-168 log(DEBUG,'Checking ISCustomModeSet: %c %s',mode,this->custom_modes);
-169 return (strchr(this->custom_modes,mode) != 0);
-170 }
+179 {
+180 log(DEBUG,'Checking ISCustomModeSet: %c %s',mode,this->custom_modes);
+181 return (strchr(this->custom_modes,mode) != 0);
+182 }
.fi
.SS "void chanrec::SetCustomMode (char mode, bool mode_on)"
.PP
-Sets or unsets a custom mode in the channels info.Definition at line 107 of file channels.cpp.
+Sets or unsets a custom mode in the channels info. Definition at line 122 of file channels.cpp.
.PP
-References custom_modes, and SetCustomModeParam().
+References custom_modes, DEBUG, and SetCustomModeParam().
.PP
.nf
-108 {
-109 if (mode_on) {
-110 char m[3];
-111 m[0] = mode;
-112 m[1] = '\0';
-113 if (!strchr(this->custom_modes,mode))
-114 {
-115 strncat(custom_modes,m,MAXMODES);
-116 }
-117 log(DEBUG,'Custom mode %c set',mode);
-118 }
-119 else {
-120 char temp[MAXBUF];
-121 int count = 0;
-122 for (int q = 0; q < strlen(custom_modes); q++) {
-123 if (custom_modes[q] != mode) {
-124 temp[count++] = mode;
-125 }
-126 }
-127 temp[count] = '\0';
-128 strncpy(custom_modes,temp,MAXMODES);
-129 log(DEBUG,'Custom mode %c removed',mode);
-130 this->SetCustomModeParam(mode,'',false);
-131 }
-132 }
+123 {
+124 if (mode_on) {
+125 char m[3];
+126 m[0] = mode;
+127 m[1] = '\0';
+128 if (!strchr(this->custom_modes,mode))
+129 {
+130 strlcat(custom_modes,m,MAXMODES);
+131 }
+132 log(DEBUG,'Custom mode %c set',mode);
+133 }
+134 else {
+135
+136 std::string a = this->custom_modes;
+137 int pos = a.find(mode);
+138 a.erase(pos,1);
+139 strncpy(this->custom_modes,a.c_str(),MAXMODES);
+140
+141 log(DEBUG,'Custom mode %c removed: modelist='%s'',mode,this->custom_modes);
+142 this->SetCustomModeParam(mode,'',false);
+143 }
+144 }
.fi
.SS "void chanrec::SetCustomModeParam (char mode, char * parameter, bool mode_on)"
.PP
-Sets or unsets the parameters for a custom mode in a channels info.Definition at line 135 of file channels.cpp.
+Sets or unsets the parameters for a custom mode in a channels info. Definition at line 147 of file channels.cpp.
.PP
-References ModeParameter::channel, custom_mode_params, ModeParameter::mode, and ModeParameter::parameter.
+References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter.
.PP
Referenced by SetCustomMode().
.PP
.nf
-136 {
-137
-138 log(DEBUG,'SetCustomModeParam called');
-139 ModeParameter M;
-140 M.mode = mode;
-141 strcpy(M.channel,this->name);
-142 strcpy(M.parameter,parameter);
-143 if (mode_on)
-144 {
-145 log(DEBUG,'Custom mode parameter %c %s added',mode,parameter);
-146 custom_mode_params.push_back(M);
-147 }
-148 else
-149 {
-150 if (custom_mode_params.size())
-151 {
-152 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-153 {
-154 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-155 {
-156 log(DEBUG,'Custom mode parameter %c %s removed',mode,parameter);
-157 custom_mode_params.erase(i);
-158 return;
-159 }
-160 }
-161 }
-162 log(DEBUG,'*** BUG *** Attempt to remove non-existent mode parameter!');
-163 }
-164 }
+148 {
+149
+150 log(DEBUG,'SetCustomModeParam called');
+151 ModeParameter M;
+152 M.mode = mode;
+153 strlcpy(M.channel,this->name,CHANMAX);
+154 strlcpy(M.parameter,parameter,MAXBUF);
+155 if (mode_on)
+156 {
+157 log(DEBUG,'Custom mode parameter %c %s added',mode,parameter);
+158 custom_mode_params.push_back(M);
+159 }
+160 else
+161 {
+162 if (custom_mode_params.size())
+163 {
+164 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
+165 {
+166 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
+167 {
+168 log(DEBUG,'Custom mode parameter %c %s removed',mode,parameter);
+169 custom_mode_params.erase(i);
+170 return;
+171 }
+172 }
+173 }
+174 log(DEBUG,'*** BUG *** Attempt to remove non-existent mode parameter!');
+175 }
+176 }
.fi
.SH "Member Data Documentation"
.PP
-.SS "\fBBanList\fP chanrec::bans"
+.SS "\fBBanList\fP \fBchanrec::bans\fP"
.PP
-The list of all bans set on the channel.Definition at line 148 of file channels.h.
-.SS "short int chanrec::c_private"
+The list of all bans set on the channel. Definition at line 159 of file channels.h.
+.SS "short int \fBchanrec::c_private\fP"
.PP
-Nonzero if the mode +p is set.This value cannot be set at the same time as \fBchanrec::secret\fPDefinition at line 144 of file channels.h.
+Nonzero if the mode +p is set. This value cannot be set at the same time as \fBchanrec::secret\fPDefinition at line 155 of file channels.h.
.PP
Referenced by chanrec().
-.SS "time_t chanrec::created"
+.SS "time_t \fBchanrec::created\fP"
.PP
-Creation time.Definition at line 100 of file channels.h.
+Creation time. Definition at line 111 of file channels.h.
.PP
Referenced by chanrec().
-.SS "char chanrec::custom_modes[MAXMODES]"
+.SS "char \fBchanrec::custom_modes\fP[MAXMODES]"
.PP
-Custom modes for the channel.Plugins may use this field in any way they see fit.Definition at line 92 of file channels.h.
+Custom modes for the channel. Plugins may use this field in any way they see fit.Definition at line 103 of file channels.h.
.PP
-Referenced by SetCustomMode().
-.SS "short int chanrec::inviteonly"
+Referenced by chanrec(), and SetCustomMode().
+.SS "short int \fBchanrec::inviteonly\fP"
+.PP
+Nonzero if the mode +i is set. Definition at line 141 of file channels.h.
+.PP
+Referenced by chanrec().
+.SS "char \fBchanrec::key\fP[32]"
.PP
-Nonzero if the mode +i is set.Definition at line 130 of file channels.h.
+Contains the channel key. If this value is an empty string, there is no channel key in place.Definition at line 129 of file channels.h.
.PP
Referenced by chanrec().
-.SS "char chanrec::key[32]"
+.SS "long \fBchanrec::limit\fP"
.PP
-Contains the channel key.If this value is an empty string, there is no channel key in place.Definition at line 118 of file channels.h.
-.SS "long chanrec::limit"
+Contains the channel user limit. If this value is zero, there is no limit in place.Definition at line 124 of file channels.h.
.PP
-Contains the channel user limit.If this value is zero, there is no limit in place.Definition at line 113 of file channels.h.
+Referenced by chanrec().
+.SS "short int \fBchanrec::moderated\fP"
+.PP
+Nonzero if the mode +m is set. Definition at line 145 of file channels.h.
.PP
Referenced by chanrec().
-.SS "short int chanrec::moderated"
+.SS "char \fBchanrec::name\fP[CHANMAX]"
.PP
-Nonzero if the mode +m is set.Definition at line 134 of file channels.h.
+The channels name. Definition at line 99 of file channels.h.
.PP
Referenced by chanrec().
-.SS "char chanrec::name[CHANMAX]"
+.SS "short int \fBchanrec::noexternal\fP"
.PP
-The channels name.Definition at line 88 of file channels.h.
-.SS "short int chanrec::noexternal"
+Nonzero if the mode +n is set. Definition at line 137 of file channels.h.
.PP
-Nonzero if the mode +n is set.Definition at line 126 of file channels.h.
+Referenced by chanrec().
+.SS "short int \fBchanrec::secret\fP"
+.PP
+Nonzero if the mode +s is set. This value cannot be set at the same time as \fBchanrec::c_private\fPDefinition at line 150 of file channels.h.
.PP
Referenced by chanrec().
-.SS "short int chanrec::secret"
+.SS "char \fBchanrec::setby\fP[NICKMAX]"
.PP
-Nonzero if the mode +s is set.This value cannot be set at the same time as \fBchanrec::c_private\fPDefinition at line 139 of file channels.h.
+The last user to set the topic. If this member is an empty string, no topic was ever set.Definition at line 119 of file channels.h.
.PP
Referenced by chanrec().
-.SS "char chanrec::setby[NICKMAX]"
+.SS "char \fBchanrec::topic\fP[MAXBUF]"
.PP
-The last user to set the topic.If this member is an empty string, no topic was ever set.Definition at line 108 of file channels.h.
-.SS "char chanrec::topic[MAXBUF]"
+Channel topic. If this is an empty string, no channel topic is set.Definition at line 108 of file channels.h.
.PP
-Channel topic.If this is an empty string, no channel topic is set.Definition at line 97 of file channels.h.
-.SS "short int chanrec::topiclock"
+Referenced by chanrec().
+.SS "short int \fBchanrec::topiclock\fP"
.PP
-Nonzero if the mode +t is set.Definition at line 122 of file channels.h.
+Nonzero if the mode +t is set. Definition at line 133 of file channels.h.
.PP
Referenced by chanrec().
-.SS "time_t chanrec::topicset"
+.SS "time_t \fBchanrec::topicset\fP"
.PP
-Time topic was set.If no topic was ever set, this will be equal to \fBchanrec::created\fPDefinition at line 104 of file channels.h.
+Time topic was set. If no topic was ever set, this will be equal to \fBchanrec::created\fPDefinition at line 115 of file channels.h.
.PP
Referenced by chanrec().
diff --git a/docs/man/man3/classbase.3 b/docs/man/man3/classbase.3
index f0b468217..7cf12b51d 100644
--- a/docs/man/man3/classbase.3
+++ b/docs/man/man3/classbase.3
@@ -1,8 +1,8 @@
-.TH "classbase" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "classbase" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-classbase \- The base class for all inspircd classes.
+classbase \- The base class for all inspircd classes.
.PP
.SH SYNOPSIS
@@ -18,7 +18,7 @@ Inherited by \fBAdmin\fP, \fBConfigReader\fP, \fBConnectClass\fP, \fBExtensible\
.ti -1c
.RI "\fBclassbase\fP ()"
.br
-.RI "\fIConstructor, Sets the object's time.\fP"
+.RI "\fIConstructor, Sets the object's time. \fP"
.ti -1c
.RI "\fB~classbase\fP ()"
.br
@@ -29,32 +29,36 @@ Inherited by \fBAdmin\fP, \fBConfigReader\fP, \fBConnectClass\fP, \fBExtensible\
.ti -1c
.RI "time_t \fBage\fP"
.br
-.RI "\fITime that the object was instantiated (used for TS calculation etc).\fP"
+.RI "\fITime that the object was instantiated (used for TS calculation etc). \fP"
.in -1c
.SH "Detailed Description"
.PP
-The base class for all inspircd classes.Definition at line 17 of file base.h.
+The base class for all inspircd classes. Definition at line 29 of file base.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "classbase::classbase ()\fC [inline]\fP"
.PP
-Constructor, Sets the object's time.Definition at line 27 of file base.h.
+Constructor, Sets the object's time. Definition at line 39 of file base.h.
+.PP
+References age.
.PP
.nf
-27 { age = time(NULL); }
+39 { age = time(NULL); }
.fi
-.SS "classbase::~classbase ()\fC [inline]\fP"
+.SS "classbase::~\fBclassbase\fP ()\fC [inline]\fP"
.PP
-Definition at line 28 of file base.h.
+Definition at line 40 of file base.h.
.PP
.nf
-28 { }
+40 { }
.fi
.SH "Member Data Documentation"
.PP
-.SS "time_t classbase::age"
+.SS "time_t \fBclassbase::age\fP"
+.PP
+Time that the object was instantiated (used for TS calculation etc). Definition at line 34 of file base.h.
.PP
-Time that the object was instantiated (used for TS calculation etc).Definition at line 22 of file base.h.
+Referenced by classbase().
.SH "Author"
.PP
diff --git a/docs/man/man3/command_t.3 b/docs/man/man3/command_t.3
index 8f3229494..fd4aad7f1 100644
--- a/docs/man/man3/command_t.3
+++ b/docs/man/man3/command_t.3
@@ -1,8 +1,8 @@
-.TH "command_t" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "command_t" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-command_t \- A structure that defines a command.
+command_t \- A structure that defines a command.
.PP
.SH SYNOPSIS
@@ -18,51 +18,51 @@ Inherits \fBExtensible\fP.
.ti -1c
.RI "char \fBcommand\fP [MAXBUF]"
.br
-.RI "\fICommand name.\fP"
+.RI "\fICommand name. \fP"
.ti -1c
.RI "handlerfunc * \fBhandler_function\fP"
.br
-.RI "\fIHandler function as in typedef.\fP"
+.RI "\fIHandler function as in typedef. \fP"
.ti -1c
.RI "char \fBflags_needed\fP"
.br
-.RI "\fIUser flags needed to execute the command or 0.\fP"
+.RI "\fIUser flags needed to execute the command or 0. \fP"
.ti -1c
.RI "int \fBmin_params\fP"
.br
-.RI "\fIMinimum number of parameters command takes.\fP"
+.RI "\fIMinimum number of parameters command takes. \fP"
.ti -1c
.RI "long \fBuse_count\fP"
.br
-.RI "\fIused by /stats m\fP"
+.RI "\fIused by /stats m \fP"
.ti -1c
.RI "long \fBtotal_bytes\fP"
.br
-.RI "\fIused by /stats m\fP"
+.RI "\fIused by /stats m \fP"
.in -1c
.SH "Detailed Description"
.PP
-A structure that defines a command.Definition at line 25 of file ctables.h.
+A structure that defines a command. Definition at line 26 of file ctables.h.
.SH "Member Data Documentation"
.PP
-.SS "char command_t::command[MAXBUF]"
+.SS "char \fBcommand_t::command\fP[MAXBUF]"
.PP
-Command name.Definition at line 30 of file ctables.h.
-.SS "char command_t::flags_needed"
+Command name. Definition at line 31 of file ctables.h.
+.SS "char \fBcommand_t::flags_needed\fP"
.PP
-User flags needed to execute the command or 0.Definition at line 36 of file ctables.h.
-.SS "handlerfunc* command_t::handler_function"
+User flags needed to execute the command or 0. Definition at line 37 of file ctables.h.
+.SS "handlerfunc* \fBcommand_t::handler_function\fP"
.PP
-Handler function as in typedef.Definition at line 33 of file ctables.h.
-.SS "int command_t::min_params"
+Handler function as in typedef. Definition at line 34 of file ctables.h.
+.SS "int \fBcommand_t::min_params\fP"
.PP
-Minimum number of parameters command takes.Definition at line 39 of file ctables.h.
-.SS "long command_t::total_bytes"
+Minimum number of parameters command takes. Definition at line 40 of file ctables.h.
+.SS "long \fBcommand_t::total_bytes\fP"
.PP
-used by /stats mDefinition at line 45 of file ctables.h.
-.SS "long command_t::use_count"
+used by /stats m Definition at line 46 of file ctables.h.
+.SS "long \fBcommand_t::use_count\fP"
.PP
-used by /stats mDefinition at line 42 of file ctables.h.
+used by /stats m Definition at line 43 of file ctables.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/commands.h.3 b/docs/man/man3/commands.h.3
index 7a226017d..d3a0c3c89 100644
--- a/docs/man/man3/commands.h.3
+++ b/docs/man/man3/commands.h.3
@@ -1,4 +1,4 @@
-.TH "commands.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "commands.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -29,7 +29,7 @@ commands.h \-
.ti -1c
.RI "void \fBhandle_join\fP (char **parameters, int pcnt, \fBuserrec\fP *user)"
.br
-.RI "\fIThese are the handlers for user commands.\fP"
+.RI "\fIThese are the handlers for user commands. \fP"
.ti -1c
.RI "void \fBhandle_part\fP (char **parameters, int pcnt, \fBuserrec\fP *user)"
.br
@@ -171,14 +171,14 @@ commands.h \-
.ti -1c
.RI "void \fBhandle_link_packet\fP (char *udp_msg, char *tcp_host, \fBserverrec\fP *serv)"
.br
-.RI "\fISpecial functions for processing server to server traffic.\fP"
+.RI "\fISpecial functions for processing server to server traffic. \fP"
.ti -1c
.RI "void \fBprocess_restricted_commands\fP (char token, char *params, \fBserverrec\fP *source, \fBserverrec\fP *reply, char *tcp_host, char *ipaddr, int port)"
.br
.ti -1c
.RI "void \fBhandle_amp\fP (char token, char *params, \fBserverrec\fP *source, \fBserverrec\fP *reply, char *tcp_host)"
.br
-.RI "\fIThese are the handlers for server commands (tokens).\fP"
+.RI "\fIThese are the handlers for server commands (tokens). \fP"
.ti -1c
.RI "void \fBhandle_dollar\fP (char token, char *params, \fBserverrec\fP *source, \fBserverrec\fP *reply, char *tcp_host)"
.br
@@ -245,7 +245,7 @@ commands.h \-
.ti -1c
.RI "bool \fBis_uline\fP (const char *server)"
.br
-.RI "\fIFunctions for u:lined servers.\fP"
+.RI "\fIFunctions for u:lined servers. \fP"
.in -1c
.SH "Function Documentation"
.PP
@@ -255,7 +255,7 @@ commands.h \-
.PP
.SS "void handle_amp (char token, char * params, \fBserverrec\fP * source, \fBserverrec\fP * reply, char * tcp_host)"
.PP
-These are the handlers for server commands (tokens).
+These are the handlers for server commands (tokens).
.SS "void handle_AT (char token, char * params, \fBserverrec\fP * source, \fBserverrec\fP * reply, char * tcp_host)"
.PP
.SS "void handle_away (char ** parameters, int pcnt, \fBuserrec\fP * user)"
@@ -284,7 +284,7 @@ These are the handlers for server commands (tokens).
.PP
.SS "void handle_join (char ** parameters, int pcnt, \fBuserrec\fP * user)"
.PP
-These are the handlers for user commands.
+These are the handlers for user commands.
.SS "void handle_K (char token, char * params, \fBserverrec\fP * source, \fBserverrec\fP * reply, char * tcp_host)"
.PP
.SS "void handle_k (char token, char * params, \fBserverrec\fP * source, \fBserverrec\fP * reply, char * tcp_host)"
@@ -299,7 +299,7 @@ These are the handlers for user commands.
.PP
.SS "void handle_link_packet (char * udp_msg, char * tcp_host, \fBserverrec\fP * serv)"
.PP
-Special functions for processing server to server traffic.
+Special functions for processing server to server traffic.
.SS "void handle_links (char ** parameters, int pcnt, \fBuserrec\fP * user)"
.PP
.SS "void handle_list (char ** parameters, int pcnt, \fBuserrec\fP * user)"
@@ -394,7 +394,7 @@ Special functions for processing server to server traffic.
.PP
.SS "bool is_uline (const char * server)"
.PP
-Functions for u:lined servers.Referenced by Server::IsUlined().
+Functions for u:lined servers. Referenced by Server::IsUlined().
.SS "void process_restricted_commands (char token, char * params, \fBserverrec\fP * source, \fBserverrec\fP * reply, char * tcp_host, char * ipaddr, int port)"
.PP
.SH "Author"
diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3
index c6b343005..57d15f3d3 100644
--- a/docs/man/man3/connection.3
+++ b/docs/man/man3/connection.3
@@ -1,8 +1,8 @@
-.TH "connection" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "connection" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-connection \- Please note: classes serverrec and userrec both inherit from class connection.
+connection \- Please note: classes serverrec and userrec both inherit from class connection.
.PP
.SH SYNOPSIS
@@ -20,43 +20,43 @@ Inherited by \fBserverrec\fP, and \fBuserrec\fP.
.ti -1c
.RI "\fBconnection\fP ()"
.br
-.RI "\fIDefault constructor.\fP"
+.RI "\fIDefault constructor. \fP"
.ti -1c
.RI "bool \fBCreateListener\fP (char *\fBhost\fP, int p)"
.br
-.RI "\fICreate a listening socket on 'host' using port number 'p'.\fP"
+.RI "\fICreate a listening socket on 'host' using port number 'p'. \fP"
.ti -1c
.RI "bool \fBBeginLink\fP (char *targethost, int \fBport\fP, char *password, char *servername, int myport)"
.br
-.RI "\fIBegin an outbound link to another ircd at targethost.\fP"
+.RI "\fIBegin an outbound link to another ircd at targethost. \fP"
.ti -1c
.RI "bool \fBMeshCookie\fP (char *targethost, int \fBport\fP, long cookie, char *servername)"
.br
-.RI "\fIBegin an outbound mesh link to another ircd on a network you are already an authenticated member of.\fP"
+.RI "\fIBegin an outbound mesh link to another ircd on a network you are already an authenticated member of. \fP"
.ti -1c
.RI "void \fBTerminateLink\fP (char *targethost)"
.br
-.RI "\fITerminate a link to 'targethost' by calling the \fBircd_connector::CloseConnection\fP method.\fP"
+.RI "\fITerminate a link to 'targethost' by calling the \fBircd_connector::CloseConnection\fP method. \fP"
.ti -1c
.RI "bool \fBSendPacket\fP (char *message, const char *\fBhost\fP)"
.br
-.RI "\fISend a message to a server by name, if the server is unavailable directly route the packet via another server If the server still cannot be reached after attempting to route the message remotely, returns false.\fP"
+.RI "\fISend a message to a server by name, if the server is unavailable directly route the packet via another server If the server still cannot be reached after attempting to route the message remotely, returns false. \fP"
.ti -1c
.RI "bool \fBRecvPacket\fP (std::deque< std::string > &messages, char *\fBhost\fP)"
.br
-.RI "\fIReturns the next available packet and returns true if data is available.\fP"
+.RI "\fIReturns the next available packet and returns true if data is available. \fP"
.ti -1c
.RI "\fBircd_connector\fP * \fBFindHost\fP (std::string \fBhost\fP)"
.br
-.RI "\fIFind the \fBircd_connector\fP oject related to a certain servername given in 'host'.\fP"
+.RI "\fIFind the \fBircd_connector\fP oject related to a certain servername given in 'host'. \fP"
.ti -1c
.RI "bool \fBAddIncoming\fP (int \fBfd\fP, char *targethost, int sourceport)"
.br
-.RI "\fIAdd an incoming connection to the connection pool.\fP"
+.RI "\fIAdd an incoming connection to the connection pool. \fP"
.ti -1c
.RI "long \fBGenKey\fP ()"
.br
-.RI "\fIThis function is deprecated and may be removed in a later alpha/beta.\fP"
+.RI "\fIThis function is deprecated and may be removed in a later alpha/beta. \fP"
.in -1c
.SS "Public Attributes"
@@ -64,200 +64,206 @@ Inherited by \fBserverrec\fP, and \fBuserrec\fP.
.ti -1c
.RI "int \fBfd\fP"
.br
-.RI "\fIFile descriptor of the connection.\fP"
+.RI "\fIFile descriptor of the connection. \fP"
.ti -1c
.RI "char \fBhost\fP [256]"
.br
-.RI "\fIHostname of connection.\fP"
+.RI "\fIHostname of connection. \fP"
.ti -1c
.RI "char \fBip\fP [32]"
.br
-.RI "\fIIP of connection.\fP"
+.RI "\fIIP of connection. \fP"
.ti -1c
.RI "char \fBinbuf\fP [MAXBUF]"
.br
-.RI "\fIInbuf of connection.\fP"
+.RI "\fIInbuf of connection. \fP"
.ti -1c
.RI "long \fBbytes_in\fP"
.br
-.RI "\fIStats counter for bytes inbound.\fP"
+.RI "\fIStats counter for bytes inbound. \fP"
.ti -1c
.RI "long \fBbytes_out\fP"
.br
-.RI "\fIStats counter for bytes outbound.\fP"
+.RI "\fIStats counter for bytes outbound. \fP"
.ti -1c
.RI "long \fBcmds_in\fP"
.br
-.RI "\fIStats counter for commands inbound.\fP"
+.RI "\fIStats counter for commands inbound. \fP"
.ti -1c
.RI "long \fBcmds_out\fP"
.br
-.RI "\fIStats counter for commands outbound.\fP"
+.RI "\fIStats counter for commands outbound. \fP"
.ti -1c
.RI "bool \fBhaspassed\fP"
.br
-.RI "\fITrue if server/user has authenticated, false if otherwise.\fP"
+.RI "\fITrue if server/user has authenticated, false if otherwise. \fP"
.ti -1c
.RI "int \fBport\fP"
.br
-.RI "\fIPort number For a userrec, this is the port they connected to the network on.\fP"
+.RI "\fIPort number For a userrec, this is the port they connected to the network on. \fP"
.ti -1c
.RI "int \fBregistered\fP"
.br
-.RI "\fIUsed by userrec to indicate the registration status of the connection.\fP"
+.RI "\fIUsed by userrec to indicate the registration status of the connection. \fP"
.ti -1c
.RI "short int \fBstate\fP"
.br
-.RI "\fIReserved for future use.\fP"
+.RI "\fIReserved for future use. \fP"
.ti -1c
.RI "time_t \fBlastping\fP"
.br
-.RI "\fITime the connection was last pinged.\fP"
+.RI "\fITime the connection was last pinged. \fP"
.ti -1c
.RI "time_t \fBsignon\fP"
.br
-.RI "\fITime the connection was created, set in the constructor.\fP"
+.RI "\fITime the connection was created, set in the constructor. \fP"
.ti -1c
.RI "time_t \fBidle_lastmsg\fP"
.br
-.RI "\fITime that the connection last sent data, used to calculate idle time.\fP"
+.RI "\fITime that the connection last sent data, used to calculate idle time. \fP"
.ti -1c
.RI "time_t \fBnping\fP"
.br
-.RI "\fIUsed by PING checks with clients.\fP"
+.RI "\fIUsed by PING checks with clients. \fP"
.ti -1c
.RI "char \fBinternal_addr\fP [MAXBUF]"
.br
-.RI "\fIUnused, will be removed in a future alpha/beta.\fP"
+.RI "\fIUnused, will be removed in a future alpha/beta. \fP"
.ti -1c
.RI "int \fBinternal_port\fP"
.br
-.RI "\fIUnused, will be removed in a future alpha/beta.\fP"
+.RI "\fIUnused, will be removed in a future alpha/beta. \fP"
.ti -1c
.RI "std::vector< \fBircd_connector\fP > \fBconnectors\fP"
.br
-.RI "\fIWith a serverrec, this is a list of all established server connections.\fP"
+.RI "\fIWith a serverrec, this is a list of all established server connections. \fP"
.in -1c
.SH "Detailed Description"
.PP
-Please note: classes serverrec and userrec both inherit from class connection.Definition at line 161 of file connection.h.
+Please note: classes serverrec and userrec both inherit from class connection. Definition at line 173 of file connection.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "connection::connection ()"
.PP
-Default constructor.
+Default constructor.
.SH "Member Function Documentation"
.PP
.SS "bool connection::AddIncoming (int fd, char * targethost, int sourceport)"
.PP
-Add an incoming connection to the connection pool.(reserved for core use)
+Add an incoming connection to the connection pool. (reserved for core use)
.SS "bool connection::BeginLink (char * targethost, int port, char * password, char * servername, int myport)"
.PP
-Begin an outbound link to another ircd at targethost.
+Begin an outbound link to another ircd at targethost.
.SS "bool connection::CreateListener (char * host, int p)"
.PP
-Create a listening socket on 'host' using port number 'p'.
+Create a listening socket on 'host' using port number 'p'.
.SS "\fBircd_connector\fP* connection::FindHost (std::string host)"
.PP
-Find the \fBircd_connector\fP oject related to a certain servername given in 'host'.
+Find the \fBircd_connector\fP oject related to a certain servername given in 'host'.
.SS "long connection::GenKey ()"
.PP
-This function is deprecated and may be removed in a later alpha/beta.
+This function is deprecated and may be removed in a later alpha/beta.
.SS "bool connection::MeshCookie (char * targethost, int port, long cookie, char * servername)"
.PP
-Begin an outbound mesh link to another ircd on a network you are already an authenticated member of.
+Begin an outbound mesh link to another ircd on a network you are already an authenticated member of.
.SS "bool connection::RecvPacket (std::deque< std::string > & messages, char * host)"
.PP
-Returns the next available packet and returns true if data is available.Writes the servername the data came from to 'host'. If no data is available this function returns false. This function will automatically close broken links and reroute pathways, generating split messages on the network.
+Returns the next available packet and returns true if data is available. Writes the servername the data came from to 'host'. If no data is available this function returns false. This function will automatically close broken links and reroute pathways, generating split messages on the network.
.SS "bool connection::SendPacket (char * message, const char * host)"
.PP
-Send a message to a server by name, if the server is unavailable directly route the packet via another server If the server still cannot be reached after attempting to route the message remotely, returns false.
+Send a message to a server by name, if the server is unavailable directly route the packet via another server If the server still cannot be reached after attempting to route the message remotely, returns false.
.SS "void connection::TerminateLink (char * targethost)"
.PP
-Terminate a link to 'targethost' by calling the \fBircd_connector::CloseConnection\fP method.
+Terminate a link to 'targethost' by calling the \fBircd_connector::CloseConnection\fP method.
.SH "Member Data Documentation"
.PP
-.SS "long connection::bytes_in"
+.SS "long \fBconnection::bytes_in\fP"
.PP
-Stats counter for bytes inbound.Definition at line 182 of file connection.h.
+Stats counter for bytes inbound. Definition at line 194 of file connection.h.
.PP
Referenced by userrec::userrec().
-.SS "long connection::bytes_out"
+.SS "long \fBconnection::bytes_out\fP"
.PP
-Stats counter for bytes outbound.Definition at line 186 of file connection.h.
+Stats counter for bytes outbound. Definition at line 198 of file connection.h.
.PP
Referenced by userrec::userrec().
-.SS "long connection::cmds_in"
+.SS "long \fBconnection::cmds_in\fP"
.PP
-Stats counter for commands inbound.Definition at line 190 of file connection.h.
+Stats counter for commands inbound. Definition at line 202 of file connection.h.
.PP
Referenced by userrec::userrec().
-.SS "long connection::cmds_out"
+.SS "long \fBconnection::cmds_out\fP"
.PP
-Stats counter for commands outbound.Definition at line 194 of file connection.h.
+Stats counter for commands outbound. Definition at line 206 of file connection.h.
.PP
Referenced by userrec::userrec().
-.SS "std::vector<\fBircd_connector\fP> connection::connectors"
+.SS "std::vector<\fBircd_connector\fP> \fBconnection::connectors\fP"
.PP
-With a serverrec, this is a list of all established server connections.With a userrec this is unused.Definition at line 241 of file connection.h.
-.SS "int connection::fd"
+With a serverrec, this is a list of all established server connections. With a userrec this is unused.Definition at line 253 of file connection.h.
+.SS "int \fBconnection::fd\fP"
.PP
-File descriptor of the connection.Definition at line 166 of file connection.h.
+File descriptor of the connection. Definition at line 178 of file connection.h.
.PP
-Referenced by Server::SendTo(), serverrec::serverrec(), and userrec::userrec().
-.SS "bool connection::haspassed"
+Referenced by ConfigReader::DumpErrors(), Server::SendTo(), serverrec::serverrec(), and userrec::userrec().
+.SS "bool \fBconnection::haspassed\fP"
.PP
-True if server/user has authenticated, false if otherwise.Definition at line 198 of file connection.h.
+True if server/user has authenticated, false if otherwise. Definition at line 210 of file connection.h.
.PP
Referenced by userrec::userrec().
-.SS "char connection::host[256]"
+.SS "char \fBconnection::host\fP[256]"
.PP
-Hostname of connection.Not used if this is a serverrecDefinition at line 170 of file connection.h.
-.SS "time_t connection::idle_lastmsg"
+Hostname of connection. Not used if this is a serverrecDefinition at line 182 of file connection.h.
.PP
-Time that the connection last sent data, used to calculate idle time.Definition at line 224 of file connection.h.
+Referenced by userrec::GetFullRealHost(), and userrec::userrec().
+.SS "time_t \fBconnection::idle_lastmsg\fP"
+.PP
+Time that the connection last sent data, used to calculate idle time. Definition at line 236 of file connection.h.
.PP
Referenced by userrec::userrec().
-.SS "char connection::inbuf[MAXBUF]"
+.SS "char \fBconnection::inbuf\fP[MAXBUF]"
+.PP
+Inbuf of connection. Only used for userrecDefinition at line 190 of file connection.h.
.PP
-Inbuf of connection.Only used for userrecDefinition at line 178 of file connection.h.
-.SS "char connection::internal_addr[MAXBUF]"
+Referenced by userrec::userrec().
+.SS "char \fBconnection::internal_addr\fP[MAXBUF]"
.PP
-Unused, will be removed in a future alpha/beta.Definition at line 232 of file connection.h.
-.SS "int connection::internal_port"
+Unused, will be removed in a future alpha/beta. Definition at line 244 of file connection.h.
+.SS "int \fBconnection::internal_port\fP"
.PP
-Unused, will be removed in a future alpha/beta.Definition at line 236 of file connection.h.
-.SS "char connection::ip[32]"
+Unused, will be removed in a future alpha/beta. Definition at line 248 of file connection.h.
+.SS "char \fBconnection::ip\fP[32]"
.PP
-IP of connection.Reserved for future use.Definition at line 174 of file connection.h.
-.SS "time_t connection::lastping"
+IP of connection. Reserved for future use.Definition at line 186 of file connection.h.
+.PP
+Referenced by userrec::userrec().
+.SS "time_t \fBconnection::lastping\fP"
.PP
-Time the connection was last pinged.Definition at line 216 of file connection.h.
+Time the connection was last pinged. Definition at line 228 of file connection.h.
.PP
Referenced by serverrec::serverrec(), and userrec::userrec().
-.SS "time_t connection::nping"
+.SS "time_t \fBconnection::nping\fP"
.PP
-Used by PING checks with clients.Definition at line 228 of file connection.h.
+Used by PING checks with clients. Definition at line 240 of file connection.h.
.PP
Referenced by userrec::userrec().
-.SS "int connection::port"
+.SS "int \fBconnection::port\fP"
.PP
-Port number For a userrec, this is the port they connected to the network on.For a serverrec this is the current listening port of the serverrec object.Definition at line 204 of file connection.h.
+Port number For a userrec, this is the port they connected to the network on. For a serverrec this is the current listening port of the serverrec object.Definition at line 216 of file connection.h.
.PP
Referenced by userrec::userrec().
-.SS "int connection::registered"
+.SS "int \fBconnection::registered\fP"
.PP
-Used by userrec to indicate the registration status of the connection.Definition at line 208 of file connection.h.
+Used by userrec to indicate the registration status of the connection. Definition at line 220 of file connection.h.
.PP
Referenced by userrec::userrec().
-.SS "time_t connection::signon"
+.SS "time_t \fBconnection::signon\fP"
.PP
-Time the connection was created, set in the constructor.Definition at line 220 of file connection.h.
+Time the connection was created, set in the constructor. Definition at line 232 of file connection.h.
.PP
Referenced by serverrec::serverrec(), and userrec::userrec().
-.SS "short int connection::state"
+.SS "short int \fBconnection::state\fP"
.PP
-Reserved for future use.Definition at line 212 of file connection.h.
+Reserved for future use. Definition at line 224 of file connection.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/connection.h.3 b/docs/man/man3/connection.h.3
index 2b9d98d53..557593211 100644
--- a/docs/man/man3/connection.h.3
+++ b/docs/man/man3/connection.h.3
@@ -1,4 +1,4 @@
-.TH "connection.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "connection.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -14,10 +14,10 @@ connection.h \-
.br
\fC#include <map>\fP
.br
-\fC#include <sys/socket.h>\fP
-.br
\fC#include <sys/types.h>\fP
.br
+\fC#include <sys/socket.h>\fP
+.br
\fC#include <netdb.h>\fP
.br
\fC#include <netinet/in.h>\fP
@@ -39,15 +39,15 @@ connection.h \-
.ti -1c
.RI "class \fBconnection\fP"
.br
-.RI "\fIPlease note: classes serverrec and userrec both inherit from class connection.\fP"
+.RI "\fIPlease note: classes serverrec and userrec both inherit from class connection. \fP"
.ti -1c
.RI "class \fBircd_connector\fP"
.br
-.RI "\fIEach connection has one or more of these each represents ONE outbound connection to another ircd so each inbound has multiple outbounds.\fP"
+.RI "\fIEach connection has one or more of these each represents ONE outbound connection to another ircd so each inbound has multiple outbounds. \fP"
.ti -1c
.RI "class \fBpacket\fP"
.br
-.RI "\fIClass packet is deprecated.\fP"
+.RI "\fIClass packet is deprecated. \fP"
.in -1c
.SS "Defines"
@@ -75,22 +75,22 @@ connection.h \-
.PP
.SS "#define STATE_CONNECTED 1"
.PP
-Definition at line 23 of file connection.h.
+Definition at line 35 of file connection.h.
.SS "#define STATE_DISCONNECTED 0"
.PP
-Definition at line 22 of file connection.h.
+Definition at line 34 of file connection.h.
.SS "#define STATE_NOAUTH_INBOUND 3"
.PP
-Definition at line 25 of file connection.h.
+Definition at line 37 of file connection.h.
.SS "#define STATE_NOAUTH_OUTBOUND 4"
.PP
-Definition at line 26 of file connection.h.
+Definition at line 38 of file connection.h.
.SS "#define STATE_SERVICES 5"
.PP
-Definition at line 27 of file connection.h.
+Definition at line 39 of file connection.h.
.SS "#define STATE_SYNC 2"
.PP
-Definition at line 24 of file connection.h.
+Definition at line 36 of file connection.h.
.SH "Author"
.PP
Generated automatically by Doxygen for InspIRCd from the source code.
diff --git a/docs/man/man3/ctables.h.3 b/docs/man/man3/ctables.h.3
index 16ffd0c6b..3d5e395a6 100644
--- a/docs/man/man3/ctables.h.3
+++ b/docs/man/man3/ctables.h.3
@@ -1,4 +1,4 @@
-.TH "ctables.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "ctables.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -19,7 +19,7 @@ ctables.h \-
.ti -1c
.RI "class \fBcommand_t\fP"
.br
-.RI "\fIA structure that defines a command.\fP"
+.RI "\fIA structure that defines a command. \fP"
.in -1c
.SH "Author"
.PP
diff --git a/docs/man/man3/ircd_connector.3 b/docs/man/man3/ircd_connector.3
index 6dc5377cd..e18142434 100644
--- a/docs/man/man3/ircd_connector.3
+++ b/docs/man/man3/ircd_connector.3
@@ -1,8 +1,8 @@
-.TH "ircd_connector" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "ircd_connector" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-ircd_connector \- Each connection has one or more of these each represents ONE outbound connection to another ircd so each inbound has multiple outbounds.
+ircd_connector \- Each connection has one or more of these each represents ONE outbound connection to another ircd so each inbound has multiple outbounds.
.PP
.SH SYNOPSIS
@@ -18,59 +18,59 @@ Inherits \fBExtensible\fP.
.ti -1c
.RI "bool \fBMakeOutboundConnection\fP (char *\fBhost\fP, int \fBport\fP)"
.br
-.RI "\fICreate an outbound connection to a listening socket.\fP"
+.RI "\fICreate an outbound connection to a listening socket. \fP"
.ti -1c
.RI "std::string \fBGetServerName\fP ()"
.br
-.RI "\fIReturn the servername on this established connection.\fP"
+.RI "\fIReturn the servername on this established connection. \fP"
.ti -1c
.RI "void \fBSetServerName\fP (std::string serv)"
.br
-.RI "\fISet the server name of this connection.\fP"
+.RI "\fISet the server name of this connection. \fP"
.ti -1c
.RI "int \fBGetDescriptor\fP ()"
.br
-.RI "\fIGet the file descriptor associated with this connection.\fP"
+.RI "\fIGet the file descriptor associated with this connection. \fP"
.ti -1c
.RI "void \fBSetDescriptor\fP (int \fBfd\fP)"
.br
-.RI "\fISet the file descriptor for this connection.\fP"
+.RI "\fISet the file descriptor for this connection. \fP"
.ti -1c
.RI "int \fBGetState\fP ()"
.br
-.RI "\fIGet the state flags for this connection.\fP"
+.RI "\fIGet the state flags for this connection. \fP"
.ti -1c
.RI "void \fBSetState\fP (int \fBstate\fP)"
.br
-.RI "\fISet the state flags for this connection.\fP"
+.RI "\fISet the state flags for this connection. \fP"
.ti -1c
.RI "char * \fBGetServerIP\fP ()"
.br
-.RI "\fIGet the ip address (not servername) associated with this connection.\fP"
+.RI "\fIGet the ip address (not servername) associated with this connection. \fP"
.ti -1c
.RI "std::string \fBGetDescription\fP ()"
.br
-.RI "\fIGet the server description of this connection.\fP"
+.RI "\fIGet the server description of this connection. \fP"
.ti -1c
.RI "void \fBSetDescription\fP (std::string desc)"
.br
-.RI "\fISet the server description of this connection.\fP"
+.RI "\fISet the server description of this connection. \fP"
.ti -1c
.RI "int \fBGetServerPort\fP ()"
.br
-.RI "\fIGet the port number being used for this connection If the connection is outbound this will be the remote port otherwise it will be the local port, so it can always be gautanteed as open at the address given in \fBGetServerIP()\fP.\fP"
+.RI "\fIGet the port number being used for this connection If the connection is outbound this will be the remote port otherwise it will be the local port, so it can always be gautanteed as open at the address given in \fBGetServerIP()\fP. \fP"
.ti -1c
.RI "void \fBSetServerPort\fP (int p)"
.br
-.RI "\fISet the port used by this connection.\fP"
+.RI "\fISet the port used by this connection. \fP"
.ti -1c
.RI "bool \fBSetHostAndPort\fP (char *\fBhost\fP, int \fBport\fP)"
.br
-.RI "\fISet both the host and the port in one operation for this connection.\fP"
+.RI "\fISet both the host and the port in one operation for this connection. \fP"
.ti -1c
.RI "void \fBCloseConnection\fP ()"
.br
-.RI "\fIClose the connection by calling close() on its file descriptor This function call updates no other data.\fP"
+.RI "\fIClose the connection by calling close() on its file descriptor This function call updates no other data. \fP"
.in -1c
.SS "Public Attributes"
@@ -78,15 +78,15 @@ Inherits \fBExtensible\fP.
.ti -1c
.RI "char \fBhost\fP [MAXBUF]"
.br
-.RI "\fIWhen MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference.\fP"
+.RI "\fIWhen MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. \fP"
.ti -1c
.RI "int \fBport\fP"
.br
-.RI "\fIWhen MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference.\fP"
+.RI "\fIWhen MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. \fP"
.ti -1c
.RI "std::vector< std::string > \fBroutes\fP"
.br
-.RI "\fI\fBServer\fP names of servers that this server is linked to So for A->B->C, if this was the record for B it would contain A and C whilever both servers are connected to B.\fP"
+.RI "\fI\fBServer\fP names of servers that this server is linked to So for A->B->C, if this was the record for B it would contain A and C whilever both servers are connected to B. \fP"
.in -1c
.SS "Private Member Functions"
@@ -94,7 +94,7 @@ Inherits \fBExtensible\fP.
.ti -1c
.RI "bool \fBSetHostAddress\fP (char *\fBhost\fP, int \fBport\fP)"
.br
-.RI "\fIPRIVATE function to set the host address and port to connect to.\fP"
+.RI "\fIPRIVATE function to set the host address and port to connect to. \fP"
.in -1c
.SS "Private Attributes"
@@ -102,104 +102,104 @@ Inherits \fBExtensible\fP.
.ti -1c
.RI "sockaddr_in \fBaddr\fP"
.br
-.RI "\fISockaddr of the outbound ip and port.\fP"
+.RI "\fISockaddr of the outbound ip and port. \fP"
.ti -1c
.RI "int \fBfd\fP"
.br
-.RI "\fIFile descriptor of the connection.\fP"
+.RI "\fIFile descriptor of the connection. \fP"
.ti -1c
.RI "std::string \fBservername\fP"
.br
-.RI "\fI\fBServer\fP name.\fP"
+.RI "\fI\fBServer\fP name. \fP"
.ti -1c
.RI "std::string \fBdescription\fP"
.br
-.RI "\fI\fBServer\fP 'GECOS'.\fP"
+.RI "\fI\fBServer\fP 'GECOS'. \fP"
.ti -1c
.RI "int \fBstate\fP"
.br
-.RI "\fIState.\fP"
+.RI "\fIState. \fP"
.in -1c
.SH "Detailed Description"
.PP
-Each connection has one or more of these each represents ONE outbound connection to another ircd so each inbound has multiple outbounds.
+Each connection has one or more of these each represents ONE outbound connection to another ircd so each inbound has multiple outbounds.
A listening socket that accepts server type connections is represented by one class serverrec. Class serverrec will instantiate several objects of type ircd_connector to represent each established connection, inbound or outbound. So, to determine all linked servers you must walk through all the serverrecs that the core defines, and in each one iterate through until you find connection(s) relating to the server you want information on. The core and module API provide functions for this.
.PP
-Definition at line 41 of file connection.h.
+Definition at line 53 of file connection.h.
.SH "Member Function Documentation"
.PP
.SS "void ircd_connector::CloseConnection ()"
.PP
-Close the connection by calling close() on its file descriptor This function call updates no other data.
+Close the connection by calling close() on its file descriptor This function call updates no other data.
.SS "std::string ircd_connector::GetDescription ()"
.PP
-Get the server description of this connection.
+Get the server description of this connection.
.SS "int ircd_connector::GetDescriptor ()"
.PP
-Get the file descriptor associated with this connection.
+Get the file descriptor associated with this connection.
.SS "char* ircd_connector::GetServerIP ()"
.PP
-Get the ip address (not servername) associated with this connection.
+Get the ip address (not servername) associated with this connection.
.SS "std::string ircd_connector::GetServerName ()"
.PP
-Return the servername on this established connection.
+Return the servername on this established connection.
.SS "int ircd_connector::GetServerPort ()"
.PP
-Get the port number being used for this connection If the connection is outbound this will be the remote port otherwise it will be the local port, so it can always be gautanteed as open at the address given in \fBGetServerIP()\fP.
+Get the port number being used for this connection If the connection is outbound this will be the remote port otherwise it will be the local port, so it can always be gautanteed as open at the address given in \fBGetServerIP()\fP.
.SS "int ircd_connector::GetState ()"
.PP
-Get the state flags for this connection.
+Get the state flags for this connection.
.SS "bool ircd_connector::MakeOutboundConnection (char * host, int port)"
.PP
-Create an outbound connection to a listening socket.
+Create an outbound connection to a listening socket.
.SS "void ircd_connector::SetDescription (std::string desc)"
.PP
-Set the server description of this connection.
+Set the server description of this connection.
.SS "void ircd_connector::SetDescriptor (int fd)"
.PP
-Set the file descriptor for this connection.
+Set the file descriptor for this connection.
.SS "bool ircd_connector::SetHostAddress (char * host, int port)\fC [private]\fP"
.PP
-PRIVATE function to set the host address and port to connect to.
+PRIVATE function to set the host address and port to connect to.
.SS "bool ircd_connector::SetHostAndPort (char * host, int port)"
.PP
-Set both the host and the port in one operation for this connection.
+Set both the host and the port in one operation for this connection.
.SS "void ircd_connector::SetServerName (std::string serv)"
.PP
-Set the server name of this connection.
+Set the server name of this connection.
.SS "void ircd_connector::SetServerPort (int p)"
.PP
-Set the port used by this connection.
+Set the port used by this connection.
.SS "void ircd_connector::SetState (int state)"
.PP
-Set the state flags for this connection.
+Set the state flags for this connection.
.SH "Member Data Documentation"
.PP
-.SS "sockaddr_in ircd_connector::addr\fC [private]\fP"
+.SS "sockaddr_in \fBircd_connector::addr\fP\fC [private]\fP"
.PP
-Sockaddr of the outbound ip and port.Definition at line 46 of file connection.h.
-.SS "std::string ircd_connector::description\fC [private]\fP"
+Sockaddr of the outbound ip and port. Definition at line 58 of file connection.h.
+.SS "std::string \fBircd_connector::description\fP\fC [private]\fP"
.PP
-\fBServer\fP 'GECOS'.Definition at line 58 of file connection.h.
-.SS "int ircd_connector::fd\fC [private]\fP"
+\fBServer\fP 'GECOS'. Definition at line 70 of file connection.h.
+.SS "int \fBircd_connector::fd\fP\fC [private]\fP"
.PP
-File descriptor of the connection.Definition at line 50 of file connection.h.
-.SS "char ircd_connector::host[MAXBUF]"
+File descriptor of the connection. Definition at line 62 of file connection.h.
+.SS "char \fBircd_connector::host\fP[MAXBUF]"
.PP
-When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference.Definition at line 75 of file connection.h.
-.SS "int ircd_connector::port"
+When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. Definition at line 87 of file connection.h.
+.SS "int \fBircd_connector::port\fP"
.PP
-When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference.Definition at line 81 of file connection.h.
-.SS "std::vector<std::string> ircd_connector::routes"
+When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. Definition at line 93 of file connection.h.
+.SS "std::vector<std::string> \fBircd_connector::routes\fP"
.PP
-\fBServer\fP names of servers that this server is linked to So for A->B->C, if this was the record for B it would contain A and C whilever both servers are connected to B.Definition at line 87 of file connection.h.
-.SS "std::string ircd_connector::servername\fC [private]\fP"
+\fBServer\fP names of servers that this server is linked to So for A->B->C, if this was the record for B it would contain A and C whilever both servers are connected to B. Definition at line 99 of file connection.h.
+.SS "std::string \fBircd_connector::servername\fP\fC [private]\fP"
.PP
-\fBServer\fP name.Definition at line 54 of file connection.h.
-.SS "int ircd_connector::state\fC [private]\fP"
+\fBServer\fP name. Definition at line 66 of file connection.h.
+.SS "int \fBircd_connector::state\fP\fC [private]\fP"
.PP
-State.STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTEDDefinition at line 63 of file connection.h.
+State. STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTEDDefinition at line 75 of file connection.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/message.h.3 b/docs/man/man3/message.h.3
index 66313e5c7..cdd851103 100644
--- a/docs/man/man3/message.h.3
+++ b/docs/man/man3/message.h.3
@@ -1,4 +1,4 @@
-.TH "message.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "message.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
diff --git a/docs/man/man3/mode.h.3 b/docs/man/man3/mode.h.3
index ffc4a4a84..71ef611fd 100644
--- a/docs/man/man3/mode.h.3
+++ b/docs/man/man3/mode.h.3
@@ -1,4 +1,4 @@
-.TH "mode.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "mode.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
diff --git a/docs/man/man3/modules.cpp.3 b/docs/man/man3/modules.cpp.3
index 9dbc2157e..8d1da1384 100644
--- a/docs/man/man3/modules.cpp.3
+++ b/docs/man/man3/modules.cpp.3
@@ -1,4 +1,4 @@
-.TH "modules.cpp" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "modules.cpp" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -234,9 +234,6 @@ modules.cpp \-
.RI "std::vector< std::string > \fBmodule_names\fP"
.br
.ti -1c
-.RI "char \fBbannerBuffer\fP [MAXBUF]"
-.br
-.ti -1c
.RI "int \fBboundPortCount\fP"
.br
.ti -1c
@@ -292,312 +289,306 @@ modules.cpp \-
.PP
.SS "#define nspace std"
.PP
-Definition at line 42 of file modules.cpp.
+Definition at line 58 of file modules.cpp.
.SH "Typedef Documentation"
.PP
-.SS "typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, \fBInAddr_HashComp\fP> address_cache"
+.SS "typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, \fBInAddr_HashComp\fP> \fBaddress_cache\fP"
.PP
-Definition at line 151 of file modules.cpp.
-.SS "typedef nspace::hash_map<std::string, \fBchanrec\fP*, nspace::hash<string>, \fBStrHashComp\fP> chan_hash"
+Definition at line 166 of file modules.cpp.
+.SS "typedef nspace::hash_map<std::string, \fBchanrec\fP*, nspace::hash<string>, \fBStrHashComp\fP> \fBchan_hash\fP"
.PP
-Definition at line 150 of file modules.cpp.
-.SS "typedef std::deque<\fBcommand_t\fP> command_table"
+Definition at line 165 of file modules.cpp.
+.SS "typedef std::deque<\fBcommand_t\fP> \fBcommand_table\fP"
.PP
-Definition at line 152 of file modules.cpp.
-.SS "typedef std::vector<\fBExtMode\fP> ExtModeList"
+Definition at line 167 of file modules.cpp.
+.SS "typedef std::vector<\fBExtMode\fP> \fBExtModeList\fP"
.PP
-Definition at line 178 of file modules.cpp.
-.SS "typedef ExtModeList::iterator ExtModeListIter"
+Definition at line 193 of file modules.cpp.
+.SS "typedef ExtModeList::iterator \fBExtModeListIter\fP"
.PP
-Definition at line 179 of file modules.cpp.
+Definition at line 194 of file modules.cpp.
.PP
Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().
-.SS "typedef nspace::hash_map<std::string, \fBuserrec\fP*, nspace::hash<string>, \fBStrHashComp\fP> user_hash"
+.SS "typedef nspace::hash_map<std::string, \fBuserrec\fP*, nspace::hash<string>, \fBStrHashComp\fP> \fBuser_hash\fP"
.PP
-Definition at line 149 of file modules.cpp.
+Definition at line 164 of file modules.cpp.
.SH "Function Documentation"
.PP
.SS "bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off)"
.PP
-Definition at line 254 of file modules.cpp.
+Definition at line 266 of file modules.cpp.
.PP
References EMode, and ModeDefined().
.PP
Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().
.PP
.nf
-255 {
-256 if (ModeDefined(modechar,type)) {
-257 return false;
-258 }
-259 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
-260 return true;
-261 }
+267 {
+268 if (ModeDefined(modechar,type)) {
+269 return false;
+270 }
+271 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
+272 return true;
+273 }
.fi
.SS "std::vector<\fBircd_module\fP*> factory (255)"
.PP
.SS "bool ModeDefined (char modechar, int type)"
.PP
-Definition at line 185 of file modules.cpp.
+Definition at line 200 of file modules.cpp.
.PP
-References EMode, and ExtModeListIter.
+References DEBUG, EMode, and ExtModeListIter.
.PP
Referenced by DoAddExtendedMode().
.PP
.nf
-186 {
-187 log(DEBUG,'Size of extmodes vector is %d',EMode.size());
-188 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-189 {
-190 log(DEBUG,'i->modechar==%c, modechar=%c, i->type=%d, type=%d',i->modechar,modechar,i->type,type);
-191 if ((i->modechar == modechar) && (i->type == type))
-192 {
-193 return true;
-194 }
-195 }
-196 return false;
-197 }
+201 {
+202 log(DEBUG,'Size of extmodes vector is %d',EMode.size());
+203 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+204 {
+205 if ((i->modechar == modechar) && (i->type == type))
+206 {
+207 return true;
+208 }
+209 }
+210 return false;
+211 }
.fi
.SS "int ModeDefinedOff (char modechar, int type)"
.PP
-Definition at line 241 of file modules.cpp.
+Definition at line 253 of file modules.cpp.
.PP
References EMode, and ExtModeListIter.
.PP
.nf
-242 {
-243 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-244 {
-245 if ((i->modechar == modechar) && (i->type == type))
-246 {
-247 return i->params_when_off;
-248 }
-249 }
-250 return 0;
-251 }
+254 {
+255 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+256 {
+257 if ((i->modechar == modechar) && (i->type == type))
+258 {
+259 return i->params_when_off;
+260 }
+261 }
+262 return 0;
+263 }
.fi
.SS "int ModeDefinedOn (char modechar, int type)"
.PP
-Definition at line 228 of file modules.cpp.
+Definition at line 240 of file modules.cpp.
.PP
References EMode, and ExtModeListIter.
.PP
.nf
-229 {
-230 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-231 {
-232 if ((i->modechar == modechar) && (i->type == type))
-233 {
-234 return i->params_when_on;
-235 }
-236 }
-237 return 0;
-238 }
+241 {
+242 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+243 {
+244 if ((i->modechar == modechar) && (i->type == type))
+245 {
+246 return i->params_when_on;
+247 }
+248 }
+249 return 0;
+250 }
.fi
.SS "bool ModeDefinedOper (char modechar, int type)"
.PP
-Definition at line 213 of file modules.cpp.
+Definition at line 226 of file modules.cpp.
.PP
-References EMode, and ExtModeListIter.
+References DEBUG, EMode, and ExtModeListIter.
.PP
.nf
-214 {
-215 log(DEBUG,'Size of extmodes vector is %d',EMode.size());
-216 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-217 {
-218 log(DEBUG,'i->modechar==%c, modechar=%c, i->type=%d, type=%d',i->modechar,modechar,i->type,type);
-219 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
-220 {
-221 return true;
-222 }
-223 }
-224 return false;
-225 }
+227 {
+228 log(DEBUG,'Size of extmodes vector is %d',EMode.size());
+229 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+230 {
+231 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
+232 {
+233 return true;
+234 }
+235 }
+236 return false;
+237 }
.fi
.SS "bool ModeIsListMode (char modechar, int type)"
.PP
-Definition at line 199 of file modules.cpp.
+Definition at line 213 of file modules.cpp.
.PP
-References EMode, and ExtModeListIter.
+References DEBUG, EMode, and ExtModeListIter.
.PP
.nf
-200 {
-201 log(DEBUG,'Size of extmodes vector is %d',EMode.size());
-202 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-203 {
-204 log(DEBUG,'i->modechar==%c, modechar=%c, i->type=%d, type=%d',i->modechar,modechar,i->type,type);
-205 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
-206 {
-207 return true;
-208 }
-209 }
-210 return false;
-211 }
+214 {
+215 log(DEBUG,'Size of extmodes vector is %d',EMode.size());
+216 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+217 {
+218 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
+219 {
+220 return true;
+221 }
+222 }
+223 return false;
+224 }
.fi
.SS "void ModeMakeList (char modechar)"
.PP
-Definition at line 264 of file modules.cpp.
+Definition at line 276 of file modules.cpp.
.PP
References EMode, ExtModeListIter, and MT_CHANNEL.
.PP
Referenced by Server::AddExtendedListMode().
.PP
.nf
-265 {
-266 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
-267 {
-268 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
-269 {
-270 i->list = true;
-271 return;
-272 }
-273 }
-274 return;
-275 }
+277 {
+278 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
+279 {
+280 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
+281 {
+282 i->list = true;
+283 return;
+284 }
+285 }
+286 return;
+287 }
.fi
.SS "std::vector<\fBModule\fP*> modules (255)"
.PP
.SH "Variable Documentation"
.PP
-.SS "char AdminEmail[MAXBUF]"
-.PP
-Definition at line 56 of file modules.cpp.
-.SS "char AdminName[MAXBUF]"
+.SS "char \fBAdminEmail\fP[MAXBUF]"
.PP
-Definition at line 55 of file modules.cpp.
-.SS "char AdminNick[MAXBUF]"
+Definition at line 72 of file modules.cpp.
+.SS "char \fBAdminName\fP[MAXBUF]"
.PP
-Definition at line 57 of file modules.cpp.
-.SS "std::vector<long> auth_cookies"
+Definition at line 71 of file modules.cpp.
+.SS "char \fBAdminNick\fP[MAXBUF]"
.PP
-Definition at line 85 of file modules.cpp.
-.SS "char bannerBuffer[MAXBUF]"
+Definition at line 73 of file modules.cpp.
+.SS "std::vector<long> \fBauth_cookies\fP"
.PP
-Definition at line 78 of file modules.cpp.
-.SS "int boundPortCount"
+Definition at line 100 of file modules.cpp.
+.SS "int \fBboundPortCount\fP"
.PP
-Definition at line 79 of file modules.cpp.
-.SS "\fBchan_hash\fP chanlist"
+Definition at line 94 of file modules.cpp.
+.SS "\fBchan_hash\fP \fBchanlist\fP"
.PP
-Definition at line 156 of file modules.cpp.
-.SS "\fBuser_hash\fP clientlist"
+Definition at line 171 of file modules.cpp.
+.SS "\fBuser_hash\fP \fBclientlist\fP"
.PP
-Definition at line 155 of file modules.cpp.
+Definition at line 170 of file modules.cpp.
.PP
Referenced by Server::GetUsers().
-.SS "\fBcommand_table\fP cmdlist"
+.SS "\fBcommand_table\fP \fBcmdlist\fP"
.PP
-Definition at line 158 of file modules.cpp.
-.SS "std::stringstream config_f"
+Definition at line 173 of file modules.cpp.
+.SS "std::stringstream \fBconfig_f\fP"
.PP
-Definition at line 86 of file modules.cpp.
-.SS "int debugging"
+Definition at line 101 of file modules.cpp.
+.SS "int \fBdebugging\fP"
.PP
-Definition at line 66 of file modules.cpp.
-.SS "int defaultRoute"
+Definition at line 82 of file modules.cpp.
+.SS "int \fBdefaultRoute\fP"
.PP
-Definition at line 83 of file modules.cpp.
-.SS "int DieDelay"
+Definition at line 98 of file modules.cpp.
+.SS "int \fBDieDelay\fP"
.PP
-Definition at line 69 of file modules.cpp.
-.SS "char diepass[MAXBUF]"
+Definition at line 85 of file modules.cpp.
+.SS "char \fBdiepass\fP[MAXBUF]"
.PP
-Definition at line 58 of file modules.cpp.
-.SS "char DieValue[MAXBUF]"
+Definition at line 74 of file modules.cpp.
+.SS "char \fBDieValue\fP[MAXBUF]"
.PP
-Definition at line 64 of file modules.cpp.
-.SS "\fBExtModeList\fP EMode"
+Definition at line 80 of file modules.cpp.
+.SS "\fBExtModeList\fP \fBEMode\fP"
.PP
-Definition at line 182 of file modules.cpp.
+Definition at line 197 of file modules.cpp.
.PP
Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().
.SS "vector<\fBircd_module\fP*> factory"
.PP
-Definition at line 49 of file modules.cpp.
-.SS "std::vector<int> fd_reap"
-.PP
-Definition at line 75 of file modules.cpp.
-.SS "\fBaddress_cache\fP IP"
+Definition at line 65 of file modules.cpp.
+.SS "std::vector<int> \fBfd_reap\fP"
.PP
-Definition at line 161 of file modules.cpp.
-.SS "char list[MAXBUF]"
+Definition at line 91 of file modules.cpp.
+.SS "\fBaddress_cache\fP \fBIP\fP"
.PP
-Definition at line 62 of file modules.cpp.
-.SS "FILE* log_file"
+Definition at line 176 of file modules.cpp.
+.SS "char \fBlist\fP[MAXBUF]"
.PP
-Definition at line 90 of file modules.cpp.
-.SS "int LogLevel"
+Definition at line 78 of file modules.cpp.
+.SS "FILE* \fBlog_file\fP"
.PP
-Definition at line 51 of file modules.cpp.
-.SS "int MaxWhoResults"
+Definition at line 105 of file modules.cpp.
+.SS "int \fBLogLevel\fP"
.PP
-Definition at line 72 of file modules.cpp.
-.SS "\fBserverrec\fP* me[32]"
+Definition at line 67 of file modules.cpp.
+.SS "int \fBMaxWhoResults\fP"
.PP
Definition at line 88 of file modules.cpp.
-.SS "int MODCOUNT = -1"
+.SS "\fBserverrec\fP* \fBme\fP[32]"
.PP
-Definition at line 714 of file modules.cpp.
-.SS "std::vector<std::string> module_names"
+Definition at line 103 of file modules.cpp.
+.SS "int \fBMODCOUNT\fP = -1"
.PP
-Definition at line 76 of file modules.cpp.
+Definition at line 763 of file modules.cpp.
+.SS "std::vector<std::string> \fBmodule_names\fP"
+.PP
+Definition at line 92 of file modules.cpp.
.SS "vector<\fBModule\fP*> modules"
.PP
-Definition at line 48 of file modules.cpp.
-.SS "\fBfile_cache\fP MOTD"
+Definition at line 64 of file modules.cpp.
+.SS "\fBfile_cache\fP \fBMOTD\fP"
.PP
-Definition at line 159 of file modules.cpp.
-.SS "char motd[MAXBUF]"
+Definition at line 174 of file modules.cpp.
+.SS "char \fBmotd\fP[MAXBUF]"
.PP
-Definition at line 60 of file modules.cpp.
-.SS "time_t nb_start"
+Definition at line 76 of file modules.cpp.
+.SS "time_t \fBnb_start\fP"
.PP
-Definition at line 73 of file modules.cpp.
-.SS "int NetBufferSize"
+Definition at line 89 of file modules.cpp.
+.SS "int \fBNetBufferSize\fP"
.PP
-Definition at line 71 of file modules.cpp.
-.SS "char Network[MAXBUF]"
+Definition at line 87 of file modules.cpp.
+.SS "char \fBNetwork\fP[MAXBUF]"
.PP
-Definition at line 53 of file modules.cpp.
-.SS "int portCount"
+Definition at line 69 of file modules.cpp.
+.SS "int \fBportCount\fP"
.PP
-Definition at line 80 of file modules.cpp.
-.SS "int ports[MAXSOCKS]"
+Definition at line 95 of file modules.cpp.
+.SS "int \fBports\fP[MAXSOCKS]"
.PP
-Definition at line 82 of file modules.cpp.
-.SS "char PrefixQuit[MAXBUF]"
+Definition at line 97 of file modules.cpp.
+.SS "char \fBPrefixQuit\fP[MAXBUF]"
.PP
-Definition at line 63 of file modules.cpp.
-.SS "char restartpass[MAXBUF]"
+Definition at line 79 of file modules.cpp.
+.SS "char \fBrestartpass\fP[MAXBUF]"
.PP
-Definition at line 59 of file modules.cpp.
-.SS "\fBfile_cache\fP RULES"
+Definition at line 75 of file modules.cpp.
+.SS "\fBfile_cache\fP \fBRULES\fP"
.PP
-Definition at line 160 of file modules.cpp.
-.SS "char rules[MAXBUF]"
+Definition at line 175 of file modules.cpp.
+.SS "char \fBrules\fP[MAXBUF]"
.PP
-Definition at line 61 of file modules.cpp.
-.SS "char ServerDesc[MAXBUF]"
+Definition at line 77 of file modules.cpp.
+.SS "char \fBServerDesc\fP[MAXBUF]"
.PP
-Definition at line 54 of file modules.cpp.
-.SS "char ServerName[MAXBUF]"
+Definition at line 70 of file modules.cpp.
+.SS "char \fBServerName\fP[MAXBUF]"
.PP
-Definition at line 52 of file modules.cpp.
-.SS "time_t startup_time"
+Definition at line 68 of file modules.cpp.
+.SS "time_t \fBstartup_time\fP"
.PP
-Definition at line 70 of file modules.cpp.
-.SS "int UDPportCount"
+Definition at line 86 of file modules.cpp.
+.SS "int \fBUDPportCount\fP"
.PP
-Definition at line 81 of file modules.cpp.
-.SS "\fBuser_hash\fP whowas"
+Definition at line 96 of file modules.cpp.
+.SS "\fBuser_hash\fP \fBwhowas\fP"
.PP
-Definition at line 157 of file modules.cpp.
-.SS "int WHOWAS_MAX"
+Definition at line 172 of file modules.cpp.
+.SS "int \fBWHOWAS_MAX\fP"
.PP
-Definition at line 68 of file modules.cpp.
-.SS "int WHOWAS_STALE"
+Definition at line 84 of file modules.cpp.
+.SS "int \fBWHOWAS_STALE\fP"
.PP
-Definition at line 67 of file modules.cpp.
+Definition at line 83 of file modules.cpp.
.SH "Author"
.PP
Generated automatically by Doxygen for InspIRCd from the source code.
diff --git a/docs/man/man3/modules.h.3 b/docs/man/man3/modules.h.3
index f98d6b440..591d46a91 100644
--- a/docs/man/man3/modules.h.3
+++ b/docs/man/man3/modules.h.3
@@ -1,4 +1,4 @@
-.TH "modules.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "modules.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -25,31 +25,31 @@ modules.h \-
.ti -1c
.RI "class \fBAdmin\fP"
.br
-.RI "\fIHolds /ADMIN data This class contains the admin details of the local server.\fP"
+.RI "\fIHolds /ADMIN data This class contains the admin details of the local server. \fP"
.ti -1c
.RI "class \fBConfigReader\fP"
.br
-.RI "\fIAllows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file.\fP"
+.RI "\fIAllows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file. \fP"
.ti -1c
.RI "class \fBFileReader\fP"
.br
-.RI "\fICaches a text file into memory and can be used to retrieve lines from it.\fP"
+.RI "\fICaches a text file into memory and can be used to retrieve lines from it. \fP"
.ti -1c
.RI "class \fBModule\fP"
.br
-.RI "\fIBase class for all InspIRCd modules This class is the base class for InspIRCd modules.\fP"
+.RI "\fIBase class for all InspIRCd modules This class is the base class for InspIRCd modules. \fP"
.ti -1c
.RI "class \fBModuleFactory\fP"
.br
-.RI "\fIInstantiates classes inherited from \fBModule\fP This class creates a class inherited from type \fBModule\fP, using new.\fP"
+.RI "\fIInstantiates classes inherited from \fBModule\fP This class creates a class inherited from type \fBModule\fP, using new. \fP"
.ti -1c
.RI "class \fBServer\fP"
.br
-.RI "\fIAllows 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.\fP"
+.RI "\fIAllows 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. \fP"
.ti -1c
.RI "class \fBVersion\fP"
.br
-.RI "\fIHolds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module.\fP"
+.RI "\fIHolds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module. \fP"
.in -1c
.SS "Defines"
@@ -139,14 +139,14 @@ modules.h \-
.ti -1c
.RI "typedef std::deque< std::string > \fBfile_cache\fP"
.br
-.RI "\fILow level definition of a \fBFileReader\fP classes file cache area.\fP"
+.RI "\fILow level definition of a \fBFileReader\fP classes file cache area. \fP"
.ti -1c
.RI "typedef \fBfile_cache\fP \fBstring_list\fP"
.br
.ti -1c
.RI "typedef std::deque< \fBuserrec\fP * > \fBchanuserlist\fP"
.br
-.RI "\fIHolds a list of users in a channel.\fP"
+.RI "\fIHolds a list of users in a channel. \fP"
.ti -1c
.RI "typedef DLLFactory< \fBModuleFactory\fP > \fBircd_module\fP"
.br
@@ -165,71 +165,73 @@ modules.h \-
.PP
.SS "#define AC_DEHALFOP 6"
.PP
-Definition at line 37 of file modules.h.
+Definition at line 47 of file modules.h.
.SS "#define AC_DEOP 1"
.PP
-Definition at line 32 of file modules.h.
+Definition at line 42 of file modules.h.
.SS "#define AC_DEVOICE 4"
.PP
-Definition at line 35 of file modules.h.
+Definition at line 45 of file modules.h.
.SS "#define AC_GENERAL_MODE 8"
.PP
-Definition at line 39 of file modules.h.
+Definition at line 49 of file modules.h.
.SS "#define AC_HALFOP 5"
.PP
-Definition at line 36 of file modules.h.
+Definition at line 46 of file modules.h.
.SS "#define AC_INVITE 7"
.PP
-Definition at line 38 of file modules.h.
+Definition at line 48 of file modules.h.
.SS "#define AC_KICK 0"
.PP
-Definition at line 31 of file modules.h.
+Definition at line 41 of file modules.h.
.SS "#define AC_OP 2"
.PP
-Definition at line 33 of file modules.h.
+Definition at line 43 of file modules.h.
.SS "#define AC_VOICE 3"
.PP
-Definition at line 34 of file modules.h.
+Definition at line 44 of file modules.h.
.SS "#define ACR_ALLOW 2"
.PP
-Definition at line 29 of file modules.h.
+Definition at line 39 of file modules.h.
.SS "#define ACR_DEFAULT 0"
.PP
-Definition at line 27 of file modules.h.
+Definition at line 37 of file modules.h.
.PP
Referenced by Module::OnAccessCheck().
.SS "#define ACR_DENY 1"
.PP
-Definition at line 28 of file modules.h.
+Definition at line 38 of file modules.h.
.SS "#define CONF_FILE_NOT_FOUND 0x000200"
.PP
-Definition at line 610 of file modules.h.
+Definition at line 633 of file modules.h.
.PP
Referenced by ConfigReader::ConfigReader().
.SS "#define CONF_NOT_A_NUMBER 0x000010"
.PP
-Definition at line 607 of file modules.h.
+Definition at line 630 of file modules.h.
.PP
Referenced by ConfigReader::ReadInteger().
.SS "#define CONF_NOT_UNSIGNED 0x000080"
.PP
-Definition at line 608 of file modules.h.
+Definition at line 631 of file modules.h.
.PP
Referenced by ConfigReader::ReadInteger().
.SS "#define CONF_VALUE_NOT_FOUND 0x000100"
.PP
-Definition at line 609 of file modules.h.
+Definition at line 632 of file modules.h.
.PP
Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue().
.SS "#define DEBUG 10"
.PP
-Definition at line 13 of file modules.h.
+Definition at line 23 of file modules.h.
+.PP
+Referenced by Server::AddExtendedMode(), userrec::HasPermission(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam().
.SS "#define DEFAULT 30"
.PP
-Definition at line 15 of file modules.h.
+Definition at line 25 of file modules.h.
.SS "#define FOREACH_MOD for (int i = 0; i <= \fBMODCOUNT\fP; i++) modules[i]->"
.PP
-Definition at line 62 of file modules.h.
+Definition at line 72 of file modules.h.
.SS "#define FOREACH_RESULT(x)"
.PP
\fBValue:\fP.nf
@@ -244,49 +246,49 @@ Definition at line 62 of file modules.h.
}
.fi
.PP
-Definition at line 70 of file modules.h.
+Definition at line 80 of file modules.h.
.SS "#define MT_CHANNEL 1"
.PP
-Definition at line 21 of file modules.h.
+Definition at line 31 of file modules.h.
.PP
-Referenced by ModeMakeList().
+Referenced by Server::AddExtendedListMode(), and ModeMakeList().
.SS "#define MT_CLIENT 2"
.PP
-Definition at line 22 of file modules.h.
+Definition at line 32 of file modules.h.
.PP
Referenced by Server::AddExtendedMode().
.SS "#define MT_SERVER 3"
.PP
-Definition at line 23 of file modules.h.
+Definition at line 33 of file modules.h.
.PP
Referenced by Server::AddExtendedMode().
.SS "#define NONE 50"
.PP
-Definition at line 17 of file modules.h.
+Definition at line 27 of file modules.h.
.SS "#define SPARSE 40"
.PP
-Definition at line 16 of file modules.h.
+Definition at line 26 of file modules.h.
.SS "#define VERBOSE 20"
.PP
-Definition at line 14 of file modules.h.
+Definition at line 24 of file modules.h.
.SH "Typedef Documentation"
.PP
-.SS "typedef std::deque<\fBuserrec\fP*> chanuserlist"
+.SS "typedef std::deque<\fBuserrec\fP*> \fBchanuserlist\fP"
.PP
-Holds a list of users in a channel.Definition at line 55 of file modules.h.
+Holds a list of users in a channel. Definition at line 65 of file modules.h.
.PP
Referenced by Server::GetUsers().
-.SS "typedef std::deque<std::string> file_cache"
+.SS "typedef std::deque<std::string> \fBfile_cache\fP"
.PP
-Low level definition of a \fBFileReader\fP classes file cache area.Definition at line 50 of file modules.h.
+Low level definition of a \fBFileReader\fP classes file cache area. Definition at line 60 of file modules.h.
.PP
Referenced by FileReader::FileReader(), and FileReader::LoadFile().
-.SS "typedef DLLFactory<\fBModuleFactory\fP> ircd_module"
+.SS "typedef DLLFactory<\fBModuleFactory\fP> \fBircd_module\fP"
.PP
-Definition at line 767 of file modules.h.
-.SS "typedef \fBfile_cache\fP string_list"
+Definition at line 798 of file modules.h.
+.SS "typedef \fBfile_cache\fP \fBstring_list\fP"
.PP
-Definition at line 51 of file modules.h.
+Definition at line 61 of file modules.h.
.PP
Referenced by Module::OnChannelSync(), and Module::OnUserSync().
.SH "Function Documentation"
diff --git a/docs/man/man3/nspace.3 b/docs/man/man3/nspace.3
index 558159c61..cb53b328e 100644
--- a/docs/man/man3/nspace.3
+++ b/docs/man/man3/nspace.3
@@ -1,4 +1,4 @@
-.TH "nspace" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "nspace" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -10,10 +10,10 @@ nspace \-
.in +1c
.ti -1c
-.RI "struct \fBhash< in_addr >\fP"
+.RI "struct \fBnspace.hash< in_addr >\fP"
.br
.ti -1c
-.RI "struct \fBhash< string >\fP"
+.RI "struct \fBnspace.hash< string >\fP"
.br
.in -1c
.SH "Author"
diff --git a/docs/man/man3/nspace_nspace_hash_ in_addr _.3 b/docs/man/man3/nspace_nspace_hash_ in_addr _.3
index 98b8b817d..fcbba4004 100644
--- a/docs/man/man3/nspace_nspace_hash_ in_addr _.3
+++ b/docs/man/man3/nspace_nspace_hash_ in_addr _.3
@@ -1,4 +1,4 @@
-.TH "nspace::nspace::hash< in_addr >" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "nspace::nspace::hash< in_addr >" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -20,14 +20,14 @@ nspace::nspace::hash< in_addr > \-
.PP
.SS "size_t nspace::hash< in_addr >::operator() (const struct in_addr & a) const\fC [inline]\fP"
.PP
-Definition at line 97 of file modules.cpp.
+Definition at line 112 of file modules.cpp.
.PP
.nf
-98 {
-99 size_t q;
-100 memcpy(&q,&a,sizeof(size_t));
-101 return q;
-102 }
+113 {
+114 size_t q;
+115 memcpy(&q,&a,sizeof(size_t));
+116 return q;
+117 }
.fi
diff --git a/docs/man/man3/nspace_nspace_hash_ string _.3 b/docs/man/man3/nspace_nspace_hash_ string _.3
index f2f747113..6607065b5 100644
--- a/docs/man/man3/nspace_nspace_hash_ string _.3
+++ b/docs/man/man3/nspace_nspace_hash_ string _.3
@@ -1,4 +1,4 @@
-.TH "nspace::nspace::hash< string >" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "nspace::nspace::hash< string >" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -20,16 +20,16 @@ nspace::nspace::hash< string > \-
.PP
.SS "size_t nspace::hash< string >::operator() (const string & s) const\fC [inline]\fP"
.PP
-Definition at line 107 of file modules.cpp.
+Definition at line 122 of file modules.cpp.
.PP
.nf
-108 {
-109 char a[MAXBUF];
-110 static struct hash<const char *> strhash;
-111 strcpy(a,s.c_str());
-112 strlower(a);
-113 return strhash(a);
-114 }
+123 {
+124 char a[MAXBUF];
+125 static struct hash<const char *> strhash;
+126 strlcpy(a,s.c_str(),MAXBUF);
+127 strlower(a);
+128 return strhash(a);
+129 }
.fi
diff --git a/docs/man/man3/packet.3 b/docs/man/man3/packet.3
index 8d8b2ff9f..72f475b24 100644
--- a/docs/man/man3/packet.3
+++ b/docs/man/man3/packet.3
@@ -1,8 +1,8 @@
-.TH "packet" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "packet" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-packet \- Class packet is deprecated.
+packet \- Class packet is deprecated.
.PP
.SH SYNOPSIS
@@ -14,11 +14,11 @@ Inherits \fBclassbase\fP.
.PP
.SH "Detailed Description"
.PP
-Class packet is deprecated.
+Class packet is deprecated.
This declaration is preserved here to maintain documentation only.
.PP
-Definition at line 155 of file connection.h.
+Definition at line 167 of file connection.h.
.SH "Author"
.PP
diff --git a/docs/man/man3/serverrec.3 b/docs/man/man3/serverrec.3
index 72b563865..bb8a99543 100644
--- a/docs/man/man3/serverrec.3
+++ b/docs/man/man3/serverrec.3
@@ -1,8 +1,8 @@
-.TH "serverrec" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "serverrec" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-serverrec \- A class that defines the local server or a remote server.
+serverrec \- A class that defines the local server or a remote server.
.PP
.SH SYNOPSIS
@@ -18,15 +18,15 @@ Inherits \fBconnection\fP.
.ti -1c
.RI "\fBserverrec\fP ()"
.br
-.RI "\fIConstructor.\fP"
+.RI "\fIConstructor. \fP"
.ti -1c
.RI "\fBserverrec\fP (char *n, long ver, bool jupe)"
.br
-.RI "\fIConstructor which initialises some of the main variables.\fP"
+.RI "\fIConstructor which initialises some of the main variables. \fP"
.ti -1c
.RI "\fB~serverrec\fP ()"
.br
-.RI "\fIDestructor.\fP"
+.RI "\fIDestructor. \fP"
.in -1c
.SS "Public Attributes"
@@ -34,140 +34,153 @@ Inherits \fBconnection\fP.
.ti -1c
.RI "char \fBname\fP [MAXBUF]"
.br
-.RI "\fIserver name\fP"
+.RI "\fIserver name \fP"
.ti -1c
.RI "long \fBpingtime\fP"
.br
-.RI "\fIlast ping response (ms)\fP"
+.RI "\fIlast ping response (ms) \fP"
.ti -1c
.RI "long \fBusercount_i\fP"
.br
-.RI "\fIinvisible users on server\fP"
+.RI "\fIinvisible users on server \fP"
.ti -1c
.RI "long \fBusercount\fP"
.br
-.RI "\fInon-invisible users on server\fP"
+.RI "\fInon-invisible users on server \fP"
.ti -1c
.RI "long \fBopercount\fP"
.br
-.RI "\fIopers on server\fP"
+.RI "\fIopers on server \fP"
.ti -1c
.RI "int \fBhops_away\fP"
.br
-.RI "\fInumber of hops away (for quick access)\fP"
+.RI "\fInumber of hops away (for quick access) \fP"
.ti -1c
.RI "long \fBversion\fP"
.br
-.RI "\fIircd version\fP"
+.RI "\fIircd version \fP"
.ti -1c
.RI "bool \fBjupiter\fP"
.br
-.RI "\fIis a JUPE server (faked to enforce a server ban)\fP"
+.RI "\fIis a JUPE server (faked to enforce a server ban) \fP"
.ti -1c
.RI "char \fBdescription\fP [MAXBUF]"
.br
-.RI "\fIDescription of the server.\fP"
+.RI "\fIDescription of the server. \fP"
+.ti -1c
+.RI "char \fBnickserv\fP [NICKMAX]"
+.br
+.RI "\fIHolds nickserv's name on U:lined (services) servers (this is a kludge for ircservices which ASSUMES things :/). \fP"
.ti -1c
.RI "bool \fBsync_soon\fP"
.br
.in -1c
.SH "Detailed Description"
.PP
-A class that defines the local server or a remote server.Definition at line 19 of file servers.h.
+A class that defines the local server or a remote server. Definition at line 30 of file servers.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "serverrec::serverrec ()"
.PP
-Constructor.Definition at line 12 of file servers.cpp.
+Constructor. Definition at line 23 of file servers.cpp.
.PP
-References connection::fd, hops_away, jupiter, connection::lastping, opercount, pingtime, connection::signon, sync_soon, usercount, usercount_i, and version.
+References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, pingtime, connection::signon, sync_soon, usercount, usercount_i, and version.
.PP
.nf
-13 {
-14 strcpy(name,'');
-15 pingtime = 0;
-16 lastping = time(NULL);
-17 usercount_i = usercount = opercount = version = 0;
-18 hops_away = 1;
-19 signon = time(NULL);
-20 jupiter = false;
-21 fd = 0;
-22 sync_soon = false;
-23 }
+24 {
+25 strlcpy(name,'',256);
+26 pingtime = 0;
+27 lastping = time(NULL);
+28 usercount_i = usercount = opercount = version = 0;
+29 hops_away = 1;
+30 signon = time(NULL);
+31 jupiter = false;
+32 fd = 0;
+33 sync_soon = false;
+34 strlcpy(nickserv,'',NICKMAX);
+35 }
.fi
.SS "serverrec::serverrec (char * n, long ver, bool jupe)"
.PP
-Constructor which initialises some of the main variables.Definition at line 30 of file servers.cpp.
+Constructor which initialises some of the main variables. Definition at line 42 of file servers.cpp.
.PP
-References connection::fd, hops_away, jupiter, connection::lastping, opercount, connection::signon, sync_soon, usercount, usercount_i, and version.
+References connection::fd, hops_away, jupiter, connection::lastping, name, nickserv, opercount, connection::signon, sync_soon, usercount, usercount_i, and version.
.PP
.nf
-31 {
-32 strcpy(name,n);
-33 lastping = time(NULL);
-34 usercount_i = usercount = opercount = 0;
-35 version = ver;
-36 hops_away = 1;
-37 signon = time(NULL);
-38 jupiter = jupe;
-39 fd = 0;
-40 sync_soon = false;
-41 }
+43 {
+44 strlcpy(name,n,256);
+45 lastping = time(NULL);
+46 usercount_i = usercount = opercount = 0;
+47 version = ver;
+48 hops_away = 1;
+49 signon = time(NULL);
+50 jupiter = jupe;
+51 fd = 0;
+52 sync_soon = false;
+53 strlcpy(nickserv,'',NICKMAX);
+54 }
.fi
-.SS "serverrec::~serverrec ()"
+.SS "serverrec::~\fBserverrec\fP ()"
.PP
-Destructor.Definition at line 26 of file servers.cpp.
+Destructor. Definition at line 38 of file servers.cpp.
.PP
.nf
-27 {
-28 }
+39 {
+40 }
.fi
.SH "Member Data Documentation"
.PP
-.SS "char serverrec::description[MAXBUF]"
+.SS "char \fBserverrec::description\fP[MAXBUF]"
.PP
-Description of the server.Definition at line 50 of file servers.h.
-.SS "int serverrec::hops_away"
+Description of the server. Definition at line 61 of file servers.h.
+.SS "int \fBserverrec::hops_away\fP"
.PP
-number of hops away (for quick access)Definition at line 40 of file servers.h.
+number of hops away (for quick access) Definition at line 51 of file servers.h.
.PP
Referenced by serverrec().
-.SS "bool serverrec::jupiter"
+.SS "bool \fBserverrec::jupiter\fP"
.PP
-is a JUPE server (faked to enforce a server ban)Definition at line 46 of file servers.h.
+is a JUPE server (faked to enforce a server ban) Definition at line 57 of file servers.h.
.PP
Referenced by serverrec().
-.SS "char serverrec::name[MAXBUF]"
+.SS "char \fBserverrec::name\fP[MAXBUF]"
.PP
-server nameDefinition at line 25 of file servers.h.
-.SS "long serverrec::opercount"
+server name Definition at line 36 of file servers.h.
+.PP
+Referenced by serverrec().
+.SS "char \fBserverrec::nickserv\fP[NICKMAX]"
+.PP
+Holds nickserv's name on U:lined (services) servers (this is a kludge for ircservices which ASSUMES things :/). Definition at line 65 of file servers.h.
+.PP
+Referenced by serverrec().
+.SS "long \fBserverrec::opercount\fP"
.PP
-opers on serverDefinition at line 37 of file servers.h.
+opers on server Definition at line 48 of file servers.h.
.PP
Referenced by serverrec().
-.SS "long serverrec::pingtime"
+.SS "long \fBserverrec::pingtime\fP"
.PP
-last ping response (ms)Definition at line 28 of file servers.h.
+last ping response (ms) Definition at line 39 of file servers.h.
.PP
Referenced by serverrec().
-.SS "bool serverrec::sync_soon"
+.SS "bool \fBserverrec::sync_soon\fP"
.PP
-Definition at line 52 of file servers.h.
+Definition at line 67 of file servers.h.
.PP
Referenced by serverrec().
-.SS "long serverrec::usercount"
+.SS "long \fBserverrec::usercount\fP"
.PP
-non-invisible users on serverDefinition at line 34 of file servers.h.
+non-invisible users on server Definition at line 45 of file servers.h.
.PP
Referenced by serverrec().
-.SS "long serverrec::usercount_i"
+.SS "long \fBserverrec::usercount_i\fP"
.PP
-invisible users on serverDefinition at line 31 of file servers.h.
+invisible users on server Definition at line 42 of file servers.h.
.PP
Referenced by serverrec().
-.SS "long serverrec::version"
+.SS "long \fBserverrec::version\fP"
.PP
-ircd versionDefinition at line 43 of file servers.h.
+ircd version Definition at line 54 of file servers.h.
.PP
Referenced by serverrec().
diff --git a/docs/man/man3/servers.cpp.3 b/docs/man/man3/servers.cpp.3
index bcf1673a7..647c95365 100644
--- a/docs/man/man3/servers.cpp.3
+++ b/docs/man/man3/servers.cpp.3
@@ -1,4 +1,4 @@
-.TH "servers.cpp" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "servers.cpp" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
diff --git a/docs/man/man3/servers.h.3 b/docs/man/man3/servers.h.3
index db6deb563..794e07b6a 100644
--- a/docs/man/man3/servers.h.3
+++ b/docs/man/man3/servers.h.3
@@ -1,4 +1,4 @@
-.TH "servers.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "servers.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -21,7 +21,7 @@ servers.h \-
.ti -1c
.RI "class \fBserverrec\fP"
.br
-.RI "\fIA class that defines the local server or a remote server.\fP"
+.RI "\fIA class that defines the local server or a remote server. \fP"
.in -1c
.SS "Defines"
@@ -37,10 +37,10 @@ servers.h \-
.PP
.SS "#define LINK_ACTIVE 1"
.PP
-Definition at line 14 of file servers.h.
+Definition at line 25 of file servers.h.
.SS "#define LINK_INACTIVE 0"
.PP
-Definition at line 15 of file servers.h.
+Definition at line 26 of file servers.h.
.SH "Author"
.PP
Generated automatically by Doxygen for InspIRCd from the source code.
diff --git a/docs/man/man3/std.3 b/docs/man/man3/std.3
index fd2eb0f06..267325c89 100644
--- a/docs/man/man3/std.3
+++ b/docs/man/man3/std.3
@@ -1,4 +1,4 @@
-.TH "std" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "std" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3
index 8aae73488..9036f983b 100644
--- a/docs/man/man3/ucrec.3
+++ b/docs/man/man3/ucrec.3
@@ -1,8 +1,8 @@
-.TH "ucrec" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "ucrec" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-ucrec \- Holds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class.
+ucrec \- Holds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class.
.PP
.SH SYNOPSIS
@@ -28,45 +28,45 @@ Inherits \fBclassbase\fP.
.ti -1c
.RI "long \fBuc_modes\fP"
.br
-.RI "\fIContains a bitmask of the UCMODE_OP ...\fP"
+.RI "\fIContains a bitmask of the UCMODE_OP ... \fP"
.ti -1c
.RI "\fBchanrec\fP * \fBchannel\fP"
.br
-.RI "\fIPoints to the channel record where the given modes apply.\fP"
+.RI "\fIPoints to the channel record where the given modes apply. \fP"
.in -1c
.SH "Detailed Description"
.PP
-Holds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class.
+Holds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class.
The uc_modes member holds a bitmask of which privilages the user has on the channel, such as op, voice, etc.
.PP
-Definition at line 191 of file channels.h.
+Definition at line 202 of file channels.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "ucrec::ucrec ()\fC [inline]\fP"
.PP
-Definition at line 204 of file channels.h.
+Definition at line 215 of file channels.h.
.PP
.nf
-204 { /* stub */ }
+215 { /* stub */ }
.fi
-.SS "virtual ucrec::~ucrec ()\fC [inline, virtual]\fP"
+.SS "virtual ucrec::~\fBucrec\fP ()\fC [inline, virtual]\fP"
.PP
-Definition at line 205 of file channels.h.
+Definition at line 216 of file channels.h.
.PP
.nf
-205 { /* stub */ }
+216 { /* stub */ }
.fi
.SH "Member Data Documentation"
.PP
-.SS "\fBchanrec\fP* ucrec::channel"
+.SS "\fBchanrec\fP* \fBucrec::channel\fP"
.PP
-Points to the channel record where the given modes apply.If the record is not in use, this value will be NULL.Definition at line 202 of file channels.h.
+Points to the channel record where the given modes apply. If the record is not in use, this value will be NULL.Definition at line 213 of file channels.h.
.PP
Referenced by userrec::userrec().
-.SS "long ucrec::uc_modes"
+.SS "long \fBucrec::uc_modes\fP"
.PP
-Contains a bitmask of the UCMODE_OP ...UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel.Definition at line 197 of file channels.h.
+Contains a bitmask of the UCMODE_OP ... UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel.Definition at line 208 of file channels.h.
.PP
Referenced by userrec::userrec().
diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3
index cefee519e..dba632b51 100644
--- a/docs/man/man3/userrec.3
+++ b/docs/man/man3/userrec.3
@@ -1,8 +1,8 @@
-.TH "userrec" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "userrec" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
-userrec \- Holds all information about a user This class stores all information about a user connected to the irc server.
+userrec \- Holds all information about a user This class stores all information about a user connected to the irc server.
.PP
.SH SYNOPSIS
@@ -24,27 +24,27 @@ Inherits \fBconnection\fP.
.ti -1c
.RI "virtual char * \fBGetFullHost\fP ()"
.br
-.RI "\fIReturns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form.\fP"
+.RI "\fIReturns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. \fP"
.ti -1c
.RI "virtual char * \fBGetFullRealHost\fP ()"
.br
-.RI "\fIReturns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form.\fP"
+.RI "\fIReturns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. \fP"
.ti -1c
.RI "virtual bool \fBIsInvited\fP (char *channel)"
.br
-.RI "\fIReturns true if a user is invited to a channel.\fP"
+.RI "\fIReturns true if a user is invited to a channel. \fP"
.ti -1c
.RI "virtual void \fBInviteTo\fP (char *channel)"
.br
-.RI "\fIAdds a channel to a users invite list (invites them to a channel).\fP"
+.RI "\fIAdds a channel to a users invite list (invites them to a channel). \fP"
.ti -1c
.RI "virtual void \fBRemoveInvite\fP (char *channel)"
.br
-.RI "\fIRemoves a channel from a users invite list.\fP"
+.RI "\fIRemoves a channel from a users invite list. \fP"
.ti -1c
.RI "bool \fBHasPermission\fP (char *command)"
.br
-.RI "\fIReturns true or false for if a user can execute a privilaged oper command.\fP"
+.RI "\fIReturns true or false for if a user can execute a privilaged oper command. \fP"
.in -1c
.SS "Public Attributes"
@@ -52,50 +52,50 @@ Inherits \fBconnection\fP.
.ti -1c
.RI "char \fBnick\fP [NICKMAX]"
.br
-.RI "\fIThe users nickname.\fP"
+.RI "\fIThe users nickname. \fP"
.ti -1c
.RI "char \fBident\fP [64]"
.br
-.RI "\fIThe users ident reply.\fP"
+.RI "\fIThe users ident reply. \fP"
.ti -1c
.RI "char \fBdhost\fP [256]"
.br
-.RI "\fIThe host displayed to non-opers (used for cloaking etc).\fP"
+.RI "\fIThe host displayed to non-opers (used for cloaking etc). \fP"
.ti -1c
.RI "char \fBfullname\fP [128]"
.br
-.RI "\fIThe users full name.\fP"
+.RI "\fIThe users full name. \fP"
.ti -1c
.RI "char \fBmodes\fP [MAXBUF]"
.br
-.RI "\fIThe user's mode string.\fP"
+.RI "\fIThe user's mode string. \fP"
.ti -1c
.RI "\fBucrec\fP \fBchans\fP [MAXCHANS]"
.br
.ti -1c
.RI "char \fBserver\fP [256]"
.br
-.RI "\fIThe server the user is connected to.\fP"
+.RI "\fIThe server the user is connected to. \fP"
.ti -1c
.RI "char \fBawaymsg\fP [512]"
.br
-.RI "\fIThe user's away message.\fP"
+.RI "\fIThe user's away message. \fP"
.ti -1c
.RI "char \fBresult\fP [256]"
.br
-.RI "\fIStores the result of the last GetFullHost or GetRealHost call.\fP"
+.RI "\fIStores the result of the last GetFullHost or GetRealHost call. \fP"
.ti -1c
.RI "int \fBflood\fP"
.br
-.RI "\fINumber of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood.\fP"
+.RI "\fINumber of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood. \fP"
.ti -1c
.RI "unsigned long \fBtimeout\fP"
.br
-.RI "\fINumber of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected.\fP"
+.RI "\fINumber of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected. \fP"
.ti -1c
.RI "char \fBoper\fP [NICKMAX]"
.br
-.RI "\fIThe oper type they logged in as, if they are an oper.\fP"
+.RI "\fIThe oper type they logged in as, if they are an oper. \fP"
.in -1c
.SS "Private Attributes"
@@ -103,250 +103,264 @@ Inherits \fBconnection\fP.
.ti -1c
.RI "\fBInvitedList\fP \fBinvites\fP"
.br
-.RI "\fIA list of channels the user has a pending invite to.\fP"
+.RI "\fIA list of channels the user has a pending invite to. \fP"
.in -1c
.SH "Detailed Description"
.PP
-Holds all information about a user This class stores all information about a user connected to the irc server.
+Holds all information about a user This class stores all information about a user connected to the irc server.
Everything about a connection is stored here primarily, from the user's socket ID (file descriptor) through to the user's nickname and hostname. Use the Find method of the server class to locate a specific user by nickname.
.PP
-Definition at line 78 of file users.h.
+Definition at line 89 of file users.h.
.SH "Constructor & Destructor Documentation"
.PP
.SS "userrec::userrec ()"
.PP
-Definition at line 13 of file users.cpp.
+Definition at line 25 of file users.cpp.
.PP
-References connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, connection::fd, flood, connection::haspassed, connection::idle_lastmsg, invites, connection::lastping, connection::nping, connection::port, connection::registered, connection::signon, timeout, and ucrec::uc_modes.
+References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, dhost, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, connection::inbuf, invites, connection::ip, connection::lastping, modes, nick, connection::nping, connection::port, connection::registered, result, server, connection::signon, timeout, and ucrec::uc_modes.
.PP
.nf
-14 {
-15 // the PROPER way to do it, AVOID bzero at *ALL* costs
-16 strcpy(nick,'');
-17 strcpy(ip,'127.0.0.1');
-18 timeout = 0;
-19 strcpy(ident,'');
-20 strcpy(host,'');
-21 strcpy(dhost,'');
-22 strcpy(fullname,'');
-23 strcpy(modes,'');
-24 strcpy(inbuf,'');
-25 strcpy(server,'');
-26 strcpy(awaymsg,'');
-27 fd = lastping = signon = idle_lastmsg = nping = registered = 0;
-28 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
-29 haspassed = false;
-30 strcpy(result,'');
-31 for (int i = 0; i < MAXCHANS; i++)
-32 {
-33 this->chans[i].channel = NULL;
-34 this->chans[i].uc_modes = 0;
-35 }
-36 invites.clear();
-37 }
+26 {
+27 // the PROPER way to do it, AVOID bzero at *ALL* costs
+28 strcpy(nick,'');
+29 strcpy(ip,'127.0.0.1');
+30 timeout = 0;
+31 strcpy(ident,'');
+32 strcpy(host,'');
+33 strcpy(dhost,'');
+34 strcpy(fullname,'');
+35 strcpy(modes,'');
+36 strcpy(inbuf,'');
+37 strcpy(server,'');
+38 strcpy(awaymsg,'');
+39 fd = lastping = signon = idle_lastmsg = nping = registered = 0;
+40 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
+41 haspassed = false;
+42 strcpy(result,'');
+43 for (int i = 0; i < MAXCHANS; i++)
+44 {
+45 this->chans[i].channel = NULL;
+46 this->chans[i].uc_modes = 0;
+47 }
+48 invites.clear();
+49 }
.fi
-.SS "virtual userrec::~userrec ()\fC [inline, virtual]\fP"
+.SS "virtual userrec::~\fBuserrec\fP ()\fC [inline, virtual]\fP"
.PP
-Definition at line 149 of file users.h.
+Definition at line 160 of file users.h.
.PP
.nf
-149 { }
+160 { }
.fi
.SH "Member Function Documentation"
.PP
.SS "char * userrec::GetFullHost ()\fC [virtual]\fP"
.PP
-Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form.Definition at line 41 of file users.cpp.
+Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. Definition at line 53 of file users.cpp.
.PP
-References result.
+References dhost, ident, nick, and result.
.PP
.nf
-42 {
-43 sprintf(result,'%s!%s@%s',nick,ident,dhost);
-44 return result;
-45 }
+54 {
+55 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,dhost);
+56 return result;
+57 }
.fi
.SS "char * userrec::GetFullRealHost ()\fC [virtual]\fP"
.PP
-Returns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form.If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.Definition at line 48 of file users.cpp.
+Returns the full real host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.Definition at line 60 of file users.cpp.
.PP
-References result.
+References connection::host, ident, nick, and result.
.PP
.nf
-49 {
-50 sprintf(result,'%s!%s@%s',nick,ident,host);
-51 return result;
-52 }
+61 {
+62 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,host);
+63 return result;
+64 }
.fi
.SS "bool userrec::HasPermission (char * command)"
.PP
-Returns true or false for if a user can execute a privilaged oper command.This is done by looking up their oper type from \fBuserrec::oper\fP, then referencing this to their oper classes and checking the commands they can execute.Definition at line 97 of file users.cpp.
+Returns true or false for if a user can execute a privilaged oper command. This is done by looking up their oper type from \fBuserrec::oper\fP, then referencing this to their oper classes and checking the commands they can execute.Definition at line 109 of file users.cpp.
+.PP
+References config_f, and DEBUG.
.PP
.nf
-98 {
-99 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
-100 char* myclass;
-101 char* mycmd;
-102 char* savept;
-103 char* savept2;
-104
-105 // are they even an oper at all?
-106 if (strchr(this->modes,'o'))
-107 {
-108 log(DEBUG,'*** HasPermission: %s is an oper',this->nick);
-109 for (int j =0; j < ConfValueEnum('type',&config_f); j++)
-110 {
-111 ConfValue('type','name',j,TypeName,&config_f);
-112 if (!strcmp(TypeName,this->oper))
-113 {
-114 log(DEBUG,'*** HasPermission: %s is an oper of type '%s'',this->nick,this->oper);
-115 ConfValue('type','classes',j,Classes,&config_f);
-116 char* myclass = strtok_r(Classes,' ',&savept);
-117 while (myclass)
-118 {
-119 log(DEBUG,'*** HasPermission: checking classtype '%s'',myclass);
-120 for (int k =0; k < ConfValueEnum('class',&config_f); k++)
-121 {
-122 ConfValue('class','name',k,ClassName,&config_f);
-123 if (!strcmp(ClassName,myclass))
-124 {
-125 ConfValue('class','commands',k,CommandList,&config_f);
-126 log(DEBUG,'*** HasPermission: found class named %s with commands: '%s'',ClassName,CommandList);
-127
-128
-129 mycmd = strtok_r(CommandList,' ',&savept2);
-130 while (mycmd)
-131 {
-132 if (!strcasecmp(mycmd,command))
-133 {
-134 log(DEBUG,'*** Command %s found, returning true',command);
-135 return true;
-136 }
-137 mycmd = strtok_r(NULL,' ',&savept2);
-138 }
-139 }
-140 }
-141 myclass = strtok_r(NULL,' ',&savept);
-142 }
-143 }
-144 }
-145 }
-146 return false;
-147 }
+110 {
+111 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
+112 char* myclass;
+113 char* mycmd;
+114 char* savept;
+115 char* savept2;
+116
+117 // are they even an oper at all?
+118 if (strchr(this->modes,'o'))
+119 {
+120 log(DEBUG,'*** HasPermission: %s is an oper',this->nick);
+121 for (int j =0; j < ConfValueEnum('type',&config_f); j++)
+122 {
+123 ConfValue('type','name',j,TypeName,&config_f);
+124 if (!strcmp(TypeName,this->oper))
+125 {
+126 log(DEBUG,'*** HasPermission: %s is an oper of type '%s'',this->nick,this->oper);
+127 ConfValue('type','classes',j,Classes,&config_f);
+128 char* myclass = strtok_r(Classes,' ',&savept);
+129 while (myclass)
+130 {
+131 log(DEBUG,'*** HasPermission: checking classtype '%s'',myclass);
+132 for (int k =0; k < ConfValueEnum('class',&config_f); k++)
+133 {
+134 ConfValue('class','name',k,ClassName,&config_f);
+135 if (!strcmp(ClassName,myclass))
+136 {
+137 ConfValue('class','commands',k,CommandList,&config_f);
+138 log(DEBUG,'*** HasPermission: found class named %s with commands: '%s'',ClassName,CommandList);
+139
+140
+141 mycmd = strtok_r(CommandList,' ',&savept2);
+142 while (mycmd)
+143 {
+144 if (!strcasecmp(mycmd,command))
+145 {
+146 log(DEBUG,'*** Command %s found, returning true',command);
+147 return true;
+148 }
+149 mycmd = strtok_r(NULL,' ',&savept2);
+150 }
+151 }
+152 }
+153 myclass = strtok_r(NULL,' ',&savept);
+154 }
+155 }
+156 }
+157 }
+158 return false;
+159 }
.fi
.SS "void userrec::InviteTo (char * channel)\fC [virtual]\fP"
.PP
-Adds a channel to a users invite list (invites them to a channel).Definition at line 68 of file users.cpp.
+Adds a channel to a users invite list (invites them to a channel). Definition at line 80 of file users.cpp.
.PP
References Invited::channel, and invites.
.PP
.nf
-69 {
-70 Invited i;
-71 strcpy(i.channel,channel);
-72 invites.push_back(i);
-73 }
+81 {
+82 Invited i;
+83 strlcpy(i.channel,channel,CHANMAX);
+84 invites.push_back(i);
+85 }
.fi
.SS "bool userrec::IsInvited (char * channel)\fC [virtual]\fP"
.PP
-Returns true if a user is invited to a channel.Definition at line 54 of file users.cpp.
+Returns true if a user is invited to a channel. Definition at line 66 of file users.cpp.
.PP
References invites.
.PP
.nf
-55 {
-56 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-57 {
-58 if (i->channel) {
-59 if (!strcasecmp(i->channel,channel))
-60 {
-61 return true;
-62 }
-63 }
-64 }
-65 return false;
-66 }
+67 {
+68 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+69 {
+70 if (i->channel) {
+71 if (!strcasecmp(i->channel,channel))
+72 {
+73 return true;
+74 }
+75 }
+76 }
+77 return false;
+78 }
.fi
.SS "void userrec::RemoveInvite (char * channel)\fC [virtual]\fP"
.PP
-Removes a channel from a users invite list.This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.Definition at line 75 of file users.cpp.
+Removes a channel from a users invite list. This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.Definition at line 87 of file users.cpp.
.PP
-References invites.
+References DEBUG, and invites.
.PP
.nf
-76 {
-77 log(DEBUG,'Removing invites');
-78 if (channel)
-79 {
-80 if (invites.size())
-81 {
-82 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-83 {
-84 if (i->channel)
-85 {
-86 if (!strcasecmp(i->channel,channel))
-87 {
-88 invites.erase(i);
-89 return;
-90 }
-91 }
-92 }
-93 }
-94 }
-95 }
+88 {
+89 log(DEBUG,'Removing invites');
+90 if (channel)
+91 {
+92 if (invites.size())
+93 {
+94 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+95 {
+96 if (i->channel)
+97 {
+98 if (!strcasecmp(i->channel,channel))
+99 {
+100 invites.erase(i);
+101 return;
+102 }
+103 }
+104 }
+105 }
+106 }
+107 }
.fi
.SH "Member Data Documentation"
.PP
-.SS "char userrec::awaymsg[512]"
+.SS "char \fBuserrec::awaymsg\fP[512]"
+.PP
+The user's away message. If this string is empty, the user is not marked as away.Definition at line 132 of file users.h.
.PP
-The user's away message.If this string is empty, the user is not marked as away.Definition at line 121 of file users.h.
-.SS "\fBucrec\fP userrec::chans[MAXCHANS]"
+Referenced by userrec().
+.SS "\fBucrec\fP \fBuserrec::chans\fP[MAXCHANS]"
.PP
-Definition at line 112 of file users.h.
+Definition at line 123 of file users.h.
.PP
Referenced by userrec().
-.SS "char userrec::dhost[256]"
+.SS "char \fBuserrec::dhost\fP[256]"
+.PP
+The host displayed to non-opers (used for cloaking etc). This usually matches the value of \fBuserrec::host\fP.Definition at line 111 of file users.h.
+.PP
+Referenced by GetFullHost(), and userrec().
+.SS "int \fBuserrec::flood\fP"
.PP
-The host displayed to non-opers (used for cloaking etc).This usually matches the value of \fBuserrec::host\fP.Definition at line 100 of file users.h.
-.SS "int userrec::flood"
+Number of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood. Definition at line 143 of file users.h.
.PP
-Number of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood.Definition at line 132 of file users.h.
+Referenced by userrec().
+.SS "char \fBuserrec::fullname\fP[128]"
+.PP
+The users full name. Definition at line 115 of file users.h.
.PP
Referenced by userrec().
-.SS "char userrec::fullname[128]"
+.SS "char \fBuserrec::ident\fP[64]"
.PP
-The users full name.Definition at line 104 of file users.h.
-.SS "char userrec::ident[64]"
+The users ident reply. Definition at line 106 of file users.h.
.PP
-The users ident reply.Definition at line 95 of file users.h.
-.SS "\fBInvitedList\fP userrec::invites\fC [private]\fP"
+Referenced by GetFullHost(), GetFullRealHost(), and userrec().
+.SS "\fBInvitedList\fP \fBuserrec::invites\fP\fC [private]\fP"
.PP
-A list of channels the user has a pending invite to.Definition at line 84 of file users.h.
+A list of channels the user has a pending invite to. Definition at line 95 of file users.h.
.PP
Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec().
-.SS "char userrec::modes[MAXBUF]"
+.SS "char \fBuserrec::modes\fP[MAXBUF]"
+.PP
+The user's mode string. This may contain any of the following RFC characters: o, w, s, i Your module may define other mode characters as it sees fit.Definition at line 121 of file users.h.
.PP
-The user's mode string.This may contain any of the following RFC characters: o, w, s, i Your module may define other mode characters as it sees fit.Definition at line 110 of file users.h.
-.SS "char userrec::nick[NICKMAX]"
+Referenced by userrec().
+.SS "char \fBuserrec::nick\fP[NICKMAX]"
+.PP
+The users nickname. An invalid nickname indicates an unregistered connection prior to the NICK command.Definition at line 102 of file users.h.
.PP
-The users nickname.An invalid nickname indicates an unregistered connection prior to the NICK command.Definition at line 91 of file users.h.
+Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::QuitUser(), and userrec().
+.SS "char \fBuserrec::oper\fP[NICKMAX]"
.PP
-Referenced by Server::QuitUser().
-.SS "char userrec::oper[NICKMAX]"
+The oper type they logged in as, if they are an oper. This is used to check permissions in operclasses, so that we can say 'yay' or 'nay' to any commands they issue. The value of this is the value of a valid 'type name=' tag.Definition at line 156 of file users.h.
+.SS "char \fBuserrec::result\fP[256]"
.PP
-The oper type they logged in as, if they are an oper.This is used to check permissions in operclasses, so that we can say 'yay' or 'nay' to any commands they issue. The value of this is the value of a valid 'type name=' tag.Definition at line 145 of file users.h.
-.SS "char userrec::result[256]"
+Stores the result of the last GetFullHost or GetRealHost call. You may use this to increase the speed of use of this class.Definition at line 137 of file users.h.
.PP
-Stores the result of the last GetFullHost or GetRealHost call.You may use this to increase the speed of use of this class.Definition at line 126 of file users.h.
+Referenced by GetFullHost(), GetFullRealHost(), and userrec().
+.SS "char \fBuserrec::server\fP[256]"
.PP
-Referenced by GetFullHost(), and GetFullRealHost().
-.SS "char userrec::server[256]"
+The server the user is connected to. Definition at line 127 of file users.h.
.PP
-The server the user is connected to.Definition at line 116 of file users.h.
-.SS "unsigned long userrec::timeout"
+Referenced by userrec().
+.SS "unsigned long \fBuserrec::timeout\fP"
.PP
-Number of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected.Definition at line 138 of file users.h.
+Number of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected. Definition at line 149 of file users.h.
.PP
Referenced by userrec().
diff --git a/docs/man/man3/users.cpp.3 b/docs/man/man3/users.cpp.3
index 5c43f680a..f10abbad6 100644
--- a/docs/man/man3/users.cpp.3
+++ b/docs/man/man3/users.cpp.3
@@ -1,4 +1,4 @@
-.TH "users.cpp" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "users.cpp" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -26,9 +26,9 @@ users.cpp \-
.in -1c
.SH "Variable Documentation"
.PP
-.SS "std::stringstream config_f"
+.SS "std::stringstream \fBconfig_f\fP"
.PP
-Definition at line 11 of file users.cpp.
+Definition at line 23 of file users.cpp.
.SH "Author"
.PP
Generated automatically by Doxygen for InspIRCd from the source code.
diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3
index 3abb5c541..20e941809 100644
--- a/docs/man/man3/users.h.3
+++ b/docs/man/man3/users.h.3
@@ -1,4 +1,4 @@
-.TH "users.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "users.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -21,15 +21,15 @@ users.h \-
.ti -1c
.RI "class \fBConnectClass\fP"
.br
-.RI "\fIHolds information relevent to <connect allow> and <connect deny> tags in the config file.\fP"
+.RI "\fIHolds information relevent to <connect allow> and <connect deny> tags in the config file. \fP"
.ti -1c
.RI "class \fBInvited\fP"
.br
-.RI "\fIHolds a channel name to which a user has been invited.\fP"
+.RI "\fIHolds a channel name to which a user has been invited. \fP"
.ti -1c
.RI "class \fBuserrec\fP"
.br
-.RI "\fIHolds all information about a user This class stores all information about a user connected to the irc server.\fP"
+.RI "\fIHolds all information about a user This class stores all information about a user connected to the irc server. \fP"
.in -1c
.SS "Defines"
@@ -59,40 +59,40 @@ users.h \-
.ti -1c
.RI "typedef std::vector< \fBInvited\fP > \fBInvitedList\fP"
.br
-.RI "\fIHolds a complete list of all channels to which a user has been invited and has not yet joined.\fP"
+.RI "\fIHolds a complete list of all channels to which a user has been invited and has not yet joined. \fP"
.ti -1c
.RI "typedef std::vector< \fBConnectClass\fP > \fBClassVector\fP"
.br
-.RI "\fIHolds a complete list of all allow and deny tags from the configuration file (connection classes).\fP"
+.RI "\fIHolds a complete list of all allow and deny tags from the configuration file (connection classes). \fP"
.in -1c
.SH "Define Documentation"
.PP
.SS "#define CC_ALLOW 0"
.PP
-Definition at line 20 of file users.h.
+Definition at line 31 of file users.h.
.SS "#define CC_DENY 1"
.PP
-Definition at line 21 of file users.h.
+Definition at line 32 of file users.h.
.SS "#define STATUS_HOP 2"
.PP
-Definition at line 16 of file users.h.
+Definition at line 27 of file users.h.
.SS "#define STATUS_NORMAL 0"
.PP
-Definition at line 18 of file users.h.
+Definition at line 29 of file users.h.
.SS "#define STATUS_OP 4"
.PP
-Definition at line 15 of file users.h.
+Definition at line 26 of file users.h.
.SS "#define STATUS_VOICE 1"
.PP
-Definition at line 17 of file users.h.
+Definition at line 28 of file users.h.
.SH "Typedef Documentation"
.PP
-.SS "typedef std::vector<\fBConnectClass\fP> ClassVector"
+.SS "typedef std::vector<\fBConnectClass\fP> \fBClassVector\fP"
.PP
-Holds a complete list of all allow and deny tags from the configuration file (connection classes).Definition at line 70 of file users.h.
-.SS "typedef std::vector<\fBInvited\fP> InvitedList"
+Holds a complete list of all allow and deny tags from the configuration file (connection classes). Definition at line 81 of file users.h.
+.SS "typedef std::vector<\fBInvited\fP> \fBInvitedList\fP"
.PP
-Holds a complete list of all channels to which a user has been invited and has not yet joined.Definition at line 64 of file users.h.
+Holds a complete list of all channels to which a user has been invited and has not yet joined. Definition at line 75 of file users.h.
.SH "Author"
.PP
Generated automatically by Doxygen for InspIRCd from the source code.
diff --git a/docs/man/man3/xline.h.3 b/docs/man/man3/xline.h.3
index 2db737493..a0b5fea50 100644
--- a/docs/man/man3/xline.h.3
+++ b/docs/man/man3/xline.h.3
@@ -1,4 +1,4 @@
-.TH "xline.h" 3 "2 May 2004" "InspIRCd" \" -*- nroff -*-
+.TH "xline.h" 3 "25 Mar 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -29,23 +29,23 @@ xline.h \-
.ti -1c
.RI "class \fBGLine\fP"
.br
-.RI "\fIGLine class.\fP"
+.RI "\fIGLine class. \fP"
.ti -1c
.RI "class \fBKLine\fP"
.br
-.RI "\fIKLine class.\fP"
+.RI "\fIKLine class. \fP"
.ti -1c
.RI "class \fBQLine\fP"
.br
-.RI "\fIQLine class.\fP"
+.RI "\fIQLine class. \fP"
.ti -1c
.RI "class \fBXLine\fP"
.br
-.RI "\fIXLine is the base class for ban lines such as G lines and K lines.\fP"
+.RI "\fIXLine is the base class for ban lines such as G lines and K lines. \fP"
.ti -1c
.RI "class \fBZLine\fP"
.br
-.RI "\fIZLine class.\fP"
+.RI "\fIZLine class. \fP"
.in -1c
.SS "Functions"