From c881c52c43a0ee55274759ac8aa26b9f6fb0b508 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 1 May 2004 23:10:23 +0000 Subject: documentation update for updated return values of OnUserPreJoin git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@776 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/classModule.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/module-doc/classModule.html') 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 296 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:

-:information here +<nick> :information here

Definition at line 299 of file modules.cpp.

@@ -759,7 +759,7 @@ Definition at line 290

Called whenever a user is about to join a channel, before any processing is done.

-Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to mimic +b, +k, +l etc.

+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.

IMPORTANT NOTE!

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.

@@ -1049,7 +1049,7 @@ Definition at line 300


The documentation for this class was generated from the following files: -
Generated on Sat May 1 20:58:11 2004 for InspIRCd by +
Generated on Sun May 2 00:09:41 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3