diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-02 12:38:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-02 12:38:41 +0000 |
commit | a753fb1bc711e10794e939e424f3cdd703116d82 (patch) | |
tree | bf17b41965232848b840c4340f74bec3741afae2 /docs/module-doc/users_8cpp-source.html | |
parent | 0ae832406f989194761528a1b8d49aa115c7fb3b (diff) |
Added support for modules to create commands - this needs a proof-of-concept module yet, do not use unless you like to live dangerously.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@351 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'docs/module-doc/users_8cpp-source.html')
-rw-r--r-- | docs/module-doc/users_8cpp-source.html | 57 |
1 files changed, 31 insertions, 26 deletions
diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index b586cb13d..fa84b42c1 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -58,32 +58,37 @@ 00050 { 00051 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#o0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#o0">invites</a>.end(); i++) 00052 { -00053 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -00054 { -00055 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00056 } -00057 } -00058 } -00059 -<a name="l00060"></a><a class="code" href="classuserrec.html#a5">00060</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a5">userrec::InviteTo</a>(<span class="keywordtype">char</span>* channel) -00061 { -00062 <a class="code" href="classInvited.html">Invited</a> i; -00063 strcpy(i.<a class="code" href="classInvited.html#m0">channel</a>,channel); -00064 <a class="code" href="classuserrec.html#o0">invites</a>.push_back(i); -00065 } -00066 -<a name="l00067"></a><a class="code" href="classuserrec.html#a6">00067</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a6">userrec::RemoveInvite</a>(<span class="keywordtype">char</span>* channel) -00068 { -00069 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#o0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#o0">invites</a>.end(); i++) -00070 { -00071 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) -00072 { -00073 <a class="code" href="classuserrec.html#o0">invites</a>.erase(i); -00074 <span class="keywordflow">return</span>; -00075 } -00076 } -00077 } -</pre></div><hr><address style="align: right;"><small>Generated on Sun Mar 30 19:34:54 2003 for InspIRCd by +00053 <span class="keywordflow">if</span> (i->channel) { +00054 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +00055 { +00056 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00057 } +00058 } +00059 } +00060 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00061 } +00062 +<a name="l00063"></a><a class="code" href="classuserrec.html#a5">00063</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a5">userrec::InviteTo</a>(<span class="keywordtype">char</span>* channel) +00064 { +00065 <a class="code" href="classInvited.html">Invited</a> i; +00066 strcpy(i.<a class="code" href="classInvited.html#m0">channel</a>,channel); +00067 <a class="code" href="classuserrec.html#o0">invites</a>.push_back(i); +00068 } +00069 +<a name="l00070"></a><a class="code" href="classuserrec.html#a6">00070</a> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a6">userrec::RemoveInvite</a>(<span class="keywordtype">char</span>* channel) +00071 { +00072 <span class="keywordflow">for</span> (InvitedList::iterator i = <a class="code" href="classuserrec.html#o0">invites</a>.begin(); i != <a class="code" href="classuserrec.html#o0">invites</a>.end(); i++) +00073 { +00074 <span class="keywordflow">if</span> (i->channel) { +00075 <span class="keywordflow">if</span> (!strcasecmp(i->channel,channel)) +00076 { +00077 <a class="code" href="classuserrec.html#o0">invites</a>.erase(i); +00078 <span class="keywordflow">return</span>; +00079 } +00080 } +00081 } +00082 } +</pre></div><hr><address style="align: right;"><small>Generated on Fri Apr 2 13:37:27 2004 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.3-rc3 </small></address> |