diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-01 17:07:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-01 17:07:42 +0000 |
commit | f326e475e311bf0fa211ccd052ba38d8235efa12 (patch) | |
tree | 6171ffe18343d82d035901f0cfb0778876e71987 | |
parent | 260d107be38928396b5339829ab321c2207f09bc (diff) |
Updated documentation (html)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@937 e03df62e-2008-0410-955e-edbf42e46eb7
114 files changed, 2428 insertions, 2238 deletions
diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 248e8ce91..b7b437776 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -41,7 +41,7 @@ <tr><td class="indexkey"><a class="el" href="classXLine.html">XLine</a></td><td class="indexvalue">XLine is the base class for ban lines such as G lines and K lines </td></tr> <tr><td class="indexkey"><a class="el" href="classZLine.html">ZLine</a></td><td class="indexvalue">ZLine class </td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 8adefdfe8..2b579e73e 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -55,7 +55,7 @@ 00079 00080 <span class="preprocessor">#endif</span> 00081 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:26 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09: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> diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index 46e433aab..df6319c37 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -49,7 +49,7 @@ Definition at line <a class="el" href="base_8h-source.html#l00025">25</a> of file <a class="el" href="base_8h-source.html">base.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:26 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> diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index 2e474e22d..70440fd36 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -57,152 +57,153 @@ 00050 <span class="preprocessor">#include "<a class="code" href="message_8h.html">message.h</a>"</span> 00051 <span class="preprocessor">#include "<a class="code" href="mode_8h.html">mode.h</a>"</span> 00052 <span class="preprocessor">#include "<a class="code" href="xline_8h.html">xline.h</a>"</span> -00053 -00054 <span class="preprocessor">#ifdef GCC3</span> -00055 <span class="preprocessor"></span><span class="preprocessor">#define nspace __gnu_cxx</span> -00056 <span class="preprocessor"></span><span class="preprocessor">#else</span> -<a name="l00057"></a><a class="code" href="channels_8cpp.html#a0">00057</a> <span class="preprocessor"></span><span class="preprocessor">#define nspace std</span> -00058 <span class="preprocessor"></span><span class="preprocessor">#endif</span> -00059 <span class="preprocessor"></span> -00060 <span class="keyword">using</span> <span class="keyword">namespace </span>std; -00061 -00062 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a>; -<a name="l00063"></a><a class="code" href="channels_8cpp.html#a2">00063</a> <span class="keyword">extern</span> vector<Module*> <a class="code" href="channels_8cpp.html#a2">modules</a>; -<a name="l00064"></a><a class="code" href="channels_8cpp.html#a3">00064</a> <span class="keyword">extern</span> vector<ircd_module*> <a class="code" href="channels_8cpp.html#a3">factory</a>; -00065 -<a name="l00066"></a><a class="code" href="channels_8cpp.html#a4">00066</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a4">LogLevel</a>; -<a name="l00067"></a><a class="code" href="channels_8cpp.html#a5">00067</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a5">ServerName</a>[MAXBUF]; -<a name="l00068"></a><a class="code" href="channels_8cpp.html#a6">00068</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a6">Network</a>[MAXBUF]; -<a name="l00069"></a><a class="code" href="channels_8cpp.html#a7">00069</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a7">ServerDesc</a>[MAXBUF]; -<a name="l00070"></a><a class="code" href="channels_8cpp.html#a8">00070</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a8">AdminName</a>[MAXBUF]; -<a name="l00071"></a><a class="code" href="channels_8cpp.html#a9">00071</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a9">AdminEmail</a>[MAXBUF]; -<a name="l00072"></a><a class="code" href="channels_8cpp.html#a10">00072</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a10">AdminNick</a>[MAXBUF]; -<a name="l00073"></a><a class="code" href="channels_8cpp.html#a11">00073</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a11">diepass</a>[MAXBUF]; -<a name="l00074"></a><a class="code" href="channels_8cpp.html#a12">00074</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a12">restartpass</a>[MAXBUF]; -<a name="l00075"></a><a class="code" href="channels_8cpp.html#a13">00075</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a13">motd</a>[MAXBUF]; -<a name="l00076"></a><a class="code" href="channels_8cpp.html#a14">00076</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a14">rules</a>[MAXBUF]; -<a name="l00077"></a><a class="code" href="channels_8cpp.html#a15">00077</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a15">list</a>[MAXBUF]; -<a name="l00078"></a><a class="code" href="channels_8cpp.html#a16">00078</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a16">PrefixQuit</a>[MAXBUF]; -<a name="l00079"></a><a class="code" href="channels_8cpp.html#a17">00079</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a17">DieValue</a>[MAXBUF]; -00080 -<a name="l00081"></a><a class="code" href="channels_8cpp.html#a18">00081</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a18">debugging</a>; -<a name="l00082"></a><a class="code" href="channels_8cpp.html#a19">00082</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a19">WHOWAS_STALE</a>; -<a name="l00083"></a><a class="code" href="channels_8cpp.html#a20">00083</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a20">WHOWAS_MAX</a>; -<a name="l00084"></a><a class="code" href="channels_8cpp.html#a21">00084</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a21">DieDelay</a>; -<a name="l00085"></a><a class="code" href="channels_8cpp.html#a22">00085</a> <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#a22">startup_time</a>; -<a name="l00086"></a><a class="code" href="channels_8cpp.html#a23">00086</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a23">NetBufferSize</a>; -<a name="l00087"></a><a class="code" href="channels_8cpp.html#a24">00087</a> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a24">MaxWhoResults</a>; -<a name="l00088"></a><a class="code" href="channels_8cpp.html#a25">00088</a> <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#a25">nb_start</a>; -00089 -<a name="l00090"></a><a class="code" href="channels_8cpp.html#a26">00090</a> <span class="keyword">extern</span> std::vector<int> <a class="code" href="channels_8cpp.html#a26">fd_reap</a>; -<a name="l00091"></a><a class="code" href="channels_8cpp.html#a27">00091</a> <span class="keyword">extern</span> std::vector<std::string> <a class="code" href="channels_8cpp.html#a27">module_names</a>; -00092 -<a name="l00093"></a><a class="code" href="channels_8cpp.html#a28">00093</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a28">boundPortCount</a>; -<a name="l00094"></a><a class="code" href="channels_8cpp.html#a29">00094</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a29">portCount</a>; -<a name="l00095"></a><a class="code" href="channels_8cpp.html#a30">00095</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a30">UDPportCount</a>; -<a name="l00096"></a><a class="code" href="channels_8cpp.html#a31">00096</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a31">ports</a>[MAXSOCKS]; -<a name="l00097"></a><a class="code" href="channels_8cpp.html#a32">00097</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a32">defaultRoute</a>; -00098 -<a name="l00099"></a><a class="code" href="channels_8cpp.html#a33">00099</a> <span class="keyword">extern</span> std::vector<long> <a class="code" href="channels_8cpp.html#a33">auth_cookies</a>; -<a name="l00100"></a><a class="code" href="channels_8cpp.html#a34">00100</a> <span class="keyword">extern</span> std::stringstream <a class="code" href="channels_8cpp.html#a34">config_f</a>; -00101 -<a name="l00102"></a><a class="code" href="channels_8cpp.html#a35">00102</a> <span class="keyword">extern</span> <a class="code" href="classserverrec.html">serverrec</a>* <a class="code" href="channels_8cpp.html#a35">me</a>[32]; -00103 -<a name="l00104"></a><a class="code" href="channels_8cpp.html#a36">00104</a> <span class="keyword">extern</span> FILE *<a class="code" href="channels_8cpp.html#a36">log_file</a>; -00105 +00053 <span class="preprocessor">#include "inspstring.h"</span> +00054 +00055 <span class="preprocessor">#ifdef GCC3</span> +00056 <span class="preprocessor"></span><span class="preprocessor">#define nspace __gnu_cxx</span> +00057 <span class="preprocessor"></span><span class="preprocessor">#else</span> +<a name="l00058"></a><a class="code" href="channels_8cpp.html#a0">00058</a> <span class="preprocessor"></span><span class="preprocessor">#define nspace std</span> +00059 <span class="preprocessor"></span><span class="preprocessor">#endif</span> +00060 <span class="preprocessor"></span> +00061 <span class="keyword">using</span> <span class="keyword">namespace </span>std; +00062 +00063 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a>; +<a name="l00064"></a><a class="code" href="channels_8cpp.html#a2">00064</a> <span class="keyword">extern</span> std::vector<Module*> <a class="code" href="channels_8cpp.html#a2">modules</a>; +<a name="l00065"></a><a class="code" href="channels_8cpp.html#a3">00065</a> <span class="keyword">extern</span> std::vector<ircd_module*> <a class="code" href="channels_8cpp.html#a3">factory</a>; +00066 +<a name="l00067"></a><a class="code" href="channels_8cpp.html#a4">00067</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a4">LogLevel</a>; +<a name="l00068"></a><a class="code" href="channels_8cpp.html#a5">00068</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a5">ServerName</a>[MAXBUF]; +<a name="l00069"></a><a class="code" href="channels_8cpp.html#a6">00069</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a6">Network</a>[MAXBUF]; +<a name="l00070"></a><a class="code" href="channels_8cpp.html#a7">00070</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a7">ServerDesc</a>[MAXBUF]; +<a name="l00071"></a><a class="code" href="channels_8cpp.html#a8">00071</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a8">AdminName</a>[MAXBUF]; +<a name="l00072"></a><a class="code" href="channels_8cpp.html#a9">00072</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a9">AdminEmail</a>[MAXBUF]; +<a name="l00073"></a><a class="code" href="channels_8cpp.html#a10">00073</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a10">AdminNick</a>[MAXBUF]; +<a name="l00074"></a><a class="code" href="channels_8cpp.html#a11">00074</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a11">diepass</a>[MAXBUF]; +<a name="l00075"></a><a class="code" href="channels_8cpp.html#a12">00075</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a12">restartpass</a>[MAXBUF]; +<a name="l00076"></a><a class="code" href="channels_8cpp.html#a13">00076</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a13">motd</a>[MAXBUF]; +<a name="l00077"></a><a class="code" href="channels_8cpp.html#a14">00077</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a14">rules</a>[MAXBUF]; +<a name="l00078"></a><a class="code" href="channels_8cpp.html#a15">00078</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a15">list</a>[MAXBUF]; +<a name="l00079"></a><a class="code" href="channels_8cpp.html#a16">00079</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a16">PrefixQuit</a>[MAXBUF]; +<a name="l00080"></a><a class="code" href="channels_8cpp.html#a17">00080</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a17">DieValue</a>[MAXBUF]; +00081 +<a name="l00082"></a><a class="code" href="channels_8cpp.html#a18">00082</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a18">debugging</a>; +<a name="l00083"></a><a class="code" href="channels_8cpp.html#a19">00083</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a19">WHOWAS_STALE</a>; +<a name="l00084"></a><a class="code" href="channels_8cpp.html#a20">00084</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a20">WHOWAS_MAX</a>; +<a name="l00085"></a><a class="code" href="channels_8cpp.html#a21">00085</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a21">DieDelay</a>; +<a name="l00086"></a><a class="code" href="channels_8cpp.html#a22">00086</a> <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#a22">startup_time</a>; +<a name="l00087"></a><a class="code" href="channels_8cpp.html#a23">00087</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a23">NetBufferSize</a>; +<a name="l00088"></a><a class="code" href="channels_8cpp.html#a24">00088</a> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a24">MaxWhoResults</a>; +<a name="l00089"></a><a class="code" href="channels_8cpp.html#a25">00089</a> <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#a25">nb_start</a>; +00090 +<a name="l00091"></a><a class="code" href="channels_8cpp.html#a26">00091</a> <span class="keyword">extern</span> std::vector<int> <a class="code" href="channels_8cpp.html#a26">fd_reap</a>; +<a name="l00092"></a><a class="code" href="channels_8cpp.html#a27">00092</a> <span class="keyword">extern</span> std::vector<std::string> <a class="code" href="channels_8cpp.html#a27">module_names</a>; +00093 +<a name="l00094"></a><a class="code" href="channels_8cpp.html#a28">00094</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a28">boundPortCount</a>; +<a name="l00095"></a><a class="code" href="channels_8cpp.html#a29">00095</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a29">portCount</a>; +<a name="l00096"></a><a class="code" href="channels_8cpp.html#a30">00096</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a30">UDPportCount</a>; +<a name="l00097"></a><a class="code" href="channels_8cpp.html#a31">00097</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a31">ports</a>[MAXSOCKS]; +<a name="l00098"></a><a class="code" href="channels_8cpp.html#a32">00098</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a32">defaultRoute</a>; +00099 +<a name="l00100"></a><a class="code" href="channels_8cpp.html#a33">00100</a> <span class="keyword">extern</span> std::vector<long> <a class="code" href="channels_8cpp.html#a33">auth_cookies</a>; +<a name="l00101"></a><a class="code" href="channels_8cpp.html#a34">00101</a> <span class="keyword">extern</span> std::stringstream <a class="code" href="channels_8cpp.html#a34">config_f</a>; +00102 +<a name="l00103"></a><a class="code" href="channels_8cpp.html#a35">00103</a> <span class="keyword">extern</span> <a class="code" href="classserverrec.html">serverrec</a>* <a class="code" href="channels_8cpp.html#a35">me</a>[32]; +00104 +<a name="l00105"></a><a class="code" href="channels_8cpp.html#a36">00105</a> <span class="keyword">extern</span> FILE *<a class="code" href="channels_8cpp.html#a36">log_file</a>; 00106 -00107 <span class="keyword">using</span> <span class="keyword">namespace </span>std; -00108 -<a name="l00109"></a><a class="code" href="channels_8cpp.html#a37">00109</a> std::vector<ModeParameter> <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>; -00110 -<a name="l00111"></a><a class="code" href="classchanrec.html#a4">00111</a> <a class="code" href="classchanrec.html#a4">chanrec::chanrec</a>() -00112 { -00113 strcpy(<a class="code" href="classchanrec.html#o0">name</a>,<span class="stringliteral">""</span>); -00114 strcpy(<a class="code" href="classchanrec.html#o1">custom_modes</a>,<span class="stringliteral">""</span>); -00115 strcpy(<a class="code" href="classchanrec.html#o2">topic</a>,<span class="stringliteral">""</span>); -00116 strcpy(<a class="code" href="classchanrec.html#o5">setby</a>,<span class="stringliteral">""</span>); -00117 strcpy(<a class="code" href="classchanrec.html#o7">key</a>,<span class="stringliteral">""</span>); -00118 <a class="code" href="classchanrec.html#o3">created</a> = <a class="code" href="classchanrec.html#o4">topicset</a> = <a class="code" href="classchanrec.html#o6">limit</a> = 0; -00119 <a class="code" href="classchanrec.html#o8">topiclock</a> = <a class="code" href="classchanrec.html#o9">noexternal</a> = <a class="code" href="classchanrec.html#o10">inviteonly</a> = <a class="code" href="classchanrec.html#o11">moderated</a> = <a class="code" href="classchanrec.html#o12">secret</a> = <a class="code" href="classchanrec.html#o13">c_private</a> = <span class="keyword">false</span>; -00120 } -00121 -<a name="l00122"></a><a class="code" href="classchanrec.html#a0">00122</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a0">chanrec::SetCustomMode</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">bool</span> mode_on) -00123 { -00124 <span class="keywordflow">if</span> (mode_on) { -00125 <span class="keywordtype">char</span> m[3]; -00126 m[0] = mode; -00127 m[1] = <span class="charliteral">'\0'</span>; -00128 <span class="keywordflow">if</span> (!strchr(this->custom_modes,mode)) -00129 { -00130 strlcat(<a class="code" href="classchanrec.html#o1">custom_modes</a>,m,MAXMODES); -00131 } -00132 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode %c set"</span>,mode); -00133 } -00134 <span class="keywordflow">else</span> { -00135 -00136 std::string a = this-><a class="code" href="classchanrec.html#o1">custom_modes</a>; -00137 <span class="keywordtype">int</span> pos = a.find(mode); -00138 a.erase(pos,1); -00139 strncpy(this->custom_modes,a.c_str(),MAXMODES); -00140 -00141 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this->custom_modes); -00142 this-><a class="code" href="classchanrec.html#a1">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>); -00143 } -00144 } -00145 +00107 +00108 <span class="keyword">using</span> <span class="keyword">namespace </span>std; +00109 +<a name="l00110"></a><a class="code" href="channels_8cpp.html#a37">00110</a> std::vector<ModeParameter> <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>; +00111 +<a name="l00112"></a><a class="code" href="classchanrec.html#a4">00112</a> <a class="code" href="classchanrec.html#a4">chanrec::chanrec</a>() +00113 { +00114 strcpy(<a class="code" href="classchanrec.html#o0">name</a>,<span class="stringliteral">""</span>); +00115 strcpy(<a class="code" href="classchanrec.html#o1">custom_modes</a>,<span class="stringliteral">""</span>); +00116 strcpy(<a class="code" href="classchanrec.html#o2">topic</a>,<span class="stringliteral">""</span>); +00117 strcpy(<a class="code" href="classchanrec.html#o5">setby</a>,<span class="stringliteral">""</span>); +00118 strcpy(<a class="code" href="classchanrec.html#o7">key</a>,<span class="stringliteral">""</span>); +00119 <a class="code" href="classchanrec.html#o3">created</a> = <a class="code" href="classchanrec.html#o4">topicset</a> = <a class="code" href="classchanrec.html#o6">limit</a> = 0; +00120 <a class="code" href="classchanrec.html#o8">topiclock</a> = <a class="code" href="classchanrec.html#o9">noexternal</a> = <a class="code" href="classchanrec.html#o10">inviteonly</a> = <a class="code" href="classchanrec.html#o11">moderated</a> = <a class="code" href="classchanrec.html#o12">secret</a> = <a class="code" href="classchanrec.html#o13">c_private</a> = <span class="keyword">false</span>; +00121 } +00122 +<a name="l00123"></a><a class="code" href="classchanrec.html#a0">00123</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a0">chanrec::SetCustomMode</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">bool</span> mode_on) +00124 { +00125 <span class="keywordflow">if</span> (mode_on) { +00126 <span class="keywordtype">char</span> m[3]; +00127 m[0] = mode; +00128 m[1] = <span class="charliteral">'\0'</span>; +00129 <span class="keywordflow">if</span> (!strchr(this->custom_modes,mode)) +00130 { +00131 strlcat(<a class="code" href="classchanrec.html#o1">custom_modes</a>,m,MAXMODES); +00132 } +00133 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode %c set"</span>,mode); +00134 } +00135 <span class="keywordflow">else</span> { +00136 +00137 std::string a = this-><a class="code" href="classchanrec.html#o1">custom_modes</a>; +00138 <span class="keywordtype">int</span> pos = a.find(mode); +00139 a.erase(pos,1); +00140 strncpy(this->custom_modes,a.c_str(),MAXMODES); +00141 +00142 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this->custom_modes); +00143 this-><a class="code" href="classchanrec.html#a1">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>); +00144 } +00145 } 00146 -<a name="l00147"></a><a class="code" href="classchanrec.html#a1">00147</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a1">chanrec::SetCustomModeParam</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">char</span>* parameter,<span class="keywordtype">bool</span> mode_on) -00148 { -00149 -00150 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"SetCustomModeParam called"</span>); -00151 <a class="code" href="classModeParameter.html">ModeParameter</a> M; -00152 M.<a class="code" href="classModeParameter.html#o0">mode</a> = mode; -00153 strlcpy(M.<a class="code" href="classModeParameter.html#o2">channel</a>,this->name,CHANMAX); -00154 strlcpy(M.<a class="code" href="classModeParameter.html#o1">parameter</a>,parameter,MAXBUF); -00155 <span class="keywordflow">if</span> (mode_on) -00156 { -00157 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter); -00158 <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.push_back(M); -00159 } -00160 <span class="keywordflow">else</span> -00161 { -00162 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.size()) -00163 { -00164 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.end(); i++) -00165 { -00166 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00167 { -00168 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter); -00169 <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.erase(i); -00170 <span class="keywordflow">return</span>; -00171 } -00172 } -00173 } -00174 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>); -00175 } -00176 } -00177 -<a name="l00178"></a><a class="code" href="classchanrec.html#a2">00178</a> <span class="keywordtype">bool</span> <a class="code" href="classchanrec.html#a2">chanrec::IsCustomModeSet</a>(<span class="keywordtype">char</span> mode) -00179 { -00180 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Checking ISCustomModeSet: %c %s"</span>,mode,this->custom_modes); -00181 <span class="keywordflow">return</span> (strchr(this->custom_modes,mode) != 0); -00182 } -00183 -<a name="l00184"></a><a class="code" href="classchanrec.html#a3">00184</a> std::string <a class="code" href="classchanrec.html#a3">chanrec::GetModeParameter</a>(<span class="keywordtype">char</span> mode) -00185 { -00186 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.size()) -00187 { -00188 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.end(); i++) -00189 { -00190 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00191 { -00192 <span class="keywordflow">return</span> std::string(i->parameter); -00193 } -00194 } -00195 } -00196 <span class="keywordflow">return</span> std::string(<span class="stringliteral">""</span>); -00197 } -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:27 2005 for InspIRCd by +00147 +<a name="l00148"></a><a class="code" href="classchanrec.html#a1">00148</a> <span class="keywordtype">void</span> <a class="code" href="classchanrec.html#a1">chanrec::SetCustomModeParam</a>(<span class="keywordtype">char</span> mode,<span class="keywordtype">char</span>* parameter,<span class="keywordtype">bool</span> mode_on) +00149 { +00150 +00151 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"SetCustomModeParam called"</span>); +00152 <a class="code" href="classModeParameter.html">ModeParameter</a> M; +00153 M.<a class="code" href="classModeParameter.html#o0">mode</a> = mode; +00154 strlcpy(M.<a class="code" href="classModeParameter.html#o2">channel</a>,this->name,CHANMAX); +00155 strlcpy(M.<a class="code" href="classModeParameter.html#o1">parameter</a>,parameter,MAXBUF); +00156 <span class="keywordflow">if</span> (mode_on) +00157 { +00158 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter); +00159 <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.push_back(M); +00160 } +00161 <span class="keywordflow">else</span> +00162 { +00163 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.size()) +00164 { +00165 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.end(); i++) +00166 { +00167 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00168 { +00169 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter); +00170 <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.erase(i); +00171 <span class="keywordflow">return</span>; +00172 } +00173 } +00174 } +00175 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>); +00176 } +00177 } +00178 +<a name="l00179"></a><a class="code" href="classchanrec.html#a2">00179</a> <span class="keywordtype">bool</span> <a class="code" href="classchanrec.html#a2">chanrec::IsCustomModeSet</a>(<span class="keywordtype">char</span> mode) +00180 { +00181 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Checking ISCustomModeSet: %c %s"</span>,mode,this->custom_modes); +00182 <span class="keywordflow">return</span> (strchr(this->custom_modes,mode) != 0); +00183 } +00184 +<a name="l00185"></a><a class="code" href="classchanrec.html#a3">00185</a> std::string <a class="code" href="classchanrec.html#a3">chanrec::GetModeParameter</a>(<span class="keywordtype">char</span> mode) +00186 { +00187 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.size()) +00188 { +00189 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.end(); i++) +00190 { +00191 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00192 { +00193 <span class="keywordflow">return</span> std::string(i->parameter); +00194 } +00195 } +00196 } +00197 <span class="keywordflow">return</span> std::string(<span class="stringliteral">""</span>); +00198 } +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:24 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> diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 84283bee2..f62f3af20 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -35,6 +35,7 @@ <code>#include "<a class="el" href="message_8h-source.html">message.h</a>"</code><br> <code>#include "<a class="el" href="mode_8h-source.html">mode.h</a>"</code><br> <code>#include "<a class="el" href="xline_8h-source.html">xline.h</a>"</code><br> +<code>#include "inspstring.h"</code><br> <p> <a href="channels_8cpp-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> @@ -48,9 +49,9 @@ <tr><td colspan=2><br><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="channels_8cpp.html#a1">MODCOUNT</a> = -1</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>vector< <a class="el" href="classModule.html">Module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="channels_8cpp.html#a2">modules</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="classModule.html">Module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="channels_8cpp.html#a2">modules</a></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>vector< <a class="el" href="modules_8h.html#a29">ircd_module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="channels_8cpp.html#a3">factory</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="modules_8h.html#a29">ircd_module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="channels_8cpp.html#a3">factory</a></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="channels_8cpp.html#a4">LogLevel</a></td></tr> @@ -143,7 +144,7 @@ <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00057">57</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00058">58</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <hr><h2>Variable Documentation</h2> @@ -168,7 +169,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00057">57</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00071">71</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00072">72</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a8" doxytag="channels.cpp::AdminName"></a><p> @@ -192,7 +193,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00071">71</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00070">70</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00071">71</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a10" doxytag="channels.cpp::AdminNick"></a><p> @@ -216,7 +217,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00070">70</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00072">72</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00073">73</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a33" doxytag="channels.cpp::auth_cookies"></a><p> @@ -240,7 +241,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00072">72</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00099">99</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00100">100</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a28" doxytag="channels.cpp::boundPortCount"></a><p> @@ -264,7 +265,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00099">99</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00093">93</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00094">94</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a34" doxytag="channels.cpp::config_f"></a><p> @@ -288,9 +289,9 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00093">93</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00100">100</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +Definition at line <a class="el" href="channels_8cpp-source.html#l00101">101</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00109">userrec::HasPermission()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00111">userrec::HasPermission()</a>. </td> </tr> </table> <a name="a37" doxytag="channels.cpp::custom_mode_params"></a><p> @@ -314,9 +315,9 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00109">userrec::HasPer <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00109">109</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +Definition at line <a class="el" href="channels_8cpp-source.html#l00110">110</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00184">chanrec::GetModeParameter()</a>, and <a class="el" href="channels_8cpp-source.html#l00147">chanrec::SetCustomModeParam()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00185">chanrec::GetModeParameter()</a>, and <a class="el" href="channels_8cpp-source.html#l00148">chanrec::SetCustomModeParam()</a>. </td> </tr> </table> <a name="a18" doxytag="channels.cpp::debugging"></a><p> @@ -340,7 +341,7 @@ Referenced by <a class="el" href="channels_8cpp-source.html#l00184">chanrec::Get <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00081">81</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00082">82</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a32" doxytag="channels.cpp::defaultRoute"></a><p> @@ -364,7 +365,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00081">81</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00097">97</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00098">98</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a21" doxytag="channels.cpp::DieDelay"></a><p> @@ -388,7 +389,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00097">97</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00084">84</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00085">85</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a11" doxytag="channels.cpp::diepass"></a><p> @@ -412,7 +413,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00084">84</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00073">73</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00074">74</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a17" doxytag="channels.cpp::DieValue"></a><p> @@ -436,7 +437,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00073">73</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00079">79</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00080">80</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a3" doxytag="channels.cpp::factory"></a><p> @@ -445,7 +446,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00079">79</a> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> vector<<a class="el" href="modules_8h.html#a29">ircd_module</a>*> factory + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="modules_8h.html#a29">ircd_module</a>*> factory </table> </td> </tr> @@ -460,7 +461,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00079">79</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00064">64</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00065">65</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a26" doxytag="channels.cpp::fd_reap"></a><p> @@ -484,7 +485,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00064">64</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00090">90</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00091">91</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a15" doxytag="channels.cpp::list"></a><p> @@ -508,7 +509,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00090">90</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00077">77</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00078">78</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a36" doxytag="channels.cpp::log_file"></a><p> @@ -532,7 +533,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00077">77</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00104">104</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00105">105</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a4" doxytag="channels.cpp::LogLevel"></a><p> @@ -556,7 +557,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00104">104</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00066">66</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00067">67</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a24" doxytag="channels.cpp::MaxWhoResults"></a><p> @@ -580,7 +581,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00066">66</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00087">87</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00088">88</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a35" doxytag="channels.cpp::me"></a><p> @@ -604,7 +605,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00087">87</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00102">102</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00103">103</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a1" doxytag="channels.cpp::MODCOUNT"></a><p> @@ -628,7 +629,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00102">102</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00763">763</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00773">773</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a27" doxytag="channels.cpp::module_names"></a><p> @@ -652,7 +653,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00763">763</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00091">91</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00092">92</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a2" doxytag="channels.cpp::modules"></a><p> @@ -661,7 +662,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00091">91</a> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> vector<<a class="el" href="classModule.html">Module</a>*> modules + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="classModule.html">Module</a>*> modules </table> </td> </tr> @@ -676,7 +677,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00091">91</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00063">63</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00064">64</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a13" doxytag="channels.cpp::motd"></a><p> @@ -700,7 +701,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00063">63</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00075">75</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00076">76</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a25" doxytag="channels.cpp::nb_start"></a><p> @@ -724,7 +725,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00075">75</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00088">88</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00089">89</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a23" doxytag="channels.cpp::NetBufferSize"></a><p> @@ -748,7 +749,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00088">88</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00086">86</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00087">87</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a6" doxytag="channels.cpp::Network"></a><p> @@ -772,7 +773,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00086">86</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00068">68</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00069">69</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a29" doxytag="channels.cpp::portCount"></a><p> @@ -796,7 +797,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00068">68</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00094">94</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00095">95</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a31" doxytag="channels.cpp::ports"></a><p> @@ -820,7 +821,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00094">94</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00096">96</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00097">97</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a16" doxytag="channels.cpp::PrefixQuit"></a><p> @@ -844,7 +845,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00096">96</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00078">78</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00079">79</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a12" doxytag="channels.cpp::restartpass"></a><p> @@ -868,7 +869,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00078">78</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00074">74</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00075">75</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a14" doxytag="channels.cpp::rules"></a><p> @@ -892,7 +893,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00074">74</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00076">76</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00077">77</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a7" doxytag="channels.cpp::ServerDesc"></a><p> @@ -916,7 +917,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00076">76</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00069">69</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00070">70</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a5" doxytag="channels.cpp::ServerName"></a><p> @@ -940,7 +941,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00069">69</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00067">67</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00068">68</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a22" doxytag="channels.cpp::startup_time"></a><p> @@ -964,7 +965,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00067">67</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00085">85</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00086">86</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a30" doxytag="channels.cpp::UDPportCount"></a><p> @@ -988,7 +989,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00085">85</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00095">95</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00096">96</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a20" doxytag="channels.cpp::WHOWAS_MAX"></a><p> @@ -1012,7 +1013,7 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00095">95</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00083">83</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00084">84</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> <a name="a19" doxytag="channels.cpp::WHOWAS_STALE"></a><p> @@ -1036,10 +1037,10 @@ Definition at line <a class="el" href="channels_8cpp-source.html#l00083">83</a> <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00082">82</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> +Definition at line <a class="el" href="channels_8cpp-source.html#l00083">83</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:26 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> diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index d768a44a0..172cc08c6 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -139,7 +139,7 @@ 00218 00219 <span class="preprocessor">#endif</span> 00220 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:27 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:24 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> diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 8bc451f8b..79a5649f8 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -258,7 +258,7 @@ Holds a complete invite list. Definition at line <a class="el" href="channels_8h-source.html#l00088">88</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:29 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:26 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> diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 1149be0ac..6a4bc4744 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classAdmin.html#o0">Name</a></td><td><a class="el" href="classAdmin.html">Admin</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classAdmin.html#o2">Nick</a></td><td><a class="el" href="classAdmin.html">Admin</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 7c32f4fed..403c31719 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -76,9 +76,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l00114">114</a> of <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00295">295</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#l00302">302</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00295 : <a class="code" href="classAdmin.html#o0">Name</a>(name), <a class="code" href="classAdmin.html#o1">Email</a>(email), <a class="code" href="classAdmin.html#o2">Nick</a>(nick) { }; +<div class="fragment"><pre>00302 : <a class="code" href="classAdmin.html#o0">Name</a>(name), <a class="code" href="classAdmin.html#o1">Email</a>(email), <a class="code" href="classAdmin.html#o2">Nick</a>(nick) { }; </pre></div> </td> </tr> </table> @@ -157,7 +157,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00117">117</a> of </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 Fri Mar 25 03:49:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 76ea1821b..a40b1cd24 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#o0">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#a1">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 87f54f264..4183ef1eb 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -22,7 +22,7 @@ A subclass of <a class="el" href="classHostItem.html">HostItem</a> designed to h <p> Definition at line <a class="el" href="channels_8h-source.html#l00045">45</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index 5487f9e86..20baab961 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -24,7 +24,7 @@ <tr class="memlist"><td><a class="el" href="classConfigReader.html#a8">Verify</a>()</td><td><a class="el" href="classConfigReader.html">ConfigReader</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classConfigReader.html#a2">~ConfigReader</a>()</td><td><a class="el" href="classConfigReader.html">ConfigReader</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:31 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> diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 3519d1aa8..7d1753f74 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#l00641">641</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00669">669</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & 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#l00566">566</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#l00576">576</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00649">cache</a>, <a class="el" href="modules_8h-source.html#l00633">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00654">error</a>, <a class="el" href="modules_8h-source.html#l00650">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00653">readerror</a>. +References <a class="el" href="modules_8h-source.html#l00677">cache</a>, <a class="el" href="modules_8h-source.html#l00661">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00682">error</a>, <a class="el" href="modules_8h-source.html#l00678">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00681">readerror</a>. <p> -<div class="fragment"><pre>00567 { -00568 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00569 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00570 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00571 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00572 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a25">CONF_FILE_NOT_FOUND</a>; -00573 } +<div class="fragment"><pre>00577 { +00578 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00579 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00580 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00581 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00582 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a25">CONF_FILE_NOT_FOUND</a>; +00583 } </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#l00585">585</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#l00595">595</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00649">cache</a>, <a class="el" href="modules_8h-source.html#l00633">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00654">error</a>, <a class="el" href="modules_8h-source.html#l00650">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00653">readerror</a>. +References <a class="el" href="modules_8h-source.html#l00677">cache</a>, <a class="el" href="modules_8h-source.html#l00661">CONF_FILE_NOT_FOUND</a>, <a class="el" href="modules_8h-source.html#l00682">error</a>, <a class="el" href="modules_8h-source.html#l00678">errorlog</a>, and <a class="el" href="modules_8h-source.html#l00681">readerror</a>. <p> -<div class="fragment"><pre>00586 { -00587 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00588 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00589 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); -00590 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00591 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a25">CONF_FILE_NOT_FOUND</a>; -00592 }; +<div class="fragment"><pre>00596 { +00597 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00598 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00599 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); +00600 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00601 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a25">CONF_FILE_NOT_FOUND</a>; +00602 }; </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#l00576">576</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#l00586">586</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00649">cache</a>, and <a class="el" href="modules_8h-source.html#l00650">errorlog</a>. +References <a class="el" href="modules_8h-source.html#l00677">cache</a>, and <a class="el" href="modules_8h-source.html#l00678">errorlog</a>. <p> -<div class="fragment"><pre>00577 { -00578 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) -00579 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; -00580 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) -00581 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; -00582 } +<div class="fragment"><pre>00587 { +00588 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) +00589 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; +00590 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) +00591 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; +00592 } </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#l00663">663</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00650">errorlog</a>, <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00102">userrec::nick</a>. -<p> -<div class="fragment"><pre>00664 { -00665 <span class="keywordflow">if</span> (bail) -00666 { -00667 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); -00668 exit(0); -00669 } -00670 <span class="keywordflow">else</span> -00671 { -00672 <span class="keywordtype">char</span> dataline[1024]; -00673 <span class="keywordflow">if</span> (user) -00674 { -00675 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00676 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00677 { -00678 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00679 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); -00680 } -00681 } -00682 <span class="keywordflow">else</span> -00683 { -00684 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00685 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00686 { -00687 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00688 WriteOpers(dataline); -00689 } -00690 } -00691 <span class="keywordflow">return</span>; -00692 } -00693 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00673">673</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00678">errorlog</a>, <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, and <a class="el" href="users_8h-source.html#l00102">userrec::nick</a>. +<p> +<div class="fragment"><pre>00674 { +00675 <span class="keywordflow">if</span> (bail) +00676 { +00677 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); +00678 exit(0); +00679 } +00680 <span class="keywordflow">else</span> +00681 { +00682 <span class="keywordtype">char</span> dataline[1024]; +00683 <span class="keywordflow">if</span> (user) +00684 { +00685 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00686 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00687 { +00688 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00689 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); +00690 } +00691 } +00692 <span class="keywordflow">else</span> +00693 { +00694 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00695 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00696 { +00697 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00698 WriteOpers(dataline); +00699 } +00700 } +00701 <span class="keywordflow">return</span>; +00702 } +00703 } </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#l00696">696</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#l00706">706</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00649">cache</a>. +References <a class="el" href="modules_8h-source.html#l00677">cache</a>. <p> -<div class="fragment"><pre>00697 { -00698 <span class="keywordflow">return</span> EnumConf(cache,tag.c_str()); -00699 } +<div class="fragment"><pre>00707 { +00708 <span class="keywordflow">return</span> EnumConf(cache,tag.c_str()); +00709 } </pre></div> </td> </tr> </table> @@ -353,13 +353,13 @@ Returns the number of items within a tag. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00701">701</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#l00711">711</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00649">cache</a>. +References <a class="el" href="modules_8h-source.html#l00677">cache</a>. <p> -<div class="fragment"><pre>00702 { -00703 <span class="keywordflow">return</span> EnumValues(cache, tag.c_str(), index); -00704 } +<div class="fragment"><pre>00712 { +00713 <span class="keywordflow">return</span> EnumValues(cache, tag.c_str(), index); +00714 } </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#l00656">656</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#l00666">666</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00654">error</a>. +References <a class="el" href="modules_8h-source.html#l00682">error</a>. <p> -<div class="fragment"><pre>00657 { -00658 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; -00659 this->error = 0; -00660 <span class="keywordflow">return</span> olderr; -00661 } +<div class="fragment"><pre>00667 { +00668 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; +00669 this->error = 0; +00670 <span class="keywordflow">return</span> olderr; +00671 } </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#l00610">610</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00649">cache</a>, <a class="el" href="modules_8h-source.html#l00632">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00654">error</a>. -<p> -<div class="fragment"><pre>00611 { -00612 <span class="keywordtype">char</span> val[MAXBUF]; -00613 <span class="keywordtype">char</span> t[MAXBUF]; -00614 <span class="keywordtype">char</span> n[MAXBUF]; -00615 strlcpy(t,tag.c_str(),MAXBUF); -00616 strlcpy(n,name.c_str(),MAXBUF); -00617 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); -00618 <span class="keywordflow">if</span> (!res) -00619 { -00620 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; -00621 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00622 } -00623 std::string s = val; -00624 <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>)); -00625 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00620">620</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00677">cache</a>, <a class="el" href="modules_8h-source.html#l00660">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00682">error</a>. +<p> +<div class="fragment"><pre>00621 { +00622 <span class="keywordtype">char</span> val[MAXBUF]; +00623 <span class="keywordtype">char</span> t[MAXBUF]; +00624 <span class="keywordtype">char</span> n[MAXBUF]; +00625 strlcpy(t,tag.c_str(),MAXBUF); +00626 strlcpy(n,name.c_str(),MAXBUF); +00627 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); +00628 <span class="keywordflow">if</span> (!res) +00629 { +00630 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; +00631 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00632 } +00633 std::string s = val; +00634 <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>)); +00635 } </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#l00627">627</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00649">cache</a>, <a class="el" href="modules_8h-source.html#l00630">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l00631">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l00632">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00654">error</a>. -<p> -<div class="fragment"><pre>00628 { -00629 <span class="keywordtype">char</span> val[MAXBUF]; -00630 <span class="keywordtype">char</span> t[MAXBUF]; -00631 <span class="keywordtype">char</span> n[MAXBUF]; -00632 strlcpy(t,tag.c_str(),MAXBUF); -00633 strlcpy(n,name.c_str(),MAXBUF); -00634 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); -00635 <span class="keywordflow">if</span> (!res) -00636 { -00637 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; -00638 <span class="keywordflow">return</span> 0; -00639 } -00640 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) -00641 { -00642 <span class="keywordflow">if</span> (!isdigit(val[i])) -00643 { -00644 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a22">CONF_NOT_A_NUMBER</a>; -00645 <span class="keywordflow">return</span> 0; -00646 } -00647 } -00648 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) -00649 { -00650 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a23">CONF_NOT_UNSIGNED</a>; -00651 <span class="keywordflow">return</span> 0; -00652 } -00653 <span class="keywordflow">return</span> atoi(val); -00654 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00637">637</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00677">cache</a>, <a class="el" href="modules_8h-source.html#l00658">CONF_NOT_A_NUMBER</a>, <a class="el" href="modules_8h-source.html#l00659">CONF_NOT_UNSIGNED</a>, <a class="el" href="modules_8h-source.html#l00660">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00682">error</a>. +<p> +<div class="fragment"><pre>00638 { +00639 <span class="keywordtype">char</span> val[MAXBUF]; +00640 <span class="keywordtype">char</span> t[MAXBUF]; +00641 <span class="keywordtype">char</span> n[MAXBUF]; +00642 strlcpy(t,tag.c_str(),MAXBUF); +00643 strlcpy(n,name.c_str(),MAXBUF); +00644 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); +00645 <span class="keywordflow">if</span> (!res) +00646 { +00647 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; +00648 <span class="keywordflow">return</span> 0; +00649 } +00650 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) +00651 { +00652 <span class="keywordflow">if</span> (!isdigit(val[i])) +00653 { +00654 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a22">CONF_NOT_A_NUMBER</a>; +00655 <span class="keywordflow">return</span> 0; +00656 } +00657 } +00658 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) +00659 { +00660 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a23">CONF_NOT_UNSIGNED</a>; +00661 <span class="keywordflow">return</span> 0; +00662 } +00663 <span class="keywordflow">return</span> atoi(val); +00664 } </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#l00594">594</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00649">cache</a>, <a class="el" href="modules_8h-source.html#l00632">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00654">error</a>. -<p> -<div class="fragment"><pre>00595 { -00596 <span class="keywordtype">char</span> val[MAXBUF]; -00597 <span class="keywordtype">char</span> t[MAXBUF]; -00598 <span class="keywordtype">char</span> n[MAXBUF]; -00599 strlcpy(t,tag.c_str(),MAXBUF); -00600 strlcpy(n,name.c_str(),MAXBUF); -00601 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); -00602 <span class="keywordflow">if</span> (!res) -00603 { -00604 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; -00605 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00606 } -00607 <span class="keywordflow">return</span> std::string(val); -00608 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00604">604</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00677">cache</a>, <a class="el" href="modules_8h-source.html#l00660">CONF_VALUE_NOT_FOUND</a>, and <a class="el" href="modules_8h-source.html#l00682">error</a>. +<p> +<div class="fragment"><pre>00605 { +00606 <span class="keywordtype">char</span> val[MAXBUF]; +00607 <span class="keywordtype">char</span> t[MAXBUF]; +00608 <span class="keywordtype">char</span> n[MAXBUF]; +00609 strlcpy(t,tag.c_str(),MAXBUF); +00610 strlcpy(n,name.c_str(),MAXBUF); +00611 <span class="keywordtype">int</span> res = ReadConf(cache,t,n,index,val); +00612 <span class="keywordflow">if</span> (!res) +00613 { +00614 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; +00615 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00616 } +00617 <span class="keywordflow">return</span> std::string(val); +00618 } </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#l00706">706</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#l00716">716</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00653">readerror</a>. +References <a class="el" href="modules_8h-source.html#l00681">readerror</a>. <p> -<div class="fragment"><pre>00707 { -00708 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; -00709 } +<div class="fragment"><pre>00717 { +00718 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; +00719 } </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#l00649">649</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#l00677">677</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#l00566">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00696">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00701">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00610">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00627">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00594">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00576">~ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00576">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00706">Enumerate()</a>, <a class="el" href="modules_8cpp-source.html#l00711">EnumerateValues()</a>, <a class="el" href="modules_8cpp-source.html#l00620">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00637">ReadInteger()</a>, <a class="el" href="modules_8cpp-source.html#l00604">ReadValue()</a>, and <a class="el" href="modules_8cpp-source.html#l00586">~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#l00566">ConfigReader( <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00654">654</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#l00682">682</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#l00566">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00656">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00610">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00627">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00594">ReadValue()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00576">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00666">GetError()</a>, <a class="el" href="modules_8cpp-source.html#l00620">ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00637">ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00604">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#l00566">ConfigReader( <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00650">650</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#l00678">678</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#l00566">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00663">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00576">~ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00576">ConfigReader()</a>, <a class="el" href="modules_8cpp-source.html#l00673">DumpErrors()</a>, and <a class="el" href="modules_8cpp-source.html#l00586">~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#l00653">653</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#l00681">681</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#l00566">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00706">Verify()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00576">ConfigReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00716">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 Fri Mar 25 03:49:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:31 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> diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index 4cf3b8c8c..7f3ae7910 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classConnectClass.html#o1">registration_timeout</a></td><td><a class="el" href="classConnectClass.html">ConnectClass</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classConnectClass.html#o0">type</a></td><td><a class="el" href="classConnectClass.html">ConnectClass</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:31 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> diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index dfddf30a3..c4b392ab6 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -221,7 +221,7 @@ Definition at line <a class="el" href="users_8h-source.html#l00050">50</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="users_8h-source.html">users.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:31 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> diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index 46a3151d2..d092081ca 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#o0">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#a1">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:31 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> diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index dfc401c96..b0d9c82ce 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -22,7 +22,7 @@ A subclass of <a class="el" href="classHostItem.html">HostItem</a> designed to h <p> Definition at line <a class="el" href="channels_8h-source.html#l00053">53</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:31 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> diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 357214dfb..8fc8f2cd5 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classExtMode.html#o2">params_when_on</a></td><td><a class="el" href="classExtMode.html">ExtMode</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classExtMode.html#o1">type</a></td><td><a class="el" href="classExtMode.html">ExtMode</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index a1703bdad..e05dcfe90 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -82,9 +82,11 @@ <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00190">190</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#l00197">197</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00190 : <a class="code" href="classExtMode.html#o0">modechar</a>(mc), <a class="code" href="classExtMode.html#o1">type</a>(ty), <a class="code" href="classExtMode.html#o4">needsoper</a>(oper), <a class="code" href="classExtMode.html#o2">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#o3">params_when_off</a>(p_off) { }; +References <a class="el" href="modules_8cpp-source.html#l00191">modechar</a>, <a class="el" href="modules_8cpp-source.html#l00195">needsoper</a>, <a class="el" href="modules_8cpp-source.html#l00194">params_when_off</a>, <a class="el" href="modules_8cpp-source.html#l00193">params_when_on</a>, and <a class="el" href="modules_8cpp-source.html#l00192">type</a>. +<p> +<div class="fragment"><pre>00197 : <a class="code" href="classExtMode.html#o0">modechar</a>(mc), <a class="code" href="classExtMode.html#o1">type</a>(ty), <a class="code" href="classExtMode.html#o4">needsoper</a>(oper), <a class="code" href="classExtMode.html#o2">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#o3">params_when_off</a>(p_off) { }; </pre></div> </td> </tr> </table> @@ -110,7 +112,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00190">190</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00189">189</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00196">196</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="o0" doxytag="ExtMode::modechar"></a><p> @@ -134,7 +136,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00189">189</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00184">184</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00191">191</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00197">ExtMode()</a>. </td> </tr> </table> <a name="o4" doxytag="ExtMode::needsoper"></a><p> @@ -158,7 +162,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00184">184</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00188">188</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00195">195</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00197">ExtMode()</a>. </td> </tr> </table> <a name="o3" doxytag="ExtMode::params_when_off"></a><p> @@ -182,7 +188,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00188">188</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00187">187</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00194">194</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00197">ExtMode()</a>. </td> </tr> </table> <a name="o2" doxytag="ExtMode::params_when_on"></a><p> @@ -206,7 +214,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00187">187</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00186">186</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00193">193</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00197">ExtMode()</a>. </td> </tr> </table> <a name="o1" doxytag="ExtMode::type"></a><p> @@ -230,12 +240,14 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00186">186</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00185">185</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00192">192</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +Referenced by <a class="el" href="modules_8cpp-source.html#l00197">ExtMode()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index 7c83ec3ac..2538417e9 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classExtensible.html#a2">GetExt</a>(std::string key)</td><td><a class="el" href="classExtensible.html">Extensible</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classExtensible.html#a1">Shrink</a>(std::string key)</td><td><a class="el" href="classExtensible.html">Extensible</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index f662fa5e3..9f13de16e 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -170,7 +170,7 @@ Definition at line <a class="el" href="base_8h-source.html#l00054">54</a> of fil </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="base_8h-source.html">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:31 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> diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index cb8bb55cb..8c4ad0498 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -17,7 +17,7 @@ <tr class="memlist"><td><a class="el" href="classFileReader.html#a3">LoadFile</a>(std::string filename)</td><td><a class="el" href="classFileReader.html">FileReader</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classFileReader.html#a2">~FileReader</a>()</td><td><a class="el" href="classFileReader.html">FileReader</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 952b8dcb8..5946a05bd 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -47,7 +47,7 @@ This class contains methods for read-only manipulation of a text file in memory. <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00730">730</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00758">758</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="FileReader::FileReader"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -77,10 +77,10 @@ Default constructor. <p> This method does not load any file into memory, you must use the LoadFile method after constructing the class this way. <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#l00729">729</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00720 { -00721 } +<div class="fragment"><pre>00730 { +00731 } </pre></div> </td> </tr> </table> @@ -114,15 +114,15 @@ Secondary constructor. <p> 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, <a class="el" href="classFileReader.html#a6">FileReader::FileSize</a> returns 0. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00712">712</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#l00722">722</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00732">fc</a>, and <a class="el" href="modules_8h-source.html#l00060">file_cache</a>. +References <a class="el" href="modules_8h-source.html#l00760">fc</a>, and <a class="el" href="modules_8h-source.html#l00060">file_cache</a>. <p> -<div class="fragment"><pre>00713 { -00714 <a class="code" href="modules_8h.html#a26">file_cache</a> c; -00715 readfile(c,filename.c_str()); -00716 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00717 } +<div class="fragment"><pre>00723 { +00724 <a class="code" href="modules_8h.html#a26">file_cache</a> c; +00725 readfile(c,filename.c_str()); +00726 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00727 } </pre></div> </td> </tr> </table> @@ -155,10 +155,10 @@ Default destructor. <p> This deletes the memory allocated to the file. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00731">731</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#l00741">741</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00732 { -00733 } +<div class="fragment"><pre>00742 { +00743 } </pre></div> </td> </tr> </table> @@ -192,20 +192,20 @@ Returns true if the file exists This function will return false if the file coul <p> <p> -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>. +Definition at line <a class="el" href="modules_8cpp-source.html#l00745">745</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00732">fc</a>. +References <a class="el" href="modules_8h-source.html#l00760">fc</a>. <p> -<div class="fragment"><pre>00736 { -00737 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) -00738 { -00739 <span class="keywordflow">return</span>(<span class="keyword">false</span>); -00740 } -00741 <span class="keywordflow">else</span> -00742 { -00743 <span class="keywordflow">return</span>(<span class="keyword">true</span>); -00744 } -00745 } +<div class="fragment"><pre>00746 { +00747 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) +00748 { +00749 <span class="keywordflow">return</span>(<span class="keyword">false</span>); +00750 } +00751 <span class="keywordflow">else</span> +00752 { +00753 <span class="keywordflow">return</span>(<span class="keyword">true</span>); +00754 } +00755 } </pre></div> </td> </tr> </table> @@ -238,13 +238,13 @@ Returns the size of the file in lines. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00754">754</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#l00732">fc</a>. +References <a class="el" href="modules_8h-source.html#l00760">fc</a>. <p> -<div class="fragment"><pre>00755 { -00756 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); -00757 } +<div class="fragment"><pre>00765 { +00766 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); +00767 } </pre></div> </td> </tr> </table> @@ -278,15 +278,15 @@ Retrieve one line from the file. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00747">747</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#l00757">757</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00732">fc</a>. +References <a class="el" href="modules_8h-source.html#l00760">fc</a>. <p> -<div class="fragment"><pre>00748 { -00749 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) -00750 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00751 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; -00752 } +<div class="fragment"><pre>00758 { +00759 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) +00760 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00761 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; +00762 } </pre></div> </td> </tr> </table> @@ -320,15 +320,15 @@ Used to load a file. <p> 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, <a class="el" href="classFileReader.html#a6">FileReader::FileSize</a> returns 0. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00723">723</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#l00733">733</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00732">fc</a>, and <a class="el" href="modules_8h-source.html#l00060">file_cache</a>. +References <a class="el" href="modules_8h-source.html#l00760">fc</a>, and <a class="el" href="modules_8h-source.html#l00060">file_cache</a>. <p> -<div class="fragment"><pre>00724 { -00725 <a class="code" href="modules_8h.html#a26">file_cache</a> c; -00726 readfile(c,filename.c_str()); -00727 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00728 } +<div class="fragment"><pre>00734 { +00735 <a class="code" href="modules_8h.html#a26">file_cache</a> c; +00736 readfile(c,filename.c_str()); +00737 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00738 } </pre></div> </td> </tr> </table> @@ -354,14 +354,14 @@ References <a class="el" href="modules_8h-source.html#l00732">fc</a>, and <a cla <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00732">732</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#l00760">760</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#l00735">Exists()</a>, <a class="el" href="modules_8cpp-source.html#l00712">FileReader()</a>, <a class="el" href="modules_8cpp-source.html#l00754">FileSize()</a>, <a class="el" href="modules_8cpp-source.html#l00747">GetLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00723">LoadFile()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00745">Exists()</a>, <a class="el" href="modules_8cpp-source.html#l00722">FileReader()</a>, <a class="el" href="modules_8cpp-source.html#l00764">FileSize()</a>, <a class="el" href="modules_8cpp-source.html#l00757">GetLine()</a>, and <a class="el" href="modules_8cpp-source.html#l00733">LoadFile()</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 Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index 10f04a3b2..6e5a3a953 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index 4a6997d0d..7807b5521 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -53,7 +53,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00079">79</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index 61a0e1b7e..fbfa88a7d 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#o0">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#a1">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index 1c687d73b..4fe3c5c7f 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -178,7 +178,7 @@ Definition at line <a class="el" href="channels_8h-source.html#l00032">32</a> of </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index 49a5d25c7..d03ff8f13 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classHostItem.html#o0">set_time</a></td><td><a class="el" href="classHostItem.html">HostItem</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classHostItem.html#a1">~HostItem</a>()</td><td><a class="el" href="classHostItem.html">HostItem</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 8cde5b7aa..0c016a8ee 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -22,7 +22,7 @@ A subclass of <a class="el" href="classHostItem.html">HostItem</a> designed to h <p> Definition at line <a class="el" href="channels_8h-source.html#l00061">61</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index 44fcd5d19..277de4e36 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -10,7 +10,7 @@ <tr class="memlist"><td><a class="el" href="classInvited.html#o0">channel</a></td><td><a class="el" href="classInvited.html">Invited</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a0">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 7847153fd..bcced83fa 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -47,12 +47,12 @@ Definition at line <a class="el" href="users_8h-source.html#l00036">36</a> of fi <p> Definition at line <a class="el" href="users_8h-source.html#l00039">39</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00080">userrec::InviteTo()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00082">userrec::InviteTo()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="users_8h-source.html">users.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index 9cc27d5ff..6661c6f53 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -15,7 +15,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:33 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> diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index e598f95bb..70a5960a2 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -53,7 +53,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00068">68</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:33 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> diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index 8ab7a86cb..dec115b76 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -12,7 +12,7 @@ <tr class="memlist"><td><a class="el" href="classModeParameter.html#o0">mode</a></td><td><a class="el" href="classModeParameter.html">ModeParameter</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classModeParameter.html#o1">parameter</a></td><td><a class="el" href="classModeParameter.html">ModeParameter</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:33 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> diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index fbd3c3409..455853ffc 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -53,7 +53,7 @@ Definition at line <a class="el" href="channels_8h-source.html#l00070">70</a> of <p> Definition at line <a class="el" href="channels_8h-source.html#l00075">75</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00147">chanrec::SetCustomModeParam()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00148">chanrec::SetCustomModeParam()</a>. </td> </tr> </table> <a name="o0" doxytag="ModeParameter::mode"></a><p> @@ -79,7 +79,7 @@ Referenced by <a class="el" href="channels_8cpp-source.html#l00147">chanrec::Set <p> Definition at line <a class="el" href="channels_8h-source.html#l00073">73</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00147">chanrec::SetCustomModeParam()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00148">chanrec::SetCustomModeParam()</a>. </td> </tr> </table> <a name="o1" doxytag="ModeParameter::parameter"></a><p> @@ -105,12 +105,12 @@ Referenced by <a class="el" href="channels_8cpp-source.html#l00147">chanrec::Set <p> Definition at line <a class="el" href="channels_8h-source.html#l00074">74</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00147">chanrec::SetCustomModeParam()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00148">chanrec::SetCustomModeParam()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:33 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> diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index b015aa959..de4846ebd 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -10,10 +10,13 @@ <tr class="memlist"><td><a class="el" href="classclassbase.html#a0">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a2">GetVersion</a>()</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a0">Module</a>()</td><td><a class="el" href="classModule.html">Module</a></td><td></td></tr> + <tr class="memlist"><td><a class="el" href="classModule.html#a23">On005Numeric</a>(std::string &output)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a20">OnAccessCheck</a>(userrec *source, userrec *dest, chanrec *channel, int access_type)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a22">OnChannelSync</a>(chanrec *chan)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a11">OnExtendedMode</a>(userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a14">OnInfo</a>(userrec *user)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classModule.html#a24">OnKill</a>(userrec *source, userrec *dest, std::string reason)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classModule.html#a25">OnLoadModule</a>(Module *mod, std::string name)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a13">OnOper</a>(userrec *user)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a8">OnPacketReceive</a>(char *p)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a7">OnPacketTransmit</a>(char *p)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> @@ -32,7 +35,7 @@ <tr class="memlist"><td><a class="el" href="classModule.html#a15">OnWhois</a>(userrec *source, userrec *dest)</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModule.html#a1">~Module</a>()</td><td><a class="el" href="classModule.html">Module</a></td><td><code> [virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:33 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:35 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> diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index c32b72a62..77faa7fb8 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -84,6 +84,15 @@ Inherits <a class="el" href="classclassbase.html">classbase</a>. <tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="modules_8h.html#a27">string_list</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a22">OnChannelSync</a> (<a class="el" href="classchanrec.html">chanrec</a> *chan)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Called during a netburst to sync channel data. </em> <a href="#a22"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a23">On005Numeric</a> (std::string &output)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a 005 numeric is about to be output. </em> <a href="#a23"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual int </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a24">OnKill</a> (<a class="el" href="classuserrec.html">userrec</a> *source, <a class="el" href="classuserrec.html">userrec</a> *dest, std::string reason)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called when a client is disconnected by KILL. </em> <a href="#a24"></a><em><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classModule.html#a25">OnLoadModule</a> (<a class="el" href="classModule.html">Module</a> *mod, std::string name)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Called whenever a module is loaded. </em> <a href="#a25"></a><em><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Base class for all InspIRCd modules This class is the base class for InspIRCd modules. @@ -122,9 +131,9 @@ Default constructor creates a module class. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00297">297</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#l00304">304</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00297 { } +<div class="fragment"><pre>00304 { } </pre></div> </td> </tr> </table> @@ -157,9 +166,9 @@ Default destructor destroys a module class. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00298">298</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#l00305">305</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00298 { } +<div class="fragment"><pre>00305 { } </pre></div> </td> </tr> </table> @@ -193,9 +202,45 @@ Returns the version number of a Module. <p> The method should return a <a class="el" href="classVersion.html">Version</a> object with its version information assigned via <a class="el" href="classVersion.html#a0">Version::Version</a> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00309">309</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#l00316">316</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00316 { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0); } +</pre></div> </td> + </tr> +</table> +<a name="a23" doxytag="Module::On005Numeric"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void Module::On005Numeric </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>output</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Called when a 005 numeric is about to be output. +<p> +The module should modify the 005 numeric if needed to indicate its features. +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00327">327</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00309 { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0); } +<div class="fragment"><pre>00327 { }; </pre></div> </td> </tr> </table> @@ -262,11 +307,11 @@ This function is called before many functions which check a users status on a ch <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). <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00317">317</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#l00324">324</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="modules_8h-source.html#l00037">ACR_DEFAULT</a>. <p> -<div class="fragment"><pre>00317 { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#a8">ACR_DEFAULT</a>; }; +<div class="fragment"><pre>00324 { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#a8">ACR_DEFAULT</a>; }; </pre></div> </td> </tr> </table> @@ -300,11 +345,11 @@ Called during a netburst to sync channel data. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00319">319</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#l00326">326</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="modules_8h-source.html#l00061">string_list</a>. <p> -<div class="fragment"><pre>00319 { <a class="code" href="modules_8h.html#a27">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<div class="fragment"><pre>00326 { <a class="code" href="modules_8h.html#a27">string_list</a> empty; <span class="keywordflow">return</span> empty; } </pre></div> </td> </tr> </table> @@ -371,9 +416,9 @@ Called whenever an extended mode is to be processed. <p> 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 <a class="el" href="classServer.html#a21">Server::AddExtendedMode</a> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00308">308</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#l00315">315</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00308 { <span class="keywordflow">return</span> <span class="keyword">false</span>; } +<div class="fragment"><pre>00315 { <span class="keywordflow">return</span> <span class="keyword">false</span>; } </pre></div> </td> </tr> </table> @@ -408,9 +453,105 @@ 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:<p> <nick> :information here <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00311">311</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#l00318">318</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00318 { }; +</pre></div> </td> + </tr> +</table> +<a name="a24" doxytag="Module::OnKill"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> int Module::OnKill </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td> + <td class="mdname" nowrap> <em>source</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classuserrec.html">userrec</a> * </td> + <td class="mdname" nowrap> <em>dest</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>reason</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + <p> -<div class="fragment"><pre>00311 { }; +Called when a client is disconnected by KILL. +<p> +If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers. If you do so youre risking race conditions, desyncs and worse! +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00328">328</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00328 { <span class="keywordflow">return</span> 0; }; +</pre></div> </td> + </tr> +</table> +<a name="a25" doxytag="Module::OnLoadModule"></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void Module::OnLoadModule </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classModule.html">Module</a> * </td> + <td class="mdname" nowrap> <em>mod</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>name</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Called whenever a module is loaded. +<p> +mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded "m_killwidgets.so" with "m_makewidgets.so". It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module). +<p> +Definition at line <a class="el" href="modules_8cpp-source.html#l00329">329</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00329 { }; </pre></div> </td> </tr> </table> @@ -444,9 +585,9 @@ Called whenever a user opers locally. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00310">310</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#l00317">317</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00310 { }; +<div class="fragment"><pre>00317 { }; </pre></div> </td> </tr> </table> @@ -480,9 +621,9 @@ Called after a packet is received from another irc server. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00304">304</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#l00311">311</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00304 { } +<div class="fragment"><pre>00311 { } </pre></div> </td> </tr> </table> @@ -516,9 +657,9 @@ Called before a packet is transmitted across the irc network between two irc ser <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00303">303</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#l00310">310</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00303 { } +<div class="fragment"><pre>00310 { } </pre></div> </td> </tr> </table> @@ -551,9 +692,9 @@ Called on rehash. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00305">305</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#l00312">312</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00305 { } +<div class="fragment"><pre>00312 { } </pre></div> </td> </tr> </table> @@ -602,9 +743,9 @@ Called when a raw command is transmitted or received. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00306">306</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#l00313">313</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00306 { } +<div class="fragment"><pre>00313 { } </pre></div> </td> </tr> </table> @@ -638,9 +779,9 @@ Called when a user connects. <p> The details of the connecting user are available to you in the parameter userrec *user <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00299">299</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#l00306">306</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00299 { } +<div class="fragment"><pre>00306 { } </pre></div> </td> </tr> </table> @@ -683,9 +824,9 @@ Called when a user joins a channel. <p> 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 *channel <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00301">301</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#l00308">308</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00301 { } +<div class="fragment"><pre>00308 { } </pre></div> </td> </tr> </table> @@ -728,9 +869,9 @@ Called when a user parts a channel. <p> 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 *channel <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00302">302</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#l00309">309</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00302 { } +<div class="fragment"><pre>00309 { } </pre></div> </td> </tr> </table> @@ -779,9 +920,9 @@ Called whenever a user is about to invite another user into a channel, before an <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00313">313</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#l00320">320</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00313 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00320 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> @@ -832,9 +973,9 @@ Returning a value of 1 from this function stops the process immediately, causing IMPORTANT NOTE!<p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00307">307</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#l00314">314</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00307 { <span class="keywordflow">return</span> 0; } +<div class="fragment"><pre>00314 { <span class="keywordflow">return</span> 0; } </pre></div> </td> </tr> </table> @@ -889,9 +1030,9 @@ Called whenever a user is about to PRIVMSG A user or a channel, before any proce <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00314">314</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#l00321">321</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00314 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00321 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> @@ -934,9 +1075,9 @@ Called before any nickchange, local or remote. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00316">316</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#l00323">323</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00316 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00323 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> @@ -991,9 +1132,9 @@ Called whenever a user is about to NOTICE A user or a channel, before any proces <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00315">315</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#l00322">322</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00315 { <span class="keywordflow">return</span> 0; }; +<div class="fragment"><pre>00322 { <span class="keywordflow">return</span> 0; }; </pre></div> </td> </tr> </table> @@ -1027,9 +1168,9 @@ Called when a user quits. <p> The details of the exiting user are available to you in the parameter userrec *user <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00300">300</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#l00307">307</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00300 { } +<div class="fragment"><pre>00307 { } </pre></div> </td> </tr> </table> @@ -1063,11 +1204,11 @@ Called during a netburst to sync user data. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00318">318</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#l00325">325</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="modules_8h-source.html#l00061">string_list</a>. <p> -<div class="fragment"><pre>00318 { <a class="code" href="modules_8h.html#a27">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<div class="fragment"><pre>00325 { <a class="code" href="modules_8h.html#a27">string_list</a> empty; <span class="keywordflow">return</span> empty; } </pre></div> </td> </tr> </table> @@ -1110,15 +1251,15 @@ Called whenever a /WHOIS is performed on a local user. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00312">312</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#l00319">319</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00312 { }; +<div class="fragment"><pre>00319 { }; </pre></div> </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 Fri Mar 25 03:49:33 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:35 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> diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 9b33b9882..85e352377 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -12,7 +12,7 @@ <tr class="memlist"><td><a class="el" href="classModuleFactory.html#a0">ModuleFactory</a>()</td><td><a class="el" href="classModuleFactory.html">ModuleFactory</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classModuleFactory.html#a1">~ModuleFactory</a>()</td><td><a class="el" href="classModuleFactory.html">ModuleFactory</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:33 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:35 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> diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 800132b55..0f99e84b9 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -30,7 +30,7 @@ This is to allow for modules to create many different variants of <a class="el" <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00785">785</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00813">813</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="ModuleFactory::ModuleFactory"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -58,9 +58,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l00785">785</a> of <p> <p> -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>. +Definition at line <a class="el" href="modules_8h-source.html#l00816">816</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -<div class="fragment"><pre>00788 { } +<div class="fragment"><pre>00816 { } </pre></div> </td> </tr> </table> @@ -91,9 +91,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l00788">788</a> of <p> <p> -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>. +Definition at line <a class="el" href="modules_8h-source.html#l00817">817</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. <p> -<div class="fragment"><pre>00789 { } +<div class="fragment"><pre>00817 { } </pre></div> </td> </tr> </table> @@ -130,7 +130,7 @@ Your inherited class of ModuleFactory must return a pointer to your <a class="el </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="modules_8h-source.html">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:33 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:35 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> diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 6af3255e2..0ee019a8f 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:33 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:35 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> diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index 94ef272f0..ef942cfdd 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -82,7 +82,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00105">105</a> of f </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:33 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:35 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> diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 62a281904..0699637a1 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -45,7 +45,7 @@ <tr class="memlist"><td><a class="el" href="classServer.html#a0">Server</a>()</td><td><a class="el" href="classServer.html">Server</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classServer.html#a1">~Server</a>()</td><td><a class="el" href="classServer.html">Server</a></td><td><code> [virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:37 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> diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 3f90b0048..1ba57adea 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -131,7 +131,7 @@ All modules should instantiate at least one copy of this class, and use its memb <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00337">337</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> +Definition at line <a class="el" href="modules_8h-source.html#l00365">365</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>.<hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Server::Server"></a><p> <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> @@ -161,10 +161,10 @@ Default constructor. <p> Creates a Server object. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00326">326</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#l00336">336</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00327 { -00328 } +<div class="fragment"><pre>00337 { +00338 } </pre></div> </td> </tr> </table> @@ -197,10 +197,10 @@ Default destructor. <p> Destroys a Server object. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00330">330</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#l00340">340</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00331 { -00332 } +<div class="fragment"><pre>00341 { +00342 } </pre></div> </td> </tr> </table> @@ -258,13 +258,13 @@ This allows modules to add extra commands into the command table. You must place typedef void (handlerfunc) (char**, int, userrec*); ... void <a class="el" href="commands_8h.html#a5">handle_kill(char **parameters, int pcnt, userrec *user)</a><p> 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'. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00407">407</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#l00417">417</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="modules_8h.html#a30">createcommand()</a>. <p> -<div class="fragment"><pre>00408 { -00409 <a class="code" href="modules_8h.html#a30">createcommand</a>(cmd,f,flags,minparams); -00410 } +<div class="fragment"><pre>00418 { +00419 <a class="code" href="modules_8h.html#a30">createcommand</a>(cmd,f,flags,minparams); +00420 } </pre></div> </td> </tr> </table> @@ -303,16 +303,16 @@ This call is used to implement modes like +q and +a. The characteristics of thes (4) The mode and its parameter are NOT stored in the channels modes structure<p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00552">552</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#l00562">562</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00266">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00276">ModeMakeList()</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>. +References <a class="el" href="modules_8cpp-source.html#l00273">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00283">ModeMakeList()</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>. <p> -<div class="fragment"><pre>00553 { -00554 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#a56">DoAddExtendedMode</a>(modechar,MT_CHANNEL,<span class="keyword">false</span>,1,1); -00555 <span class="keywordflow">if</span> (res) -00556 <a class="code" href="modules_8cpp.html#a57">ModeMakeList</a>(modechar); -00557 <span class="keywordflow">return</span> res; -00558 } +<div class="fragment"><pre>00563 { +00564 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#a56">DoAddExtendedMode</a>(modechar,MT_CHANNEL,<span class="keyword">false</span>,1,1); +00565 <span class="keywordflow">if</span> (res) +00566 <a class="code" href="modules_8cpp.html#a57">ModeMakeList</a>(modechar); +00567 <span class="keywordflow">return</span> res; +00568 } </pre></div> </td> </tr> </table> @@ -373,28 +373,28 @@ Adds an extended mode letter which is parsed by a module. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00532">532</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00266">DoAddExtendedMode()</a>, <a class="el" href="modules_8h-source.html#l00032">MT_CLIENT</a>, and <a class="el" href="modules_8h-source.html#l00033">MT_SERVER</a>. -<p> -<div class="fragment"><pre>00533 { -00534 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#a7">MT_SERVER</a>) -00535 { -00536 log(DEBUG,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); -00537 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00538 } -00539 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#a6">MT_CLIENT</a>)) -00540 { -00541 log(DEBUG,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); -00542 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00543 } -00544 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) +Definition at line <a class="el" href="modules_8cpp-source.html#l00542">542</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00273">DoAddExtendedMode()</a>, <a class="el" href="modules_8h-source.html#l00032">MT_CLIENT</a>, and <a class="el" href="modules_8h-source.html#l00033">MT_SERVER</a>. +<p> +<div class="fragment"><pre>00543 { +00544 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#a7">MT_SERVER</a>) 00545 { -00546 log(DEBUG,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); +00546 log(DEBUG,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); 00547 <span class="keywordflow">return</span> <span class="keyword">false</span>; 00548 } -00549 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#a56">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); -00550 } +00549 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#a6">MT_CLIENT</a>)) +00550 { +00551 log(DEBUG,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); +00552 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00553 } +00554 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) +00555 { +00556 log(DEBUG,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); +00557 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00558 } +00559 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#a56">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); +00560 } </pre></div> </td> </tr> </table> @@ -450,11 +450,11 @@ Calls the handler for a command, either implemented by the core or by another mo You can use this function to trigger other commands in the ircd, such as PRIVMSG, JOIN, KICK etc, or even as a method of callback. By defining command names that are untypeable for users on irc (e.g. those which contain a or <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 <a class="el" href="classServer.html#a23">AddCommand()</a>. 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00397">397</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#l00407">407</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00398 { -00399 call_handler(commandname.c_str(),parameters,pcnt,user); -00400 } +<div class="fragment"><pre>00408 { +00409 call_handler(commandname.c_str(),parameters,pcnt,user); +00410 } </pre></div> </td> </tr> </table> @@ -497,13 +497,13 @@ Change GECOS (fullname) of a user. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00485">485</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#l00495">495</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a10">ChangeName()</a>. <p> -<div class="fragment"><pre>00486 { -00487 <a class="code" href="message_8h.html#a10">ChangeName</a>(user,gecos.c_str()); -00488 } +<div class="fragment"><pre>00496 { +00497 <a class="code" href="message_8h.html#a10">ChangeName</a>(user,gecos.c_str()); +00498 } </pre></div> </td> </tr> </table> @@ -546,13 +546,13 @@ Change displayed hostname of a user. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00480">480</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#l00490">490</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a11">ChangeDisplayedHost()</a>. <p> -<div class="fragment"><pre>00481 { -00482 <a class="code" href="message_8h.html#a11">ChangeDisplayedHost</a>(user,host.c_str()); -00483 } +<div class="fragment"><pre>00491 { +00492 <a class="code" href="message_8h.html#a11">ChangeDisplayedHost</a>(user,host.c_str()); +00493 } </pre></div> </td> </tr> </table> @@ -595,11 +595,11 @@ Forces a user nickchange. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00381">381</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#l00391">391</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00382 { -00383 force_nickchange(user,nickname.c_str()); -00384 } +<div class="fragment"><pre>00392 { +00393 force_nickchange(user,nickname.c_str()); +00394 } </pre></div> </td> </tr> </table> @@ -642,13 +642,13 @@ Attempts to look up a user's privilages on a channel. <p> This function will return a string containing either @, , +, or an empty string, representing the user's privilages upon the channel you specify. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00505">505</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#l00515">515</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a14">cmode()</a>. <p> -<div class="fragment"><pre>00506 { -00507 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a14">cmode</a>(User,Chan); -00508 } +<div class="fragment"><pre>00516 { +00517 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a14">cmode</a>(User,Chan); +00518 } </pre></div> </td> </tr> </table> @@ -691,13 +691,13 @@ Returns true if two users share a common channel. <p> This method is used internally by the NICK and QUIT commands, and the <a class="el" href="classServer.html#a10">Server::SendCommon</a> method. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00458">458</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#l00468">468</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a0">common_channels()</a>. <p> -<div class="fragment"><pre>00459 { -00460 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a0">common_channels</a>(u1,u2) != 0); -00461 } +<div class="fragment"><pre>00469 { +00470 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a0">common_channels</a>(u1,u2) != 0); +00471 } </pre></div> </td> </tr> </table> @@ -731,11 +731,11 @@ Returns a count of the number of users on a channel. <p> This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00560">560</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#l00570">570</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00561 { -00562 <span class="keywordflow">return</span> usercount(c); -00563 } +<div class="fragment"><pre>00571 { +00572 <span class="keywordflow">return</span> usercount(c); +00573 } </pre></div> </td> </tr> </table> @@ -769,11 +769,11 @@ Attempts to look up a channel and return a pointer to it. <p> This function will return NULL if the channel does not exist. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00500">500</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#l00510">510</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00501 { -00502 <span class="keywordflow">return</span> FindChan(channel.c_str()); -00503 } +<div class="fragment"><pre>00511 { +00512 <span class="keywordflow">return</span> FindChan(channel.c_str()); +00513 } </pre></div> </td> </tr> </table> @@ -807,11 +807,11 @@ Attempts to look up a nick and return a pointer to it. <p> This function will return NULL if the nick does not exist. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00495">495</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#l00505">505</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00496 { -00497 <span class="keywordflow">return</span> Find(nick); -00498 } +<div class="fragment"><pre>00506 { +00507 <span class="keywordflow">return</span> Find(nick); +00508 } </pre></div> </td> </tr> </table> @@ -844,11 +844,11 @@ Returns the information of the server as returned by the /ADMIN command. <p> See the <a class="el" href="classAdmin.html">Admin</a> class for further information of the return value. The members <a class="el" href="classAdmin.html#o2">Admin::Nick</a>, <a class="el" href="classAdmin.html#o1">Admin::Email</a> and <a class="el" href="classAdmin.html#o0">Admin::Name</a> contain the information for the server where the module is loaded. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00525">525</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#l00535">535</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00526 { -00527 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); -00528 } +<div class="fragment"><pre>00536 { +00537 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); +00538 } </pre></div> </td> </tr> </table> @@ -881,11 +881,11 @@ Returns the network name, global to all linked servers. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00520">520</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#l00530">530</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00521 { -00522 <span class="keywordflow">return</span> getnetworkname(); -00523 } +<div class="fragment"><pre>00531 { +00532 <span class="keywordflow">return</span> getnetworkname(); +00533 } </pre></div> </td> </tr> </table> @@ -918,11 +918,11 @@ Returns the server name of the server where the module is loaded. <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00515">515</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#l00525">525</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00516 { -00517 <span class="keywordflow">return</span> getservername(); -00518 } +<div class="fragment"><pre>00526 { +00527 <span class="keywordflow">return</span> getservername(); +00528 } </pre></div> </td> </tr> </table> @@ -956,28 +956,28 @@ Fetches the userlist of a channel. <p> This function must be here and not a member of userrec or chanrec due to include constraints. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00362">362</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -References <a class="el" href="modules_8h-source.html#l00065">chanuserlist</a>, <a class="el" href="modules_8cpp-source.html#l00170">clientlist</a>, <a class="el" href="message_8h.html#a16">has_channel()</a>, and <a class="el" href="message_8h.html#a13">isnick()</a>. -<p> -<div class="fragment"><pre>00363 { -00364 <a class="code" href="modules_8h.html#a28">chanuserlist</a> userl; -00365 userl.clear(); -00366 <span class="keywordflow">for</span> (user_hash::const_iterator i = <a class="code" href="modules_8cpp.html#a41">clientlist</a>.begin(); i != <a class="code" href="modules_8cpp.html#a41">clientlist</a>.end(); i++) -00367 { -00368 <span class="keywordflow">if</span> (i->second) -00369 { -00370 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a16">has_channel</a>(i->second,chan)) -00371 { -00372 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a13">isnick</a>(i->second->nick)) -00373 { -00374 userl.push_back(i->second); -00375 } -00376 } -00377 } -00378 } -00379 <span class="keywordflow">return</span> userl; -00380 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00372">372</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +References <a class="el" href="modules_8h-source.html#l00065">chanuserlist</a>, <a class="el" href="modules_8cpp-source.html#l00177">clientlist</a>, <a class="el" href="message_8h.html#a16">has_channel()</a>, and <a class="el" href="message_8h.html#a13">isnick()</a>. +<p> +<div class="fragment"><pre>00373 { +00374 <a class="code" href="modules_8h.html#a28">chanuserlist</a> userl; +00375 userl.clear(); +00376 <span class="keywordflow">for</span> (user_hash::const_iterator i = <a class="code" href="modules_8cpp.html#a41">clientlist</a>.begin(); i != <a class="code" href="modules_8cpp.html#a41">clientlist</a>.end(); i++) +00377 { +00378 <span class="keywordflow">if</span> (i->second) +00379 { +00380 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a16">has_channel</a>(i->second,chan)) +00381 { +00382 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a13">isnick</a>(i->second->nick)) +00383 { +00384 userl.push_back(i->second); +00385 } +00386 } +00387 } +00388 } +00389 <span class="keywordflow">return</span> userl; +00390 } </pre></div> </td> </tr> </table> @@ -1011,13 +1011,13 @@ Returns true if a nick is valid. <p> Nicks for unregistered connections will return false. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00490">490</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#l00500">500</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a13">isnick()</a>. <p> -<div class="fragment"><pre>00491 { -00492 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a13">isnick</a>(nick.c_str()) != 0); -00493 } +<div class="fragment"><pre>00501 { +00502 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a13">isnick</a>(nick.c_str()) != 0); +00503 } </pre></div> </td> </tr> </table> @@ -1060,13 +1060,13 @@ Checks if a user is on a channel. <p> This function will return true or false to indicate if user 'User' is on channel 'Chan'. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00510">510</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#l00520">520</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="message_8h.html#a16">has_channel()</a>. <p> -<div class="fragment"><pre>00511 { -00512 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a16">has_channel</a>(User,Chan); -00513 } +<div class="fragment"><pre>00521 { +00522 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a16">has_channel</a>(User,Chan); +00523 } </pre></div> </td> </tr> </table> @@ -1100,13 +1100,13 @@ Returns true if the servername you give is ulined. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00392">392</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#l00402">402</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="commands_8h.html#a71">is_uline()</a>. <p> -<div class="fragment"><pre>00393 { -00394 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a71">is_uline</a>(server.c_str()); -00395 } +<div class="fragment"><pre>00403 { +00404 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a71">is_uline</a>(server.c_str()); +00405 } </pre></div> </td> </tr> </table> @@ -1155,11 +1155,11 @@ Forces a user to join a channel. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00352">352</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#l00362">362</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00353 { -00354 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">true</span>); -00355 } +<div class="fragment"><pre>00363 { +00364 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">true</span>); +00365 } </pre></div> </td> </tr> </table> @@ -1202,11 +1202,11 @@ Writes a log string. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00402">402</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#l00412">412</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00403 { -00404 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); -00405 } +<div class="fragment"><pre>00413 { +00414 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); +00415 } </pre></div> </td> </tr> </table> @@ -1249,14 +1249,14 @@ Matches text against a glob pattern. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00339">339</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#l00349">349</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00340 { -00341 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; -00342 strlcpy(literal,sliteral.c_str(),MAXBUF); -00343 strlcpy(pattern,spattern.c_str(),MAXBUF); -00344 <span class="keywordflow">return</span> match(literal,pattern); -00345 } +<div class="fragment"><pre>00350 { +00351 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; +00352 strlcpy(literal,sliteral.c_str(),MAXBUF); +00353 strlcpy(pattern,spattern.c_str(),MAXBUF); +00354 <span class="keywordflow">return</span> match(literal,pattern); +00355 } </pre></div> </td> </tr> </table> @@ -1305,11 +1305,11 @@ Forces a user to part a channel. <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00357">357</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#l00367">367</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00358 { -00359 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); -00360 } +<div class="fragment"><pre>00368 { +00369 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); +00370 } </pre></div> </td> </tr> </table> @@ -1354,14 +1354,14 @@ To the user, it will appear as if they typed /QUIT themselves, except for the fa WARNING!<p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00386">386</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#l00396">396</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="users_8h-source.html#l00102">userrec::nick</a>, and <a class="el" href="message_8h.html#a19">send_network_quit()</a>. <p> -<div class="fragment"><pre>00387 { -00388 <a class="code" href="message_8h.html#a19">send_network_quit</a>(user-><a class="code" href="classuserrec.html#o0">nick</a>,reason.c_str()); -00389 kill_link(user,reason.c_str()); -00390 } +<div class="fragment"><pre>00397 { +00398 <a class="code" href="message_8h.html#a19">send_network_quit</a>(user-><a class="code" href="classuserrec.html#o0">nick</a>,reason.c_str()); +00399 kill_link(user,reason.c_str()); +00400 } </pre></div> </td> </tr> </table> @@ -1404,11 +1404,11 @@ Sends a line of text down a TCP/IP socket. <p> This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00417">417</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#l00427">427</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00418 { -00419 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); -00420 } +<div class="fragment"><pre>00428 { +00429 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00430 } </pre></div> </td> </tr> </table> @@ -1463,18 +1463,18 @@ Sends text from a user to a channel (mulicast). <p> 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). <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00446">446</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -<div class="fragment"><pre>00447 { -00448 <span class="keywordflow">if</span> (IncludeSender) -00449 { -00450 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00451 } -00452 <span class="keywordflow">else</span> -00453 { -00454 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00455 } -00456 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00456">456</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00457 { +00458 <span class="keywordflow">if</span> (IncludeSender) +00459 { +00460 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00461 } +00462 <span class="keywordflow">else</span> +00463 { +00464 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00465 } +00466 } </pre></div> </td> </tr> </table> @@ -1523,18 +1523,18 @@ Sends text from a user to one or more channels (mulicast). <p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00463">463</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. -<p> -<div class="fragment"><pre>00464 { -00465 <span class="keywordflow">if</span> (IncludeSender) -00466 { -00467 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00468 } -00469 <span class="keywordflow">else</span> -00470 { -00471 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00472 } -00473 } +Definition at line <a class="el" href="modules_8cpp-source.html#l00473">473</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. +<p> +<div class="fragment"><pre>00474 { +00475 <span class="keywordflow">if</span> (IncludeSender) +00476 { +00477 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00478 } +00479 <span class="keywordflow">else</span> +00480 { +00481 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00482 } +00483 } </pre></div> </td> </tr> </table> @@ -1583,11 +1583,11 @@ Sends text from a user to a socket. <p> 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) <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00427">427</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#l00437">437</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00428 { -00429 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00430 } +<div class="fragment"><pre>00438 { +00439 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00440 } </pre></div> </td> </tr> </table> @@ -1643,13 +1643,13 @@ modes[2] = user->nick;<p> Srv->SendMode(modes,3,user);<p> 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! <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00412">412</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#l00422">422</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="modules_8h.html#a31">server_mode()</a>. <p> -<div class="fragment"><pre>00413 { -00414 <a class="code" href="modules_8h.html#a31">server_mode</a>(parameters,pcnt,user); -00415 } +<div class="fragment"><pre>00423 { +00424 <a class="code" href="modules_8h.html#a31">server_mode</a>(parameters,pcnt,user); +00425 } </pre></div> </td> </tr> </table> @@ -1683,11 +1683,11 @@ Sends text to all opers. <p> This method sends a server notice to all opers with the usermode +s. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00334">334</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#l00344">344</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00335 { -00336 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); -00337 } +<div class="fragment"><pre>00345 { +00346 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); +00347 } </pre></div> </td> </tr> </table> @@ -1730,11 +1730,11 @@ Sends text from the server to a socket. <p> This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459) <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00422">422</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#l00432">432</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00423 { -00424 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); -00425 } +<div class="fragment"><pre>00433 { +00434 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00435 } </pre></div> </td> </tr> </table> @@ -1787,22 +1787,22 @@ The format will become:<p> :localserver TEXT<p> Which is useful for numerics and server notices to single users, etc. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00432">432</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#l00442">442</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> References <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>. <p> -<div class="fragment"><pre>00433 { -00434 <span class="keywordflow">if</span> (!Source) -00435 { -00436 <span class="comment">// if source is NULL, then the message originates from the local server</span> -00437 Write(Dest-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); -00438 } -00439 <span class="keywordflow">else</span> -00440 { -00441 <span class="comment">// otherwise it comes from the user specified</span> -00442 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); -00443 } -00444 } +<div class="fragment"><pre>00443 { +00444 <span class="keywordflow">if</span> (!Source) +00445 { +00446 <span class="comment">// if source is NULL, then the message originates from the local server</span> +00447 Write(Dest-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); +00448 } +00449 <span class="keywordflow">else</span> +00450 { +00451 <span class="comment">// otherwise it comes from the user specified</span> +00452 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); +00453 } +00454 } </pre></div> </td> </tr> </table> @@ -1853,11 +1853,11 @@ These can be RFC specified modes such as +i, or module provided modes, including Serv->SendToModeMask("xi", WM_OR, "m00");<p> 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. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00347">347</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#l00357">357</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00348 { -00349 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); -00350 } +<div class="fragment"><pre>00358 { +00359 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); +00360 } </pre></div> </td> </tr> </table> @@ -1900,17 +1900,17 @@ Sends a WALLOPS message. <p> This method writes a WALLOPS message to all users with the +w flag, originating from the specified user. <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00475">475</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#l00485">485</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00476 { -00477 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); -00478 } +<div class="fragment"><pre>00486 { +00487 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); +00488 } </pre></div> </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 Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:37 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> diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index c0a434dd8..73f9b65b3 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classVersion.html#o2">Revision</a></td><td><a class="el" href="classVersion.html">Version</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classVersion.html#a0">Version</a>(int major, int minor, int revision, int build)</td><td><a class="el" href="classVersion.html">Version</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index b3209d65e..714f17838 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -84,9 +84,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l00102">102</a> of <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00291">291</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#l00298">298</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00291 : <a class="code" href="classVersion.html#o0">Major</a>(major), <a class="code" href="classVersion.html#o1">Minor</a>(minor), <a class="code" href="classVersion.html#o2">Revision</a>(revision), <a class="code" href="classVersion.html#o3">Build</a>(build) { }; +<div class="fragment"><pre>00298 : <a class="code" href="classVersion.html#o0">Major</a>(major), <a class="code" href="classVersion.html#o1">Minor</a>(minor), <a class="code" href="classVersion.html#o2">Revision</a>(revision), <a class="code" href="classVersion.html#o3">Build</a>(build) { }; </pre></div> </td> </tr> </table> @@ -189,7 +189,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00105">105</a> of </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 Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index 36c7eaf27..66b260d73 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -14,7 +14,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index e1e354cd8..1cdc782cd 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -171,7 +171,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00048">48</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index 8aed6b908..ab7a71ebc 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -16,7 +16,7 @@ <tr class="memlist"><td><a class="el" href="classXLine.html#o0">set_time</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classXLine.html#o2">source</a></td><td><a class="el" href="classXLine.html">XLine</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index 0ae5bb4cd..5cacd6f53 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -82,7 +82,7 @@ Definition at line <a class="el" href="xline_8h-source.html#l00094">94</a> of fi </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="xline_8h-source.html">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index 9f1713a4b..f42b9d0dd 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -33,7 +33,7 @@ <tr class="memlist"><td><a class="el" href="classchanrec.html#o4">topicset</a></td><td><a class="el" href="classchanrec.html">chanrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classchanrec.html#a5">~chanrec</a>()</td><td><a class="el" href="classchanrec.html">chanrec</a></td><td><code> [inline, virtual]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:30 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> diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index c7c0a6a1b..7cabfa142 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -116,19 +116,19 @@ Creates a channel record and initialises it with default values. <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00111">111</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +Definition at line <a class="el" href="channels_8cpp-source.html#l00112">112</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. <p> References <a class="el" href="channels_8h-source.html#l00155">c_private</a>, <a class="el" href="channels_8h-source.html#l00111">created</a>, <a class="el" href="channels_8h-source.html#l00103">custom_modes</a>, <a class="el" href="channels_8h-source.html#l00141">inviteonly</a>, <a class="el" href="channels_8h-source.html#l00129">key</a>, <a class="el" href="channels_8h-source.html#l00124">limit</a>, <a class="el" href="channels_8h-source.html#l00145">moderated</a>, <a class="el" href="channels_8h-source.html#l00099">name</a>, <a class="el" href="channels_8h-source.html#l00137">noexternal</a>, <a class="el" href="channels_8h-source.html#l00150">secret</a>, <a class="el" href="channels_8h-source.html#l00119">setby</a>, <a class="el" href="channels_8h-source.html#l00108">topic</a>, <a class="el" href="channels_8h-source.html#l00133">topiclock</a>, and <a class="el" href="channels_8h-source.html#l00115">topicset</a>. <p> -<div class="fragment"><pre>00112 { -00113 strcpy(name,<span class="stringliteral">""</span>); -00114 strcpy(custom_modes,<span class="stringliteral">""</span>); -00115 strcpy(topic,<span class="stringliteral">""</span>); -00116 strcpy(setby,<span class="stringliteral">""</span>); -00117 strcpy(key,<span class="stringliteral">""</span>); -00118 <a class="code" href="classchanrec.html#o3">created</a> = <a class="code" href="classchanrec.html#o4">topicset</a> = <a class="code" href="classchanrec.html#o6">limit</a> = 0; -00119 <a class="code" href="classchanrec.html#o8">topiclock</a> = <a class="code" href="classchanrec.html#o9">noexternal</a> = <a class="code" href="classchanrec.html#o10">inviteonly</a> = <a class="code" href="classchanrec.html#o11">moderated</a> = <a class="code" href="classchanrec.html#o12">secret</a> = <a class="code" href="classchanrec.html#o13">c_private</a> = <span class="keyword">false</span>; -00120 } +<div class="fragment"><pre>00113 { +00114 strcpy(name,<span class="stringliteral">""</span>); +00115 strcpy(custom_modes,<span class="stringliteral">""</span>); +00116 strcpy(topic,<span class="stringliteral">""</span>); +00117 strcpy(setby,<span class="stringliteral">""</span>); +00118 strcpy(key,<span class="stringliteral">""</span>); +00119 <a class="code" href="classchanrec.html#o3">created</a> = <a class="code" href="classchanrec.html#o4">topicset</a> = <a class="code" href="classchanrec.html#o6">limit</a> = 0; +00120 <a class="code" href="classchanrec.html#o8">topiclock</a> = <a class="code" href="classchanrec.html#o9">noexternal</a> = <a class="code" href="classchanrec.html#o10">inviteonly</a> = <a class="code" href="classchanrec.html#o11">moderated</a> = <a class="code" href="classchanrec.html#o12">secret</a> = <a class="code" href="classchanrec.html#o13">c_private</a> = <span class="keyword">false</span>; +00121 } </pre></div> </td> </tr> </table> @@ -196,23 +196,23 @@ Returns the parameter for a custom mode on a channel. <p> 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. <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00184">184</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. -<p> -References <a class="el" href="channels_8cpp-source.html#l00109">custom_mode_params</a>. -<p> -<div class="fragment"><pre>00185 { -00186 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.size()) -00187 { -00188 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.end(); i++) -00189 { -00190 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00191 { -00192 <span class="keywordflow">return</span> std::string(i->parameter); -00193 } -00194 } -00195 } -00196 <span class="keywordflow">return</span> std::string(<span class="stringliteral">""</span>); -00197 } +Definition at line <a class="el" href="channels_8cpp-source.html#l00185">185</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +<p> +References <a class="el" href="channels_8cpp-source.html#l00110">custom_mode_params</a>. +<p> +<div class="fragment"><pre>00186 { +00187 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.size()) +00188 { +00189 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.end(); i++) +00190 { +00191 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00192 { +00193 <span class="keywordflow">return</span> std::string(i->parameter); +00194 } +00195 } +00196 } +00197 <span class="keywordflow">return</span> std::string(<span class="stringliteral">""</span>); +00198 } </pre></div> </td> </tr> </table> @@ -246,14 +246,14 @@ Returns true if a custom mode is set on a channel. <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00178">178</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +Definition at line <a class="el" href="channels_8cpp-source.html#l00179">179</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. <p> References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>. <p> -<div class="fragment"><pre>00179 { -00180 log(DEBUG,<span class="stringliteral">"Checking ISCustomModeSet: %c %s"</span>,mode,this->custom_modes); -00181 <span class="keywordflow">return</span> (strchr(this->custom_modes,mode) != 0); -00182 } +<div class="fragment"><pre>00180 { +00181 log(DEBUG,<span class="stringliteral">"Checking ISCustomModeSet: %c %s"</span>,mode,this->custom_modes); +00182 <span class="keywordflow">return</span> (strchr(this->custom_modes,mode) != 0); +00183 } </pre></div> </td> </tr> </table> @@ -296,32 +296,32 @@ Sets or unsets a custom mode in the channels info. <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00122">122</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. -<p> -References <a class="el" href="channels_8h-source.html#l00103">custom_modes</a>, <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="channels_8cpp-source.html#l00147">SetCustomModeParam()</a>. -<p> -<div class="fragment"><pre>00123 { -00124 <span class="keywordflow">if</span> (mode_on) { -00125 <span class="keywordtype">char</span> m[3]; -00126 m[0] = mode; -00127 m[1] = <span class="charliteral">'\0'</span>; -00128 <span class="keywordflow">if</span> (!strchr(this->custom_modes,mode)) -00129 { -00130 strlcat(custom_modes,m,MAXMODES); -00131 } -00132 log(DEBUG,<span class="stringliteral">"Custom mode %c set"</span>,mode); -00133 } -00134 <span class="keywordflow">else</span> { -00135 -00136 std::string a = this-><a class="code" href="classchanrec.html#o1">custom_modes</a>; -00137 <span class="keywordtype">int</span> pos = a.find(mode); -00138 a.erase(pos,1); -00139 strncpy(this->custom_modes,a.c_str(),MAXMODES); -00140 -00141 log(DEBUG,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this->custom_modes); -00142 this-><a class="code" href="classchanrec.html#a1">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>); -00143 } -00144 } +Definition at line <a class="el" href="channels_8cpp-source.html#l00123">123</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +<p> +References <a class="el" href="channels_8h-source.html#l00103">custom_modes</a>, <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="channels_8cpp-source.html#l00148">SetCustomModeParam()</a>. +<p> +<div class="fragment"><pre>00124 { +00125 <span class="keywordflow">if</span> (mode_on) { +00126 <span class="keywordtype">char</span> m[3]; +00127 m[0] = mode; +00128 m[1] = <span class="charliteral">'\0'</span>; +00129 <span class="keywordflow">if</span> (!strchr(this->custom_modes,mode)) +00130 { +00131 strlcat(custom_modes,m,MAXMODES); +00132 } +00133 log(DEBUG,<span class="stringliteral">"Custom mode %c set"</span>,mode); +00134 } +00135 <span class="keywordflow">else</span> { +00136 +00137 std::string a = this-><a class="code" href="classchanrec.html#o1">custom_modes</a>; +00138 <span class="keywordtype">int</span> pos = a.find(mode); +00139 a.erase(pos,1); +00140 strncpy(this->custom_modes,a.c_str(),MAXMODES); +00141 +00142 log(DEBUG,<span class="stringliteral">"Custom mode %c removed: modelist='%s'"</span>,mode,this->custom_modes); +00143 this-><a class="code" href="classchanrec.html#a1">SetCustomModeParam</a>(mode,<span class="stringliteral">""</span>,<span class="keyword">false</span>); +00144 } +00145 } </pre></div> </td> </tr> </table> @@ -370,41 +370,41 @@ Sets or unsets the parameters for a custom mode in a channels info. <p> <p> -Definition at line <a class="el" href="channels_8cpp-source.html#l00147">147</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. -<p> -References <a class="el" href="channels_8h-source.html#l00075">ModeParameter::channel</a>, <a class="el" href="channels_8cpp-source.html#l00109">custom_mode_params</a>, <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="channels_8h-source.html#l00073">ModeParameter::mode</a>, and <a class="el" href="channels_8h-source.html#l00074">ModeParameter::parameter</a>. -<p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00122">SetCustomMode()</a>. -<p> -<div class="fragment"><pre>00148 { -00149 -00150 log(DEBUG,<span class="stringliteral">"SetCustomModeParam called"</span>); -00151 <a class="code" href="classModeParameter.html">ModeParameter</a> M; -00152 M.<a class="code" href="classModeParameter.html#o0">mode</a> = mode; -00153 strlcpy(M.<a class="code" href="classModeParameter.html#o2">channel</a>,this->name,CHANMAX); -00154 strlcpy(M.<a class="code" href="classModeParameter.html#o1">parameter</a>,parameter,MAXBUF); -00155 <span class="keywordflow">if</span> (mode_on) -00156 { -00157 log(DEBUG,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter); -00158 <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.push_back(M); -00159 } -00160 <span class="keywordflow">else</span> -00161 { -00162 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.size()) -00163 { -00164 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.end(); i++) -00165 { -00166 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00167 { -00168 log(DEBUG,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter); -00169 <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.erase(i); -00170 <span class="keywordflow">return</span>; -00171 } -00172 } -00173 } -00174 log(DEBUG,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>); -00175 } -00176 } +Definition at line <a class="el" href="channels_8cpp-source.html#l00148">148</a> of file <a class="el" href="channels_8cpp-source.html">channels.cpp</a>. +<p> +References <a class="el" href="channels_8h-source.html#l00075">ModeParameter::channel</a>, <a class="el" href="channels_8cpp-source.html#l00110">custom_mode_params</a>, <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="channels_8h-source.html#l00073">ModeParameter::mode</a>, and <a class="el" href="channels_8h-source.html#l00074">ModeParameter::parameter</a>. +<p> +Referenced by <a class="el" href="channels_8cpp-source.html#l00123">SetCustomMode()</a>. +<p> +<div class="fragment"><pre>00149 { +00150 +00151 log(DEBUG,<span class="stringliteral">"SetCustomModeParam called"</span>); +00152 <a class="code" href="classModeParameter.html">ModeParameter</a> M; +00153 M.<a class="code" href="classModeParameter.html#o0">mode</a> = mode; +00154 strlcpy(M.<a class="code" href="classModeParameter.html#o2">channel</a>,this->name,CHANMAX); +00155 strlcpy(M.<a class="code" href="classModeParameter.html#o1">parameter</a>,parameter,MAXBUF); +00156 <span class="keywordflow">if</span> (mode_on) +00157 { +00158 log(DEBUG,<span class="stringliteral">"Custom mode parameter %c %s added"</span>,mode,parameter); +00159 <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.push_back(M); +00160 } +00161 <span class="keywordflow">else</span> +00162 { +00163 <span class="keywordflow">if</span> (<a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.size()) +00164 { +00165 <span class="keywordflow">for</span> (vector<ModeParameter>::iterator i = <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.begin(); i < <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.end(); i++) +00166 { +00167 <span class="keywordflow">if</span> ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00168 { +00169 log(DEBUG,<span class="stringliteral">"Custom mode parameter %c %s removed"</span>,mode,parameter); +00170 <a class="code" href="channels_8cpp.html#a37">custom_mode_params</a>.erase(i); +00171 <span class="keywordflow">return</span>; +00172 } +00173 } +00174 } +00175 log(DEBUG,<span class="stringliteral">"*** BUG *** Attempt to remove non-existent mode parameter!"</span>); +00176 } +00177 } </pre></div> </td> </tr> </table> @@ -460,7 +460,7 @@ This value cannot be set at the same time as <a class="el" href="classchanrec.ht <p> Definition at line <a class="el" href="channels_8h-source.html#l00155">155</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o3" doxytag="chanrec::created"></a><p> @@ -488,7 +488,7 @@ Creation time. <p> Definition at line <a class="el" href="channels_8h-source.html#l00111">111</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o1" doxytag="chanrec::custom_modes"></a><p> @@ -516,7 +516,7 @@ Plugins may use this field in any way they see fit. <p> Definition at line <a class="el" href="channels_8h-source.html#l00103">103</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>, and <a class="el" href="channels_8cpp-source.html#l00122">SetCustomMode()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>, and <a class="el" href="channels_8cpp-source.html#l00123">SetCustomMode()</a>. </td> </tr> </table> <a name="o10" doxytag="chanrec::inviteonly"></a><p> @@ -544,7 +544,7 @@ Nonzero if the mode +i is set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00141">141</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o7" doxytag="chanrec::key"></a><p> @@ -572,7 +572,7 @@ If this value is an empty string, there is no channel key in place. <p> Definition at line <a class="el" href="channels_8h-source.html#l00129">129</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o6" doxytag="chanrec::limit"></a><p> @@ -600,7 +600,7 @@ If this value is zero, there is no limit in place. <p> Definition at line <a class="el" href="channels_8h-source.html#l00124">124</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o11" doxytag="chanrec::moderated"></a><p> @@ -628,7 +628,7 @@ Nonzero if the mode +m is set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00145">145</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o0" doxytag="chanrec::name"></a><p> @@ -656,7 +656,7 @@ The channels name. <p> Definition at line <a class="el" href="channels_8h-source.html#l00099">99</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o9" doxytag="chanrec::noexternal"></a><p> @@ -684,7 +684,7 @@ Nonzero if the mode +n is set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00137">137</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o12" doxytag="chanrec::secret"></a><p> @@ -712,7 +712,7 @@ This value cannot be set at the same time as <a class="el" href="classchanrec.ht <p> Definition at line <a class="el" href="channels_8h-source.html#l00150">150</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o5" doxytag="chanrec::setby"></a><p> @@ -740,7 +740,7 @@ If this member is an empty string, no topic was ever set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00119">119</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o2" doxytag="chanrec::topic"></a><p> @@ -768,7 +768,7 @@ If this is an empty string, no channel topic is set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00108">108</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o8" doxytag="chanrec::topiclock"></a><p> @@ -796,7 +796,7 @@ Nonzero if the mode +t is set. <p> Definition at line <a class="el" href="channels_8h-source.html#l00133">133</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <a name="o4" doxytag="chanrec::topicset"></a><p> @@ -824,12 +824,12 @@ If no topic was ever set, this will be equal to <a class="el" href="classchanrec <p> Definition at line <a class="el" href="channels_8h-source.html#l00115">115</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="channels_8cpp-source.html#l00111">chanrec()</a>. </td> +Referenced by <a class="el" href="channels_8cpp-source.html#l00112">chanrec()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a><li><a class="el" href="channels_8cpp-source.html">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:30 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> diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 1a2510564..4808e02ed 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -9,7 +9,7 @@ <tr class="memlist"><td><a class="el" href="classclassbase.html#o0">age</a></td><td><a class="el" href="classclassbase.html">classbase</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a0">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:30 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> diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index ae7de8465..9e55f541b 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -132,7 +132,7 @@ Referenced by <a class="el" href="base_8h-source.html#l00039">classbase()</a>. </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="base_8h-source.html">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:30 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> diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index 8c2cd466a..8ff8926b3 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -18,7 +18,7 @@ <tr class="memlist"><td><a class="el" href="classcommand__t.html#o5">total_bytes</a></td><td><a class="el" href="classcommand__t.html">command_t</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classcommand__t.html#o4">use_count</a></td><td><a class="el" href="classcommand__t.html">command_t</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:30 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> diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index fd1d9571a..fcd064499 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -198,7 +198,7 @@ Definition at line <a class="el" href="ctables_8h-source.html#l00043">43</a> of </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="ctables_8h-source.html">ctables.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:30 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> diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index 62c31e68b..06b1dc2e0 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -41,7 +41,7 @@ <tr class="memlist"><td><a class="el" href="classconnection.html#o11">state</a></td><td><a class="el" href="classconnection.html">connection</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classconnection.html#a4">TerminateLink</a>(char *targethost)</td><td><a class="el" href="classconnection.html">connection</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:31 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> diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 3eb501874..6a1743731 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -537,7 +537,7 @@ Stats counter for bytes inbound. <p> Definition at line <a class="el" href="connection_8h-source.html#l00194">194</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o5" doxytag="connection::bytes_out"></a><p> @@ -565,7 +565,7 @@ Stats counter for bytes outbound. <p> Definition at line <a class="el" href="connection_8h-source.html#l00198">198</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o6" doxytag="connection::cmds_in"></a><p> @@ -593,7 +593,7 @@ Stats counter for commands inbound. <p> Definition at line <a class="el" href="connection_8h-source.html#l00202">202</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o7" doxytag="connection::cmds_out"></a><p> @@ -621,7 +621,7 @@ Stats counter for commands outbound. <p> Definition at line <a class="el" href="connection_8h-source.html#l00206">206</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o18" doxytag="connection::connectors"></a><p> @@ -675,7 +675,7 @@ File descriptor of the connection. <p> Definition at line <a class="el" href="connection_8h-source.html#l00178">178</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00663">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00432">Server::SendTo()</a>, <a class="el" href="servers_8cpp-source.html#l00023">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00673">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00442">Server::SendTo()</a>, <a class="el" href="servers_8cpp-source.html#l00024">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o8" doxytag="connection::haspassed"></a><p> @@ -703,7 +703,7 @@ True if server/user has authenticated, false if otherwise. <p> Definition at line <a class="el" href="connection_8h-source.html#l00210">210</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o1" doxytag="connection::host"></a><p> @@ -731,7 +731,7 @@ Not used if this is a serverrec <p> Definition at line <a class="el" href="connection_8h-source.html#l00182">182</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00060">userrec::GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00062">userrec::GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o14" doxytag="connection::idle_lastmsg"></a><p> @@ -759,7 +759,7 @@ Time that the connection last sent data, used to calculate idle time. <p> Definition at line <a class="el" href="connection_8h-source.html#l00236">236</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o3" doxytag="connection::inbuf"></a><p> @@ -787,7 +787,7 @@ Only used for userrec <p> Definition at line <a class="el" href="connection_8h-source.html#l00190">190</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o16" doxytag="connection::internal_addr"></a><p> @@ -867,7 +867,7 @@ Reserved for future use. <p> Definition at line <a class="el" href="connection_8h-source.html#l00186">186</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o12" doxytag="connection::lastping"></a><p> @@ -895,7 +895,7 @@ Time the connection was last pinged. <p> Definition at line <a class="el" href="connection_8h-source.html#l00228">228</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o15" doxytag="connection::nping"></a><p> @@ -923,7 +923,7 @@ Used by PING checks with clients. <p> Definition at line <a class="el" href="connection_8h-source.html#l00240">240</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o9" doxytag="connection::port"></a><p> @@ -951,7 +951,7 @@ For a serverrec this is the current listening port of the serverrec object. <p> Definition at line <a class="el" href="connection_8h-source.html#l00216">216</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o10" doxytag="connection::registered"></a><p> @@ -979,7 +979,7 @@ Used by userrec to indicate the registration status of the connection. <p> Definition at line <a class="el" href="connection_8h-source.html#l00220">220</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o13" doxytag="connection::signon"></a><p> @@ -1007,7 +1007,7 @@ Time the connection was created, set in the constructor. <p> Definition at line <a class="el" href="connection_8h-source.html#l00232">232</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o11" doxytag="connection::state"></a><p> @@ -1038,7 +1038,7 @@ Definition at line <a class="el" href="connection_8h-source.html#l00224">224</a> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="connection_8h-source.html">connection.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:31 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> diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 2e8134723..a298d2f80 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -24,7 +24,7 @@ </td><td><a class="el" href="classXLine.html">XLine</a> </td></tr><tr><td><a class="el" href="classConfigReader.html">ConfigReader</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> H </div></td></tr></table> </td><td><a class="el" href="classModule.html">Module</a> </td><td><a class="el" href="classServer.html">Server</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> Z </div></td></tr></table> </td></tr><tr><td><a class="el" href="classConnectClass.html">ConnectClass</a> </td><td><a class="el" href="classHostItem.html">HostItem</a> </td><td><a class="el" href="classModuleFactory.html">ModuleFactory</a> </td><td><a class="el" href="classserverrec.html">serverrec</a> </td><td><a class="el" href="classZLine.html">ZLine</a> </td></tr><tr><td><a class="el" href="classconnection.html">connection</a> </td><td><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah"> I </div></td></tr></table> -</td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +</td></tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> diff --git a/docs/module-doc/classircd__connector-members.html b/docs/module-doc/classircd__connector-members.html index 966335098..f1e78f2c3 100644 --- a/docs/module-doc/classircd__connector-members.html +++ b/docs/module-doc/classircd__connector-members.html @@ -35,7 +35,7 @@ <tr class="memlist"><td><a class="el" href="classExtensible.html#a1">Shrink</a>(std::string key)</td><td><a class="el" href="classExtensible.html">Extensible</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classircd__connector.html#r4">state</a></td><td><a class="el" href="classircd__connector.html">ircd_connector</a></td><td><code> [private]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:33 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> diff --git a/docs/module-doc/classircd__connector.html b/docs/module-doc/classircd__connector.html index 5d2bd7d4f..8fea767dd 100644 --- a/docs/module-doc/classircd__connector.html +++ b/docs/module-doc/classircd__connector.html @@ -792,7 +792,7 @@ Definition at line <a class="el" href="connection_8h-source.html#l00075">75</a> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="connection_8h-source.html">connection.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/classpacket-members.html b/docs/module-doc/classpacket-members.html index 9991099b9..8cc004a2b 100644 --- a/docs/module-doc/classpacket-members.html +++ b/docs/module-doc/classpacket-members.html @@ -9,7 +9,7 @@ <tr class="memlist"><td><a class="el" href="classclassbase.html#o0">age</a></td><td><a class="el" href="classclassbase.html">classbase</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a0">classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:33 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:35 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> diff --git a/docs/module-doc/classpacket.html b/docs/module-doc/classpacket.html index 29c23b5f1..58525746f 100644 --- a/docs/module-doc/classpacket.html +++ b/docs/module-doc/classpacket.html @@ -24,7 +24,7 @@ This declaration is preserved here to maintain documentation only. <p> Definition at line <a class="el" href="connection_8h-source.html#l00167">167</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.<hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="connection_8h-source.html">connection.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:33 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:35 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> diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index dd9643aa3..e9f90e3a1 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -55,7 +55,7 @@ <tr class="memlist"><td><a class="el" href="classserverrec.html#o6">version</a></td><td><a class="el" href="classserverrec.html">serverrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classserverrec.html#a2">~serverrec</a>()</td><td><a class="el" href="classserverrec.html">serverrec</a></td><td></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:37 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> diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index aed076b09..cf4e2727d 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -93,22 +93,22 @@ Constructor. <p> <p> -Definition at line <a class="el" href="servers_8cpp-source.html#l00023">23</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>. +Definition at line <a class="el" href="servers_8cpp-source.html#l00024">24</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>. <p> References <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, <a class="el" href="servers_8h-source.html#l00051">hops_away</a>, <a class="el" href="servers_8h-source.html#l00057">jupiter</a>, <a class="el" href="connection_8h-source.html#l00228">connection::lastping</a>, <a class="el" href="servers_8h-source.html#l00036">name</a>, <a class="el" href="servers_8h-source.html#l00065">nickserv</a>, <a class="el" href="servers_8h-source.html#l00048">opercount</a>, <a class="el" href="servers_8h-source.html#l00039">pingtime</a>, <a class="el" href="connection_8h-source.html#l00232">connection::signon</a>, <a class="el" href="servers_8h-source.html#l00067">sync_soon</a>, <a class="el" href="servers_8h-source.html#l00045">usercount</a>, <a class="el" href="servers_8h-source.html#l00042">usercount_i</a>, and <a class="el" href="servers_8h-source.html#l00054">version</a>. <p> -<div class="fragment"><pre>00024 { -00025 strlcpy(name,<span class="stringliteral">""</span>,256); -00026 <a class="code" href="classserverrec.html#o1">pingtime</a> = 0; -00027 <a class="code" href="classconnection.html#o12">lastping</a> = time(NULL); -00028 <a class="code" href="classserverrec.html#o2">usercount_i</a> = <a class="code" href="classserverrec.html#o3">usercount</a> = <a class="code" href="classserverrec.html#o4">opercount</a> = <a class="code" href="classserverrec.html#o6">version</a> = 0; -00029 <a class="code" href="classserverrec.html#o5">hops_away</a> = 1; -00030 <a class="code" href="classconnection.html#o13">signon</a> = time(NULL); -00031 <a class="code" href="classserverrec.html#o7">jupiter</a> = <span class="keyword">false</span>; -00032 <a class="code" href="classconnection.html#o0">fd</a> = 0; -00033 <a class="code" href="classserverrec.html#o10">sync_soon</a> = <span class="keyword">false</span>; -00034 strlcpy(nickserv,<span class="stringliteral">""</span>,NICKMAX); -00035 } +<div class="fragment"><pre>00025 { +00026 strlcpy(name,<span class="stringliteral">""</span>,256); +00027 <a class="code" href="classserverrec.html#o1">pingtime</a> = 0; +00028 <a class="code" href="classconnection.html#o12">lastping</a> = time(NULL); +00029 <a class="code" href="classserverrec.html#o2">usercount_i</a> = <a class="code" href="classserverrec.html#o3">usercount</a> = <a class="code" href="classserverrec.html#o4">opercount</a> = <a class="code" href="classserverrec.html#o6">version</a> = 0; +00030 <a class="code" href="classserverrec.html#o5">hops_away</a> = 1; +00031 <a class="code" href="classconnection.html#o13">signon</a> = time(NULL); +00032 <a class="code" href="classserverrec.html#o7">jupiter</a> = <span class="keyword">false</span>; +00033 <a class="code" href="classconnection.html#o0">fd</a> = 0; +00034 <a class="code" href="classserverrec.html#o10">sync_soon</a> = <span class="keyword">false</span>; +00035 strlcpy(nickserv,<span class="stringliteral">""</span>,NICKMAX); +00036 } </pre></div> </td> </tr> </table> @@ -157,22 +157,22 @@ Constructor which initialises some of the main variables. <p> <p> -Definition at line <a class="el" href="servers_8cpp-source.html#l00042">42</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>. +Definition at line <a class="el" href="servers_8cpp-source.html#l00043">43</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>. <p> References <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, <a class="el" href="servers_8h-source.html#l00051">hops_away</a>, <a class="el" href="servers_8h-source.html#l00057">jupiter</a>, <a class="el" href="connection_8h-source.html#l00228">connection::lastping</a>, <a class="el" href="servers_8h-source.html#l00036">name</a>, <a class="el" href="servers_8h-source.html#l00065">nickserv</a>, <a class="el" href="servers_8h-source.html#l00048">opercount</a>, <a class="el" href="connection_8h-source.html#l00232">connection::signon</a>, <a class="el" href="servers_8h-source.html#l00067">sync_soon</a>, <a class="el" href="servers_8h-source.html#l00045">usercount</a>, <a class="el" href="servers_8h-source.html#l00042">usercount_i</a>, and <a class="el" href="servers_8h-source.html#l00054">version</a>. <p> -<div class="fragment"><pre>00043 { -00044 strlcpy(name,n,256); -00045 <a class="code" href="classconnection.html#o12">lastping</a> = time(NULL); -00046 <a class="code" href="classserverrec.html#o2">usercount_i</a> = <a class="code" href="classserverrec.html#o3">usercount</a> = <a class="code" href="classserverrec.html#o4">opercount</a> = 0; -00047 <a class="code" href="classserverrec.html#o6">version</a> = ver; -00048 <a class="code" href="classserverrec.html#o5">hops_away</a> = 1; -00049 <a class="code" href="classconnection.html#o13">signon</a> = time(NULL); -00050 <a class="code" href="classserverrec.html#o7">jupiter</a> = jupe; -00051 <a class="code" href="classconnection.html#o0">fd</a> = 0; -00052 <a class="code" href="classserverrec.html#o10">sync_soon</a> = <span class="keyword">false</span>; -00053 strlcpy(nickserv,<span class="stringliteral">""</span>,NICKMAX); -00054 } +<div class="fragment"><pre>00044 { +00045 strlcpy(name,n,256); +00046 <a class="code" href="classconnection.html#o12">lastping</a> = time(NULL); +00047 <a class="code" href="classserverrec.html#o2">usercount_i</a> = <a class="code" href="classserverrec.html#o3">usercount</a> = <a class="code" href="classserverrec.html#o4">opercount</a> = 0; +00048 <a class="code" href="classserverrec.html#o6">version</a> = ver; +00049 <a class="code" href="classserverrec.html#o5">hops_away</a> = 1; +00050 <a class="code" href="classconnection.html#o13">signon</a> = time(NULL); +00051 <a class="code" href="classserverrec.html#o7">jupiter</a> = jupe; +00052 <a class="code" href="classconnection.html#o0">fd</a> = 0; +00053 <a class="code" href="classserverrec.html#o10">sync_soon</a> = <span class="keyword">false</span>; +00054 strlcpy(nickserv,<span class="stringliteral">""</span>,NICKMAX); +00055 } </pre></div> </td> </tr> </table> @@ -205,10 +205,10 @@ Destructor. <p> <p> -Definition at line <a class="el" href="servers_8cpp-source.html#l00038">38</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>. +Definition at line <a class="el" href="servers_8cpp-source.html#l00039">39</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>. <p> -<div class="fragment"><pre>00039 { -00040 } +<div class="fragment"><pre>00040 { +00041 } </pre></div> </td> </tr> </table> @@ -264,7 +264,7 @@ number of hops away (for quick access) <p> Definition at line <a class="el" href="servers_8h-source.html#l00051">51</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td> </tr> </table> <a name="o7" doxytag="serverrec::jupiter"></a><p> @@ -292,7 +292,7 @@ is a JUPE server (faked to enforce a server ban) <p> Definition at line <a class="el" href="servers_8h-source.html#l00057">57</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td> </tr> </table> <a name="o0" doxytag="serverrec::name"></a><p> @@ -320,7 +320,7 @@ server name <p> Definition at line <a class="el" href="servers_8h-source.html#l00036">36</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td> </tr> </table> <a name="o9" doxytag="serverrec::nickserv"></a><p> @@ -348,7 +348,7 @@ Holds nickserv's name on U:lined (services) servers (this is a kludge for ircser <p> Definition at line <a class="el" href="servers_8h-source.html#l00065">65</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td> </tr> </table> <a name="o4" doxytag="serverrec::opercount"></a><p> @@ -376,7 +376,7 @@ opers on server <p> Definition at line <a class="el" href="servers_8h-source.html#l00048">48</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td> </tr> </table> <a name="o1" doxytag="serverrec::pingtime"></a><p> @@ -404,7 +404,7 @@ last ping response (ms) <p> Definition at line <a class="el" href="servers_8h-source.html#l00039">39</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td> </tr> </table> <a name="o10" doxytag="serverrec::sync_soon"></a><p> @@ -430,7 +430,7 @@ Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</ <p> Definition at line <a class="el" href="servers_8h-source.html#l00067">67</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td> </tr> </table> <a name="o3" doxytag="serverrec::usercount"></a><p> @@ -458,7 +458,7 @@ non-invisible users on server <p> Definition at line <a class="el" href="servers_8h-source.html#l00045">45</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td> </tr> </table> <a name="o2" doxytag="serverrec::usercount_i"></a><p> @@ -486,7 +486,7 @@ invisible users on server <p> Definition at line <a class="el" href="servers_8h-source.html#l00042">42</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td> </tr> </table> <a name="o6" doxytag="serverrec::version"></a><p> @@ -514,12 +514,12 @@ ircd version <p> Definition at line <a class="el" href="servers_8h-source.html#l00054">54</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. <p> -Referenced by <a class="el" href="servers_8cpp-source.html#l00023">serverrec()</a>. </td> +Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="servers_8h-source.html">servers.h</a><li><a class="el" href="servers_8cpp-source.html">servers.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:37 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> diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index 41b0503d2..68e697285 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -13,7 +13,7 @@ <tr class="memlist"><td><a class="el" href="classucrec.html#a0">ucrec</a>()</td><td><a class="el" href="classucrec.html">ucrec</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classucrec.html#a1">~ucrec</a>()</td><td><a class="el" href="classucrec.html">ucrec</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:37 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> diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index d0475a5ba..7e3628b5a 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -127,7 +127,7 @@ If the record is not in use, this value will be NULL. <p> Definition at line <a class="el" href="channels_8h-source.html#l00213">213</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <a name="o0" doxytag="ucrec::uc_modes"></a><p> @@ -155,12 +155,12 @@ UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon th <p> Definition at line <a class="el" href="channels_8h-source.html#l00208">208</a> of file <a class="el" href="channels_8h-source.html">channels.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec::userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec::userrec()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="channels_8h-source.html">channels.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:37 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> diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index 83df506d2..ecc926cbf 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -62,7 +62,7 @@ <tr class="memlist"><td><a class="el" href="classuserrec.html#a0">userrec</a>()</td><td><a class="el" href="classuserrec.html">userrec</a></td><td></td></tr> <tr class="memlist"><td><a class="el" href="classclassbase.html#a1">~classbase</a>()</td><td><a class="el" href="classclassbase.html">classbase</a></td><td><code> [inline]</code></td></tr> <tr class="memlist"><td><a class="el" href="classuserrec.html#a1">~userrec</a>()</td><td><a class="el" href="classuserrec.html">userrec</a></td><td><code> [inline, virtual]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 7f5755497..1ca6025f2 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -113,34 +113,35 @@ Definition at line <a class="el" href="users_8h-source.html#l00089">89</a> of fi <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00025">25</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -References <a class="el" href="users_8h-source.html#l00132">awaymsg</a>, <a class="el" href="connection_8h-source.html#l00194">connection::bytes_in</a>, <a class="el" href="connection_8h-source.html#l00198">connection::bytes_out</a>, <a class="el" href="channels_8h-source.html#l00213">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00123">chans</a>, <a class="el" href="connection_8h-source.html#l00202">connection::cmds_in</a>, <a class="el" href="connection_8h-source.html#l00206">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00111">dhost</a>, <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, <a class="el" href="users_8h-source.html#l00143">flood</a>, <a class="el" href="users_8h-source.html#l00115">fullname</a>, <a class="el" href="connection_8h-source.html#l00210">connection::haspassed</a>, <a class="el" href="connection_8h-source.html#l00182">connection::host</a>, <a class="el" href="users_8h-source.html#l00106">ident</a>, <a class="el" href="connection_8h-source.html#l00236">connection::idle_lastmsg</a>, <a class="el" href="connection_8h-source.html#l00190">connection::inbuf</a>, <a class="el" href="users_8h-source.html#l00095">invites</a>, <a class="el" href="connection_8h-source.html#l00186">connection::ip</a>, <a class="el" href="connection_8h-source.html#l00228">connection::lastping</a>, <a class="el" href="users_8h-source.html#l00121">modes</a>, <a class="el" href="users_8h-source.html#l00102">nick</a>, <a class="el" href="connection_8h-source.html#l00240">connection::nping</a>, <a class="el" href="connection_8h-source.html#l00216">connection::port</a>, <a class="el" href="connection_8h-source.html#l00220">connection::registered</a>, <a class="el" href="users_8h-source.html#l00137">result</a>, <a class="el" href="users_8h-source.html#l00127">server</a>, <a class="el" href="connection_8h-source.html#l00232">connection::signon</a>, <a class="el" href="users_8h-source.html#l00149">timeout</a>, and <a class="el" href="channels_8h-source.html#l00208">ucrec::uc_modes</a>. -<p> -<div class="fragment"><pre>00026 { -00027 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> -00028 strcpy(nick,<span class="stringliteral">""</span>); -00029 strcpy(ip,<span class="stringliteral">"127.0.0.1"</span>); -00030 <a class="code" href="classuserrec.html#o10">timeout</a> = 0; -00031 strcpy(ident,<span class="stringliteral">""</span>); -00032 strcpy(host,<span class="stringliteral">""</span>); -00033 strcpy(dhost,<span class="stringliteral">""</span>); -00034 strcpy(fullname,<span class="stringliteral">""</span>); -00035 strcpy(modes,<span class="stringliteral">""</span>); -00036 strcpy(inbuf,<span class="stringliteral">""</span>); -00037 strcpy(server,<span class="stringliteral">""</span>); -00038 strcpy(awaymsg,<span class="stringliteral">""</span>); -00039 <a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="classconnection.html#o12">lastping</a> = <a class="code" href="classconnection.html#o13">signon</a> = <a class="code" href="classconnection.html#o14">idle_lastmsg</a> = <a class="code" href="classconnection.html#o15">nping</a> = <a class="code" href="classconnection.html#o10">registered</a> = 0; -00040 <a class="code" href="classuserrec.html#o9">flood</a> = <a class="code" href="classconnection.html#o9">port</a> = <a class="code" href="classconnection.html#o4">bytes_in</a> = <a class="code" href="classconnection.html#o5">bytes_out</a> = <a class="code" href="classconnection.html#o6">cmds_in</a> = <a class="code" href="classconnection.html#o7">cmds_out</a> = 0; -00041 <a class="code" href="classconnection.html#o8">haspassed</a> = <span class="keyword">false</span>; -00042 strcpy(result,<span class="stringliteral">""</span>); -00043 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < MAXCHANS; i++) -00044 { -00045 this-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> = NULL; -00046 this-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o0">uc_modes</a> = 0; -00047 } -00048 <a class="code" href="classuserrec.html#r0">invites</a>.clear(); -00049 } +Definition at line <a class="el" href="users_8cpp-source.html#l00026">26</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +<p> +References <a class="el" href="users_8h-source.html#l00132">awaymsg</a>, <a class="el" href="connection_8h-source.html#l00194">connection::bytes_in</a>, <a class="el" href="connection_8h-source.html#l00198">connection::bytes_out</a>, <a class="el" href="channels_8h-source.html#l00213">ucrec::channel</a>, <a class="el" href="users_8h-source.html#l00123">chans</a>, <a class="el" href="connection_8h-source.html#l00202">connection::cmds_in</a>, <a class="el" href="connection_8h-source.html#l00206">connection::cmds_out</a>, <a class="el" href="users_8h-source.html#l00111">dhost</a>, <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, <a class="el" href="users_8h-source.html#l00143">flood</a>, <a class="el" href="users_8h-source.html#l00115">fullname</a>, <a class="el" href="connection_8h-source.html#l00210">connection::haspassed</a>, <a class="el" href="connection_8h-source.html#l00182">connection::host</a>, <a class="el" href="users_8h-source.html#l00106">ident</a>, <a class="el" href="connection_8h-source.html#l00236">connection::idle_lastmsg</a>, <a class="el" href="connection_8h-source.html#l00190">connection::inbuf</a>, <a class="el" href="users_8h-source.html#l00095">invites</a>, <a class="el" href="connection_8h-source.html#l00186">connection::ip</a>, <a class="el" href="connection_8h-source.html#l00228">connection::lastping</a>, <a class="el" href="users_8h-source.html#l00121">modes</a>, <a class="el" href="users_8h-source.html#l00102">nick</a>, <a class="el" href="connection_8h-source.html#l00240">connection::nping</a>, <a class="el" href="users_8h-source.html#l00156">oper</a>, <a class="el" href="connection_8h-source.html#l00216">connection::port</a>, <a class="el" href="connection_8h-source.html#l00220">connection::registered</a>, <a class="el" href="users_8h-source.html#l00137">result</a>, <a class="el" href="users_8h-source.html#l00127">server</a>, <a class="el" href="connection_8h-source.html#l00232">connection::signon</a>, <a class="el" href="users_8h-source.html#l00149">timeout</a>, and <a class="el" href="channels_8h-source.html#l00208">ucrec::uc_modes</a>. +<p> +<div class="fragment"><pre>00027 { +00028 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> +00029 strcpy(nick,<span class="stringliteral">""</span>); +00030 strcpy(ip,<span class="stringliteral">"127.0.0.1"</span>); +00031 <a class="code" href="classuserrec.html#o10">timeout</a> = 0; +00032 strcpy(ident,<span class="stringliteral">""</span>); +00033 strcpy(host,<span class="stringliteral">""</span>); +00034 strcpy(dhost,<span class="stringliteral">""</span>); +00035 strcpy(fullname,<span class="stringliteral">""</span>); +00036 strcpy(modes,<span class="stringliteral">""</span>); +00037 strcpy(inbuf,<span class="stringliteral">""</span>); +00038 strcpy(server,<span class="stringliteral">""</span>); +00039 strcpy(awaymsg,<span class="stringliteral">""</span>); +00040 strcpy(oper,<span class="stringliteral">""</span>); +00041 <a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="classconnection.html#o12">lastping</a> = <a class="code" href="classconnection.html#o13">signon</a> = <a class="code" href="classconnection.html#o14">idle_lastmsg</a> = <a class="code" href="classconnection.html#o15">nping</a> = <a class="code" href="classconnection.html#o10">registered</a> = 0; +00042 <a class="code" href="classuserrec.html#o9">flood</a> = <a class="code" href="classconnection.html#o9">port</a> = <a class="code" href="classconnection.html#o4">bytes_in</a> = <a class="code" href="classconnection.html#o5">bytes_out</a> = <a class="code" href="classconnection.html#o6">cmds_in</a> = <a class="code" href="classconnection.html#o7">cmds_out</a> = 0; +00043 <a class="code" href="classconnection.html#o8">haspassed</a> = <span class="keyword">false</span>; +00044 strcpy(result,<span class="stringliteral">""</span>); +00045 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < MAXCHANS; i++) +00046 { +00047 this-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> = NULL; +00048 this-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o0">uc_modes</a> = 0; +00049 } +00050 <a class="code" href="classuserrec.html#r0">invites</a>.clear(); +00051 } </pre></div> </td> </tr> </table> @@ -207,14 +208,14 @@ Returns the full displayed host of the user This member function returns the hos <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00053">53</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00055">55</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> References <a class="el" href="users_8h-source.html#l00111">dhost</a>, <a class="el" href="users_8h-source.html#l00106">ident</a>, <a class="el" href="users_8h-source.html#l00102">nick</a>, and <a class="el" href="users_8h-source.html#l00137">result</a>. <p> -<div class="fragment"><pre>00054 { -00055 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost); -00056 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>; -00057 } +<div class="fragment"><pre>00056 { +00057 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,dhost); +00058 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>; +00059 } </pre></div> </td> </tr> </table> @@ -247,14 +248,14 @@ Returns the full real host of the user This member function returns the hostname <p> 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. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00060">60</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00062">62</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> References <a class="el" href="connection_8h-source.html#l00182">connection::host</a>, <a class="el" href="users_8h-source.html#l00106">ident</a>, <a class="el" href="users_8h-source.html#l00102">nick</a>, and <a class="el" href="users_8h-source.html#l00137">result</a>. <p> -<div class="fragment"><pre>00061 { -00062 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host); -00063 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>; -00064 } +<div class="fragment"><pre>00063 { +00064 snprintf(result,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,nick,ident,host); +00065 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>; +00066 } </pre></div> </td> </tr> </table> @@ -288,60 +289,60 @@ Returns true or false for if a user can execute a privilaged oper command. <p> This is done by looking up their oper type from <a class="el" href="classuserrec.html#o11">userrec::oper</a>, then referencing this to their oper classes and checking the commands they can execute. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00109">109</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. -<p> -References <a class="el" href="channels_8cpp-source.html#l00100">config_f</a>, and <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>. -<p> -<div class="fragment"><pre>00110 { -00111 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -00112 <span class="keywordtype">char</span>* myclass; -00113 <span class="keywordtype">char</span>* mycmd; -00114 <span class="keywordtype">char</span>* savept; -00115 <span class="keywordtype">char</span>* savept2; -00116 -00117 <span class="comment">// are they even an oper at all?</span> -00118 <span class="keywordflow">if</span> (strchr(this->modes,<span class="charliteral">'o'</span>)) -00119 { -00120 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper"</span>,this->nick); -00121 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j < ConfValueEnum(<span class="stringliteral">"type"</span>,&config_f); j++) -00122 { -00123 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&config_f); -00124 <span class="keywordflow">if</span> (!strcmp(TypeName,this->oper)) -00125 { -00126 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper of type '%s'"</span>,this->nick,this->oper); -00127 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&config_f); -00128 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); -00129 <span class="keywordflow">while</span> (myclass) -00130 { -00131 log(DEBUG,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass); -00132 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < ConfValueEnum(<span class="stringliteral">"class"</span>,&config_f); k++) -00133 { -00134 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&config_f); -00135 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) -00136 { -00137 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&config_f); -00138 log(DEBUG,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList); -00139 -00140 -00141 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); -00142 <span class="keywordflow">while</span> (mycmd) -00143 { -00144 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command)) -00145 { -00146 log(DEBUG,<span class="stringliteral">"*** Command %s found, returning true"</span>,command); -00147 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00148 } -00149 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); -00150 } -00151 } -00152 } -00153 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); -00154 } -00155 } -00156 } -00157 } -00158 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00159 } +Definition at line <a class="el" href="users_8cpp-source.html#l00111">111</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +<p> +References <a class="el" href="channels_8cpp-source.html#l00101">config_f</a>, and <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>. +<p> +<div class="fragment"><pre>00112 { +00113 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +00114 <span class="keywordtype">char</span>* myclass; +00115 <span class="keywordtype">char</span>* mycmd; +00116 <span class="keywordtype">char</span>* savept; +00117 <span class="keywordtype">char</span>* savept2; +00118 +00119 <span class="comment">// are they even an oper at all?</span> +00120 <span class="keywordflow">if</span> (strchr(this->modes,<span class="charliteral">'o'</span>)) +00121 { +00122 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper"</span>,this->nick); +00123 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j < ConfValueEnum(<span class="stringliteral">"type"</span>,&config_f); j++) +00124 { +00125 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&config_f); +00126 <span class="keywordflow">if</span> (!strcmp(TypeName,this->oper)) +00127 { +00128 log(DEBUG,<span class="stringliteral">"*** HasPermission: %s is an oper of type '%s'"</span>,this->nick,this->oper); +00129 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&config_f); +00130 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); +00131 <span class="keywordflow">while</span> (myclass) +00132 { +00133 log(DEBUG,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass); +00134 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < ConfValueEnum(<span class="stringliteral">"class"</span>,&config_f); k++) +00135 { +00136 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&config_f); +00137 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) +00138 { +00139 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&config_f); +00140 log(DEBUG,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList); +00141 +00142 +00143 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); +00144 <span class="keywordflow">while</span> (mycmd) +00145 { +00146 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command)) +00147 { +00148 log(DEBUG,<span class="stringliteral">"*** Command %s found, returning true"</span>,command); +00149 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00150 } +00151 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); +00152 } +00153 } +00154 } +00155 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); +00156 } +00157 } +00158 } +00159 } +00160 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00161 } </pre></div> </td> </tr> </table> @@ -375,15 +376,15 @@ Adds a channel to a users invite list (invites them to a channel). <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00080">80</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00082">82</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> References <a class="el" href="users_8h-source.html#l00039">Invited::channel</a>, and <a class="el" href="users_8h-source.html#l00095">invites</a>. <p> -<div class="fragment"><pre>00081 { -00082 <a class="code" href="classInvited.html">Invited</a> i; -00083 strlcpy(i.<a class="code" href="classInvited.html#o0">channel</a>,channel,CHANMAX); -00084 <a class="code" href="classuserrec.html#r0">invites</a>.push_back(i); -00085 } +<div class="fragment"><pre>00083 { +00084 <a class="code" href="classInvited.html">Invited</a> i; +00085 strlcpy(i.<a class="code" href="classInvited.html#o0">channel</a>,channel,CHANMAX); +00086 <a class="code" href="classuserrec.html#r0">invites</a>.push_back(i); +00087 } </pre></div> </td> </tr> </table> @@ -417,22 +418,22 @@ Returns true if a user is invited to a channel. <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00066">66</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00068">68</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> References <a class="el" href="users_8h-source.html#l00095">invites</a>. <p> -<div class="fragment"><pre>00067 { -00068 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#r0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#r0">invites</a>.end(); i++) -00069 { -00070 <span class="keywordflow">if</span> (i->channel) { -00071 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -00072 { -00073 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00074 } -00075 } -00076 } -00077 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00078 } +<div class="fragment"><pre>00069 { +00070 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#r0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#r0">invites</a>.end(); i++) +00071 { +00072 <span class="keywordflow">if</span> (i->channel) { +00073 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +00074 { +00075 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00076 } +00077 } +00078 } +00079 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00080 } </pre></div> </td> </tr> </table> @@ -466,30 +467,30 @@ Removes a channel from a users invite list. <p> This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation. <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00087">87</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. +Definition at line <a class="el" href="users_8cpp-source.html#l00089">89</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. <p> References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, and <a class="el" href="users_8h-source.html#l00095">invites</a>. <p> -<div class="fragment"><pre>00088 { -00089 log(DEBUG,<span class="stringliteral">"Removing invites"</span>); -00090 <span class="keywordflow">if</span> (channel) -00091 { -00092 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#r0">invites</a>.size()) -00093 { -00094 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#r0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#r0">invites</a>.end(); i++) -00095 { -00096 <span class="keywordflow">if</span> (i->channel) -00097 { -00098 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -00099 { -00100 <a class="code" href="classuserrec.html#r0">invites</a>.erase(i); -00101 <span class="keywordflow">return</span>; -00102 } -00103 } -00104 } -00105 } -00106 } -00107 } +<div class="fragment"><pre>00090 { +00091 log(DEBUG,<span class="stringliteral">"Removing invites"</span>); +00092 <span class="keywordflow">if</span> (channel) +00093 { +00094 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#r0">invites</a>.size()) +00095 { +00096 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#r0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#r0">invites</a>.end(); i++) +00097 { +00098 <span class="keywordflow">if</span> (i->channel) +00099 { +00100 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +00101 { +00102 <a class="code" href="classuserrec.html#r0">invites</a>.erase(i); +00103 <span class="keywordflow">return</span>; +00104 } +00105 } +00106 } +00107 } +00108 } +00109 } </pre></div> </td> </tr> </table> @@ -519,7 +520,7 @@ If this string is empty, the user is not marked as away. <p> Definition at line <a class="el" href="users_8h-source.html#l00132">132</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o5" doxytag="userrec::chans"></a><p> @@ -545,7 +546,7 @@ Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. <p> Definition at line <a class="el" href="users_8h-source.html#l00123">123</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o2" doxytag="userrec::dhost"></a><p> @@ -573,7 +574,7 @@ This usually matches the value of <a class="el" href="classconnection.html#o1">u <p> Definition at line <a class="el" href="users_8h-source.html#l00111">111</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00053">GetFullHost()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00055">GetFullHost()</a>, and <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o9" doxytag="userrec::flood"></a><p> @@ -601,7 +602,7 @@ Number of lines the user can place into the buffer (up to the global NetBufferSi <p> Definition at line <a class="el" href="users_8h-source.html#l00143">143</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o3" doxytag="userrec::fullname"></a><p> @@ -629,7 +630,7 @@ The users full name. <p> Definition at line <a class="el" href="users_8h-source.html#l00115">115</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o1" doxytag="userrec::ident"></a><p> @@ -657,7 +658,7 @@ The users ident reply. <p> Definition at line <a class="el" href="users_8h-source.html#l00106">106</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00053">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00060">GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00055">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00062">GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="r0" doxytag="userrec::invites"></a><p> @@ -685,7 +686,7 @@ A list of channels the user has a pending invite to. <p> Definition at line <a class="el" href="users_8h-source.html#l00095">95</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00080">InviteTo()</a>, <a class="el" href="users_8cpp-source.html#l00066">IsInvited()</a>, <a class="el" href="users_8cpp-source.html#l00087">RemoveInvite()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00082">InviteTo()</a>, <a class="el" href="users_8cpp-source.html#l00068">IsInvited()</a>, <a class="el" href="users_8cpp-source.html#l00089">RemoveInvite()</a>, and <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o4" doxytag="userrec::modes"></a><p> @@ -713,7 +714,7 @@ This may contain any of the following RFC characters: o, w, s, i Your module may <p> Definition at line <a class="el" href="users_8h-source.html#l00121">121</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o0" doxytag="userrec::nick"></a><p> @@ -741,7 +742,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma <p> Definition at line <a class="el" href="users_8h-source.html#l00102">102</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00663">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00053">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00060">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00386">Server::QuitUser()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00673">ConfigReader::DumpErrors()</a>, <a class="el" href="users_8cpp-source.html#l00055">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00062">GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00396">Server::QuitUser()</a>, and <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o11" doxytag="userrec::oper"></a><p> @@ -767,7 +768,9 @@ The oper type they logged in as, if they are an oper. <p> 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. <p> -Definition at line <a class="el" href="users_8h-source.html#l00156">156</a> of file <a class="el" href="users_8h-source.html">users.h</a>. </td> +Definition at line <a class="el" href="users_8h-source.html#l00156">156</a> of file <a class="el" href="users_8h-source.html">users.h</a>. +<p> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o8" doxytag="userrec::result"></a><p> @@ -795,7 +798,7 @@ You may use this to increase the speed of use of this class. <p> Definition at line <a class="el" href="users_8h-source.html#l00137">137</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00053">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00060">GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00055">GetFullHost()</a>, <a class="el" href="users_8cpp-source.html#l00062">GetFullRealHost()</a>, and <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o6" doxytag="userrec::server"></a><p> @@ -823,7 +826,7 @@ The server the user is connected to. <p> Definition at line <a class="el" href="users_8h-source.html#l00127">127</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <a name="o10" doxytag="userrec::timeout"></a><p> @@ -851,12 +854,12 @@ Number of seconds this user is given to send USER/NICK If they do not send their <p> Definition at line <a class="el" href="users_8h-source.html#l00149">149</a> of file <a class="el" href="users_8h-source.html">users.h</a>. <p> -Referenced by <a class="el" href="users_8cpp-source.html#l00025">userrec()</a>. </td> +Referenced by <a class="el" href="users_8cpp-source.html#l00026">userrec()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="users_8h-source.html">users.h</a><li><a class="el" href="users_8cpp-source.html">users.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index 0f09a8152..7e7fe4af0 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -113,7 +113,7 @@ 00114 <span class="keywordtype">bool</span> <a class="code" href="commands_8h.html#a71">is_uline</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* server); 00115 00116 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:27 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:24 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> diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index 0896615b4..bb4c3ff1e 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -3548,7 +3548,7 @@ Functions for u:lined servers. <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00392">Server::IsUlined()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00402">Server::IsUlined()</a>. </td> </tr> </table> <a name="a48" doxytag="commands.h::process_restricted_commands"></a><p> @@ -3619,7 +3619,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00392">Server::IsUli </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:27 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> diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index b63a55de3..392a25536 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -168,7 +168,7 @@ 00300 00301 <span class="preprocessor">#endif</span> 00302 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:27 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:24 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> diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index 7a1b5130d..dd22d1cba 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -191,7 +191,7 @@ Definition at line <a class="el" href="connection_8h-source.html#l00039">39</a> Definition at line <a class="el" href="connection_8h-source.html#l00036">36</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:27 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> diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index 58c4c7747..194a347e3 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -41,7 +41,7 @@ 00048 00049 <span class="preprocessor">#endif</span> 00050 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:27 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:24 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> diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index f49ddf7f8..17edc9eed 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -17,7 +17,7 @@ <tr><td class="mdescLeft"> </td><td class="mdescRight">A structure that defines a command. </em> <a href="classcommand__t.html#_details">More...</a><em><br><br></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:27 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> diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 670c40590..b69ab8557 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -22,7 +22,7 @@ <tr><td class="indexkey"><a class="el" href="users_8h.html">users.h</a> <a href="users_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="xline_8h.html">xline.h</a> <a href="xline_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:26 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09: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> diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 6a5ca8840..770c9e991 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -186,11 +186,14 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classconnection.html#o15">connection</a></ul> <h3><a name="index_o">- o -</a> </h3><ul> -<li>OnAccessCheck() +<li>On005Numeric() +: <a class="el" href="classModule.html#a23">Module</a><li>OnAccessCheck() : <a class="el" href="classModule.html#a20">Module</a><li>OnChannelSync() : <a class="el" href="classModule.html#a22">Module</a><li>OnExtendedMode() : <a class="el" href="classModule.html#a11">Module</a><li>OnInfo() -: <a class="el" href="classModule.html#a14">Module</a><li>OnOper() +: <a class="el" href="classModule.html#a14">Module</a><li>OnKill() +: <a class="el" href="classModule.html#a24">Module</a><li>OnLoadModule() +: <a class="el" href="classModule.html#a25">Module</a><li>OnOper() : <a class="el" href="classModule.html#a13">Module</a><li>OnPacketReceive() : <a class="el" href="classModule.html#a8">Module</a><li>OnPacketTransmit() : <a class="el" href="classModule.html#a7">Module</a><li>OnRehash() @@ -253,9 +256,9 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classServer.html#a5">Server</a><li>SendTo() : <a class="el" href="classServer.html#a7">Server</a><li>SendToModeMask() : <a class="el" href="classServer.html#a25">Server</a><li>SendWallops() -: <a class="el" href="classServer.html#a11">Server</a><li>Server() -: <a class="el" href="classServer.html#a0">Server</a><li>server -: <a class="el" href="classuserrec.html#o6">userrec</a><li>servername +: <a class="el" href="classServer.html#a11">Server</a><li>server +: <a class="el" href="classuserrec.html#o6">userrec</a><li>Server() +: <a class="el" href="classServer.html#a0">Server</a><li>servername : <a class="el" href="classircd__connector.html#r2">ircd_connector</a><li>serverrec() : <a class="el" href="classserverrec.html#a1">serverrec</a><li>set_by : <a class="el" href="classHostItem.html#o1">HostItem</a><li>set_time @@ -314,7 +317,7 @@ Here is a list of all class members with links to the classes they belong to:<h3 : <a class="el" href="classserverrec.html#a2">serverrec</a><li>~ucrec() : <a class="el" href="classucrec.html#a1">ucrec</a><li>~userrec() : <a class="el" href="classuserrec.html#a1">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index dfce49e59..bf68a482e 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -114,11 +114,14 @@ : <a class="el" href="classModuleFactory.html#a0">ModuleFactory</a></ul> <h3><a name="index_o">- o -</a> </h3><ul> -<li>OnAccessCheck() +<li>On005Numeric() +: <a class="el" href="classModule.html#a23">Module</a><li>OnAccessCheck() : <a class="el" href="classModule.html#a20">Module</a><li>OnChannelSync() : <a class="el" href="classModule.html#a22">Module</a><li>OnExtendedMode() : <a class="el" href="classModule.html#a11">Module</a><li>OnInfo() -: <a class="el" href="classModule.html#a14">Module</a><li>OnOper() +: <a class="el" href="classModule.html#a14">Module</a><li>OnKill() +: <a class="el" href="classModule.html#a24">Module</a><li>OnLoadModule() +: <a class="el" href="classModule.html#a25">Module</a><li>OnOper() : <a class="el" href="classModule.html#a13">Module</a><li>OnPacketReceive() : <a class="el" href="classModule.html#a8">Module</a><li>OnPacketTransmit() : <a class="el" href="classModule.html#a7">Module</a><li>OnRehash() @@ -206,7 +209,7 @@ : <a class="el" href="classserverrec.html#a2">serverrec</a><li>~ucrec() : <a class="el" href="classucrec.html#a1">ucrec</a><li>~userrec() : <a class="el" href="classuserrec.html#a1">userrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index 448444fdd..a0ce38b35 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -173,7 +173,7 @@ </h3><ul> <li>version : <a class="el" href="classserverrec.html#o6">serverrec</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:31 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index d6a7125ab..8b5aec650 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -320,7 +320,7 @@ Here is a list of all file members with links to the files they belong to:<h3><a <li>zline_make_global() : <a class="el" href="xline_8h.html#a22">xline.h</a><li>zline_set_creation_time() : <a class="el" href="xline_8h.html#a21">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index fbd70e221..6a1565b79 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -87,7 +87,7 @@ </h3><ul> <li>VERBOSE : <a class="el" href="modules_8h.html#a1">modules.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:35 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/globals_func.html b/docs/module-doc/globals_func.html index f72bb0444..c4b98b168 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -203,7 +203,7 @@ <li>zline_make_global() : <a class="el" href="xline_8h.html#a22">xline.h</a><li>zline_set_creation_time() : <a class="el" href="xline_8h.html#a21">xline.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:35 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index e1eede3f6..ec9c4ce13 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -26,7 +26,7 @@ : <a class="el" href="modules_8h.html#a27">modules.h</a><li>user_hash : <a class="el" href="modules_8cpp.html#a37">modules.cpp</a><li>VoidPointer : <a class="el" href="base_8h.html#a0">base.h</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:35 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index a1cbb448c..cedf26b75 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -101,7 +101,7 @@ : <a class="el" href="modules_8cpp.html#a43">modules.cpp</a><li>WHOWAS_MAX : <a class="el" href="modules_8cpp.html#a20">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a20">channels.cpp</a><li>WHOWAS_STALE : <a class="el" href="modules_8cpp.html#a19">modules.cpp</a>, <a class="el" href="channels_8cpp.html#a19">channels.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:35 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 3e21d851d..4dd573d83 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -51,7 +51,7 @@ <li><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a> <li><a class="el" href="structStrHashComp.html">StrHashComp</a> </ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index a85445e6c..2b0767bc6 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindexHL" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>InspIRCd Documentation</h1> <p> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:26 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09: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> diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index 507b78ada..428089429 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -57,7 +57,7 @@ 00050 <span class="keywordtype">void</span> <a class="code" href="message_8h.html#a19">send_network_quit</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* nick, <span class="keyword">const</span> <span class="keywordtype">char</span>* reason); 00051 00052 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:27 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:24 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> diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index 80adff029..bd8546e2b 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -155,7 +155,7 @@ <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00480">Server::ChangeHost()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00490">Server::ChangeHost()</a>. </td> </tr> </table> <a name="a10" doxytag="message.h::ChangeName"></a><p> @@ -195,7 +195,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00480">Server::Chang <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00485">Server::ChangeGECOS()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00495">Server::ChangeGECOS()</a>. </td> </tr> </table> <a name="a18" doxytag="message.h::chlist"></a><p> @@ -331,7 +331,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00485">Server::Chang <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00505">Server::ChanMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00515">Server::ChanMode()</a>. </td> </tr> </table> <a name="a0" doxytag="message.h::common_channels"></a><p> @@ -371,7 +371,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00505">Server::ChanM <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00458">Server::CommonChannels()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00468">Server::CommonChannels()</a>. </td> </tr> </table> <a name="a15" doxytag="message.h::cstatus"></a><p> @@ -449,7 +449,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00458">Server::Commo <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00362">Server::GetUsers()</a>, and <a class="el" href="modules_8cpp-source.html#l00510">Server::IsOnChannel()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00372">Server::GetUsers()</a>, and <a class="el" href="modules_8cpp-source.html#l00520">Server::IsOnChannel()</a>. </td> </tr> </table> <a name="a9" doxytag="message.h::hasumode"></a><p> @@ -547,7 +547,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00362">Server::GetUs <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00362">Server::GetUsers()</a>, and <a class="el" href="modules_8cpp-source.html#l00490">Server::IsNick()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00372">Server::GetUsers()</a>, and <a class="el" href="modules_8cpp-source.html#l00500">Server::IsNick()</a>. </td> </tr> </table> <a name="a6" doxytag="message.h::NonBlocking"></a><p> @@ -674,7 +674,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00362">Server::GetUs <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00386">Server::QuitUser()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00396">Server::QuitUser()</a>. </td> </tr> </table> <a name="a17" doxytag="message.h::TidyBan"></a><p> @@ -735,7 +735,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00386">Server::QuitU </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:27 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> diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 833ab2396..197115a66 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -53,7 +53,7 @@ 00046 00047 00048 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:27 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:24 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> diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index fb4674b0b..526912537 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:27 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> diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index fcf95d119..27f88fd1a 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -58,719 +58,729 @@ 00051 <span class="preprocessor">#include "<a class="code" href="mode_8h.html">mode.h</a>"</span> 00052 <span class="preprocessor">#include "<a class="code" href="xline_8h.html">xline.h</a>"</span> 00053 <span class="preprocessor">#include "<a class="code" href="commands_8h.html">commands.h</a>"</span> -00054 -00055 <span class="preprocessor">#ifdef GCC3</span> -00056 <span class="preprocessor"></span><span class="preprocessor">#define nspace __gnu_cxx</span> -00057 <span class="preprocessor"></span><span class="preprocessor">#else</span> -<a name="l00058"></a><a class="code" href="modules_8cpp.html#a0">00058</a> <span class="preprocessor"></span><span class="preprocessor">#define nspace std</span> -00059 <span class="preprocessor"></span><span class="preprocessor">#endif</span> -00060 <span class="preprocessor"></span> -00061 <span class="keyword">using</span> <span class="keyword">namespace </span>std; -00062 -00063 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a>; -<a name="l00064"></a><a class="code" href="modules_8cpp.html#a2">00064</a> <span class="keyword">extern</span> vector<Module*> <a class="code" href="channels_8cpp.html#a2">modules</a>; -<a name="l00065"></a><a class="code" href="modules_8cpp.html#a3">00065</a> <span class="keyword">extern</span> vector<ircd_module*> <a class="code" href="channels_8cpp.html#a3">factory</a>; -00066 -<a name="l00067"></a><a class="code" href="modules_8cpp.html#a4">00067</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a4">LogLevel</a>; -<a name="l00068"></a><a class="code" href="modules_8cpp.html#a5">00068</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a5">ServerName</a>[MAXBUF]; -<a name="l00069"></a><a class="code" href="modules_8cpp.html#a6">00069</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a6">Network</a>[MAXBUF]; -<a name="l00070"></a><a class="code" href="modules_8cpp.html#a7">00070</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a7">ServerDesc</a>[MAXBUF]; -<a name="l00071"></a><a class="code" href="modules_8cpp.html#a8">00071</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a8">AdminName</a>[MAXBUF]; -<a name="l00072"></a><a class="code" href="modules_8cpp.html#a9">00072</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a9">AdminEmail</a>[MAXBUF]; -<a name="l00073"></a><a class="code" href="modules_8cpp.html#a10">00073</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a10">AdminNick</a>[MAXBUF]; -<a name="l00074"></a><a class="code" href="modules_8cpp.html#a11">00074</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a11">diepass</a>[MAXBUF]; -<a name="l00075"></a><a class="code" href="modules_8cpp.html#a12">00075</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a12">restartpass</a>[MAXBUF]; -<a name="l00076"></a><a class="code" href="modules_8cpp.html#a13">00076</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a13">motd</a>[MAXBUF]; -<a name="l00077"></a><a class="code" href="modules_8cpp.html#a14">00077</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a14">rules</a>[MAXBUF]; -<a name="l00078"></a><a class="code" href="modules_8cpp.html#a15">00078</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a15">list</a>[MAXBUF]; -<a name="l00079"></a><a class="code" href="modules_8cpp.html#a16">00079</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a16">PrefixQuit</a>[MAXBUF]; -<a name="l00080"></a><a class="code" href="modules_8cpp.html#a17">00080</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a17">DieValue</a>[MAXBUF]; -00081 -<a name="l00082"></a><a class="code" href="modules_8cpp.html#a18">00082</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a18">debugging</a>; -<a name="l00083"></a><a class="code" href="modules_8cpp.html#a19">00083</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a19">WHOWAS_STALE</a>; -<a name="l00084"></a><a class="code" href="modules_8cpp.html#a20">00084</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a20">WHOWAS_MAX</a>; -<a name="l00085"></a><a class="code" href="modules_8cpp.html#a21">00085</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a21">DieDelay</a>; -<a name="l00086"></a><a class="code" href="modules_8cpp.html#a22">00086</a> <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#a22">startup_time</a>; -<a name="l00087"></a><a class="code" href="modules_8cpp.html#a23">00087</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a23">NetBufferSize</a>; -<a name="l00088"></a><a class="code" href="modules_8cpp.html#a24">00088</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a24">MaxWhoResults</a>; -<a name="l00089"></a><a class="code" href="modules_8cpp.html#a25">00089</a> <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#a25">nb_start</a>; -00090 -<a name="l00091"></a><a class="code" href="modules_8cpp.html#a26">00091</a> <span class="keyword">extern</span> std::vector<int> <a class="code" href="channels_8cpp.html#a26">fd_reap</a>; -<a name="l00092"></a><a class="code" href="modules_8cpp.html#a27">00092</a> <span class="keyword">extern</span> std::vector<std::string> <a class="code" href="channels_8cpp.html#a27">module_names</a>; -00093 -<a name="l00094"></a><a class="code" href="modules_8cpp.html#a28">00094</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a28">boundPortCount</a>; -<a name="l00095"></a><a class="code" href="modules_8cpp.html#a29">00095</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a29">portCount</a>; -<a name="l00096"></a><a class="code" href="modules_8cpp.html#a30">00096</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a30">UDPportCount</a>; -<a name="l00097"></a><a class="code" href="modules_8cpp.html#a31">00097</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a31">ports</a>[MAXSOCKS]; -<a name="l00098"></a><a class="code" href="modules_8cpp.html#a32">00098</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a32">defaultRoute</a>; -00099 -<a name="l00100"></a><a class="code" href="modules_8cpp.html#a33">00100</a> <span class="keyword">extern</span> std::vector<long> <a class="code" href="channels_8cpp.html#a33">auth_cookies</a>; -<a name="l00101"></a><a class="code" href="modules_8cpp.html#a34">00101</a> <span class="keyword">extern</span> std::stringstream <a class="code" href="channels_8cpp.html#a34">config_f</a>; -00102 -<a name="l00103"></a><a class="code" href="modules_8cpp.html#a35">00103</a> <span class="keyword">extern</span> <a class="code" href="classserverrec.html">serverrec</a>* <a class="code" href="channels_8cpp.html#a35">me</a>[32]; -00104 -<a name="l00105"></a><a class="code" href="modules_8cpp.html#a36">00105</a> <span class="keyword">extern</span> FILE *<a class="code" href="channels_8cpp.html#a36">log_file</a>; -00106 +00054 <span class="preprocessor">#include "inspstring.h"</span> +00055 +00056 <span class="preprocessor">#ifdef GCC3</span> +00057 <span class="preprocessor"></span><span class="preprocessor">#define nspace __gnu_cxx</span> +00058 <span class="preprocessor"></span><span class="preprocessor">#else</span> +<a name="l00059"></a><a class="code" href="modules_8cpp.html#a0">00059</a> <span class="preprocessor"></span><span class="preprocessor">#define nspace std</span> +00060 <span class="preprocessor"></span><span class="preprocessor">#endif</span> +00061 <span class="preprocessor"></span> +00062 <span class="keyword">using</span> <span class="keyword">namespace </span>std; +00063 +00064 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a>; +<a name="l00065"></a><a class="code" href="modules_8cpp.html#a2">00065</a> <span class="keyword">extern</span> std::vector<Module*> <a class="code" href="channels_8cpp.html#a2">modules</a>; +<a name="l00066"></a><a class="code" href="modules_8cpp.html#a3">00066</a> <span class="keyword">extern</span> std::vector<ircd_module*> <a class="code" href="channels_8cpp.html#a3">factory</a>; +00067 +<a name="l00068"></a><a class="code" href="modules_8cpp.html#a4">00068</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a4">LogLevel</a>; +<a name="l00069"></a><a class="code" href="modules_8cpp.html#a5">00069</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a5">ServerName</a>[MAXBUF]; +<a name="l00070"></a><a class="code" href="modules_8cpp.html#a6">00070</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a6">Network</a>[MAXBUF]; +<a name="l00071"></a><a class="code" href="modules_8cpp.html#a7">00071</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a7">ServerDesc</a>[MAXBUF]; +<a name="l00072"></a><a class="code" href="modules_8cpp.html#a8">00072</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a8">AdminName</a>[MAXBUF]; +<a name="l00073"></a><a class="code" href="modules_8cpp.html#a9">00073</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a9">AdminEmail</a>[MAXBUF]; +<a name="l00074"></a><a class="code" href="modules_8cpp.html#a10">00074</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a10">AdminNick</a>[MAXBUF]; +<a name="l00075"></a><a class="code" href="modules_8cpp.html#a11">00075</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a11">diepass</a>[MAXBUF]; +<a name="l00076"></a><a class="code" href="modules_8cpp.html#a12">00076</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a12">restartpass</a>[MAXBUF]; +<a name="l00077"></a><a class="code" href="modules_8cpp.html#a13">00077</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a13">motd</a>[MAXBUF]; +<a name="l00078"></a><a class="code" href="modules_8cpp.html#a14">00078</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a14">rules</a>[MAXBUF]; +<a name="l00079"></a><a class="code" href="modules_8cpp.html#a15">00079</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a15">list</a>[MAXBUF]; +<a name="l00080"></a><a class="code" href="modules_8cpp.html#a16">00080</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a16">PrefixQuit</a>[MAXBUF]; +<a name="l00081"></a><a class="code" href="modules_8cpp.html#a17">00081</a> <span class="keyword">extern</span> <span class="keywordtype">char</span> <a class="code" href="channels_8cpp.html#a17">DieValue</a>[MAXBUF]; +00082 +<a name="l00083"></a><a class="code" href="modules_8cpp.html#a18">00083</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a18">debugging</a>; +<a name="l00084"></a><a class="code" href="modules_8cpp.html#a19">00084</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a19">WHOWAS_STALE</a>; +<a name="l00085"></a><a class="code" href="modules_8cpp.html#a20">00085</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a20">WHOWAS_MAX</a>; +<a name="l00086"></a><a class="code" href="modules_8cpp.html#a21">00086</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a21">DieDelay</a>; +<a name="l00087"></a><a class="code" href="modules_8cpp.html#a22">00087</a> <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#a22">startup_time</a>; +<a name="l00088"></a><a class="code" href="modules_8cpp.html#a23">00088</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a23">NetBufferSize</a>; +<a name="l00089"></a><a class="code" href="modules_8cpp.html#a24">00089</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a24">MaxWhoResults</a>; +<a name="l00090"></a><a class="code" href="modules_8cpp.html#a25">00090</a> <span class="keyword">extern</span> time_t <a class="code" href="channels_8cpp.html#a25">nb_start</a>; +00091 +<a name="l00092"></a><a class="code" href="modules_8cpp.html#a26">00092</a> <span class="keyword">extern</span> std::vector<int> <a class="code" href="channels_8cpp.html#a26">fd_reap</a>; +<a name="l00093"></a><a class="code" href="modules_8cpp.html#a27">00093</a> <span class="keyword">extern</span> std::vector<std::string> <a class="code" href="channels_8cpp.html#a27">module_names</a>; +00094 +<a name="l00095"></a><a class="code" href="modules_8cpp.html#a28">00095</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a28">boundPortCount</a>; +<a name="l00096"></a><a class="code" href="modules_8cpp.html#a29">00096</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a29">portCount</a>; +<a name="l00097"></a><a class="code" href="modules_8cpp.html#a30">00097</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a30">UDPportCount</a>; +<a name="l00098"></a><a class="code" href="modules_8cpp.html#a31">00098</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a31">ports</a>[MAXSOCKS]; +<a name="l00099"></a><a class="code" href="modules_8cpp.html#a32">00099</a> <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="channels_8cpp.html#a32">defaultRoute</a>; +00100 +<a name="l00101"></a><a class="code" href="modules_8cpp.html#a33">00101</a> <span class="keyword">extern</span> std::vector<long> <a class="code" href="channels_8cpp.html#a33">auth_cookies</a>; +<a name="l00102"></a><a class="code" href="modules_8cpp.html#a34">00102</a> <span class="keyword">extern</span> std::stringstream <a class="code" href="channels_8cpp.html#a34">config_f</a>; +00103 +<a name="l00104"></a><a class="code" href="modules_8cpp.html#a35">00104</a> <span class="keyword">extern</span> <a class="code" href="classserverrec.html">serverrec</a>* <a class="code" href="channels_8cpp.html#a35">me</a>[32]; +00105 +<a name="l00106"></a><a class="code" href="modules_8cpp.html#a36">00106</a> <span class="keyword">extern</span> FILE *<a class="code" href="channels_8cpp.html#a36">log_file</a>; 00107 -<a name="l00108"></a><a class="code" href="namespacenspace.html">00108</a> <span class="keyword">namespace </span><a class="code" href="channels_8cpp.html#a0">nspace</a> -00109 { -<a name="l00110"></a><a class="code" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html">00110</a> <span class="keyword">template</span><> <span class="keyword">struct </span>nspace::hash<in_addr> -00111 { -<a name="l00112"></a><a class="code" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html#a0">00112</a> size_t operator()(<span class="keyword">const</span> <span class="keyword">struct</span> in_addr &a)<span class="keyword"> const</span> -00113 <span class="keyword"> </span>{ -00114 size_t q; -00115 memcpy(&q,&a,<span class="keyword">sizeof</span>(size_t)); -00116 <span class="keywordflow">return</span> q; -00117 } -00118 }; -00119 -<a name="l00120"></a><a class="code" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">00120</a> <span class="keyword">template</span><> <span class="keyword">struct </span>nspace::hash<string> -00121 { -<a name="l00122"></a><a class="code" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html#a0">00122</a> size_t operator()(<span class="keyword">const</span> string &s)<span class="keyword"> const</span> -00123 <span class="keyword"> </span>{ -00124 <span class="keywordtype">char</span> a[MAXBUF]; -00125 <span class="keyword">static</span> <span class="keyword">struct </span>hash<const char *> strhash; -00126 strlcpy(a,s.c_str(),MAXBUF); -00127 strlower(a); -00128 <span class="keywordflow">return</span> strhash(a); -00129 } -00130 }; -00131 } -00132 -00133 -<a name="l00134"></a><a class="code" href="structStrHashComp.html">00134</a> <span class="keyword">struct </span><a class="code" href="structStrHashComp.html">StrHashComp</a> -00135 { -00136 -<a name="l00137"></a><a class="code" href="structStrHashComp.html#a0">00137</a> <span class="keywordtype">bool</span> operator()(<span class="keyword">const</span> string& s1, <span class="keyword">const</span> string& s2)<span class="keyword"> const</span> -00138 <span class="keyword"> </span>{ -00139 <span class="keywordtype">char</span> a[MAXBUF],b[MAXBUF]; -00140 strlcpy(a,s1.c_str(),MAXBUF); -00141 strlcpy(b,s2.c_str(),MAXBUF); -00142 <span class="keywordflow">return</span> (strcasecmp(a,b) == 0); -00143 } -00144 -00145 }; -00146 -<a name="l00147"></a><a class="code" href="structInAddr__HashComp.html">00147</a> <span class="keyword">struct </span><a class="code" href="structInAddr__HashComp.html">InAddr_HashComp</a> -00148 { -00149 -<a name="l00150"></a><a class="code" href="structInAddr__HashComp.html#a0">00150</a> <span class="keywordtype">bool</span> operator()(<span class="keyword">const</span> in_addr &s1, <span class="keyword">const</span> in_addr &s2)<span class="keyword"> const</span> -00151 <span class="keyword"> </span>{ -00152 size_t q; -00153 size_t p; -00154 -00155 memcpy(&q,&s1,<span class="keyword">sizeof</span>(size_t)); -00156 memcpy(&p,&s2,<span class="keyword">sizeof</span>(size_t)); -00157 -00158 <span class="keywordflow">return</span> (q == p); -00159 } -00160 -00161 }; -00162 -00163 -<a name="l00164"></a><a class="code" href="modules_8cpp.html#a37">00164</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, userrec*, nspace::hash<string>, <a class="code" href="structStrHashComp.html">StrHashComp</a>> <a class="code" href="modules_8cpp.html#a37">user_hash</a>; -<a name="l00165"></a><a class="code" href="modules_8cpp.html#a38">00165</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, chanrec*, nspace::hash<string>, <a class="code" href="structStrHashComp.html">StrHashComp</a>> <a class="code" href="modules_8cpp.html#a38">chan_hash</a>; -<a name="l00166"></a><a class="code" href="modules_8cpp.html#a39">00166</a> <span class="keyword">typedef</span> nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, <a class="code" href="structInAddr__HashComp.html">InAddr_HashComp</a>> <a class="code" href="modules_8cpp.html#a39">address_cache</a>; -<a name="l00167"></a><a class="code" href="modules_8cpp.html#a40">00167</a> <span class="keyword">typedef</span> std::deque<command_t> <a class="code" href="modules_8cpp.html#a40">command_table</a>; -00168 +00108 +<a name="l00109"></a><a class="code" href="namespacenspace.html">00109</a> <span class="keyword">namespace </span><a class="code" href="channels_8cpp.html#a0">nspace</a> +00110 { +00111 <span class="preprocessor">#ifdef GCC34</span> +00112 <span class="preprocessor"></span> <span class="keyword">template</span><> <span class="keyword">struct </span>hash<in_addr> +00113 #else +<a name="l00114"></a><a class="code" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html">00114</a> template<> struct <a class="code" href="channels_8cpp.html#a0">nspace</a>::hash<in_addr> +00115 #endif +00116 { +<a name="l00117"></a><a class="code" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html#a0">00117</a> size_t operator()(<span class="keyword">const</span> <span class="keyword">struct</span> in_addr &a)<span class="keyword"> const</span> +00118 <span class="keyword"> </span>{ +00119 size_t q; +00120 memcpy(&q,&a,<span class="keyword">sizeof</span>(size_t)); +00121 <span class="keywordflow">return</span> q; +00122 } +00123 }; +00124 <span class="preprocessor">#ifdef GCC34</span> +00125 <span class="preprocessor"></span> <span class="keyword">template</span><> <span class="keyword">struct </span>hash<string> +00126 #else +<a name="l00127"></a><a class="code" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">00127</a> template<> struct <a class="code" href="channels_8cpp.html#a0">nspace</a>::hash<string> +00128 #endif +00129 { +<a name="l00130"></a><a class="code" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html#a0">00130</a> size_t operator()(<span class="keyword">const</span> string &s)<span class="keyword"> const</span> +00131 <span class="keyword"> </span>{ +00132 <span class="keywordtype">char</span> a[MAXBUF]; +00133 <span class="keyword">static</span> <span class="keyword">struct </span>hash<const char *> strhash; +00134 strlcpy(a,s.c_str(),MAXBUF); +00135 strlower(a); +00136 <span class="keywordflow">return</span> strhash(a); +00137 } +00138 }; +00139 } +00140 +<a name="l00141"></a><a class="code" href="structStrHashComp.html">00141</a> <span class="keyword">struct </span><a class="code" href="structStrHashComp.html">StrHashComp</a> +00142 { +00143 +<a name="l00144"></a><a class="code" href="structStrHashComp.html#a0">00144</a> <span class="keywordtype">bool</span> <a class="code" href="structStrHashComp.html#a0">operator()</a>(<span class="keyword">const</span> string& s1, <span class="keyword">const</span> string& s2)<span class="keyword"> const</span> +00145 <span class="keyword"> </span>{ +00146 <span class="keywordtype">char</span> a[MAXBUF],b[MAXBUF]; +00147 strlcpy(a,s1.c_str(),MAXBUF); +00148 strlcpy(b,s2.c_str(),MAXBUF); +00149 <span class="keywordflow">return</span> (strcasecmp(a,b) == 0); +00150 } +00151 +00152 }; +00153 +<a name="l00154"></a><a class="code" href="structInAddr__HashComp.html">00154</a> <span class="keyword">struct </span><a class="code" href="structInAddr__HashComp.html">InAddr_HashComp</a> +00155 { +00156 +<a name="l00157"></a><a class="code" href="structInAddr__HashComp.html#a0">00157</a> <span class="keywordtype">bool</span> <a class="code" href="structInAddr__HashComp.html#a0">operator()</a>(<span class="keyword">const</span> in_addr &s1, <span class="keyword">const</span> in_addr &s2)<span class="keyword"> const</span> +00158 <span class="keyword"> </span>{ +00159 size_t q; +00160 size_t p; +00161 +00162 memcpy(&q,&s1,<span class="keyword">sizeof</span>(size_t)); +00163 memcpy(&p,&s2,<span class="keyword">sizeof</span>(size_t)); +00164 +00165 <span class="keywordflow">return</span> (q == p); +00166 } +00167 +00168 }; 00169 -<a name="l00170"></a><a class="code" href="modules_8cpp.html#a41">00170</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a37">user_hash</a> <a class="code" href="modules_8cpp.html#a41">clientlist</a>; -<a name="l00171"></a><a class="code" href="modules_8cpp.html#a42">00171</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a38">chan_hash</a> <a class="code" href="modules_8cpp.html#a42">chanlist</a>; -<a name="l00172"></a><a class="code" href="modules_8cpp.html#a43">00172</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a37">user_hash</a> <a class="code" href="modules_8cpp.html#a43">whowas</a>; -<a name="l00173"></a><a class="code" href="modules_8cpp.html#a44">00173</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a40">command_table</a> <a class="code" href="modules_8cpp.html#a44">cmdlist</a>; -<a name="l00174"></a><a class="code" href="modules_8cpp.html#a45">00174</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a26">file_cache</a> <a class="code" href="modules_8cpp.html#a45">MOTD</a>; -<a name="l00175"></a><a class="code" href="modules_8cpp.html#a46">00175</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a26">file_cache</a> <a class="code" href="modules_8cpp.html#a46">RULES</a>; -<a name="l00176"></a><a class="code" href="modules_8cpp.html#a47">00176</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a39">address_cache</a> <a class="code" href="modules_8cpp.html#a47">IP</a>; -00177 -00178 -00179 <span class="comment">// class type for holding an extended mode character - internal to core</span> -00180 -<a name="l00181"></a><a class="code" href="classExtMode.html">00181</a> <span class="keyword">class </span><a class="code" href="classExtMode.html">ExtMode</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00182 { -00183 <span class="keyword">public</span>: -<a name="l00184"></a><a class="code" href="classExtMode.html#o0">00184</a> <span class="keywordtype">char</span> modechar; -<a name="l00185"></a><a class="code" href="classExtMode.html#o1">00185</a> <span class="keywordtype">int</span> type; -<a name="l00186"></a><a class="code" href="classExtMode.html#o2">00186</a> <span class="keywordtype">int</span> params_when_on; -<a name="l00187"></a><a class="code" href="classExtMode.html#o3">00187</a> <span class="keywordtype">int</span> params_when_off; -<a name="l00188"></a><a class="code" href="classExtMode.html#o4">00188</a> <span class="keywordtype">bool</span> needsoper; -<a name="l00189"></a><a class="code" href="classExtMode.html#o5">00189</a> <span class="keywordtype">bool</span> <a class="code" href="channels_8cpp.html#a15">list</a>; -<a name="l00190"></a><a class="code" href="classExtMode.html#a0">00190</a> <a class="code" href="classExtMode.html">ExtMode</a>(<span class="keywordtype">char</span> mc, <span class="keywordtype">int</span> ty, <span class="keywordtype">bool</span> oper, <span class="keywordtype">int</span> p_on, <span class="keywordtype">int</span> p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; -00191 }; -00192 -<a name="l00193"></a><a class="code" href="modules_8cpp.html#a48">00193</a> <span class="keyword">typedef</span> std::vector<ExtMode> <a class="code" href="modules_8cpp.html#a48">ExtModeList</a>; -<a name="l00194"></a><a class="code" href="modules_8cpp.html#a49">00194</a> <span class="keyword">typedef</span> ExtModeList::iterator <a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a>; -00195 -00196 -<a name="l00197"></a><a class="code" href="modules_8cpp.html#a50">00197</a> <a class="code" href="modules_8cpp.html#a48">ExtModeList</a> <a class="code" href="modules_8cpp.html#a50">EMode</a>; -00198 -00199 <span class="comment">// returns true if an extended mode character is in use</span> -<a name="l00200"></a><a class="code" href="modules_8cpp.html#a51">00200</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a51">ModeDefined</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -00201 { -00202 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); -00203 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00204 { -00205 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00206 { -00207 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00208 } -00209 } -00210 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00211 } -00212 -<a name="l00213"></a><a class="code" href="modules_8cpp.html#a52">00213</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a52">ModeIsListMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -00214 { -00215 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); -00216 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00217 { -00218 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) -00219 { -00220 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00221 } -00222 } -00223 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00224 } -00225 -<a name="l00226"></a><a class="code" href="modules_8cpp.html#a53">00226</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a53">ModeDefinedOper</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -00227 { -00228 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); -00229 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00230 { -00231 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) -00232 { -00233 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00234 } -00235 } -00236 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00237 } -00238 -00239 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> -<a name="l00240"></a><a class="code" href="modules_8cpp.html#a54">00240</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a54">ModeDefinedOn</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -00241 { -00242 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00243 { -00244 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00245 { -00246 <span class="keywordflow">return</span> i->params_when_on; -00247 } -00248 } -00249 <span class="keywordflow">return</span> 0; -00250 } -00251 -00252 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> -<a name="l00253"></a><a class="code" href="modules_8cpp.html#a55">00253</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a55">ModeDefinedOff</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) -00254 { -00255 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00256 { -00257 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00258 { -00259 <span class="keywordflow">return</span> i->params_when_off; -00260 } -00261 } -00262 <span class="keywordflow">return</span> 0; -00263 } -00264 -00265 <span class="comment">// returns true if an extended mode character is in use</span> -<a name="l00266"></a><a class="code" href="modules_8cpp.html#a56">00266</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a56">DoAddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_on, <span class="keywordtype">int</span> params_off) -00267 { -00268 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#a51">ModeDefined</a>(modechar,type)) { -00269 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00270 } -00271 <a class="code" href="modules_8cpp.html#a50">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); -00272 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00273 } -00274 -00275 <span class="comment">// turns a mode into a listmode</span> -<a name="l00276"></a><a class="code" href="modules_8cpp.html#a57">00276</a> <span class="keywordtype">void</span> <a class="code" href="modules_8cpp.html#a57">ModeMakeList</a>(<span class="keywordtype">char</span> modechar) -00277 { -00278 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00279 { -00280 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>)) -00281 { -00282 i->list = <span class="keyword">true</span>; -00283 <span class="keywordflow">return</span>; -00284 } -00285 } -00286 <span class="keywordflow">return</span>; -00287 } -00288 -00289 <span class="comment">// version is a simple class for holding a modules version number</span> -00290 -<a name="l00291"></a><a class="code" href="classVersion.html#a0">00291</a> <a class="code" href="classVersion.html#a0">Version::Version</a>(<span class="keywordtype">int</span> major, <span class="keywordtype">int</span> minor, <span class="keywordtype">int</span> revision, <span class="keywordtype">int</span> build) : Major(major), Minor(minor), Revision(revision), Build(build) { }; -00292 -00293 <span class="comment">// admin is a simple class for holding a server's administrative info</span> -00294 -<a name="l00295"></a><a class="code" href="classAdmin.html#a0">00295</a> <a class="code" href="classAdmin.html#a0">Admin::Admin</a>(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; -00296 -<a name="l00297"></a><a class="code" href="classModule.html#a0">00297</a> <a class="code" href="classModule.html#a0">Module::Module</a>() { } -<a name="l00298"></a><a class="code" href="classModule.html#a1">00298</a> <a class="code" href="classModule.html#a1">Module::~Module</a>() { } -<a name="l00299"></a><a class="code" href="classModule.html#a3">00299</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a3">Module::OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } -<a name="l00300"></a><a class="code" href="classModule.html#a4">00300</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a4">Module::OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } -<a name="l00301"></a><a class="code" href="classModule.html#a5">00301</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a5">Module::OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } -<a name="l00302"></a><a class="code" href="classModule.html#a6">00302</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a6">Module::OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } -<a name="l00303"></a><a class="code" href="classModule.html#a7">00303</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a7">Module::OnPacketTransmit</a>(<span class="keywordtype">char</span> *p) { } -<a name="l00304"></a><a class="code" href="classModule.html#a8">00304</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a8">Module::OnPacketReceive</a>(<span class="keywordtype">char</span> *p) { } -<a name="l00305"></a><a class="code" href="classModule.html#a9">00305</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a9">Module::OnRehash</a>() { } -<a name="l00306"></a><a class="code" href="classModule.html#a10">00306</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a10">Module::OnServerRaw</a>(std::string &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user) { } -<a name="l00307"></a><a class="code" href="classModule.html#a12">00307</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a12">Module::OnUserPreJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keyword">const</span> <span class="keywordtype">char</span>* cname) { <span class="keywordflow">return</span> 0; } -<a name="l00308"></a><a class="code" href="classModule.html#a11">00308</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a11">Module::OnExtendedMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* target, <span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> mode_on, string_list &params) { <span class="keywordflow">return</span> <span class="keyword">false</span>; } -<a name="l00309"></a><a class="code" href="classModule.html#a2">00309</a> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#a2">Module::GetVersion</a>() { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0); } -<a name="l00310"></a><a class="code" href="classModule.html#a13">00310</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a13">Module::OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; -<a name="l00311"></a><a class="code" href="classModule.html#a14">00311</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a14">Module::OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; -<a name="l00312"></a><a class="code" href="classModule.html#a15">00312</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a15">Module::OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest) { }; -<a name="l00313"></a><a class="code" href="classModule.html#a16">00313</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a16">Module::OnUserPreInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel) { <span class="keywordflow">return</span> 0; }; -<a name="l00314"></a><a class="code" href="classModule.html#a17">00314</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a17">Module::OnUserPreMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text) { <span class="keywordflow">return</span> 0; }; -<a name="l00315"></a><a class="code" href="classModule.html#a18">00315</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a18">Module::OnUserPreNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text) { <span class="keywordflow">return</span> 0; }; -<a name="l00316"></a><a class="code" href="classModule.html#a19">00316</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a19">Module::OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newnick) { <span class="keywordflow">return</span> 0; }; -<a name="l00317"></a><a class="code" href="classModule.html#a20">00317</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a20">Module::OnAccessCheck</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel,<span class="keywordtype">int</span> access_type) { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#a8">ACR_DEFAULT</a>; }; -<a name="l00318"></a><a class="code" href="classModule.html#a21">00318</a> <a class="code" href="modules_8h.html#a27">string_list</a> <a class="code" href="classModule.html#a21">Module::OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { <a class="code" href="modules_8h.html#a27">string_list</a> empty; <span class="keywordflow">return</span> empty; } -<a name="l00319"></a><a class="code" href="classModule.html#a22">00319</a> <a class="code" href="modules_8h.html#a27">string_list</a> <a class="code" href="classModule.html#a22">Module::OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) { <a class="code" href="modules_8h.html#a27">string_list</a> empty; <span class="keywordflow">return</span> empty; } -00320 -00321 -00322 <span class="comment">// server is a wrapper class that provides methods to all of the C-style</span> -00323 <span class="comment">// exports in the core</span> -00324 <span class="comment">//</span> -00325 -<a name="l00326"></a><a class="code" href="classServer.html#a0">00326</a> <a class="code" href="classServer.html#a0">Server::Server</a>() -00327 { -00328 } -00329 -<a name="l00330"></a><a class="code" href="classServer.html#a1">00330</a> <a class="code" href="classServer.html#a1">Server::~Server</a>() -00331 { -00332 } -00333 -<a name="l00334"></a><a class="code" href="classServer.html#a2">00334</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">Server::SendOpers</a>(std::string s) -00335 { -00336 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); -00337 } -00338 -<a name="l00339"></a><a class="code" href="classServer.html#a30">00339</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a30">Server::MatchText</a>(std::string sliteral, std::string spattern) -00340 { -00341 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; -00342 strlcpy(literal,sliteral.c_str(),MAXBUF); -00343 strlcpy(pattern,spattern.c_str(),MAXBUF); -00344 <span class="keywordflow">return</span> match(literal,pattern); -00345 } -00346 -<a name="l00347"></a><a class="code" href="classServer.html#a25">00347</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a25">Server::SendToModeMask</a>(std::string modes, <span class="keywordtype">int</span> flags, std::string text) -00348 { -00349 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); -00350 } -00351 -<a name="l00352"></a><a class="code" href="classServer.html#a26">00352</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a26">Server::JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string key) -00353 { -00354 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">true</span>); +00170 +<a name="l00171"></a><a class="code" href="modules_8cpp.html#a37">00171</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, userrec*, nspace::hash<string>, <a class="code" href="structStrHashComp.html">StrHashComp</a>> <a class="code" href="modules_8cpp.html#a37">user_hash</a>; +<a name="l00172"></a><a class="code" href="modules_8cpp.html#a38">00172</a> <span class="keyword">typedef</span> nspace::hash_map<std::string, chanrec*, nspace::hash<string>, <a class="code" href="structStrHashComp.html">StrHashComp</a>> <a class="code" href="modules_8cpp.html#a38">chan_hash</a>; +<a name="l00173"></a><a class="code" href="modules_8cpp.html#a39">00173</a> <span class="keyword">typedef</span> nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, <a class="code" href="structInAddr__HashComp.html">InAddr_HashComp</a>> <a class="code" href="modules_8cpp.html#a39">address_cache</a>; +<a name="l00174"></a><a class="code" href="modules_8cpp.html#a40">00174</a> <span class="keyword">typedef</span> std::deque<command_t> <a class="code" href="modules_8cpp.html#a40">command_table</a>; +00175 +00176 +<a name="l00177"></a><a class="code" href="modules_8cpp.html#a41">00177</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a37">user_hash</a> <a class="code" href="modules_8cpp.html#a41">clientlist</a>; +<a name="l00178"></a><a class="code" href="modules_8cpp.html#a42">00178</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a38">chan_hash</a> <a class="code" href="modules_8cpp.html#a42">chanlist</a>; +<a name="l00179"></a><a class="code" href="modules_8cpp.html#a43">00179</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a37">user_hash</a> <a class="code" href="modules_8cpp.html#a43">whowas</a>; +<a name="l00180"></a><a class="code" href="modules_8cpp.html#a44">00180</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a40">command_table</a> <a class="code" href="modules_8cpp.html#a44">cmdlist</a>; +<a name="l00181"></a><a class="code" href="modules_8cpp.html#a45">00181</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a26">file_cache</a> <a class="code" href="modules_8cpp.html#a45">MOTD</a>; +<a name="l00182"></a><a class="code" href="modules_8cpp.html#a46">00182</a> <span class="keyword">extern</span> <a class="code" href="modules_8h.html#a26">file_cache</a> <a class="code" href="modules_8cpp.html#a46">RULES</a>; +<a name="l00183"></a><a class="code" href="modules_8cpp.html#a47">00183</a> <span class="keyword">extern</span> <a class="code" href="modules_8cpp.html#a39">address_cache</a> <a class="code" href="modules_8cpp.html#a47">IP</a>; +00184 +00185 +00186 <span class="comment">// class type for holding an extended mode character - internal to core</span> +00187 +<a name="l00188"></a><a class="code" href="classExtMode.html">00188</a> <span class="keyword">class </span><a class="code" href="classExtMode.html">ExtMode</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00189 { +00190 <span class="keyword">public</span>: +<a name="l00191"></a><a class="code" href="classExtMode.html#o0">00191</a> <span class="keywordtype">char</span> <a class="code" href="classExtMode.html#o0">modechar</a>; +<a name="l00192"></a><a class="code" href="classExtMode.html#o1">00192</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#o1">type</a>; +<a name="l00193"></a><a class="code" href="classExtMode.html#o2">00193</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#o2">params_when_on</a>; +<a name="l00194"></a><a class="code" href="classExtMode.html#o3">00194</a> <span class="keywordtype">int</span> <a class="code" href="classExtMode.html#o3">params_when_off</a>; +<a name="l00195"></a><a class="code" href="classExtMode.html#o4">00195</a> <span class="keywordtype">bool</span> <a class="code" href="classExtMode.html#o4">needsoper</a>; +<a name="l00196"></a><a class="code" href="classExtMode.html#o5">00196</a> <span class="keywordtype">bool</span> <a class="code" href="channels_8cpp.html#a15">list</a>; +<a name="l00197"></a><a class="code" href="classExtMode.html#a0">00197</a> <a class="code" href="classExtMode.html#a0">ExtMode</a>(<span class="keywordtype">char</span> mc, <span class="keywordtype">int</span> ty, <span class="keywordtype">bool</span> oper, <span class="keywordtype">int</span> p_on, <span class="keywordtype">int</span> p_off) : <a class="code" href="classExtMode.html#o0">modechar</a>(mc), <a class="code" href="classExtMode.html#o1">type</a>(ty), <a class="code" href="classExtMode.html#o4">needsoper</a>(oper), <a class="code" href="classExtMode.html#o2">params_when_on</a>(p_on), <a class="code" href="classExtMode.html#o3">params_when_off</a>(p_off) { }; +00198 }; +00199 +<a name="l00200"></a><a class="code" href="modules_8cpp.html#a48">00200</a> <span class="keyword">typedef</span> std::vector<ExtMode> <a class="code" href="modules_8cpp.html#a48">ExtModeList</a>; +<a name="l00201"></a><a class="code" href="modules_8cpp.html#a49">00201</a> <span class="keyword">typedef</span> ExtModeList::iterator <a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a>; +00202 +00203 +<a name="l00204"></a><a class="code" href="modules_8cpp.html#a50">00204</a> <a class="code" href="modules_8cpp.html#a48">ExtModeList</a> <a class="code" href="modules_8cpp.html#a50">EMode</a>; +00205 +00206 <span class="comment">// returns true if an extended mode character is in use</span> +<a name="l00207"></a><a class="code" href="modules_8cpp.html#a51">00207</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a51">ModeDefined</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +00208 { +00209 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); +00210 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00211 { +00212 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00213 { +00214 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00215 } +00216 } +00217 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00218 } +00219 +<a name="l00220"></a><a class="code" href="modules_8cpp.html#a52">00220</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a52">ModeIsListMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +00221 { +00222 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); +00223 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00224 { +00225 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) +00226 { +00227 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00228 } +00229 } +00230 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00231 } +00232 +<a name="l00233"></a><a class="code" href="modules_8cpp.html#a53">00233</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a53">ModeDefinedOper</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +00234 { +00235 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); +00236 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00237 { +00238 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) +00239 { +00240 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00241 } +00242 } +00243 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00244 } +00245 +00246 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> +<a name="l00247"></a><a class="code" href="modules_8cpp.html#a54">00247</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a54">ModeDefinedOn</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +00248 { +00249 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00250 { +00251 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00252 { +00253 <span class="keywordflow">return</span> i->params_when_on; +00254 } +00255 } +00256 <span class="keywordflow">return</span> 0; +00257 } +00258 +00259 <span class="comment">// returns number of parameters for a custom mode when it is switched on</span> +<a name="l00260"></a><a class="code" href="modules_8cpp.html#a55">00260</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a55">ModeDefinedOff</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type) +00261 { +00262 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00263 { +00264 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00265 { +00266 <span class="keywordflow">return</span> i->params_when_off; +00267 } +00268 } +00269 <span class="keywordflow">return</span> 0; +00270 } +00271 +00272 <span class="comment">// returns true if an extended mode character is in use</span> +<a name="l00273"></a><a class="code" href="modules_8cpp.html#a56">00273</a> <span class="keywordtype">bool</span> <a class="code" href="modules_8cpp.html#a56">DoAddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_on, <span class="keywordtype">int</span> params_off) +00274 { +00275 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#a51">ModeDefined</a>(modechar,type)) { +00276 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00277 } +00278 <a class="code" href="modules_8cpp.html#a50">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); +00279 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00280 } +00281 +00282 <span class="comment">// turns a mode into a listmode</span> +<a name="l00283"></a><a class="code" href="modules_8cpp.html#a57">00283</a> <span class="keywordtype">void</span> <a class="code" href="modules_8cpp.html#a57">ModeMakeList</a>(<span class="keywordtype">char</span> modechar) +00284 { +00285 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00286 { +00287 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>)) +00288 { +00289 i->list = <span class="keyword">true</span>; +00290 <span class="keywordflow">return</span>; +00291 } +00292 } +00293 <span class="keywordflow">return</span>; +00294 } +00295 +00296 <span class="comment">// version is a simple class for holding a modules version number</span> +00297 +<a name="l00298"></a><a class="code" href="classVersion.html#a0">00298</a> <a class="code" href="classVersion.html#a0">Version::Version</a>(<span class="keywordtype">int</span> major, <span class="keywordtype">int</span> minor, <span class="keywordtype">int</span> revision, <span class="keywordtype">int</span> build) : Major(major), Minor(minor), Revision(revision), Build(build) { }; +00299 +00300 <span class="comment">// admin is a simple class for holding a server's administrative info</span> +00301 +<a name="l00302"></a><a class="code" href="classAdmin.html#a0">00302</a> <a class="code" href="classAdmin.html#a0">Admin::Admin</a>(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; +00303 +<a name="l00304"></a><a class="code" href="classModule.html#a0">00304</a> <a class="code" href="classModule.html#a0">Module::Module</a>() { } +<a name="l00305"></a><a class="code" href="classModule.html#a1">00305</a> <a class="code" href="classModule.html#a1">Module::~Module</a>() { } +<a name="l00306"></a><a class="code" href="classModule.html#a3">00306</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a3">Module::OnUserConnect</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } +<a name="l00307"></a><a class="code" href="classModule.html#a4">00307</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a4">Module::OnUserQuit</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { } +<a name="l00308"></a><a class="code" href="classModule.html#a5">00308</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a5">Module::OnUserJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } +<a name="l00309"></a><a class="code" href="classModule.html#a6">00309</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a6">Module::OnUserPart</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* channel) { } +<a name="l00310"></a><a class="code" href="classModule.html#a7">00310</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a7">Module::OnPacketTransmit</a>(<span class="keywordtype">char</span> *p) { } +<a name="l00311"></a><a class="code" href="classModule.html#a8">00311</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a8">Module::OnPacketReceive</a>(<span class="keywordtype">char</span> *p) { } +<a name="l00312"></a><a class="code" href="classModule.html#a9">00312</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a9">Module::OnRehash</a>() { } +<a name="l00313"></a><a class="code" href="classModule.html#a10">00313</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a10">Module::OnServerRaw</a>(std::string &raw, <span class="keywordtype">bool</span> inbound, <a class="code" href="classuserrec.html">userrec</a>* user) { } +<a name="l00314"></a><a class="code" href="classModule.html#a12">00314</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a12">Module::OnUserPreJoin</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <a class="code" href="classchanrec.html">chanrec</a>* chan, <span class="keyword">const</span> <span class="keywordtype">char</span>* cname) { <span class="keywordflow">return</span> 0; } +<a name="l00315"></a><a class="code" href="classModule.html#a11">00315</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a11">Module::OnExtendedMode</a>(<a class="code" href="classuserrec.html">userrec</a>* user, <span class="keywordtype">void</span>* target, <span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> mode_on, string_list &params) { <span class="keywordflow">return</span> <span class="keyword">false</span>; } +<a name="l00316"></a><a class="code" href="classModule.html#a2">00316</a> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#a2">Module::GetVersion</a>() { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0); } +<a name="l00317"></a><a class="code" href="classModule.html#a13">00317</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a13">Module::OnOper</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; +<a name="l00318"></a><a class="code" href="classModule.html#a14">00318</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a14">Module::OnInfo</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { }; +<a name="l00319"></a><a class="code" href="classModule.html#a15">00319</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a15">Module::OnWhois</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest) { }; +<a name="l00320"></a><a class="code" href="classModule.html#a16">00320</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a16">Module::OnUserPreInvite</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel) { <span class="keywordflow">return</span> 0; }; +<a name="l00321"></a><a class="code" href="classModule.html#a17">00321</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a17">Module::OnUserPreMessage</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text) { <span class="keywordflow">return</span> 0; }; +<a name="l00322"></a><a class="code" href="classModule.html#a18">00322</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a18">Module::OnUserPreNotice</a>(<a class="code" href="classuserrec.html">userrec</a>* user,<span class="keywordtype">void</span>* dest,<span class="keywordtype">int</span> target_type, std::string &text) { <span class="keywordflow">return</span> 0; }; +<a name="l00323"></a><a class="code" href="classModule.html#a19">00323</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a19">Module::OnUserPreNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string newnick) { <span class="keywordflow">return</span> 0; }; +<a name="l00324"></a><a class="code" href="classModule.html#a20">00324</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a20">Module::OnAccessCheck</a>(<a class="code" href="classuserrec.html">userrec</a>* source,<a class="code" href="classuserrec.html">userrec</a>* dest,<a class="code" href="classchanrec.html">chanrec</a>* channel,<span class="keywordtype">int</span> access_type) { <span class="keywordflow">return</span> <a class="code" href="modules_8h.html#a8">ACR_DEFAULT</a>; }; +<a name="l00325"></a><a class="code" href="classModule.html#a21">00325</a> <a class="code" href="modules_8h.html#a27">string_list</a> <a class="code" href="classModule.html#a21">Module::OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user) { <a class="code" href="modules_8h.html#a27">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<a name="l00326"></a><a class="code" href="classModule.html#a22">00326</a> <a class="code" href="modules_8h.html#a27">string_list</a> <a class="code" href="classModule.html#a22">Module::OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) { <a class="code" href="modules_8h.html#a27">string_list</a> empty; <span class="keywordflow">return</span> empty; } +<a name="l00327"></a><a class="code" href="classModule.html#a23">00327</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a23">Module::On005Numeric</a>(std::string &output) { }; +<a name="l00328"></a><a class="code" href="classModule.html#a24">00328</a> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a24">Module::OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, std::string reason) { <span class="keywordflow">return</span> 0; }; +<a name="l00329"></a><a class="code" href="classModule.html#a25">00329</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a25">Module::OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,std::string name) { }; +00330 +00331 +00332 <span class="comment">// server is a wrapper class that provides methods to all of the C-style</span> +00333 <span class="comment">// exports in the core</span> +00334 <span class="comment">//</span> +00335 +<a name="l00336"></a><a class="code" href="classServer.html#a0">00336</a> <a class="code" href="classServer.html#a0">Server::Server</a>() +00337 { +00338 } +00339 +<a name="l00340"></a><a class="code" href="classServer.html#a1">00340</a> <a class="code" href="classServer.html#a1">Server::~Server</a>() +00341 { +00342 } +00343 +<a name="l00344"></a><a class="code" href="classServer.html#a2">00344</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">Server::SendOpers</a>(std::string s) +00345 { +00346 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); +00347 } +00348 +<a name="l00349"></a><a class="code" href="classServer.html#a30">00349</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a30">Server::MatchText</a>(std::string sliteral, std::string spattern) +00350 { +00351 <span class="keywordtype">char</span> literal[MAXBUF],pattern[MAXBUF]; +00352 strlcpy(literal,sliteral.c_str(),MAXBUF); +00353 strlcpy(pattern,spattern.c_str(),MAXBUF); +00354 <span class="keywordflow">return</span> match(literal,pattern); 00355 } 00356 -<a name="l00357"></a><a class="code" href="classServer.html#a27">00357</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a27">Server::PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string reason) +<a name="l00357"></a><a class="code" href="classServer.html#a25">00357</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a25">Server::SendToModeMask</a>(std::string modes, <span class="keywordtype">int</span> flags, std::string text) 00358 { -00359 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); +00359 WriteMode(modes.c_str(),flags,<span class="stringliteral">"%s"</span>,text.c_str()); 00360 } 00361 -<a name="l00362"></a><a class="code" href="classServer.html#a35">00362</a> <a class="code" href="modules_8h.html#a28">chanuserlist</a> <a class="code" href="classServer.html#a35">Server::GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) +<a name="l00362"></a><a class="code" href="classServer.html#a26">00362</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a26">Server::JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string key) 00363 { -00364 <a class="code" href="modules_8h.html#a28">chanuserlist</a> userl; -00365 userl.clear(); -00366 <span class="keywordflow">for</span> (user_hash::const_iterator i = <a class="code" href="modules_8cpp.html#a41">clientlist</a>.begin(); i != <a class="code" href="modules_8cpp.html#a41">clientlist</a>.end(); i++) -00367 { -00368 <span class="keywordflow">if</span> (i->second) -00369 { -00370 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a16">has_channel</a>(i->second,chan)) -00371 { -00372 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a13">isnick</a>(i->second->nick)) -00373 { -00374 userl.push_back(i->second); -00375 } -00376 } -00377 } -00378 } -00379 <span class="keywordflow">return</span> userl; -00380 } -<a name="l00381"></a><a class="code" href="classServer.html#a28">00381</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a28">Server::ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string nickname) -00382 { -00383 force_nickchange(user,nickname.c_str()); -00384 } -00385 -<a name="l00386"></a><a class="code" href="classServer.html#a29">00386</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a29">Server::QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string reason) -00387 { -00388 <a class="code" href="message_8h.html#a19">send_network_quit</a>(user-><a class="code" href="classuserrec.html#o0">nick</a>,reason.c_str()); -00389 kill_link(user,reason.c_str()); +00364 <span class="keywordflow">return</span> add_channel(user,cname.c_str(),key.c_str(),<span class="keyword">true</span>); +00365 } +00366 +<a name="l00367"></a><a class="code" href="classServer.html#a27">00367</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a27">Server::PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string reason) +00368 { +00369 <span class="keywordflow">return</span> del_channel(user,cname.c_str(),reason.c_str(),<span class="keyword">false</span>); +00370 } +00371 +<a name="l00372"></a><a class="code" href="classServer.html#a35">00372</a> <a class="code" href="modules_8h.html#a28">chanuserlist</a> <a class="code" href="classServer.html#a35">Server::GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan) +00373 { +00374 <a class="code" href="modules_8h.html#a28">chanuserlist</a> userl; +00375 userl.clear(); +00376 <span class="keywordflow">for</span> (user_hash::const_iterator i = <a class="code" href="modules_8cpp.html#a41">clientlist</a>.begin(); i != <a class="code" href="modules_8cpp.html#a41">clientlist</a>.end(); i++) +00377 { +00378 <span class="keywordflow">if</span> (i->second) +00379 { +00380 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a16">has_channel</a>(i->second,chan)) +00381 { +00382 <span class="keywordflow">if</span> (<a class="code" href="message_8h.html#a13">isnick</a>(i->second->nick)) +00383 { +00384 userl.push_back(i->second); +00385 } +00386 } +00387 } +00388 } +00389 <span class="keywordflow">return</span> userl; 00390 } -00391 -<a name="l00392"></a><a class="code" href="classServer.html#a34">00392</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a34">Server::IsUlined</a>(std::string server) -00393 { -00394 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a71">is_uline</a>(server.c_str()); -00395 } -00396 -<a name="l00397"></a><a class="code" href="classServer.html#a31">00397</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a31">Server::CallCommandHandler</a>(std::string commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user) -00398 { -00399 call_handler(commandname.c_str(),parameters,pcnt,user); +<a name="l00391"></a><a class="code" href="classServer.html#a28">00391</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a28">Server::ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string nickname) +00392 { +00393 force_nickchange(user,nickname.c_str()); +00394 } +00395 +<a name="l00396"></a><a class="code" href="classServer.html#a29">00396</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a29">Server::QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string reason) +00397 { +00398 <a class="code" href="message_8h.html#a19">send_network_quit</a>(user-><a class="code" href="classuserrec.html#o0">nick</a>,reason.c_str()); +00399 kill_link(user,reason.c_str()); 00400 } 00401 -<a name="l00402"></a><a class="code" href="classServer.html#a3">00402</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Server::Log</a>(<span class="keywordtype">int</span> level, std::string s) +<a name="l00402"></a><a class="code" href="classServer.html#a34">00402</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a34">Server::IsUlined</a>(std::string server) 00403 { -00404 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); +00404 <span class="keywordflow">return</span> <a class="code" href="commands_8h.html#a71">is_uline</a>(server.c_str()); 00405 } 00406 -<a name="l00407"></a><a class="code" href="classServer.html#a23">00407</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">Server::AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams) +<a name="l00407"></a><a class="code" href="classServer.html#a31">00407</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a31">Server::CallCommandHandler</a>(std::string commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user) 00408 { -00409 <a class="code" href="modules_8h.html#a30">createcommand</a>(cmd,f,flags,minparams); +00409 call_handler(commandname.c_str(),parameters,pcnt,user); 00410 } 00411 -<a name="l00412"></a><a class="code" href="classServer.html#a24">00412</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">Server::SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user) +<a name="l00412"></a><a class="code" href="classServer.html#a3">00412</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Server::Log</a>(<span class="keywordtype">int</span> level, std::string s) 00413 { -00414 <a class="code" href="modules_8h.html#a31">server_mode</a>(parameters,pcnt,user); +00414 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); 00415 } 00416 -<a name="l00417"></a><a class="code" href="classServer.html#a4">00417</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Server::Send</a>(<span class="keywordtype">int</span> Socket, std::string s) +<a name="l00417"></a><a class="code" href="classServer.html#a23">00417</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">Server::AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams) 00418 { -00419 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00419 <a class="code" href="modules_8h.html#a30">createcommand</a>(cmd,f,flags,minparams); 00420 } 00421 -<a name="l00422"></a><a class="code" href="classServer.html#a5">00422</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">Server::SendServ</a>(<span class="keywordtype">int</span> Socket, std::string s) +<a name="l00422"></a><a class="code" href="classServer.html#a24">00422</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">Server::SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user) 00423 { -00424 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00424 <a class="code" href="modules_8h.html#a31">server_mode</a>(parameters,pcnt,user); 00425 } 00426 -<a name="l00427"></a><a class="code" href="classServer.html#a6">00427</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">Server::SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, std::string s) +<a name="l00427"></a><a class="code" href="classServer.html#a4">00427</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Server::Send</a>(<span class="keywordtype">int</span> Socket, std::string s) 00428 { -00429 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00429 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); 00430 } 00431 -<a name="l00432"></a><a class="code" href="classServer.html#a7">00432</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">Server::SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, std::string s) +<a name="l00432"></a><a class="code" href="classServer.html#a5">00432</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">Server::SendServ</a>(<span class="keywordtype">int</span> Socket, std::string s) 00433 { -00434 <span class="keywordflow">if</span> (!Source) -00435 { -00436 <span class="comment">// if source is NULL, then the message originates from the local server</span> -00437 Write(Dest-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); -00438 } -00439 <span class="keywordflow">else</span> -00440 { -00441 <span class="comment">// otherwise it comes from the user specified</span> -00442 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); -00443 } -00444 } -00445 -<a name="l00446"></a><a class="code" href="classServer.html#a8">00446</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">Server::SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, std::string s,<span class="keywordtype">bool</span> IncludeSender) -00447 { -00448 <span class="keywordflow">if</span> (IncludeSender) -00449 { -00450 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00451 } -00452 <span class="keywordflow">else</span> -00453 { -00454 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00455 } -00456 } -00457 -<a name="l00458"></a><a class="code" href="classServer.html#a9">00458</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">Server::CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2) -00459 { -00460 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a0">common_channels</a>(u1,u2) != 0); -00461 } -00462 -<a name="l00463"></a><a class="code" href="classServer.html#a10">00463</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">Server::SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text,<span class="keywordtype">bool</span> IncludeSender) -00464 { -00465 <span class="keywordflow">if</span> (IncludeSender) -00466 { -00467 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00468 } -00469 <span class="keywordflow">else</span> -00470 { -00471 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00472 } -00473 } -00474 -<a name="l00475"></a><a class="code" href="classServer.html#a11">00475</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">Server::SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text) -00476 { -00477 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); -00478 } -00479 -<a name="l00480"></a><a class="code" href="classServer.html#a32">00480</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a32">Server::ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string host) -00481 { -00482 <a class="code" href="message_8h.html#a11">ChangeDisplayedHost</a>(user,host.c_str()); +00434 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00435 } +00436 +<a name="l00437"></a><a class="code" href="classServer.html#a6">00437</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">Server::SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, std::string s) +00438 { +00439 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00440 } +00441 +<a name="l00442"></a><a class="code" href="classServer.html#a7">00442</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">Server::SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, std::string s) +00443 { +00444 <span class="keywordflow">if</span> (!Source) +00445 { +00446 <span class="comment">// if source is NULL, then the message originates from the local server</span> +00447 Write(Dest-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">":%s %s"</span>,this->GetServerName().c_str(),s.c_str()); +00448 } +00449 <span class="keywordflow">else</span> +00450 { +00451 <span class="comment">// otherwise it comes from the user specified</span> +00452 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); +00453 } +00454 } +00455 +<a name="l00456"></a><a class="code" href="classServer.html#a8">00456</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">Server::SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, std::string s,<span class="keywordtype">bool</span> IncludeSender) +00457 { +00458 <span class="keywordflow">if</span> (IncludeSender) +00459 { +00460 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00461 } +00462 <span class="keywordflow">else</span> +00463 { +00464 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00465 } +00466 } +00467 +<a name="l00468"></a><a class="code" href="classServer.html#a9">00468</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">Server::CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2) +00469 { +00470 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a0">common_channels</a>(u1,u2) != 0); +00471 } +00472 +<a name="l00473"></a><a class="code" href="classServer.html#a10">00473</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">Server::SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text,<span class="keywordtype">bool</span> IncludeSender) +00474 { +00475 <span class="keywordflow">if</span> (IncludeSender) +00476 { +00477 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00478 } +00479 <span class="keywordflow">else</span> +00480 { +00481 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00482 } 00483 } 00484 -<a name="l00485"></a><a class="code" href="classServer.html#a33">00485</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a33">Server::ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string gecos) +<a name="l00485"></a><a class="code" href="classServer.html#a11">00485</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">Server::SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text) 00486 { -00487 <a class="code" href="message_8h.html#a10">ChangeName</a>(user,gecos.c_str()); +00487 WriteWallOps(User,<span class="keyword">false</span>,<span class="stringliteral">"%s"</span>,text.c_str()); 00488 } 00489 -<a name="l00490"></a><a class="code" href="classServer.html#a12">00490</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">Server::IsNick</a>(std::string nick) +<a name="l00490"></a><a class="code" href="classServer.html#a32">00490</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a32">Server::ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string host) 00491 { -00492 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a13">isnick</a>(nick.c_str()) != 0); +00492 <a class="code" href="message_8h.html#a11">ChangeDisplayedHost</a>(user,host.c_str()); 00493 } 00494 -<a name="l00495"></a><a class="code" href="classServer.html#a14">00495</a> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a14">Server::FindNick</a>(std::string nick) +<a name="l00495"></a><a class="code" href="classServer.html#a33">00495</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a33">Server::ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string gecos) 00496 { -00497 <span class="keywordflow">return</span> Find(nick); +00497 <a class="code" href="message_8h.html#a10">ChangeName</a>(user,gecos.c_str()); 00498 } 00499 -<a name="l00500"></a><a class="code" href="classServer.html#a15">00500</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a15">Server::FindChannel</a>(std::string channel) +<a name="l00500"></a><a class="code" href="classServer.html#a12">00500</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">Server::IsNick</a>(std::string nick) 00501 { -00502 <span class="keywordflow">return</span> FindChan(channel.c_str()); +00502 <span class="keywordflow">return</span> (<a class="code" href="message_8h.html#a13">isnick</a>(nick.c_str()) != 0); 00503 } 00504 -<a name="l00505"></a><a class="code" href="classServer.html#a16">00505</a> std::string <a class="code" href="classServer.html#a16">Server::ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) +<a name="l00505"></a><a class="code" href="classServer.html#a14">00505</a> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a14">Server::FindNick</a>(std::string nick) 00506 { -00507 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a14">cmode</a>(User,Chan); +00507 <span class="keywordflow">return</span> Find(nick); 00508 } 00509 -<a name="l00510"></a><a class="code" href="classServer.html#a17">00510</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a17">Server::IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) +<a name="l00510"></a><a class="code" href="classServer.html#a15">00510</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a15">Server::FindChannel</a>(std::string channel) 00511 { -00512 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a16">has_channel</a>(User,Chan); +00512 <span class="keywordflow">return</span> FindChan(channel.c_str()); 00513 } 00514 -<a name="l00515"></a><a class="code" href="classServer.html#a18">00515</a> std::string <a class="code" href="classServer.html#a18">Server::GetServerName</a>() +<a name="l00515"></a><a class="code" href="classServer.html#a16">00515</a> std::string <a class="code" href="classServer.html#a16">Server::ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) 00516 { -00517 <span class="keywordflow">return</span> getservername(); +00517 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a14">cmode</a>(User,Chan); 00518 } 00519 -<a name="l00520"></a><a class="code" href="classServer.html#a19">00520</a> std::string <a class="code" href="classServer.html#a19">Server::GetNetworkName</a>() +<a name="l00520"></a><a class="code" href="classServer.html#a17">00520</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a17">Server::IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) 00521 { -00522 <span class="keywordflow">return</span> getnetworkname(); +00522 <span class="keywordflow">return</span> <a class="code" href="message_8h.html#a16">has_channel</a>(User,Chan); 00523 } 00524 -<a name="l00525"></a><a class="code" href="classServer.html#a20">00525</a> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a20">Server::GetAdmin</a>() +<a name="l00525"></a><a class="code" href="classServer.html#a18">00525</a> std::string <a class="code" href="classServer.html#a18">Server::GetServerName</a>() 00526 { -00527 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); +00527 <span class="keywordflow">return</span> getservername(); 00528 } 00529 -00530 -00531 -<a name="l00532"></a><a class="code" href="classServer.html#a21">00532</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a21">Server::AddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_when_on, <span class="keywordtype">int</span> params_when_off) -00533 { -00534 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#a7">MT_SERVER</a>) -00535 { -00536 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); -00537 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00538 } -00539 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#a6">MT_CLIENT</a>)) -00540 { -00541 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); -00542 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00543 } -00544 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) +<a name="l00530"></a><a class="code" href="classServer.html#a19">00530</a> std::string <a class="code" href="classServer.html#a19">Server::GetNetworkName</a>() +00531 { +00532 <span class="keywordflow">return</span> getnetworkname(); +00533 } +00534 +<a name="l00535"></a><a class="code" href="classServer.html#a20">00535</a> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a20">Server::GetAdmin</a>() +00536 { +00537 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); +00538 } +00539 +00540 +00541 +<a name="l00542"></a><a class="code" href="classServer.html#a21">00542</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a21">Server::AddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_when_on, <span class="keywordtype">int</span> params_when_off) +00543 { +00544 <span class="keywordflow">if</span> (type == <a class="code" href="modules_8h.html#a7">MT_SERVER</a>) 00545 { -00546 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); +00546 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"</span>); 00547 <span class="keywordflow">return</span> <span class="keyword">false</span>; 00548 } -00549 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#a56">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); -00550 } -00551 -<a name="l00552"></a><a class="code" href="classServer.html#a22">00552</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a22">Server::AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar) -00553 { -00554 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#a56">DoAddExtendedMode</a>(modechar,<a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>,<span class="keyword">false</span>,1,1); -00555 <span class="keywordflow">if</span> (res) -00556 <a class="code" href="modules_8cpp.html#a57">ModeMakeList</a>(modechar); -00557 <span class="keywordflow">return</span> res; -00558 } -00559 -<a name="l00560"></a><a class="code" href="classServer.html#a13">00560</a> <span class="keywordtype">int</span> <a class="code" href="classServer.html#a13">Server::CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c) -00561 { -00562 <span class="keywordflow">return</span> usercount(c); -00563 } -00564 -00565 -<a name="l00566"></a><a class="code" href="classConfigReader.html#a0">00566</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>() -00567 { -00568 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00569 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00570 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00571 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00572 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a25">CONF_FILE_NOT_FOUND</a>; +00549 <span class="keywordflow">if</span> (((params_when_on>0) || (params_when_off>0)) && (type == <a class="code" href="modules_8h.html#a6">MT_CLIENT</a>)) +00550 { +00551 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"</span>); +00552 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00553 } +00554 <span class="keywordflow">if</span> ((params_when_on>1) || (params_when_off>1)) +00555 { +00556 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"</span>); +00557 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00558 } +00559 <span class="keywordflow">return</span> <a class="code" href="modules_8cpp.html#a56">DoAddExtendedMode</a>(modechar,type,requires_oper,params_when_on,params_when_off); +00560 } +00561 +<a name="l00562"></a><a class="code" href="classServer.html#a22">00562</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a22">Server::AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar) +00563 { +00564 <span class="keywordtype">bool</span> res = <a class="code" href="modules_8cpp.html#a56">DoAddExtendedMode</a>(modechar,<a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>,<span class="keyword">false</span>,1,1); +00565 <span class="keywordflow">if</span> (res) +00566 <a class="code" href="modules_8cpp.html#a57">ModeMakeList</a>(modechar); +00567 <span class="keywordflow">return</span> res; +00568 } +00569 +<a name="l00570"></a><a class="code" href="classServer.html#a13">00570</a> <span class="keywordtype">int</span> <a class="code" href="classServer.html#a13">Server::CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c) +00571 { +00572 <span class="keywordflow">return</span> usercount(c); 00573 } 00574 00575 -<a name="l00576"></a><a class="code" href="classConfigReader.html#a2">00576</a> <a class="code" href="classConfigReader.html#a2">ConfigReader::~ConfigReader</a>() +<a name="l00576"></a><a class="code" href="classConfigReader.html#a0">00576</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>() 00577 { -00578 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) -00579 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; -00580 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) -00581 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; -00582 } -00583 +00578 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00579 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00580 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00581 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00582 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a25">CONF_FILE_NOT_FOUND</a>; +00583 } 00584 -<a name="l00585"></a><a class="code" href="classConfigReader.html#a1">00585</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>(std::string filename) -00586 { -00587 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00588 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); -00589 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); -00590 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) -00591 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a25">CONF_FILE_NOT_FOUND</a>; -00592 }; +00585 +<a name="l00586"></a><a class="code" href="classConfigReader.html#a2">00586</a> <a class="code" href="classConfigReader.html#a2">ConfigReader::~ConfigReader</a>() +00587 { +00588 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p0">cache</a>) +00589 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p0">cache</a>; +00590 <span class="keywordflow">if</span> (this-><a class="code" href="classConfigReader.html#p1">errorlog</a>) +00591 <span class="keyword">delete</span> this-><a class="code" href="classConfigReader.html#p1">errorlog</a>; +00592 } 00593 -<a name="l00594"></a><a class="code" href="classConfigReader.html#a3">00594</a> std::string <a class="code" href="classConfigReader.html#a3">ConfigReader::ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) -00595 { -00596 <span class="keywordtype">char</span> val[MAXBUF]; -00597 <span class="keywordtype">char</span> t[MAXBUF]; -00598 <span class="keywordtype">char</span> n[MAXBUF]; -00599 strlcpy(t,tag.c_str(),MAXBUF); -00600 strlcpy(n,name.c_str(),MAXBUF); -00601 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); -00602 <span class="keywordflow">if</span> (!res) -00603 { -00604 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; -00605 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00606 } -00607 <span class="keywordflow">return</span> std::string(val); -00608 } -00609 -<a name="l00610"></a><a class="code" href="classConfigReader.html#a4">00610</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ConfigReader::ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) -00611 { -00612 <span class="keywordtype">char</span> val[MAXBUF]; -00613 <span class="keywordtype">char</span> t[MAXBUF]; -00614 <span class="keywordtype">char</span> n[MAXBUF]; -00615 strlcpy(t,tag.c_str(),MAXBUF); -00616 strlcpy(n,name.c_str(),MAXBUF); -00617 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); -00618 <span class="keywordflow">if</span> (!res) -00619 { -00620 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; -00621 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00622 } -00623 std::string s = val; -00624 <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>)); -00625 } -00626 -<a name="l00627"></a><a class="code" href="classConfigReader.html#a5">00627</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ConfigReader::ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned) -00628 { -00629 <span class="keywordtype">char</span> val[MAXBUF]; -00630 <span class="keywordtype">char</span> t[MAXBUF]; -00631 <span class="keywordtype">char</span> n[MAXBUF]; -00632 strlcpy(t,tag.c_str(),MAXBUF); -00633 strlcpy(n,name.c_str(),MAXBUF); -00634 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); -00635 <span class="keywordflow">if</span> (!res) -00636 { -00637 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; -00638 <span class="keywordflow">return</span> 0; -00639 } -00640 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) -00641 { -00642 <span class="keywordflow">if</span> (!isdigit(val[i])) -00643 { -00644 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a22">CONF_NOT_A_NUMBER</a>; -00645 <span class="keywordflow">return</span> 0; -00646 } -00647 } -00648 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) -00649 { -00650 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a23">CONF_NOT_UNSIGNED</a>; -00651 <span class="keywordflow">return</span> 0; -00652 } -00653 <span class="keywordflow">return</span> atoi(val); -00654 } -00655 -<a name="l00656"></a><a class="code" href="classConfigReader.html#a6">00656</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">ConfigReader::GetError</a>() -00657 { -00658 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; -00659 this->error = 0; -00660 <span class="keywordflow">return</span> olderr; -00661 } -00662 -<a name="l00663"></a><a class="code" href="classConfigReader.html#a9">00663</a> <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">ConfigReader::DumpErrors</a>(<span class="keywordtype">bool</span> bail, <a class="code" href="classuserrec.html">userrec</a>* user) -00664 { -00665 <span class="keywordflow">if</span> (bail) -00666 { -00667 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); -00668 exit(0); -00669 } -00670 <span class="keywordflow">else</span> -00671 { -00672 <span class="keywordtype">char</span> dataline[1024]; -00673 <span class="keywordflow">if</span> (user) -00674 { -00675 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00676 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00677 { -00678 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00679 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); -00680 } -00681 } -00682 <span class="keywordflow">else</span> -00683 { -00684 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); -00685 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) -00686 { -00687 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); -00688 WriteOpers(dataline); -00689 } -00690 } -00691 <span class="keywordflow">return</span>; -00692 } -00693 } -00694 -00695 -<a name="l00696"></a><a class="code" href="classConfigReader.html#a7">00696</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">ConfigReader::Enumerate</a>(std::string tag) -00697 { -00698 <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#p0">cache</a>,tag.c_str()); -00699 } -00700 -<a name="l00701"></a><a class="code" href="classConfigReader.html#a10">00701</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">ConfigReader::EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index) -00702 { -00703 <span class="keywordflow">return</span> EnumValues(<a class="code" href="classConfigReader.html#p0">cache</a>, tag.c_str(), index); -00704 } +00594 +<a name="l00595"></a><a class="code" href="classConfigReader.html#a1">00595</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>(std::string filename) +00596 { +00597 this-><a class="code" href="classConfigReader.html#p0">cache</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00598 this-><a class="code" href="classConfigReader.html#p1">errorlog</a> = <span class="keyword">new</span> std::stringstream(std::stringstream::in | std::stringstream::out); +00599 this-><a class="code" href="classConfigReader.html#p2">readerror</a> = LoadConf(filename.c_str(),this-><a class="code" href="classConfigReader.html#p0">cache</a>,this-><a class="code" href="classConfigReader.html#p1">errorlog</a>); +00600 <span class="keywordflow">if</span> (!this-><a class="code" href="classConfigReader.html#p2">readerror</a>) +00601 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a25">CONF_FILE_NOT_FOUND</a>; +00602 }; +00603 +<a name="l00604"></a><a class="code" href="classConfigReader.html#a3">00604</a> std::string <a class="code" href="classConfigReader.html#a3">ConfigReader::ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) +00605 { +00606 <span class="keywordtype">char</span> val[MAXBUF]; +00607 <span class="keywordtype">char</span> t[MAXBUF]; +00608 <span class="keywordtype">char</span> n[MAXBUF]; +00609 strlcpy(t,tag.c_str(),MAXBUF); +00610 strlcpy(n,name.c_str(),MAXBUF); +00611 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); +00612 <span class="keywordflow">if</span> (!res) +00613 { +00614 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; +00615 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00616 } +00617 <span class="keywordflow">return</span> std::string(val); +00618 } +00619 +<a name="l00620"></a><a class="code" href="classConfigReader.html#a4">00620</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ConfigReader::ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index) +00621 { +00622 <span class="keywordtype">char</span> val[MAXBUF]; +00623 <span class="keywordtype">char</span> t[MAXBUF]; +00624 <span class="keywordtype">char</span> n[MAXBUF]; +00625 strlcpy(t,tag.c_str(),MAXBUF); +00626 strlcpy(n,name.c_str(),MAXBUF); +00627 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); +00628 <span class="keywordflow">if</span> (!res) +00629 { +00630 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; +00631 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00632 } +00633 std::string s = val; +00634 <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>)); +00635 } +00636 +<a name="l00637"></a><a class="code" href="classConfigReader.html#a5">00637</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ConfigReader::ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned) +00638 { +00639 <span class="keywordtype">char</span> val[MAXBUF]; +00640 <span class="keywordtype">char</span> t[MAXBUF]; +00641 <span class="keywordtype">char</span> n[MAXBUF]; +00642 strlcpy(t,tag.c_str(),MAXBUF); +00643 strlcpy(n,name.c_str(),MAXBUF); +00644 <span class="keywordtype">int</span> res = ReadConf(<a class="code" href="classConfigReader.html#p0">cache</a>,t,n,index,val); +00645 <span class="keywordflow">if</span> (!res) +00646 { +00647 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a24">CONF_VALUE_NOT_FOUND</a>; +00648 <span class="keywordflow">return</span> 0; +00649 } +00650 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(val); i++) +00651 { +00652 <span class="keywordflow">if</span> (!isdigit(val[i])) +00653 { +00654 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a22">CONF_NOT_A_NUMBER</a>; +00655 <span class="keywordflow">return</span> 0; +00656 } +00657 } +00658 <span class="keywordflow">if</span> ((needs_unsigned) && (atoi(val)<0)) +00659 { +00660 this-><a class="code" href="classConfigReader.html#p3">error</a> = <a class="code" href="modules_8h.html#a23">CONF_NOT_UNSIGNED</a>; +00661 <span class="keywordflow">return</span> 0; +00662 } +00663 <span class="keywordflow">return</span> atoi(val); +00664 } +00665 +<a name="l00666"></a><a class="code" href="classConfigReader.html#a6">00666</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">ConfigReader::GetError</a>() +00667 { +00668 <span class="keywordtype">long</span> olderr = this-><a class="code" href="classConfigReader.html#p3">error</a>; +00669 this->error = 0; +00670 <span class="keywordflow">return</span> olderr; +00671 } +00672 +<a name="l00673"></a><a class="code" href="classConfigReader.html#a9">00673</a> <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">ConfigReader::DumpErrors</a>(<span class="keywordtype">bool</span> bail, <a class="code" href="classuserrec.html">userrec</a>* user) +00674 { +00675 <span class="keywordflow">if</span> (bail) +00676 { +00677 printf(<span class="stringliteral">"There were errors in your configuration:\n%s"</span>,<a class="code" href="classConfigReader.html#p1">errorlog</a>->str().c_str()); +00678 exit(0); +00679 } +00680 <span class="keywordflow">else</span> +00681 { +00682 <span class="keywordtype">char</span> dataline[1024]; +00683 <span class="keywordflow">if</span> (user) +00684 { +00685 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00686 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00687 { +00688 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00689 WriteServ(user-><a class="code" href="classconnection.html#o0">fd</a>,<span class="stringliteral">"NOTICE %s :%s"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>,dataline); +00690 } +00691 } +00692 <span class="keywordflow">else</span> +00693 { +00694 WriteOpers(<span class="stringliteral">"There were errors in the configuration file:"</span>,user-><a class="code" href="classuserrec.html#o0">nick</a>); +00695 <span class="keywordflow">while</span> (!<a class="code" href="classConfigReader.html#p1">errorlog</a>->eof()) +00696 { +00697 <a class="code" href="classConfigReader.html#p1">errorlog</a>->getline(dataline,1024); +00698 WriteOpers(dataline); +00699 } +00700 } +00701 <span class="keywordflow">return</span>; +00702 } +00703 } +00704 00705 -<a name="l00706"></a><a class="code" href="classConfigReader.html#a8">00706</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">ConfigReader::Verify</a>() +<a name="l00706"></a><a class="code" href="classConfigReader.html#a7">00706</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">ConfigReader::Enumerate</a>(std::string tag) 00707 { -00708 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; +00708 <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#p0">cache</a>,tag.c_str()); 00709 } 00710 -00711 -<a name="l00712"></a><a class="code" href="classFileReader.html#a1">00712</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>(std::string filename) -00713 { -00714 <a class="code" href="modules_8h.html#a26">file_cache</a> c; -00715 readfile(c,filename.c_str()); -00716 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00717 } -00718 -<a name="l00719"></a><a class="code" href="classFileReader.html#a0">00719</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>() -00720 { -00721 } -00722 -<a name="l00723"></a><a class="code" href="classFileReader.html#a3">00723</a> <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">FileReader::LoadFile</a>(std::string filename) -00724 { -00725 <a class="code" href="modules_8h.html#a26">file_cache</a> c; -00726 readfile(c,filename.c_str()); -00727 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; -00728 } -00729 -00730 -<a name="l00731"></a><a class="code" href="classFileReader.html#a2">00731</a> <a class="code" href="classFileReader.html#a2">FileReader::~FileReader</a>() -00732 { -00733 } -00734 -<a name="l00735"></a><a class="code" href="classFileReader.html#a4">00735</a> <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">FileReader::Exists</a>() -00736 { -00737 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) -00738 { -00739 <span class="keywordflow">return</span>(<span class="keyword">false</span>); -00740 } -00741 <span class="keywordflow">else</span> -00742 { -00743 <span class="keywordflow">return</span>(<span class="keyword">true</span>); -00744 } -00745 } -00746 -<a name="l00747"></a><a class="code" href="classFileReader.html#a5">00747</a> std::string <a class="code" href="classFileReader.html#a5">FileReader::GetLine</a>(<span class="keywordtype">int</span> x) -00748 { -00749 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) -00750 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00751 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; -00752 } -00753 -<a name="l00754"></a><a class="code" href="classFileReader.html#a6">00754</a> <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileReader::FileSize</a>() -00755 { -00756 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); -00757 } -00758 -00759 -00760 std::vector<Module*> <a class="code" href="modules_8cpp.html#a58">modules</a>(255); -00761 std::vector<ircd_module*> <a class="code" href="modules_8cpp.html#a59">factory</a>(255); -00762 -<a name="l00763"></a><a class="code" href="modules_8cpp.html#a1">00763</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a> = -1; -00764 -00765 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:28 2005 for InspIRCd by +<a name="l00711"></a><a class="code" href="classConfigReader.html#a10">00711</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">ConfigReader::EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index) +00712 { +00713 <span class="keywordflow">return</span> EnumValues(<a class="code" href="classConfigReader.html#p0">cache</a>, tag.c_str(), index); +00714 } +00715 +<a name="l00716"></a><a class="code" href="classConfigReader.html#a8">00716</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">ConfigReader::Verify</a>() +00717 { +00718 <span class="keywordflow">return</span> this-><a class="code" href="classConfigReader.html#p2">readerror</a>; +00719 } +00720 +00721 +<a name="l00722"></a><a class="code" href="classFileReader.html#a1">00722</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>(std::string filename) +00723 { +00724 <a class="code" href="modules_8h.html#a26">file_cache</a> c; +00725 readfile(c,filename.c_str()); +00726 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00727 } +00728 +<a name="l00729"></a><a class="code" href="classFileReader.html#a0">00729</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>() +00730 { +00731 } +00732 +<a name="l00733"></a><a class="code" href="classFileReader.html#a3">00733</a> <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">FileReader::LoadFile</a>(std::string filename) +00734 { +00735 <a class="code" href="modules_8h.html#a26">file_cache</a> c; +00736 readfile(c,filename.c_str()); +00737 this-><a class="code" href="classFileReader.html#r0">fc</a> = c; +00738 } +00739 +00740 +<a name="l00741"></a><a class="code" href="classFileReader.html#a2">00741</a> <a class="code" href="classFileReader.html#a2">FileReader::~FileReader</a>() +00742 { +00743 } +00744 +<a name="l00745"></a><a class="code" href="classFileReader.html#a4">00745</a> <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">FileReader::Exists</a>() +00746 { +00747 <span class="keywordflow">if</span> (<a class="code" href="classFileReader.html#r0">fc</a>.size() == 0) +00748 { +00749 <span class="keywordflow">return</span>(<span class="keyword">false</span>); +00750 } +00751 <span class="keywordflow">else</span> +00752 { +00753 <span class="keywordflow">return</span>(<span class="keyword">true</span>); +00754 } +00755 } +00756 +<a name="l00757"></a><a class="code" href="classFileReader.html#a5">00757</a> std::string <a class="code" href="classFileReader.html#a5">FileReader::GetLine</a>(<span class="keywordtype">int</span> x) +00758 { +00759 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#r0">fc</a>.size())) +00760 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00761 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>[x]; +00762 } +00763 +<a name="l00764"></a><a class="code" href="classFileReader.html#a6">00764</a> <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileReader::FileSize</a>() +00765 { +00766 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#r0">fc</a>.size(); +00767 } +00768 +00769 +00770 std::vector<Module*> <a class="code" href="modules_8cpp.html#a58">modules</a>(255); +00771 std::vector<ircd_module*> <a class="code" href="modules_8cpp.html#a59">factory</a>(255); +00772 +<a name="l00773"></a><a class="code" href="modules_8cpp.html#a1">00773</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a1">MODCOUNT</a> = -1; +00774 +00775 +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:25 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> diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index c409c582d..de3bd38eb 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -36,6 +36,7 @@ <code>#include "<a class="el" href="mode_8h-source.html">mode.h</a>"</code><br> <code>#include "<a class="el" href="xline_8h-source.html">xline.h</a>"</code><br> <code>#include "<a class="el" href="commands_8h-source.html">commands.h</a>"</code><br> +<code>#include "inspstring.h"</code><br> <p> <a href="modules_8cpp-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> @@ -94,9 +95,9 @@ <tr><td colspan=2><br><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a1">MODCOUNT</a> = -1</td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>vector< <a class="el" href="classModule.html">Module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a2">modules</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="classModule.html">Module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a2">modules</a></td></tr> -<tr><td class="memItemLeft" nowrap align=right valign=top>vector< <a class="el" href="modules_8h.html#a29">ircd_module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a3">factory</a></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="modules_8h.html#a29">ircd_module</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a3">factory</a></td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="modules_8cpp.html#a4">LogLevel</a></td></tr> @@ -203,7 +204,7 @@ <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00058">58</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00059">59</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <hr><h2>Typedef Documentation</h2> @@ -228,7 +229,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00058">58</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00166">166</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00173">173</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a38" doxytag="modules.cpp::chan_hash"></a><p> @@ -252,7 +253,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00166">166</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00165">165</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00172">172</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a40" doxytag="modules.cpp::command_table"></a><p> @@ -276,7 +277,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00165">165</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00167">167</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00174">174</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a48" doxytag="modules.cpp::ExtModeList"></a><p> @@ -300,7 +301,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00167">167</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00193">193</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00200">200</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a49" doxytag="modules.cpp::ExtModeListIter"></a><p> @@ -324,9 +325,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00193">193</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00194">194</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#l00201">201</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00200">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00253">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00240">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00226">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00213">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00276">ModeMakeList()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00207">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00260">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00247">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00233">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00220">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00283">ModeMakeList()</a>. </td> </tr> </table> <a name="a37" doxytag="modules.cpp::user_hash"></a><p> @@ -350,7 +351,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00200">ModeDefined() <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00164">164</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00171">171</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <hr><h2>Function Documentation</h2> @@ -409,19 +410,19 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00164">164</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00266">266</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#l00273">273</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00197">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00200">ModeDefined()</a>. +References <a class="el" href="modules_8cpp-source.html#l00204">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00207">ModeDefined()</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00552">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00532">Server::AddExtendedMode()</a>. +Referenced by <a class="el" href="modules_8cpp-source.html#l00562">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00542">Server::AddExtendedMode()</a>. <p> -<div class="fragment"><pre>00267 { -00268 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#a51">ModeDefined</a>(modechar,type)) { -00269 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00270 } -00271 <a class="code" href="modules_8cpp.html#a50">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); -00272 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00273 } +<div class="fragment"><pre>00274 { +00275 <span class="keywordflow">if</span> (<a class="code" href="modules_8cpp.html#a51">ModeDefined</a>(modechar,type)) { +00276 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00277 } +00278 <a class="code" href="modules_8cpp.html#a50">EMode</a>.push_back(<a class="code" href="classExtMode.html">ExtMode</a>(modechar,type,requires_oper,params_on,params_off)); +00279 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00280 } </pre></div> </td> </tr> </table> @@ -491,23 +492,23 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00552">Server::AddEx <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00200">200</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#l00207">207</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00197">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00194">ExtModeListIter</a>. +References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00204">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00201">ExtModeListIter</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00266">DoAddExtendedMode()</a>. +Referenced by <a class="el" href="modules_8cpp-source.html#l00273">DoAddExtendedMode()</a>. <p> -<div class="fragment"><pre>00201 { -00202 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); -00203 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00204 { -00205 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00206 { -00207 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00208 } -00209 } -00210 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00211 } +<div class="fragment"><pre>00208 { +00209 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); +00210 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00211 { +00212 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00213 { +00214 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00215 } +00216 } +00217 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00218 } </pre></div> </td> </tr> </table> @@ -548,20 +549,20 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00266">DoAddExtended <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00253">253</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#l00260">260</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00197">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00194">ExtModeListIter</a>. +References <a class="el" href="modules_8cpp-source.html#l00204">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00201">ExtModeListIter</a>. <p> -<div class="fragment"><pre>00254 { -00255 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00256 { -00257 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00258 { -00259 <span class="keywordflow">return</span> i->params_when_off; -00260 } -00261 } -00262 <span class="keywordflow">return</span> 0; -00263 } +<div class="fragment"><pre>00261 { +00262 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00263 { +00264 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00265 { +00266 <span class="keywordflow">return</span> i->params_when_off; +00267 } +00268 } +00269 <span class="keywordflow">return</span> 0; +00270 } </pre></div> </td> </tr> </table> @@ -602,20 +603,20 @@ References <a class="el" href="modules_8cpp-source.html#l00197">EMode</a>, and < <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00240">240</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#l00247">247</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00197">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00194">ExtModeListIter</a>. +References <a class="el" href="modules_8cpp-source.html#l00204">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00201">ExtModeListIter</a>. <p> -<div class="fragment"><pre>00241 { -00242 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00243 { -00244 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) -00245 { -00246 <span class="keywordflow">return</span> i->params_when_on; -00247 } -00248 } -00249 <span class="keywordflow">return</span> 0; -00250 } +<div class="fragment"><pre>00248 { +00249 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00250 { +00251 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type)) +00252 { +00253 <span class="keywordflow">return</span> i->params_when_on; +00254 } +00255 } +00256 <span class="keywordflow">return</span> 0; +00257 } </pre></div> </td> </tr> </table> @@ -656,21 +657,21 @@ References <a class="el" href="modules_8cpp-source.html#l00197">EMode</a>, and < <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00226">226</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#l00233">233</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00197">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00194">ExtModeListIter</a>. +References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00204">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00201">ExtModeListIter</a>. <p> -<div class="fragment"><pre>00227 { -00228 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); -00229 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00230 { -00231 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) -00232 { -00233 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00234 } -00235 } -00236 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00237 } +<div class="fragment"><pre>00234 { +00235 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); +00236 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00237 { +00238 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->needsoper == <span class="keyword">true</span>)) +00239 { +00240 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00241 } +00242 } +00243 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00244 } </pre></div> </td> </tr> </table> @@ -711,21 +712,21 @@ References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a clas <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00213">213</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#l00220">220</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00197">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00194">ExtModeListIter</a>. +References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a class="el" href="modules_8cpp-source.html#l00204">EMode</a>, and <a class="el" href="modules_8cpp-source.html#l00201">ExtModeListIter</a>. <p> -<div class="fragment"><pre>00214 { -00215 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); -00216 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00217 { -00218 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) -00219 { -00220 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00221 } -00222 } -00223 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00224 } +<div class="fragment"><pre>00221 { +00222 log(DEBUG,<span class="stringliteral">"Size of extmodes vector is %d"</span>,<a class="code" href="modules_8cpp.html#a50">EMode</a>.size()); +00223 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00224 { +00225 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == type) && (i->list == <span class="keyword">true</span>)) +00226 { +00227 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00228 } +00229 } +00230 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00231 } </pre></div> </td> </tr> </table> @@ -757,23 +758,23 @@ References <a class="el" href="modules_8h-source.html#l00023">DEBUG</a>, <a clas <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00276">276</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#l00283">283</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -References <a class="el" href="modules_8cpp-source.html#l00197">EMode</a>, <a class="el" href="modules_8cpp-source.html#l00194">ExtModeListIter</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>. +References <a class="el" href="modules_8cpp-source.html#l00204">EMode</a>, <a class="el" href="modules_8cpp-source.html#l00201">ExtModeListIter</a>, and <a class="el" href="modules_8h-source.html#l00031">MT_CHANNEL</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00552">Server::AddExtendedListMode()</a>. +Referenced by <a class="el" href="modules_8cpp-source.html#l00562">Server::AddExtendedListMode()</a>. <p> -<div class="fragment"><pre>00277 { -00278 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) -00279 { -00280 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>)) -00281 { -00282 i->list = <span class="keyword">true</span>; -00283 <span class="keywordflow">return</span>; -00284 } -00285 } -00286 <span class="keywordflow">return</span>; -00287 } +<div class="fragment"><pre>00284 { +00285 <span class="keywordflow">for</span> (<a class="code" href="modules_8cpp.html#a49">ExtModeListIter</a> i = <a class="code" href="modules_8cpp.html#a50">EMode</a>.begin(); i < <a class="code" href="modules_8cpp.html#a50">EMode</a>.end(); i++) +00286 { +00287 <span class="keywordflow">if</span> ((i->modechar == modechar) && (i->type == <a class="code" href="modules_8h.html#a5">MT_CHANNEL</a>)) +00288 { +00289 i->list = <span class="keyword">true</span>; +00290 <span class="keywordflow">return</span>; +00291 } +00292 } +00293 <span class="keywordflow">return</span>; +00294 } </pre></div> </td> </tr> </table> @@ -828,7 +829,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00552">Server::AddEx <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00072">72</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00073">73</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a8" doxytag="modules.cpp::AdminName"></a><p> @@ -852,7 +853,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00072">72</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00071">71</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00072">72</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a10" doxytag="modules.cpp::AdminNick"></a><p> @@ -876,7 +877,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00071">71</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00073">73</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00074">74</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a33" doxytag="modules.cpp::auth_cookies"></a><p> @@ -900,7 +901,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00073">73</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00100">100</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00101">101</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a28" doxytag="modules.cpp::boundPortCount"></a><p> @@ -924,7 +925,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00100">100</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00094">94</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00095">95</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a42" doxytag="modules.cpp::chanlist"></a><p> @@ -948,7 +949,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00094">94</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00171">171</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00178">178</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a41" doxytag="modules.cpp::clientlist"></a><p> @@ -972,9 +973,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00171">171</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00170">170</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#l00177">177</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00362">Server::GetUsers()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00372">Server::GetUsers()</a>. </td> </tr> </table> <a name="a44" doxytag="modules.cpp::cmdlist"></a><p> @@ -998,7 +999,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00362">Server::GetUs <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00173">173</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00180">180</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a34" doxytag="modules.cpp::config_f"></a><p> @@ -1022,7 +1023,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00173">173</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00101">101</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00102">102</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a18" doxytag="modules.cpp::debugging"></a><p> @@ -1046,7 +1047,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00101">101</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00082">82</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00083">83</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a32" doxytag="modules.cpp::defaultRoute"></a><p> @@ -1070,7 +1071,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00082">82</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00098">98</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00099">99</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a21" doxytag="modules.cpp::DieDelay"></a><p> @@ -1094,7 +1095,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00098">98</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00085">85</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00086">86</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a11" doxytag="modules.cpp::diepass"></a><p> @@ -1118,7 +1119,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00085">85</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00074">74</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00075">75</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a17" doxytag="modules.cpp::DieValue"></a><p> @@ -1142,7 +1143,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00074">74</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00080">80</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00081">81</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a50" doxytag="modules.cpp::EMode"></a><p> @@ -1166,9 +1167,9 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00080">80</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00197">197</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#l00204">204</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00266">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00200">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00253">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00240">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00226">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00213">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00276">ModeMakeList()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00273">DoAddExtendedMode()</a>, <a class="el" href="modules_8cpp-source.html#l00207">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00260">ModeDefinedOff()</a>, <a class="el" href="modules_8cpp-source.html#l00247">ModeDefinedOn()</a>, <a class="el" href="modules_8cpp-source.html#l00233">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00220">ModeIsListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00283">ModeMakeList()</a>. </td> </tr> </table> <a name="a3" doxytag="modules.cpp::factory"></a><p> @@ -1177,7 +1178,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00266">DoAddExtended <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> vector<<a class="el" href="modules_8h.html#a29">ircd_module</a>*> factory + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="modules_8h.html#a29">ircd_module</a>*> factory </table> </td> </tr> @@ -1192,7 +1193,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00266">DoAddExtended <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00065">65</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00066">66</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a26" doxytag="modules.cpp::fd_reap"></a><p> @@ -1216,7 +1217,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00065">65</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00091">91</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00092">92</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a47" doxytag="modules.cpp::IP"></a><p> @@ -1240,7 +1241,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00091">91</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00176">176</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00183">183</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a15" doxytag="modules.cpp::list"></a><p> @@ -1264,7 +1265,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00176">176</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00078">78</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00079">79</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a36" doxytag="modules.cpp::log_file"></a><p> @@ -1288,7 +1289,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00078">78</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00105">105</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00106">106</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a4" doxytag="modules.cpp::LogLevel"></a><p> @@ -1312,7 +1313,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00105">105</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00067">67</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00068">68</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a24" doxytag="modules.cpp::MaxWhoResults"></a><p> @@ -1336,7 +1337,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00067">67</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00088">88</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00089">89</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a35" doxytag="modules.cpp::me"></a><p> @@ -1360,7 +1361,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00088">88</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00103">103</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00104">104</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a1" doxytag="modules.cpp::MODCOUNT"></a><p> @@ -1384,7 +1385,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00103">103</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00763">763</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00773">773</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a27" doxytag="modules.cpp::module_names"></a><p> @@ -1408,7 +1409,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00763">763</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00092">92</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00093">93</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a2" doxytag="modules.cpp::modules"></a><p> @@ -1417,7 +1418,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00092">92</a> o <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> - <td class="md" nowrap valign="top"> vector<<a class="el" href="classModule.html">Module</a>*> modules + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="classModule.html">Module</a>*> modules </table> </td> </tr> @@ -1432,7 +1433,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00092">92</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00064">64</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00065">65</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a45" doxytag="modules.cpp::MOTD"></a><p> @@ -1456,7 +1457,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00064">64</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00174">174</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00181">181</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a13" doxytag="modules.cpp::motd"></a><p> @@ -1480,7 +1481,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00174">174</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00076">76</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00077">77</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a25" doxytag="modules.cpp::nb_start"></a><p> @@ -1504,7 +1505,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00076">76</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00089">89</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00090">90</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a23" doxytag="modules.cpp::NetBufferSize"></a><p> @@ -1528,7 +1529,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00089">89</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00087">87</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00088">88</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a6" doxytag="modules.cpp::Network"></a><p> @@ -1552,7 +1553,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00087">87</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00069">69</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00070">70</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a29" doxytag="modules.cpp::portCount"></a><p> @@ -1576,7 +1577,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00069">69</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00095">95</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00096">96</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a31" doxytag="modules.cpp::ports"></a><p> @@ -1600,7 +1601,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00095">95</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00097">97</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00098">98</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a16" doxytag="modules.cpp::PrefixQuit"></a><p> @@ -1624,7 +1625,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00097">97</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00079">79</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00080">80</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a12" doxytag="modules.cpp::restartpass"></a><p> @@ -1648,7 +1649,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00079">79</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00075">75</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00076">76</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a46" doxytag="modules.cpp::RULES"></a><p> @@ -1672,7 +1673,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00075">75</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00175">175</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00182">182</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a14" doxytag="modules.cpp::rules"></a><p> @@ -1696,7 +1697,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00175">175</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00077">77</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00078">78</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a7" doxytag="modules.cpp::ServerDesc"></a><p> @@ -1720,7 +1721,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00077">77</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00070">70</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00071">71</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a5" doxytag="modules.cpp::ServerName"></a><p> @@ -1744,7 +1745,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00070">70</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00068">68</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00069">69</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a22" doxytag="modules.cpp::startup_time"></a><p> @@ -1768,7 +1769,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00068">68</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00086">86</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00087">87</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a30" doxytag="modules.cpp::UDPportCount"></a><p> @@ -1792,7 +1793,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00086">86</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00096">96</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00097">97</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a43" doxytag="modules.cpp::whowas"></a><p> @@ -1816,7 +1817,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00096">96</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00172">172</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00179">179</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a20" doxytag="modules.cpp::WHOWAS_MAX"></a><p> @@ -1840,7 +1841,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00172">172</a> <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00084">84</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00085">85</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> <a name="a19" doxytag="modules.cpp::WHOWAS_STALE"></a><p> @@ -1864,10 +1865,10 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00084">84</a> o <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00083">83</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> +Definition at line <a class="el" href="modules_8cpp-source.html#l00084">84</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:28 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> diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index 27aa2af8e..85ac91a38 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -162,130 +162,136 @@ 00321 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a27">string_list</a> <a class="code" href="classModule.html#a21">OnUserSync</a>(<a class="code" href="classuserrec.html">userrec</a>* user); 00322 00328 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a27">string_list</a> <a class="code" href="classModule.html#a22">OnChannelSync</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); -00329 }; -00330 -00331 -<a name="l00337"></a><a class="code" href="classServer.html">00337</a> <span class="keyword">class </span><a class="code" href="classServer.html">Server</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00338 { -00339 <span class="keyword">public</span>: -00343 <a class="code" href="classServer.html#a0">Server</a>(); -00347 <span class="keyword">virtual</span> <a class="code" href="classServer.html#a1">~Server</a>(); -00348 -00352 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">SendOpers</a>(std::string s); -00357 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Log</a>(<span class="keywordtype">int</span> level, std::string s); -00362 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Send</a>(<span class="keywordtype">int</span> Socket, std::string s); -00367 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">SendServ</a>(<span class="keywordtype">int</span> Socket, std::string s); -00372 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, std::string s); -00387 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, std::string s); -00394 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, std::string s,<span class="keywordtype">bool</span> IncludeSender); -00399 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2); -00407 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text,<span class="keywordtype">bool</span> IncludeSender); -00412 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text); -00413 -00417 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">IsNick</a>(std::string nick); -00421 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classServer.html#a13">CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c); -00425 <span class="keyword">virtual</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a14">FindNick</a>(std::string nick); -00429 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a15">FindChannel</a>(std::string channel); -00434 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a16">ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); -00438 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a17">IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); -00441 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a18">GetServerName</a>(); -00444 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a19">GetNetworkName</a>(); -00450 <span class="keyword">virtual</span> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a20">GetAdmin</a>(); -00469 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a21">AddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_when_on, <span class="keywordtype">int</span> params_when_off); -00470 -00492 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a22">AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar); -00493 -00508 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams); -00509 -00531 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); -00532 -00545 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a25">SendToModeMask</a>(std::string modes, <span class="keywordtype">int</span> flags, std::string text); -00546 -00552 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a26">JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string key); -00553 -00559 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a27">PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string reason); +00329 +00333 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a23">On005Numeric</a>(std::string &output); +00334 +00344 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classModule.html#a24">OnKill</a>(<a class="code" href="classuserrec.html">userrec</a>* source, <a class="code" href="classuserrec.html">userrec</a>* dest, std::string reason); +00345 +00356 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a25">OnLoadModule</a>(<a class="code" href="classModule.html">Module</a>* mod,std::string name); +00357 }; +00358 +00359 +<a name="l00365"></a><a class="code" href="classServer.html">00365</a> <span class="keyword">class </span><a class="code" href="classServer.html">Server</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00366 { +00367 <span class="keyword">public</span>: +00371 <a class="code" href="classServer.html#a0">Server</a>(); +00375 <span class="keyword">virtual</span> <a class="code" href="classServer.html#a1">~Server</a>(); +00376 +00380 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">SendOpers</a>(std::string s); +00385 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Log</a>(<span class="keywordtype">int</span> level, std::string s); +00390 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Send</a>(<span class="keywordtype">int</span> Socket, std::string s); +00395 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">SendServ</a>(<span class="keywordtype">int</span> Socket, std::string s); +00400 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, std::string s); +00415 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, std::string s); +00422 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, std::string s,<span class="keywordtype">bool</span> IncludeSender); +00427 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2); +00435 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text,<span class="keywordtype">bool</span> IncludeSender); +00440 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, std::string text); +00441 +00445 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">IsNick</a>(std::string nick); +00449 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classServer.html#a13">CountUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* c); +00453 <span class="keyword">virtual</span> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a14">FindNick</a>(std::string nick); +00457 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a15">FindChannel</a>(std::string channel); +00462 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a16">ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); +00466 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a17">IsOnChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan); +00469 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a18">GetServerName</a>(); +00472 <span class="keyword">virtual</span> std::string <a class="code" href="classServer.html#a19">GetNetworkName</a>(); +00478 <span class="keyword">virtual</span> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a20">GetAdmin</a>(); +00497 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a21">AddExtendedMode</a>(<span class="keywordtype">char</span> modechar, <span class="keywordtype">int</span> type, <span class="keywordtype">bool</span> requires_oper, <span class="keywordtype">int</span> params_when_on, <span class="keywordtype">int</span> params_when_off); +00498 +00520 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a22">AddExtendedListMode</a>(<span class="keywordtype">char</span> modechar); +00521 +00536 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a23">AddCommand</a>(<span class="keywordtype">char</span>* cmd, handlerfunc f, <span class="keywordtype">char</span> flags, <span class="keywordtype">int</span> minparams); +00537 +00559 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a24">SendMode</a>(<span class="keywordtype">char</span> **parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a> *user); 00560 -00566 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a28">ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string nickname); -00567 -00578 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a29">QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string reason); -00579 -00584 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a30">MatchText</a>(std::string sliteral, std::string spattern); -00585 -00597 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a31">CallCommandHandler</a>(std::string commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); -00598 -00604 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a32">ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string host); -00605 -00611 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a33">ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string gecos); -00612 -00621 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a34">IsUlined</a>(std::string server); -00622 -00626 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a28">chanuserlist</a> <a class="code" href="classServer.html#a35">GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); -00627 -00628 }; -00629 -<a name="l00630"></a><a class="code" href="modules_8h.html#a22">00630</a> <span class="preprocessor">#define CONF_NOT_A_NUMBER 0x000010</span> -<a name="l00631"></a><a class="code" href="modules_8h.html#a23">00631</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_NOT_UNSIGNED 0x000080</span> -<a name="l00632"></a><a class="code" href="modules_8h.html#a24">00632</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_VALUE_NOT_FOUND 0x000100</span> -<a name="l00633"></a><a class="code" href="modules_8h.html#a25">00633</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_FILE_NOT_FOUND 0x000200</span> -00634 <span class="preprocessor"></span> -<a name="l00641"></a><a class="code" href="classConfigReader.html">00641</a> <span class="keyword">class </span><a class="code" href="classConfigReader.html">ConfigReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00642 { -00643 <span class="keyword">protected</span>: -<a name="l00649"></a><a class="code" href="classConfigReader.html#p0">00649</a> std::stringstream *<a class="code" href="classConfigReader.html#p0">cache</a>; -<a name="l00650"></a><a class="code" href="classConfigReader.html#p1">00650</a> std::stringstream *<a class="code" href="classConfigReader.html#p1">errorlog</a>; -<a name="l00653"></a><a class="code" href="classConfigReader.html#p2">00653</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#p2">readerror</a>; -<a name="l00654"></a><a class="code" href="classConfigReader.html#p3">00654</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#p3">error</a>; -00655 -00656 <span class="keyword">public</span>: -00661 <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(); <span class="comment">// default constructor reads ircd.conf</span> -00665 <span class="comment"></span> <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(std::string filename); <span class="comment">// read a module-specific config</span> -00669 <span class="comment"></span> <a class="code" href="classConfigReader.html#a2">~ConfigReader</a>(); -00674 std::string <a class="code" href="classConfigReader.html#a3">ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); -00680 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); -00689 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned); -00694 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">GetError</a>(); -00701 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">Enumerate</a>(std::string tag); -00706 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">Verify</a>(); -00713 <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">DumpErrors</a>(<span class="keywordtype">bool</span> bail,<a class="code" href="classuserrec.html">userrec</a>* user); -00714 -00720 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index); -00721 }; -00722 -00723 -00724 -<a name="l00730"></a><a class="code" href="classFileReader.html">00730</a> <span class="keyword">class </span><a class="code" href="classFileReader.html">FileReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00731 { -<a name="l00732"></a><a class="code" href="classFileReader.html#r0">00732</a> <a class="code" href="modules_8h.html#a26">file_cache</a> <a class="code" href="classFileReader.html#r0">fc</a>; -00733 <span class="keyword">public</span>: -00738 <a class="code" href="classFileReader.html#a0">FileReader</a>(); -00739 -00745 <a class="code" href="classFileReader.html#a0">FileReader</a>(std::string filename); -00746 -00750 <a class="code" href="classFileReader.html#a2">~FileReader</a>(); +00573 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a25">SendToModeMask</a>(std::string modes, <span class="keywordtype">int</span> flags, std::string text); +00574 +00580 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a26">JoinUserToChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string key); +00581 +00587 <span class="keyword">virtual</span> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a27">PartUserFromChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string cname, std::string reason); +00588 +00594 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a28">ChangeUserNick</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string nickname); +00595 +00606 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a29">QuitUser</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string reason); +00607 +00612 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a30">MatchText</a>(std::string sliteral, std::string spattern); +00613 +00625 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a31">CallCommandHandler</a>(std::string commandname, <span class="keywordtype">char</span>** parameters, <span class="keywordtype">int</span> pcnt, <a class="code" href="classuserrec.html">userrec</a>* user); +00626 +00632 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a32">ChangeHost</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string host); +00633 +00639 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a33">ChangeGECOS</a>(<a class="code" href="classuserrec.html">userrec</a>* user, std::string gecos); +00640 +00649 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a34">IsUlined</a>(std::string server); +00650 +00654 <span class="keyword">virtual</span> <a class="code" href="modules_8h.html#a28">chanuserlist</a> <a class="code" href="classServer.html#a35">GetUsers</a>(<a class="code" href="classchanrec.html">chanrec</a>* chan); +00655 +00656 }; +00657 +<a name="l00658"></a><a class="code" href="modules_8h.html#a22">00658</a> <span class="preprocessor">#define CONF_NOT_A_NUMBER 0x000010</span> +<a name="l00659"></a><a class="code" href="modules_8h.html#a23">00659</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_NOT_UNSIGNED 0x000080</span> +<a name="l00660"></a><a class="code" href="modules_8h.html#a24">00660</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_VALUE_NOT_FOUND 0x000100</span> +<a name="l00661"></a><a class="code" href="modules_8h.html#a25">00661</a> <span class="preprocessor"></span><span class="preprocessor">#define CONF_FILE_NOT_FOUND 0x000200</span> +00662 <span class="preprocessor"></span> +<a name="l00669"></a><a class="code" href="classConfigReader.html">00669</a> <span class="keyword">class </span><a class="code" href="classConfigReader.html">ConfigReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00670 { +00671 <span class="keyword">protected</span>: +<a name="l00677"></a><a class="code" href="classConfigReader.html#p0">00677</a> std::stringstream *<a class="code" href="classConfigReader.html#p0">cache</a>; +<a name="l00678"></a><a class="code" href="classConfigReader.html#p1">00678</a> std::stringstream *<a class="code" href="classConfigReader.html#p1">errorlog</a>; +<a name="l00681"></a><a class="code" href="classConfigReader.html#p2">00681</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#p2">readerror</a>; +<a name="l00682"></a><a class="code" href="classConfigReader.html#p3">00682</a> <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#p3">error</a>; +00683 +00684 <span class="keyword">public</span>: +00689 <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(); <span class="comment">// default constructor reads ircd.conf</span> +00693 <span class="comment"></span> <a class="code" href="classConfigReader.html#a0">ConfigReader</a>(std::string filename); <span class="comment">// read a module-specific config</span> +00697 <span class="comment"></span> <a class="code" href="classConfigReader.html#a2">~ConfigReader</a>(); +00702 std::string <a class="code" href="classConfigReader.html#a3">ReadValue</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); +00708 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a4">ReadFlag</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index); +00717 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a5">ReadInteger</a>(std::string tag, std::string name, <span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> needs_unsigned); +00722 <span class="keywordtype">long</span> <a class="code" href="classConfigReader.html#a6">GetError</a>(); +00729 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a7">Enumerate</a>(std::string tag); +00734 <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a8">Verify</a>(); +00741 <span class="keywordtype">void</span> <a class="code" href="classConfigReader.html#a9">DumpErrors</a>(<span class="keywordtype">bool</span> bail,<a class="code" href="classuserrec.html">userrec</a>* user); +00742 +00748 <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a10">EnumerateValues</a>(std::string tag, <span class="keywordtype">int</span> index); +00749 }; +00750 00751 -00757 <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">LoadFile</a>(std::string filename); -00758 -00762 <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">Exists</a>(); -00763 -00768 std::string <a class="code" href="classFileReader.html#a5">GetLine</a>(<span class="keywordtype">int</span> x); -00769 -00775 <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileSize</a>(); -00776 }; -00777 -00778 -<a name="l00785"></a><a class="code" href="classModuleFactory.html">00785</a> <span class="keyword">class </span><a class="code" href="classModuleFactory.html">ModuleFactory</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> -00786 { -00787 <span class="keyword">public</span>: -<a name="l00788"></a><a class="code" href="classModuleFactory.html#a0">00788</a> <a class="code" href="classModuleFactory.html#a0">ModuleFactory</a>() { } -<a name="l00789"></a><a class="code" href="classModuleFactory.html#a1">00789</a> <span class="keyword">virtual</span> <a class="code" href="classModuleFactory.html#a1">~ModuleFactory</a>() { } -00794 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a> * <a class="code" href="classModuleFactory.html#a2">CreateModule</a>() = 0; -00795 }; -00796 +00752 +<a name="l00758"></a><a class="code" href="classFileReader.html">00758</a> <span class="keyword">class </span><a class="code" href="classFileReader.html">FileReader</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00759 { +<a name="l00760"></a><a class="code" href="classFileReader.html#r0">00760</a> <a class="code" href="modules_8h.html#a26">file_cache</a> <a class="code" href="classFileReader.html#r0">fc</a>; +00761 <span class="keyword">public</span>: +00766 <a class="code" href="classFileReader.html#a0">FileReader</a>(); +00767 +00773 <a class="code" href="classFileReader.html#a0">FileReader</a>(std::string filename); +00774 +00778 <a class="code" href="classFileReader.html#a2">~FileReader</a>(); +00779 +00785 <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">LoadFile</a>(std::string filename); +00786 +00790 <span class="keywordtype">bool</span> <a class="code" href="classFileReader.html#a4">Exists</a>(); +00791 +00796 std::string <a class="code" href="classFileReader.html#a5">GetLine</a>(<span class="keywordtype">int</span> x); 00797 -<a name="l00798"></a><a class="code" href="modules_8h.html#a29">00798</a> <span class="keyword">typedef</span> DLLFactory<ModuleFactory> <a class="code" href="modules_8h.html#a29">ircd_module</a>; -00799 -00800 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:28 2005 for InspIRCd by +00803 <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a6">FileSize</a>(); +00804 }; +00805 +00806 +<a name="l00813"></a><a class="code" href="classModuleFactory.html">00813</a> <span class="keyword">class </span><a class="code" href="classModuleFactory.html">ModuleFactory</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a> +00814 { +00815 <span class="keyword">public</span>: +<a name="l00816"></a><a class="code" href="classModuleFactory.html#a0">00816</a> <a class="code" href="classModuleFactory.html#a0">ModuleFactory</a>() { } +<a name="l00817"></a><a class="code" href="classModuleFactory.html#a1">00817</a> <span class="keyword">virtual</span> <a class="code" href="classModuleFactory.html#a1">~ModuleFactory</a>() { } +00822 <span class="keyword">virtual</span> <a class="code" href="classModule.html">Module</a> * <a class="code" href="classModuleFactory.html#a2">CreateModule</a>() = 0; +00823 }; +00824 +00825 +<a name="l00826"></a><a class="code" href="modules_8h.html#a29">00826</a> <span class="keyword">typedef</span> DLLFactory<ModuleFactory> <a class="code" href="modules_8h.html#a29">ircd_module</a>; +00827 +00828 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:25 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> diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index edd0dbe30..e6666c08a 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -371,7 +371,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00039">39</a> of <p> Definition at line <a class="el" href="modules_8h-source.html#l00037">37</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#l00317">Module::OnAccessCheck()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00324">Module::OnAccessCheck()</a>. </td> </tr> </table> <a name="a9" doxytag="modules.h::ACR_DENY"></a><p> @@ -419,9 +419,9 @@ Definition at line <a class="el" href="modules_8h-source.html#l00038">38</a> of <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00633">633</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#l00661">661</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#l00566">ConfigReader::ConfigReader()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00576">ConfigReader::ConfigReader()</a>. </td> </tr> </table> <a name="a22" doxytag="modules.h::CONF_NOT_A_NUMBER"></a><p> @@ -445,9 +445,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00566">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00630">630</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#l00658">658</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#l00627">ConfigReader::ReadInteger()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00637">ConfigReader::ReadInteger()</a>. </td> </tr> </table> <a name="a23" doxytag="modules.h::CONF_NOT_UNSIGNED"></a><p> @@ -471,9 +471,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00627">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00631">631</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#l00659">659</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#l00627">ConfigReader::ReadInteger()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00637">ConfigReader::ReadInteger()</a>. </td> </tr> </table> <a name="a24" doxytag="modules.h::CONF_VALUE_NOT_FOUND"></a><p> @@ -497,9 +497,9 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00627">ConfigReader: <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00632">632</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#l00660">660</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#l00610">ConfigReader::ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00627">ConfigReader::ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00594">ConfigReader::ReadValue()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00620">ConfigReader::ReadFlag()</a>, <a class="el" href="modules_8cpp-source.html#l00637">ConfigReader::ReadInteger()</a>, and <a class="el" href="modules_8cpp-source.html#l00604">ConfigReader::ReadValue()</a>. </td> </tr> </table> <a name="a0" doxytag="modules.h::DEBUG"></a><p> @@ -525,7 +525,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00610">ConfigReader: <p> Definition at line <a class="el" href="modules_8h-source.html#l00023">23</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#l00532">Server::AddExtendedMode()</a>, <a class="el" href="users_8cpp-source.html#l00109">userrec::HasPermission()</a>, <a class="el" href="channels_8cpp-source.html#l00178">chanrec::IsCustomModeSet()</a>, <a class="el" href="modules_8cpp-source.html#l00200">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00226">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00213">ModeIsListMode()</a>, <a class="el" href="users_8cpp-source.html#l00087">userrec::RemoveInvite()</a>, <a class="el" href="channels_8cpp-source.html#l00122">chanrec::SetCustomMode()</a>, and <a class="el" href="channels_8cpp-source.html#l00147">chanrec::SetCustomModeParam()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00542">Server::AddExtendedMode()</a>, <a class="el" href="users_8cpp-source.html#l00111">userrec::HasPermission()</a>, <a class="el" href="channels_8cpp-source.html#l00179">chanrec::IsCustomModeSet()</a>, <a class="el" href="modules_8cpp-source.html#l00207">ModeDefined()</a>, <a class="el" href="modules_8cpp-source.html#l00233">ModeDefinedOper()</a>, <a class="el" href="modules_8cpp-source.html#l00220">ModeIsListMode()</a>, <a class="el" href="users_8cpp-source.html#l00089">userrec::RemoveInvite()</a>, <a class="el" href="channels_8cpp-source.html#l00123">chanrec::SetCustomMode()</a>, and <a class="el" href="channels_8cpp-source.html#l00148">chanrec::SetCustomModeParam()</a>. </td> </tr> </table> <a name="a2" doxytag="modules.h::DEFAULT"></a><p> @@ -637,7 +637,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00080">80</a> of <p> Definition at line <a class="el" href="modules_8h-source.html#l00031">31</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#l00552">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00276">ModeMakeList()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00562">Server::AddExtendedListMode()</a>, and <a class="el" href="modules_8cpp-source.html#l00283">ModeMakeList()</a>. </td> </tr> </table> <a name="a6" doxytag="modules.h::MT_CLIENT"></a><p> @@ -663,7 +663,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00552">Server::AddEx <p> Definition at line <a class="el" href="modules_8h-source.html#l00032">32</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#l00532">Server::AddExtendedMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00542">Server::AddExtendedMode()</a>. </td> </tr> </table> <a name="a7" doxytag="modules.h::MT_SERVER"></a><p> @@ -689,7 +689,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00532">Server::AddEx <p> Definition at line <a class="el" href="modules_8h-source.html#l00033">33</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#l00532">Server::AddExtendedMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00542">Server::AddExtendedMode()</a>. </td> </tr> </table> <a name="a4" doxytag="modules.h::NONE"></a><p> @@ -790,7 +790,7 @@ Holds a list of users in a channel. <p> Definition at line <a class="el" href="modules_8h-source.html#l00065">65</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#l00362">Server::GetUsers()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00372">Server::GetUsers()</a>. </td> </tr> </table> <a name="a26" doxytag="modules.h::file_cache"></a><p> @@ -818,7 +818,7 @@ Low level definition of a <a class="el" href="classFileReader.html">FileReader</ <p> Definition at line <a class="el" href="modules_8h-source.html#l00060">60</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#l00712">FileReader::FileReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00723">FileReader::LoadFile()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00722">FileReader::FileReader()</a>, and <a class="el" href="modules_8cpp-source.html#l00733">FileReader::LoadFile()</a>. </td> </tr> </table> <a name="a29" doxytag="modules.h::ircd_module"></a><p> @@ -842,7 +842,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00712">FileReader::F <p> <p> -Definition at line <a class="el" href="modules_8h-source.html#l00798">798</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> +Definition at line <a class="el" href="modules_8h-source.html#l00826">826</a> of file <a class="el" href="modules_8h-source.html">modules.h</a>. </td> </tr> </table> <a name="a27" doxytag="modules.h::string_list"></a><p> @@ -868,7 +868,7 @@ Definition at line <a class="el" href="modules_8h-source.html#l00798">798</a> of <p> Definition at line <a class="el" href="modules_8h-source.html#l00061">61</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#l00319">Module::OnChannelSync()</a>, and <a class="el" href="modules_8cpp-source.html#l00318">Module::OnUserSync()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00326">Module::OnChannelSync()</a>, and <a class="el" href="modules_8cpp-source.html#l00325">Module::OnUserSync()</a>. </td> </tr> </table> <hr><h2>Function Documentation</h2> @@ -921,7 +921,7 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00319">Module::OnCha <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00407">Server::AddCommand()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00417">Server::AddCommand()</a>. </td> </tr> </table> <a name="a31" doxytag="modules.h::server_mode"></a><p> @@ -967,10 +967,10 @@ Referenced by <a class="el" href="modules_8cpp-source.html#l00407">Server::AddCo <p> <p> -Referenced by <a class="el" href="modules_8cpp-source.html#l00412">Server::SendMode()</a>. </td> +Referenced by <a class="el" href="modules_8cpp-source.html#l00422">Server::SendMode()</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:28 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> diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index b4b1a3a17..f5af56296 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ <tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace.hash< string ></a></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index d1725372f..315e47302 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -9,7 +9,7 @@ <tr><td class="indexkey"><a class="el" href="namespacenspace.html">nspace</a></td><td class="indexvalue"></td></tr> <tr><td class="indexkey"><a class="el" href="namespacestd.html">std</a></td><td class="indexvalue"></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index 0f4d7ffbb..1dc3399d0 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@ <table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index 703b0bbb2..2eae27b8e 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -26,41 +26,42 @@ 00019 <span class="preprocessor">#include "inspircd.h"</span> 00020 <span class="preprocessor">#include <stdio.h></span> 00021 <span class="preprocessor">#include <map></span> -00022 -<a name="l00023"></a><a class="code" href="classserverrec.html#a0">00023</a> <a class="code" href="classserverrec.html#a0">serverrec::serverrec</a>() -00024 { -00025 strlcpy(<a class="code" href="classserverrec.html#o0">name</a>,<span class="stringliteral">""</span>,256); -00026 <a class="code" href="classserverrec.html#o1">pingtime</a> = 0; -00027 <a class="code" href="classconnection.html#o12">lastping</a> = time(NULL); -00028 <a class="code" href="classserverrec.html#o2">usercount_i</a> = <a class="code" href="classserverrec.html#o3">usercount</a> = <a class="code" href="classserverrec.html#o4">opercount</a> = <a class="code" href="classserverrec.html#o6">version</a> = 0; -00029 <a class="code" href="classserverrec.html#o5">hops_away</a> = 1; -00030 <a class="code" href="classconnection.html#o13">signon</a> = time(NULL); -00031 <a class="code" href="classserverrec.html#o7">jupiter</a> = <span class="keyword">false</span>; -00032 <a class="code" href="classconnection.html#o0">fd</a> = 0; -00033 <a class="code" href="classserverrec.html#o10">sync_soon</a> = <span class="keyword">false</span>; -00034 strlcpy(<a class="code" href="classserverrec.html#o9">nickserv</a>,<span class="stringliteral">""</span>,NICKMAX); -00035 } -00036 -00037 -<a name="l00038"></a><a class="code" href="classserverrec.html#a2">00038</a> <a class="code" href="classserverrec.html#a2">serverrec::~serverrec</a>() -00039 { -00040 } -00041 -<a name="l00042"></a><a class="code" href="classserverrec.html#a1">00042</a> <a class="code" href="classserverrec.html#a0">serverrec::serverrec</a>(<span class="keywordtype">char</span>* n, <span class="keywordtype">long</span> ver, <span class="keywordtype">bool</span> jupe) -00043 { -00044 strlcpy(<a class="code" href="classserverrec.html#o0">name</a>,n,256); -00045 <a class="code" href="classconnection.html#o12">lastping</a> = time(NULL); -00046 <a class="code" href="classserverrec.html#o2">usercount_i</a> = <a class="code" href="classserverrec.html#o3">usercount</a> = <a class="code" href="classserverrec.html#o4">opercount</a> = 0; -00047 <a class="code" href="classserverrec.html#o6">version</a> = ver; -00048 <a class="code" href="classserverrec.html#o5">hops_away</a> = 1; -00049 <a class="code" href="classconnection.html#o13">signon</a> = time(NULL); -00050 <a class="code" href="classserverrec.html#o7">jupiter</a> = jupe; -00051 <a class="code" href="classconnection.html#o0">fd</a> = 0; -00052 <a class="code" href="classserverrec.html#o10">sync_soon</a> = <span class="keyword">false</span>; -00053 strlcpy(<a class="code" href="classserverrec.html#o9">nickserv</a>,<span class="stringliteral">""</span>,NICKMAX); -00054 } -00055 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:28 2005 for InspIRCd by +00022 <span class="preprocessor">#include "inspstring.h"</span> +00023 +<a name="l00024"></a><a class="code" href="classserverrec.html#a0">00024</a> <a class="code" href="classserverrec.html#a0">serverrec::serverrec</a>() +00025 { +00026 strlcpy(<a class="code" href="classserverrec.html#o0">name</a>,<span class="stringliteral">""</span>,256); +00027 <a class="code" href="classserverrec.html#o1">pingtime</a> = 0; +00028 <a class="code" href="classconnection.html#o12">lastping</a> = time(NULL); +00029 <a class="code" href="classserverrec.html#o2">usercount_i</a> = <a class="code" href="classserverrec.html#o3">usercount</a> = <a class="code" href="classserverrec.html#o4">opercount</a> = <a class="code" href="classserverrec.html#o6">version</a> = 0; +00030 <a class="code" href="classserverrec.html#o5">hops_away</a> = 1; +00031 <a class="code" href="classconnection.html#o13">signon</a> = time(NULL); +00032 <a class="code" href="classserverrec.html#o7">jupiter</a> = <span class="keyword">false</span>; +00033 <a class="code" href="classconnection.html#o0">fd</a> = 0; +00034 <a class="code" href="classserverrec.html#o10">sync_soon</a> = <span class="keyword">false</span>; +00035 strlcpy(<a class="code" href="classserverrec.html#o9">nickserv</a>,<span class="stringliteral">""</span>,NICKMAX); +00036 } +00037 +00038 +<a name="l00039"></a><a class="code" href="classserverrec.html#a2">00039</a> <a class="code" href="classserverrec.html#a2">serverrec::~serverrec</a>() +00040 { +00041 } +00042 +<a name="l00043"></a><a class="code" href="classserverrec.html#a1">00043</a> <a class="code" href="classserverrec.html#a0">serverrec::serverrec</a>(<span class="keywordtype">char</span>* n, <span class="keywordtype">long</span> ver, <span class="keywordtype">bool</span> jupe) +00044 { +00045 strlcpy(<a class="code" href="classserverrec.html#o0">name</a>,n,256); +00046 <a class="code" href="classconnection.html#o12">lastping</a> = time(NULL); +00047 <a class="code" href="classserverrec.html#o2">usercount_i</a> = <a class="code" href="classserverrec.html#o3">usercount</a> = <a class="code" href="classserverrec.html#o4">opercount</a> = 0; +00048 <a class="code" href="classserverrec.html#o6">version</a> = ver; +00049 <a class="code" href="classserverrec.html#o5">hops_away</a> = 1; +00050 <a class="code" href="classconnection.html#o13">signon</a> = time(NULL); +00051 <a class="code" href="classserverrec.html#o7">jupiter</a> = jupe; +00052 <a class="code" href="classconnection.html#o0">fd</a> = 0; +00053 <a class="code" href="classserverrec.html#o10">sync_soon</a> = <span class="keyword">false</span>; +00054 strlcpy(<a class="code" href="classserverrec.html#o9">nickserv</a>,<span class="stringliteral">""</span>,NICKMAX); +00055 } +00056 +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:25 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> diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index bbcfda75c..28c74e4c3 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -10,12 +10,13 @@ <code>#include "inspircd.h"</code><br> <code>#include <stdio.h></code><br> <code>#include <map></code><br> +<code>#include "inspstring.h"</code><br> <p> <a href="servers_8cpp-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:28 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> diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index 8579f1b15..4234ca289 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -61,7 +61,7 @@ 00082 00083 <span class="preprocessor">#endif</span> 00084 <span class="preprocessor"></span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:28 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:25 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> diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index 8abac3ebd..dd5dcfe15 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -72,7 +72,7 @@ Definition at line <a class="el" href="servers_8h-source.html#l00025">25</a> of Definition at line <a class="el" href="servers_8h-source.html#l00026">26</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:28 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> diff --git a/docs/module-doc/structInAddr__HashComp-members.html b/docs/module-doc/structInAddr__HashComp-members.html index 01e6ef7ad..9997efece 100644 --- a/docs/module-doc/structInAddr__HashComp-members.html +++ b/docs/module-doc/structInAddr__HashComp-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>InAddr_HashComp Member List</h1>This is the complete list of members for <a class="el" href="structInAddr__HashComp.html">InAddr_HashComp</a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structInAddr__HashComp.html#a0">operator()</a>(const in_addr &s1, const in_addr &s2) const</td><td><a class="el" href="structInAddr__HashComp.html">InAddr_HashComp</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/structInAddr__HashComp.html b/docs/module-doc/structInAddr__HashComp.html index 70da6e105..cd9714be9 100644 --- a/docs/module-doc/structInAddr__HashComp.html +++ b/docs/module-doc/structInAddr__HashComp.html @@ -49,23 +49,23 @@ <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00150">150</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#l00157">157</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00151 { -00152 size_t q; -00153 size_t p; -00154 -00155 memcpy(&q,&s1,<span class="keyword">sizeof</span>(size_t)); -00156 memcpy(&p,&s2,<span class="keyword">sizeof</span>(size_t)); -00157 -00158 <span class="keywordflow">return</span> (q == p); -00159 } +<div class="fragment"><pre>00158 { +00159 size_t q; +00160 size_t p; +00161 +00162 memcpy(&q,&s1,<span class="keyword">sizeof</span>(size_t)); +00163 memcpy(&p,&s2,<span class="keyword">sizeof</span>(size_t)); +00164 +00165 <span class="keywordflow">return</span> (q == p); +00166 } </pre></div> </td> </tr> </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:32 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:32 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> diff --git a/docs/module-doc/structStrHashComp-members.html b/docs/module-doc/structStrHashComp-members.html index d3c6bb7db..2176a9f48 100644 --- a/docs/module-doc/structStrHashComp-members.html +++ b/docs/module-doc/structStrHashComp-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>StrHashComp Member List</h1>This is the complete list of members for <a class="el" href="structStrHashComp.html">StrHashComp</a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structStrHashComp.html#a0">operator()</a>(const string &s1, const string &s2) const</td><td><a class="el" href="structStrHashComp.html">StrHashComp</a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:37 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> diff --git a/docs/module-doc/structStrHashComp.html b/docs/module-doc/structStrHashComp.html index 44358220e..b7ed816cd 100644 --- a/docs/module-doc/structStrHashComp.html +++ b/docs/module-doc/structStrHashComp.html @@ -49,20 +49,20 @@ <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00137">137</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#l00144">144</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00138 { -00139 <span class="keywordtype">char</span> a[MAXBUF],b[MAXBUF]; -00140 strlcpy(a,s1.c_str(),MAXBUF); -00141 strlcpy(b,s2.c_str(),MAXBUF); -00142 <span class="keywordflow">return</span> (strcasecmp(a,b) == 0); -00143 } +<div class="fragment"><pre>00145 { +00146 <span class="keywordtype">char</span> a[MAXBUF],b[MAXBUF]; +00147 strlcpy(a,s1.c_str(),MAXBUF); +00148 strlcpy(b,s2.c_str(),MAXBUF); +00149 <span class="keywordflow">return</span> (strcasecmp(a,b) == 0); +00150 } </pre></div> </td> </tr> </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:37 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> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html index 01b5891ed..8f62c68d9 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>nspace::hash< in_addr > Member List</h1>This is the complete list of members for <a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html#a0">operator()</a>(const struct in_addr &a) const</td><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html">nspace::hash< in_addr ></a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html index 55fe9db3c..cfa818e8b 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01in__addr_01_4.html @@ -43,19 +43,19 @@ <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00112">112</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#l00117">117</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00113 { -00114 size_t q; -00115 memcpy(&q,&a,<span class="keyword">sizeof</span>(size_t)); -00116 <span class="keywordflow">return</span> q; -00117 } +<div class="fragment"><pre>00118 { +00119 size_t q; +00120 memcpy(&q,&a,<span class="keyword">sizeof</span>(size_t)); +00121 <span class="keywordflow">return</span> q; +00122 } </pre></div> </td> </tr> </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html index 3c20fe788..3d22fbafa 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4-members.html @@ -7,7 +7,7 @@ <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>nspace::hash< string > Member List</h1>This is the complete list of members for <a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a>, including all inherited members.<table> <tr class="memlist"><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html#a0">operator()</a>(const string &s) const</td><td><a class="el" href="structnspace_1_1nspace_1_1hash_3_01string_01_4.html">nspace::hash< string ></a></td><td><code> [inline]</code></td></tr> -</table><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +</table><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html index 42fa669e9..26f2949e7 100644 --- a/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html +++ b/docs/module-doc/structnspace_1_1nspace_1_1hash_3_01string_01_4.html @@ -43,21 +43,21 @@ <p> <p> -Definition at line <a class="el" href="modules_8cpp-source.html#l00122">122</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#l00130">130</a> of file <a class="el" href="modules_8cpp-source.html">modules.cpp</a>. <p> -<div class="fragment"><pre>00123 { -00124 <span class="keywordtype">char</span> a[MAXBUF]; -00125 <span class="keyword">static</span> <span class="keyword">struct </span>hash<const char *> strhash; -00126 strlcpy(a,s.c_str(),MAXBUF); -00127 strlower(a); -00128 <span class="keywordflow">return</span> strhash(a); -00129 } +<div class="fragment"><pre>00131 { +00132 <span class="keywordtype">char</span> a[MAXBUF]; +00133 <span class="keyword">static</span> <span class="keyword">struct </span>hash<const char *> strhash; +00134 strlcpy(a,s.c_str(),MAXBUF); +00135 strlower(a); +00136 <span class="keywordflow">return</span> strhash(a); +00137 } </pre></div> </td> </tr> </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="modules_8cpp-source.html">modules.cpp</a></ul> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:34 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:38 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> diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 905a59892..8fdd3a919 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -26,147 +26,149 @@ 00019 <span class="preprocessor">#include "<a class="code" href="users_8h.html">users.h</a>"</span> 00020 <span class="preprocessor">#include "inspircd.h"</span> 00021 <span class="preprocessor">#include <stdio.h></span> -00022 -<a name="l00023"></a><a class="code" href="users_8cpp.html#a0">00023</a> <span class="keyword">extern</span> std::stringstream <a class="code" href="channels_8cpp.html#a34">config_f</a>; -00024 -<a name="l00025"></a><a class="code" href="classuserrec.html#a0">00025</a> <a class="code" href="classuserrec.html#a0">userrec::userrec</a>() -00026 { -00027 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> -00028 strcpy(<a class="code" href="classuserrec.html#o0">nick</a>,<span class="stringliteral">""</span>); -00029 strcpy(<a class="code" href="classconnection.html#o2">ip</a>,<span class="stringliteral">"127.0.0.1"</span>); -00030 <a class="code" href="classuserrec.html#o10">timeout</a> = 0; -00031 strcpy(<a class="code" href="classuserrec.html#o1">ident</a>,<span class="stringliteral">""</span>); -00032 strcpy(<a class="code" href="classconnection.html#o1">host</a>,<span class="stringliteral">""</span>); -00033 strcpy(<a class="code" href="classuserrec.html#o2">dhost</a>,<span class="stringliteral">""</span>); -00034 strcpy(<a class="code" href="classuserrec.html#o3">fullname</a>,<span class="stringliteral">""</span>); -00035 strcpy(<a class="code" href="classuserrec.html#o4">modes</a>,<span class="stringliteral">""</span>); -00036 strcpy(<a class="code" href="classconnection.html#o3">inbuf</a>,<span class="stringliteral">""</span>); -00037 strcpy(<a class="code" href="classuserrec.html#o6">server</a>,<span class="stringliteral">""</span>); -00038 strcpy(<a class="code" href="classuserrec.html#o7">awaymsg</a>,<span class="stringliteral">""</span>); -00039 <a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="classconnection.html#o12">lastping</a> = <a class="code" href="classconnection.html#o13">signon</a> = <a class="code" href="classconnection.html#o14">idle_lastmsg</a> = <a class="code" href="classconnection.html#o15">nping</a> = <a class="code" href="classconnection.html#o10">registered</a> = 0; -00040 <a class="code" href="classuserrec.html#o9">flood</a> = <a class="code" href="classconnection.html#o9">port</a> = <a class="code" href="classconnection.html#o4">bytes_in</a> = <a class="code" href="classconnection.html#o5">bytes_out</a> = <a class="code" href="classconnection.html#o6">cmds_in</a> = <a class="code" href="classconnection.html#o7">cmds_out</a> = 0; -00041 <a class="code" href="classconnection.html#o8">haspassed</a> = <span class="keyword">false</span>; -00042 strcpy(<a class="code" href="classuserrec.html#o8">result</a>,<span class="stringliteral">""</span>); -00043 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < MAXCHANS; i++) -00044 { -00045 this-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> = NULL; -00046 this-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o0">uc_modes</a> = 0; -00047 } -00048 <a class="code" href="classuserrec.html#r0">invites</a>.clear(); -00049 } -00050 -00051 -00052 -<a name="l00053"></a><a class="code" href="classuserrec.html#a2">00053</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a2">userrec::GetFullHost</a>() -00054 { -00055 snprintf(<a class="code" href="classuserrec.html#o8">result</a>,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#o0">nick</a>,<a class="code" href="classuserrec.html#o1">ident</a>,<a class="code" href="classuserrec.html#o2">dhost</a>); -00056 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>; -00057 } -00058 -00059 -<a name="l00060"></a><a class="code" href="classuserrec.html#a3">00060</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a3">userrec::GetFullRealHost</a>() -00061 { -00062 snprintf(<a class="code" href="classuserrec.html#o8">result</a>,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#o0">nick</a>,<a class="code" href="classuserrec.html#o1">ident</a>,<a class="code" href="classconnection.html#o1">host</a>); -00063 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>; -00064 } -00065 -<a name="l00066"></a><a class="code" href="classuserrec.html#a4">00066</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#a4">userrec::IsInvited</a>(<span class="keywordtype">char</span>* channel) -00067 { -00068 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#r0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#r0">invites</a>.end(); i++) -00069 { -00070 <span class="keywordflow">if</span> (i->channel) { -00071 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -00072 { -00073 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00074 } -00075 } -00076 } -00077 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00078 } -00079 -<a name="l00080"></a><a class="code" href="classuserrec.html#a5">00080</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a5">userrec::InviteTo</a>(<span class="keywordtype">char</span>* channel) -00081 { -00082 <a class="code" href="classInvited.html">Invited</a> i; -00083 strlcpy(i.<a class="code" href="classInvited.html#o0">channel</a>,channel,CHANMAX); -00084 <a class="code" href="classuserrec.html#r0">invites</a>.push_back(i); -00085 } -00086 -<a name="l00087"></a><a class="code" href="classuserrec.html#a6">00087</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a6">userrec::RemoveInvite</a>(<span class="keywordtype">char</span>* channel) -00088 { -00089 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Removing invites"</span>); -00090 <span class="keywordflow">if</span> (channel) -00091 { -00092 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#r0">invites</a>.size()) -00093 { -00094 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#r0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#r0">invites</a>.end(); i++) -00095 { -00096 <span class="keywordflow">if</span> (i->channel) -00097 { -00098 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -00099 { -00100 <a class="code" href="classuserrec.html#r0">invites</a>.erase(i); -00101 <span class="keywordflow">return</span>; -00102 } -00103 } -00104 } -00105 } -00106 } -00107 } -00108 -<a name="l00109"></a><a class="code" href="classuserrec.html#a7">00109</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#a7">userrec::HasPermission</a>(<span class="keywordtype">char</span>* command) -00110 { -00111 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -00112 <span class="keywordtype">char</span>* myclass; -00113 <span class="keywordtype">char</span>* mycmd; -00114 <span class="keywordtype">char</span>* savept; -00115 <span class="keywordtype">char</span>* savept2; -00116 -00117 <span class="comment">// are they even an oper at all?</span> -00118 <span class="keywordflow">if</span> (strchr(this->modes,<span class="charliteral">'o'</span>)) -00119 { -00120 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** HasPermission: %s is an oper"</span>,this->nick); -00121 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j < ConfValueEnum(<span class="stringliteral">"type"</span>,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); j++) -00122 { -00123 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); -00124 <span class="keywordflow">if</span> (!strcmp(TypeName,this->oper)) -00125 { -00126 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** HasPermission: %s is an oper of type '%s'"</span>,this->nick,this->oper); -00127 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); -00128 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); -00129 <span class="keywordflow">while</span> (myclass) -00130 { -00131 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass); -00132 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < ConfValueEnum(<span class="stringliteral">"class"</span>,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); k++) -00133 { -00134 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); -00135 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) -00136 { -00137 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); -00138 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList); -00139 -00140 -00141 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); -00142 <span class="keywordflow">while</span> (mycmd) -00143 { -00144 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command)) -00145 { -00146 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** Command %s found, returning true"</span>,command); -00147 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00148 } -00149 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); -00150 } -00151 } -00152 } -00153 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); -00154 } -00155 } -00156 } -00157 } -00158 <span class="keywordflow">return</span> <span class="keyword">false</span>; -00159 } -00160 -00161 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:29 2005 for InspIRCd by +00022 <span class="preprocessor">#include "inspstring.h"</span> +00023 +<a name="l00024"></a><a class="code" href="users_8cpp.html#a0">00024</a> <span class="keyword">extern</span> std::stringstream <a class="code" href="channels_8cpp.html#a34">config_f</a>; +00025 +<a name="l00026"></a><a class="code" href="classuserrec.html#a0">00026</a> <a class="code" href="classuserrec.html#a0">userrec::userrec</a>() +00027 { +00028 <span class="comment">// the PROPER way to do it, AVOID bzero at *ALL* costs</span> +00029 strcpy(<a class="code" href="classuserrec.html#o0">nick</a>,<span class="stringliteral">""</span>); +00030 strcpy(<a class="code" href="classconnection.html#o2">ip</a>,<span class="stringliteral">"127.0.0.1"</span>); +00031 <a class="code" href="classuserrec.html#o10">timeout</a> = 0; +00032 strcpy(<a class="code" href="classuserrec.html#o1">ident</a>,<span class="stringliteral">""</span>); +00033 strcpy(<a class="code" href="classconnection.html#o1">host</a>,<span class="stringliteral">""</span>); +00034 strcpy(<a class="code" href="classuserrec.html#o2">dhost</a>,<span class="stringliteral">""</span>); +00035 strcpy(<a class="code" href="classuserrec.html#o3">fullname</a>,<span class="stringliteral">""</span>); +00036 strcpy(<a class="code" href="classuserrec.html#o4">modes</a>,<span class="stringliteral">""</span>); +00037 strcpy(<a class="code" href="classconnection.html#o3">inbuf</a>,<span class="stringliteral">""</span>); +00038 strcpy(<a class="code" href="classuserrec.html#o6">server</a>,<span class="stringliteral">""</span>); +00039 strcpy(<a class="code" href="classuserrec.html#o7">awaymsg</a>,<span class="stringliteral">""</span>); +00040 strcpy(<a class="code" href="classuserrec.html#o11">oper</a>,<span class="stringliteral">""</span>); +00041 <a class="code" href="classconnection.html#o0">fd</a> = <a class="code" href="classconnection.html#o12">lastping</a> = <a class="code" href="classconnection.html#o13">signon</a> = <a class="code" href="classconnection.html#o14">idle_lastmsg</a> = <a class="code" href="classconnection.html#o15">nping</a> = <a class="code" href="classconnection.html#o10">registered</a> = 0; +00042 <a class="code" href="classuserrec.html#o9">flood</a> = <a class="code" href="classconnection.html#o9">port</a> = <a class="code" href="classconnection.html#o4">bytes_in</a> = <a class="code" href="classconnection.html#o5">bytes_out</a> = <a class="code" href="classconnection.html#o6">cmds_in</a> = <a class="code" href="classconnection.html#o7">cmds_out</a> = 0; +00043 <a class="code" href="classconnection.html#o8">haspassed</a> = <span class="keyword">false</span>; +00044 strcpy(<a class="code" href="classuserrec.html#o8">result</a>,<span class="stringliteral">""</span>); +00045 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < MAXCHANS; i++) +00046 { +00047 this-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o1">channel</a> = NULL; +00048 this-><a class="code" href="classuserrec.html#o5">chans</a>[i].<a class="code" href="classucrec.html#o0">uc_modes</a> = 0; +00049 } +00050 <a class="code" href="classuserrec.html#r0">invites</a>.clear(); +00051 } +00052 +00053 +00054 +<a name="l00055"></a><a class="code" href="classuserrec.html#a2">00055</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a2">userrec::GetFullHost</a>() +00056 { +00057 snprintf(<a class="code" href="classuserrec.html#o8">result</a>,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#o0">nick</a>,<a class="code" href="classuserrec.html#o1">ident</a>,<a class="code" href="classuserrec.html#o2">dhost</a>); +00058 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>; +00059 } +00060 +00061 +<a name="l00062"></a><a class="code" href="classuserrec.html#a3">00062</a> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a3">userrec::GetFullRealHost</a>() +00063 { +00064 snprintf(<a class="code" href="classuserrec.html#o8">result</a>,MAXBUF,<span class="stringliteral">"%s!%s@%s"</span>,<a class="code" href="classuserrec.html#o0">nick</a>,<a class="code" href="classuserrec.html#o1">ident</a>,<a class="code" href="classconnection.html#o1">host</a>); +00065 <span class="keywordflow">return</span> <a class="code" href="classuserrec.html#o8">result</a>; +00066 } +00067 +<a name="l00068"></a><a class="code" href="classuserrec.html#a4">00068</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#a4">userrec::IsInvited</a>(<span class="keywordtype">char</span>* channel) +00069 { +00070 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#r0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#r0">invites</a>.end(); i++) +00071 { +00072 <span class="keywordflow">if</span> (i->channel) { +00073 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +00074 { +00075 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00076 } +00077 } +00078 } +00079 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00080 } +00081 +<a name="l00082"></a><a class="code" href="classuserrec.html#a5">00082</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a5">userrec::InviteTo</a>(<span class="keywordtype">char</span>* channel) +00083 { +00084 <a class="code" href="classInvited.html">Invited</a> i; +00085 strlcpy(i.<a class="code" href="classInvited.html#o0">channel</a>,channel,CHANMAX); +00086 <a class="code" href="classuserrec.html#r0">invites</a>.push_back(i); +00087 } +00088 +<a name="l00089"></a><a class="code" href="classuserrec.html#a6">00089</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a6">userrec::RemoveInvite</a>(<span class="keywordtype">char</span>* channel) +00090 { +00091 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"Removing invites"</span>); +00092 <span class="keywordflow">if</span> (channel) +00093 { +00094 <span class="keywordflow">if</span> (<a class="code" href="classuserrec.html#r0">invites</a>.size()) +00095 { +00096 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#r0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#r0">invites</a>.end(); i++) +00097 { +00098 <span class="keywordflow">if</span> (i->channel) +00099 { +00100 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +00101 { +00102 <a class="code" href="classuserrec.html#r0">invites</a>.erase(i); +00103 <span class="keywordflow">return</span>; +00104 } +00105 } +00106 } +00107 } +00108 } +00109 } +00110 +<a name="l00111"></a><a class="code" href="classuserrec.html#a7">00111</a> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#a7">userrec::HasPermission</a>(<span class="keywordtype">char</span>* command) +00112 { +00113 <span class="keywordtype">char</span> TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +00114 <span class="keywordtype">char</span>* myclass; +00115 <span class="keywordtype">char</span>* mycmd; +00116 <span class="keywordtype">char</span>* savept; +00117 <span class="keywordtype">char</span>* savept2; +00118 +00119 <span class="comment">// are they even an oper at all?</span> +00120 <span class="keywordflow">if</span> (strchr(this->modes,<span class="charliteral">'o'</span>)) +00121 { +00122 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** HasPermission: %s is an oper"</span>,this->nick); +00123 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j =0; j < ConfValueEnum(<span class="stringliteral">"type"</span>,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); j++) +00124 { +00125 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"name"</span>,j,TypeName,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); +00126 <span class="keywordflow">if</span> (!strcmp(TypeName,this->oper)) +00127 { +00128 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** HasPermission: %s is an oper of type '%s'"</span>,this->nick,this->oper); +00129 ConfValue(<span class="stringliteral">"type"</span>,<span class="stringliteral">"classes"</span>,j,Classes,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); +00130 <span class="keywordtype">char</span>* myclass = strtok_r(Classes,<span class="stringliteral">" "</span>,&savept); +00131 <span class="keywordflow">while</span> (myclass) +00132 { +00133 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** HasPermission: checking classtype '%s'"</span>,myclass); +00134 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> k =0; k < ConfValueEnum(<span class="stringliteral">"class"</span>,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); k++) +00135 { +00136 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"name"</span>,k,ClassName,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); +00137 <span class="keywordflow">if</span> (!strcmp(ClassName,myclass)) +00138 { +00139 ConfValue(<span class="stringliteral">"class"</span>,<span class="stringliteral">"commands"</span>,k,CommandList,&<a class="code" href="channels_8cpp.html#a34">config_f</a>); +00140 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** HasPermission: found class named %s with commands: '%s'"</span>,ClassName,CommandList); +00141 +00142 +00143 mycmd = strtok_r(CommandList,<span class="stringliteral">" "</span>,&savept2); +00144 <span class="keywordflow">while</span> (mycmd) +00145 { +00146 <span class="keywordflow">if</span> (!strcasecmp(mycmd,command)) +00147 { +00148 log(<a class="code" href="modules_8h.html#a0">DEBUG</a>,<span class="stringliteral">"*** Command %s found, returning true"</span>,command); +00149 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00150 } +00151 mycmd = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept2); +00152 } +00153 } +00154 } +00155 myclass = strtok_r(NULL,<span class="stringliteral">" "</span>,&savept); +00156 } +00157 } +00158 } +00159 } +00160 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00161 } +00162 +00163 +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:26 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> diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index 48edf3a06..e0b58a6b3 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -10,6 +10,7 @@ <code>#include "<a class="el" href="users_8h-source.html">users.h</a>"</code><br> <code>#include "inspircd.h"</code><br> <code>#include <stdio.h></code><br> +<code>#include "inspstring.h"</code><br> <p> <a href="users_8cpp-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> @@ -40,10 +41,10 @@ <p> <p> -Definition at line <a class="el" href="users_8cpp-source.html#l00023">23</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. </td> +Definition at line <a class="el" href="users_8cpp-source.html#l00024">24</a> of file <a class="el" href="users_8cpp-source.html">users.cpp</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:28 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> diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index ff6eefab1..3eb9440b2 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -24,7 +24,7 @@ 00017 <span class="preprocessor">#include "inspircd_config.h"</span> 00018 <span class="preprocessor">#include "<a class="code" href="channels_8h.html">channels.h</a>"</span> 00019 <span class="preprocessor">#include "<a class="code" href="connection_8h.html">connection.h</a>"</span> -00020 +00020 <span class="preprocessor">#include "inspstring.h"</span> 00021 <span class="preprocessor">#include <string></span> 00022 00023 <span class="preprocessor">#ifndef __USERS_H__ </span> @@ -120,7 +120,7 @@ 00196 00197 00198 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:29 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:26 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> diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 88d3829f4..537ddee59 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -8,6 +8,7 @@ <h1>users.h File Reference</h1><code>#include "inspircd_config.h"</code><br> <code>#include "<a class="el" href="channels_8h-source.html">channels.h</a>"</code><br> <code>#include "<a class="el" href="connection_8h-source.html">connection.h</a>"</code><br> +<code>#include "inspstring.h"</code><br> <code>#include <string></code><br> <p> @@ -242,7 +243,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line <a class="el" href="users_8h-source.html#l00075">75</a> of file <a class="el" href="users_8h-source.html">users.h</a>. </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:28 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> diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index 773d57429..97894e8b8 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -115,7 +115,7 @@ 00146 <span class="preprocessor">#endif</span> 00147 <span class="preprocessor"></span> 00148 -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:29 2005 for InspIRCd by +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:26 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> diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index c962a6bbc..ba9c457b2 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -928,7 +928,7 @@ </td> </tr> </table> -<hr size="1"><address style="align: right;"><small>Generated on Fri Mar 25 03:49:30 2005 for InspIRCd by +<hr size="1"><address style="align: right;"><small>Generated on Mon Mar 28 21:09:29 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> |