Added Module::OnAccessCheck

Added ListMode support
Fixed Extensible class bug
Added +qa mode module


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@760 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2004-05-01 12:44:20 +00:00
parent 8e475017a6
commit e8b5c0d9f9
5 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@ class ModuleCloaking : public Module
return Version(1,0,0,1);
}
virtual bool OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
{
// this method is called for any extended mode character.
// all module modes for all modules pass through here

View File

@ -47,7 +47,7 @@ class ModuleGlobops : public Module
return Version(1,0,0,1);
}
virtual bool OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
{
// check if this is our mode character...
if ((modechar == 'g') && (type == MT_CLIENT))

View File

@ -157,7 +157,7 @@ class ModuleHelpop : public Module
}
virtual bool OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
{
if ((modechar == 'h') && (type == MT_CLIENT))
{

View File

@ -22,7 +22,7 @@ class ModuleServices : public Module
Srv->AddExtendedMode('r',MT_CLIENT,false,0,0);
}
virtual bool OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
{
if (modechar != 'r') {

View File

@ -46,7 +46,7 @@ class ModuleTestCommand : public Module
Srv->AddExtendedMode('Z',MT_CHANNEL,false,1,0);
}
virtual bool OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params)
{
if ((modechar != 'Z') || (type != MT_CHANNEL)) {