mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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:
parent
8e475017a6
commit
e8b5c0d9f9
@ -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 ¶ms)
|
||||
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms)
|
||||
{
|
||||
// this method is called for any extended mode character.
|
||||
// all module modes for all modules pass through here
|
||||
|
@ -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 ¶ms)
|
||||
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms)
|
||||
{
|
||||
// check if this is our mode character...
|
||||
if ((modechar == 'g') && (type == MT_CLIENT))
|
||||
|
@ -157,7 +157,7 @@ class ModuleHelpop : public Module
|
||||
|
||||
}
|
||||
|
||||
virtual bool OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms)
|
||||
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms)
|
||||
{
|
||||
if ((modechar == 'h') && (type == MT_CLIENT))
|
||||
{
|
||||
|
@ -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 ¶ms)
|
||||
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms)
|
||||
{
|
||||
|
||||
if (modechar != 'r') {
|
||||
|
@ -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 ¶ms)
|
||||
virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms)
|
||||
{
|
||||
|
||||
if ((modechar != 'Z') || (type != MT_CHANNEL)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user