New extensions documented + typo fixed

This commit is contained in:
Valery Yatsko 2008-04-08 23:24:47 +04:00
parent 01e9b1eb3b
commit dbbe26fa00
3 changed files with 30 additions and 20 deletions

View file

@ -10,6 +10,9 @@
*/ */
/* Extensions */ /* Extensions */
#loadmodule "extensions/chm_operonly_compat.so";
#loadmodule "extensions/chm_quietunreg_compat.so";
#loadmodule "extensions/chm_sslonly_compat.so";
#loadmodule "extensions/createauthonly.so"; #loadmodule "extensions/createauthonly.so";
#loadmodule "extensions/extb_account.so"; #loadmodule "extensions/extb_account.so";
#loadmodule "extensions/extb_canjoin.so"; #loadmodule "extensions/extb_canjoin.so";
@ -18,6 +21,7 @@
#loadmodule "extensions/extb_oper.so"; #loadmodule "extensions/extb_oper.so";
#loadmodule "extensions/extb_realname.so"; #loadmodule "extensions/extb_realname.so";
#loadmodule "extensions/extb_server.so"; #loadmodule "extensions/extb_server.so";
#loadmodule "extensions/extb_ssl.so";
#loadmodule "extensions/hurt.so"; #loadmodule "extensions/hurt.so";
#loadmodule "extensions/ip_cloaking.so"; #loadmodule "extensions/ip_cloaking.so";
#loadmodule "extensions/m_findforwards.so"; #loadmodule "extensions/m_findforwards.so";

View file

@ -41,24 +41,31 @@
* Charybdis contains several extensions that are not enabled by default. * Charybdis contains several extensions that are not enabled by default.
* To use them, uncomment the lines below. * To use them, uncomment the lines below.
* *
* Restrict channel creation to logged in users -- createauthonly.so * Emulates channel mode +-O (oper only) (+-iI $o) -- chm_operonly_compat.so
* Account bans (+b $a[:mask]) -- extb_account.so * Emulates channel mode +-R (quiet unreg) (+-q $~a) -- chm_quietunreg_compat.so
* Banned from another channel (+b $j:mask) -- extb_canjoin.so * Emulates channel mode +-S (ssl only) (+-b $~z) -- chm_sslonly_compat.so
* Other-channel bans (+b $c:mask) -- extb_channel.so * Restrict channel creation to logged in users -- createauthonly.so
* Extended ban (+b $x:mask) -- extb_extgecos.so * Account bans (+b $a[:mask]) -- extb_account.so
* Oper bans (+b $o) -- extb_oper.so * Banned from another channel (+b $j:mask) -- extb_canjoin.so
* Realname (gecos) bans (+b $r:mask) -- extb_realname.so * Other-channel bans (+b $c:mask) -- extb_channel.so
* Server bans (+b $s:mask) -- extb_server.so * Extended ban (+b $x:mask) -- extb_extgecos.so
* HURT system -- hurt.so * Oper bans (+b $o) -- extb_oper.so
* Host mangling (umode +h) -- ip_cloaking.so * Realname (gecos) bans (+b $r:mask) -- extb_realname.so
* Find channel forwards -- m_findforwards.so * Server bans (+b $s:mask) -- extb_server.so
* /identify support -- m_identify.so * SSL bans (+b $z) -- extb_ssl.so
* Opers cannot be invisible (umode +i) -- no_oper_invis.so * HURT system -- hurt.so
* Far connection notices (snomask +F) -- sno_farconnect.so * Host mangling (umode +h) -- ip_cloaking.so
* Remote k/d/g/x line active notices -- sno_globalkline.so * Find channel forwards -- m_findforwards.so
* Remote oper up notices -- sno_globaloper.so * /identify support -- m_identify.so
* /whois notifications (snomask +W) -- sno_whois.so * Opers cannot be invisible (umode +i) -- no_oper_invis.so
* Far connection notices (snomask +F) -- sno_farconnect.so
* Remote k/d/g/x line active notices -- sno_globalkline.so
* Remote oper up notices -- sno_globaloper.so
* /whois notifications (snomask +W) -- sno_whois.so
*/ */
#loadmodule "extensions/chm_operonly_compat.so";
#loadmodule "extensions/chm_quietunreg_compat.so";
#loadmodule "extensions/chm_sslonly_compat.so";
#loadmodule "extensions/createauthonly.so"; #loadmodule "extensions/createauthonly.so";
#loadmodule "extensions/extb_account.so"; #loadmodule "extensions/extb_account.so";
#loadmodule "extensions/extb_canjoin.so"; #loadmodule "extensions/extb_canjoin.so";
@ -67,6 +74,7 @@
#loadmodule "extensions/extb_oper.so"; #loadmodule "extensions/extb_oper.so";
#loadmodule "extensions/extb_realname.so"; #loadmodule "extensions/extb_realname.so";
#loadmodule "extensions/extb_server.so"; #loadmodule "extensions/extb_server.so";
#loadmodule "extensions/extb_ssl.so";
#loadmodule "extensions/hurt.so"; #loadmodule "extensions/hurt.so";
#loadmodule "extensions/ip_cloaking.so"; #loadmodule "extensions/ip_cloaking.so";
#loadmodule "extensions/m_findforwards.so"; #loadmodule "extensions/m_findforwards.so";

View file

@ -1,4 +1,4 @@
/* Oper extban type: matches ssl users */ /* SSL extban type: matches ssl users */
#include "stdinc.h" #include "stdinc.h"
#include "modules.h" #include "modules.h"
@ -31,8 +31,6 @@ static int eb_ssl(const char *data, struct Client *client_p,
(void)chptr; (void)chptr;
(void)mode_type; (void)mode_type;
/* perhaps use data somehow? (opernick/flags?) */
/* so deny any bans with data for now */
if (data != NULL) if (data != NULL)
return EXTBAN_INVALID; return EXTBAN_INVALID;
return IsSSLClient(client_p) ? EXTBAN_MATCH : EXTBAN_NOMATCH; return IsSSLClient(client_p) ? EXTBAN_MATCH : EXTBAN_NOMATCH;