summaryrefslogtreecommitdiff
path: root/docs/module-doc/classConfigReader.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/module-doc/classConfigReader.html')
-rw-r--r--docs/module-doc/classConfigReader.html320
1 files changed, 160 insertions, 160 deletions
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html
index 63eabbd82..76cdeb810 100644
--- a/docs/module-doc/classConfigReader.html
+++ b/docs/module-doc/classConfigReader.html
@@ -67,7 +67,7 @@ It may either be instantiated with one parameter or none. Constructing the class
<p>
<p>
-Definition at line <a class="el" href="modules_8h-source.html#l00683">683</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
+Definition at line <a class="el" href="modules_8h-source.html#l00780">780</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="ConfigReader::ConfigReader"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
@@ -97,17 +97,17 @@ Default constructor.
<p>
This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00579">579</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+Definition at line <a class="el" href="modules_8cpp-source.html#l00674">674</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
<p>
-References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00675">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00696">error</a>, <a class="el" href="modules_8h-source.html#l00692">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00695">readerror</a>.
+References <a class="el" href="modules_8h-source.html#l00788">cache</a>, <a class="el" href="modules_8h-source.html#l00772">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00793">error</a>, <a class="el" href="modules_8h-source.html#l00789">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00792">readerror</a>.
<p>
-<div class="fragment"><pre>00580 {
-00581 this-&gt;<a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
-00582 this-&gt;<a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
-00583 this-&gt;<a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this-&gt;cache,this-&gt;errorlog);
-00584 <span class="keywordflow">if</span> (!this-&gt;<a class="code" href="classConfigReader.html#p2">readerror</a>)
-00585 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_FILE_NOT_FOUND</a>;
-00586 }
+<div class="fragment"><pre>00675 {
+00676 this-&gt;<a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
+00677 this-&gt;<a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
+00678 this-&gt;<a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this-&gt;cache,this-&gt;errorlog);
+00679 <span class="keywordflow">if</span> (!this-&gt;<a class="code" href="classConfigReader.html#p2">readerror</a>)
+00680 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>;
+00681 }
</pre></div> </td>
</tr>
</table>
@@ -141,17 +141,17 @@ Overloaded constructor.
<p>
This constructor initialises the ConfigReader class to read a user-specified config file
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00598">598</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+Definition at line <a class="el" href="modules_8cpp-source.html#l00693">693</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
<p>
-References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00675">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00696">error</a>, <a class="el" href="modules_8h-source.html#l00692">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00695">readerror</a>.
+References <a class="el" href="modules_8h-source.html#l00788">cache</a>, <a class="el" href="modules_8h-source.html#l00772">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00793">error</a>, <a class="el" href="modules_8h-source.html#l00789">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00792">readerror</a>.
<p>
-<div class="fragment"><pre>00599 {
-00600 this-&gt;<a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
-00601 this-&gt;<a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
-00602 this-&gt;<a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-&gt;<a class="code" href="classConfigReader.html#p0">cache</a>,this-&gt;<a class="code" href="classConfigReader.html#p1">errorlog</a>);
-00603 <span class="keywordflow">if</span> (!this-&gt;<a class="code" href="classConfigReader.html#p2">readerror</a>)
-00604 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_FILE_NOT_FOUND</a>;
-00605 };
+<div class="fragment"><pre>00694 {
+00695 this-&gt;<a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
+00696 this-&gt;<a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out);
+00697 this-&gt;<a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-&gt;<a class="code" href="classConfigReader.html#p0">cache</a>,this-&gt;<a class="code" href="classConfigReader.html#p1">errorlog</a>);
+00698 <span class="keywordflow">if</span> (!this-&gt;<a class="code" href="classConfigReader.html#p2">readerror</a>)
+00699 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a30">CONF_FILE_NOT_FOUND</a>;
+00700 };
</pre></div> </td>
</tr>
</table>
@@ -184,16 +184,16 @@ Default destructor.
<p>
This method destroys the ConfigReader class.
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00589">589</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+Definition at line <a class="el" href="modules_8cpp-source.html#l00684">684</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
<p>
-References <a class="el" href="modules_8h-source.html#l00691">cache</a>, and <a class="el" href="modules_8h-source.html#l00692">errorlog</a>.
+References <a class="el" href="modules_8h-source.html#l00788">cache</a>, and <a class="el" href="modules_8h-source.html#l00789">errorlog</a>.
<p>
-<div class="fragment"><pre>00590 {
-00591 <span class="keywordflow">if</span> (this-&gt;<a class="code" href="classConfigReader.html#p0">cache</a>)
-00592 <span class="keyword">delete</span> this-&gt;<a class="code" href="classConfigReader.html#p0">cache</a>;
-00593 <span class="keywordflow">if</span> (this-&gt;<a class="code" href="classConfigReader.html#p1">errorlog</a>)
-00594 <span class="keyword">delete</span> this-&gt;<a class="code" href="classConfigReader.html#p1">errorlog</a>;
-00595 }
+<div class="fragment"><pre>00685 {
+00686 <span class="keywordflow">if</span> (this-&gt;<a class="code" href="classConfigReader.html#p0">cache</a>)
+00687 <span class="keyword">delete</span> this-&gt;<a class="code" href="classConfigReader.html#p0">cache</a>;
+00688 <span class="keywordflow">if</span> (this-&gt;<a class="code" href="classConfigReader.html#p1">errorlog</a>)
+00689 <span class="keyword">delete</span> this-&gt;<a class="code" href="classConfigReader.html#p1">errorlog</a>;
+00690 }
</pre></div> </td>
</tr>
</table>
@@ -237,40 +237,40 @@ Dumps the list of errors in a config file to an output location.
<p>
If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers.
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00676">676</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
-<p>
-References <a class="el" href="modules_8h-source.html#l00692">errorlog</a>, <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00106">userrec::nick</a>.
-<p>
-<div class="fragment"><pre>00677 {
-00678 <span class="keywordflow">if</span> (bail)
-00679 {
-00680 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>-&gt;str().c_str());
-00681 exit(0);
-00682 }
-00683 <span class="keywordflow">else</span>
-00684 {
-00685 <span class="keywordtype">char</span> dataline[1024];
-00686 <span class="keywordflow">if</span> (user)
-00687 {
-00688 WriteServ(user-&gt;<a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-&gt;<a class="code" href="classuserrec.html#o0">nick</a>);
-00689 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>-&gt;eof())
-00690 {
-00691 <a class="code" href="classConfigReader.html#p1">errorlog</a>-&gt;getline(dataline,1024);
-00692 WriteServ(user-&gt;<a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-&gt;<a class="code" href="classuserrec.html#o0">nick</a>,dataline);
-00693 }
-00694 }
-00695 <span class="keywordflow">else</span>
-00696 {
-00697 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-&gt;<a class="code" href="classuserrec.html#o0">nick</a>);
-00698 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>-&gt;eof())
-00699 {
-00700 <a class="code" href="classConfigReader.html#p1">errorlog</a>-&gt;getline(dataline,1024);
-00701 WriteOpers(dataline);
-00702 }
-00703 }
-00704 <span class="keywordflow">return</span>;
-00705 }
-00706 }
+Definition at line <a class="el" href="modules_8cpp-source.html#l00771">771</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+<p>
+References <a class="el" href="modules_8h-source.html#l00789">errorlog</a>, <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00106">userrec::nick</a>.
+<p>
+<div class="fragment"><pre>00772 {
+00773 <span class="keywordflow">if</span> (bail)
+00774 {
+00775 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>-&gt;str().c_str());
+00776 exit(0);
+00777 }
+00778 <span class="keywordflow">else</span>
+00779 {
+00780 <span class="keywordtype">char</span> dataline[1024];
+00781 <span class="keywordflow">if</span> (user)
+00782 {
+00783 WriteServ(user-&gt;<a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-&gt;<a class="code" href="classuserrec.html#o0">nick</a>);
+00784 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>-&gt;eof())
+00785 {
+00786 <a class="code" href="classConfigReader.html#p1">errorlog</a>-&gt;getline(dataline,1024);
+00787 WriteServ(user-&gt;<a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-&gt;<a class="code" href="classuserrec.html#o0">nick</a>,dataline);
+00788 }
+00789 }
+00790 <span class="keywordflow">else</span>
+00791 {
+00792 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-&gt;<a class="code" href="classuserrec.html#o0">nick</a>);
+00793 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>-&gt;eof())
+00794 {
+00795 <a class="code" href="classConfigReader.html#p1">errorlog</a>-&gt;getline(dataline,1024);
+00796 WriteOpers(dataline);
+00797 }
+00798 }
+00799 <span class="keywordflow">return</span>;
+00800 }
+00801 }
</pre></div> </td>
</tr>
</table>
@@ -304,13 +304,13 @@ Counts the number of times a given tag appears in the config file.
<p>
This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of <a class="el" href="classConfigReader.html#a3">ConfigReader::ReadValue</a> to loop through all copies of a multiple instance tag.
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00709">709</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+Definition at line <a class="el" href="modules_8cpp-source.html#l00804">804</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
<p>
-References <a class="el" href="modules_8h-source.html#l00691">cache</a>.
+References <a class="el" href="modules_8h-source.html#l00788">cache</a>.
<p>
-<div class="fragment"><pre>00710 {
-00711 <span class="keywordflow">return</span> EnumConf(cache,tag.c_str());
-00712 }
+<div class="fragment"><pre>00805 {
+00806 <span class="keywordflow">return</span> EnumConf(cache,tag.c_str());
+00807 }
</pre></div> </td>
</tr>
</table>
@@ -353,13 +353,13 @@ Returns the number of items within a tag.
<p>
For example if the tag was &lt;test tag="blah" data="foo"&gt; then this function would return 2. Spaces and newlines both qualify as valid seperators between values.
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00714">714</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+Definition at line <a class="el" href="modules_8cpp-source.html#l00809">809</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
<p>
-References <a class="el" href="modules_8h-source.html#l00691">cache</a>.
+References <a class="el" href="modules_8h-source.html#l00788">cache</a>.
<p>
-<div class="fragment"><pre>00715 {
-00716 <span class="keywordflow">return</span> EnumValues(cache, tag.c_str(), index);
-00717 }
+<div class="fragment"><pre>00810 {
+00811 <span class="keywordflow">return</span> EnumValues(cache, tag.c_str(), index);
+00812 }
</pre></div> </td>
</tr>
</table>
@@ -392,15 +392,15 @@ Returns the last error to occur.
<p>
Valid errors can be found by looking in <a class="el" href="modules_8h.html">modules.h</a>. Any nonzero value indicates an error condition. A call to <a class="el" href="classConfigReader.html#a6">GetError()</a> resets the error flag back to 0.
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00669">669</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+Definition at line <a class="el" href="modules_8cpp-source.html#l00764">764</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
<p>
-References <a class="el" href="modules_8h-source.html#l00696">error</a>.
+References <a class="el" href="modules_8h-source.html#l00793">error</a>.
<p>
-<div class="fragment"><pre>00670 {
-00671 <span class="keywordtype">long</span> olderr = this-&gt;<a class="code" href="classConfigReader.html#p3">error</a>;
-00672 this-&gt;error = 0;
-00673 <span class="keywordflow">return</span> olderr;
-00674 }
+<div class="fragment"><pre>00765 {
+00766 <span class="keywordtype">long</span> olderr = this-&gt;<a class="code" href="classConfigReader.html#p3">error</a>;
+00767 this-&gt;error = 0;
+00768 <span class="keywordflow">return</span> olderr;
+00769 }
</pre></div> </td>
</tr>
</table>
@@ -449,25 +449,25 @@ Retrieves a boolean value from the config file.
<p>
This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values "1", "yes" and "true" in the config file count as true to ReadFlag, and any other value counts as false.
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00623">623</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
-<p>
-References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00674">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00696">error</a>.
-<p>
-<div class="fragment"><pre>00624 {
-00625 <span class="keywordtype">char</span> val[MAXBUF];
-00626 <span class="keywordtype">char</span> t[MAXBUF];
-00627 <span class="keywordtype">char</span> n[MAXBUF];
-00628 strlcpy(t,tag.c_str(),MAXBUF);
-00629 strlcpy(n,name.c_str(),MAXBUF);
-00630 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val);
-00631 <span class="keywordflow">if</span> (!res)
-00632 {
-00633 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>;
-00634 <span class="keywordflow">return</span> <span class="keyword">false</span>;
-00635 }
-00636 std::string s = val;
-00637 <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>));
-00638 }
+Definition at line <a class="el" href="modules_8cpp-source.html#l00718">718</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+<p>
+References <a class="el" href="modules_8h-source.html#l00788">cache</a>, <a class="el" href="modules_8h-source.html#l00771">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00793">error</a>.
+<p>
+<div class="fragment"><pre>00719 {
+00720 <span class="keywordtype">char</span> val[MAXBUF];
+00721 <span class="keywordtype">char</span> t[MAXBUF];
+00722 <span class="keywordtype">char</span> n[MAXBUF];
+00723 strlcpy(t,tag.c_str(),MAXBUF);
+00724 strlcpy(n,name.c_str(),MAXBUF);
+00725 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val);
+00726 <span class="keywordflow">if</span> (!res)
+00727 {
+00728 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>;
+00729 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+00730 }
+00731 std::string s = val;
+00732 <span class="keywordflow">return</span> ((s == <span class="stringliteral">"yes"</span>) || (s == <span class="stringliteral">"YES"</span>) || (s == <span class="stringliteral">"true"</span>) || (s == <span class="stringliteral">"TRUE"</span>) || (s == <span class="stringliteral">"1"</span>));
+00733 }
</pre></div> </td>
</tr>
</table>
@@ -522,37 +522,37 @@ Retrieves an integer value from the config file.
<p>
This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to <a class="el" href="classConfigReader.html#a6">GetError()</a> will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and <a class="el" href="classConfigReader.html#a6">GetError()</a> will return CONF_NOT_UNSIGNED
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00640">640</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
-<p>
-References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00672">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l00673">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l00674">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00696">error</a>.
-<p>
-<div class="fragment"><pre>00641 {
-00642 <span class="keywordtype">char</span> val[MAXBUF];
-00643 <span class="keywordtype">char</span> t[MAXBUF];
-00644 <span class="keywordtype">char</span> n[MAXBUF];
-00645 strlcpy(t,tag.c_str(),MAXBUF);
-00646 strlcpy(n,name.c_str(),MAXBUF);
-00647 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val);
-00648 <span class="keywordflow">if</span> (!res)
-00649 {
-00650 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>;
-00651 <span class="keywordflow">return</span> 0;
-00652 }
-00653 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; strlen(val); i++)
-00654 {
-00655 <span class="keywordflow">if</span> (!isdigit(val[i]))
-00656 {
-00657 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a26">CONF_NOT_A_NUMBER</a>;
-00658 <span class="keywordflow">return</span> 0;
-00659 }
-00660 }
-00661 <span class="keywordflow">if</span> ((needs_unsigned) &amp;&amp; (atoi(val)&lt;0))
-00662 {
-00663 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_UNSIGNED</a>;
-00664 <span class="keywordflow">return</span> 0;
-00665 }
-00666 <span class="keywordflow">return</span> atoi(val);
-00667 }
+Definition at line <a class="el" href="modules_8cpp-source.html#l00735">735</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+<p>
+References <a class="el" href="modules_8h-source.html#l00788">cache</a>, <a class="el" href="modules_8h-source.html#l00769">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l00770">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l00771">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00793">error</a>.
+<p>
+<div class="fragment"><pre>00736 {
+00737 <span class="keywordtype">char</span> val[MAXBUF];
+00738 <span class="keywordtype">char</span> t[MAXBUF];
+00739 <span class="keywordtype">char</span> n[MAXBUF];
+00740 strlcpy(t,tag.c_str(),MAXBUF);
+00741 strlcpy(n,name.c_str(),MAXBUF);
+00742 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val);
+00743 <span class="keywordflow">if</span> (!res)
+00744 {
+00745 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>;
+00746 <span class="keywordflow">return</span> 0;
+00747 }
+00748 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; strlen(val); i++)
+00749 {
+00750 <span class="keywordflow">if</span> (!isdigit(val[i]))
+00751 {
+00752 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a27">CONF_NOT_A_NUMBER</a>;
+00753 <span class="keywordflow">return</span> 0;
+00754 }
+00755 }
+00756 <span class="keywordflow">if</span> ((needs_unsigned) &amp;&amp; (atoi(val)&lt;0))
+00757 {
+00758 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_NOT_UNSIGNED</a>;
+00759 <span class="keywordflow">return</span> 0;
+00760 }
+00761 <span class="keywordflow">return</span> atoi(val);
+00762 }
</pre></div> </td>
</tr>
</table>
@@ -601,24 +601,24 @@ Retrieves a value from the config file.
<p>
This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve.
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00607">607</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
-<p>
-References <a class="el" href="modules_8h-source.html#l00691">cache</a>, <a class="el" href="modules_8h-source.html#l00674">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00696">error</a>.
-<p>
-<div class="fragment"><pre>00608 {
-00609 <span class="keywordtype">char</span> val[MAXBUF];
-00610 <span class="keywordtype">char</span> t[MAXBUF];
-00611 <span class="keywordtype">char</span> n[MAXBUF];
-00612 strlcpy(t,tag.c_str(),MAXBUF);
-00613 strlcpy(n,name.c_str(),MAXBUF);
-00614 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val);
-00615 <span class="keywordflow">if</span> (!res)
-00616 {
-00617 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a28">CONF_VALUE_NOT_FOUND</a>;
-00618 <span class="keywordflow">return</span> <span class="stringliteral">""</span>;
-00619 }
-00620 <span class="keywordflow">return</span> std::string(val);
-00621 }
+Definition at line <a class="el" href="modules_8cpp-source.html#l00702">702</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+<p>
+References <a class="el" href="modules_8h-source.html#l00788">cache</a>, <a class="el" href="modules_8h-source.html#l00771">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00793">error</a>.
+<p>
+<div class="fragment"><pre>00703 {
+00704 <span class="keywordtype">char</span> val[MAXBUF];
+00705 <span class="keywordtype">char</span> t[MAXBUF];
+00706 <span class="keywordtype">char</span> n[MAXBUF];
+00707 strlcpy(t,tag.c_str(),MAXBUF);
+00708 strlcpy(n,name.c_str(),MAXBUF);
+00709 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val);
+00710 <span class="keywordflow">if</span> (!res)
+00711 {
+00712 this-&gt;<a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a29">CONF_VALUE_NOT_FOUND</a>;
+00713 <span class="keywordflow">return</span> <span class="stringliteral">""</span>;
+00714 }
+00715 <span class="keywordflow">return</span> std::string(val);
+00716 }
</pre></div> </td>
</tr>
</table>
@@ -651,13 +651,13 @@ Returns true if a config file is valid.
<p>
This method is partially implemented and will only return false if the config file does not exist or could not be opened.
<p>
-Definition at line <a class="el" href="modules_8cpp-source.html#l00719">719</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
+Definition at line <a class="el" href="modules_8cpp-source.html#l00814">814</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>.
<p>
-References <a class="el" href="modules_8h-source.html#l00695">readerror</a>.
+References <a class="el" href="modules_8h-source.html#l00792">readerror</a>.
<p>
-<div class="fragment"><pre>00720 {
-00721 <span class="keywordflow">return</span> this-&gt;<a class="code" href="classConfigReader.html#p2">readerror</a>;
-00722 }
+<div class="fragment"><pre>00815 {
+00816 <span class="keywordflow">return</span> this-&gt;<a class="code" href="classConfigReader.html#p2">readerror</a>;
+00817 }
</pre></div> </td>
</tr>
</table>
@@ -685,9 +685,9 @@ The contents of the configuration file This protected member should never be acc
<p>
It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.
<p>
-Definition at line <a class="el" href="modules_8h-source.html#l00691">691</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
+Definition at line <a class="el" href="modules_8h-source.html#l00788">788</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
<p>
-Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00709">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00714">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00623">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00640">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00607">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00589">~ConfigReader()</a>. </td>
+Referenced by <a class="el" href="modules_8cpp-source.html#l00674">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00804">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00809">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00718">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00735">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00702">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00684">~ConfigReader()</a>. </td>
</tr>
</table>
<a name="p3" doxytag="ConfigReader::error"></a><p>
@@ -711,9 +711,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader(
<p>
<p>
-Definition at line <a class="el" href="modules_8h-source.html#l00696">696</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
+Definition at line <a class="el" href="modules_8h-source.html#l00793">793</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
<p>
-Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00669">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00623">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00640">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00607">ReadValue()</a>. </td>
+Referenced by <a class="el" href="modules_8cpp-source.html#l00674">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00764">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00718">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00735">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00702">ReadValue()</a>. </td>
</tr>
</table>
<a name="p1" doxytag="ConfigReader::errorlog"></a><p>
@@ -737,9 +737,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader(
<p>
<p>
-Definition at line <a class="el" href="modules_8h-source.html#l00692">692</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
+Definition at line <a class="el" href="modules_8h-source.html#l00789">789</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
<p>
-Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00676">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00589">~ConfigReader()</a>. </td>
+Referenced by <a class="el" href="modules_8cpp-source.html#l00674">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00771">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00684">~ConfigReader()</a>. </td>
</tr>
</table>
<a name="p2" doxytag="ConfigReader::readerror"></a><p>
@@ -765,14 +765,14 @@ Used to store errors.
<p>
<p>
-Definition at line <a class="el" href="modules_8h-source.html#l00695">695</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
+Definition at line <a class="el" href="modules_8h-source.html#l00792">792</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.
<p>
-Referenced by <a class="el" href="modules_8cpp-source.html#l00579">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00719">Verify()</a>. </td>
+Referenced by <a class="el" href="modules_8cpp-source.html#l00674">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00814">Verify()</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="modules_8h-source.html">modules.h</a><li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul>
-<hr size="1"><address style="align: right;"><small>Generated on Sat Apr 9 14:38:28 2005 for InspIRCd by
+<hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 12:32:23 2005 for InspIRCd by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.3 </small></address>