summaryrefslogtreecommitdiff
path: root/docs/module-doc/classModule.html
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-01 23:10:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-01 23:10:23 +0000
commitc881c52c43a0ee55274759ac8aa26b9f6fb0b508 (patch)
tree988d696bf1b6f8a340bcaffe9b38bce382a274d0 /docs/module-doc/classModule.html
parentfea9e48a44c6c92609e85be599bf3172c2f2e2a2 (diff)
documentation update for updated return values of OnUserPreJoin
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@776 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'docs/module-doc/classModule.html')
-rw-r--r--docs/module-doc/classModule.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html
index 881eca446..f17ba5067 100644
--- a/docs/module-doc/classModule.html
+++ b/docs/module-doc/classModule.html
@@ -388,7 +388,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00296">296</a>
Called whenever a user types /INFO.
<p>
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>
-:information here
+&lt;nick&gt; :information here
<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>.
<p>
@@ -759,7 +759,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00290">290</a>
<p>
Called whenever a user is about to join a channel, before any processing is done.
<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 mimic +b, +k, +l etc.<p>
+Returning a value of 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to mimic +b, +k, +l etc. Returning -1 from this function forces the join to be allowed, bypassing restrictions such as banlists, invite, keys etc.<p>
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>
@@ -1049,7 +1049,7 @@ Definition at line <a class="el" href="modules_8cpp-source.html#l00300">300</a>
</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><address style="align: right;"><small>Generated on Sat May 1 20:58:11 2004 for InspIRCd by
+<hr><address style="align: right;"><small>Generated on Sun May 2 00:09:41 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>