diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-05-15 12:08:56 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-05-15 12:08:56 +0000 |
commit | 5b639d8e57e42922b51998085ffe368f4a9f9ff1 (patch) | |
tree | da1582c56a4f94e5ad8339ded249a0c3ddd001dc /src/modules/m_nokicks.cpp | |
parent | 998f74743f4edf551feb136293ca8681de16a6ad (diff) |
Added +N via m_nonicks, restored some stuff from a firewall fuckup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@813 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_nokicks.cpp')
-rw-r--r-- | src/modules/m_nokicks.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/modules/m_nokicks.cpp b/src/modules/m_nokicks.cpp index b90932e6c..582b3209a 100644 --- a/src/modules/m_nokicks.cpp +++ b/src/modules/m_nokicks.cpp @@ -17,7 +17,7 @@ class ModuleNoKicks : public Module Srv = new Server; Srv->AddExtendedMode('Q',MT_CHANNEL,false,0,0); } - + virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { if (access_type == AC_KICK) @@ -40,6 +40,19 @@ class ModuleNoKicks : public Module return ACR_DEFAULT; } + 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 == 'Q') && (type == MT_CHANNEL)) + { + return 1; + } + else + { + return 0; + } + } + virtual ~ModuleNoKicks() { delete Srv; |