summaryrefslogtreecommitdiff
path: root/src/modules/m_cloaking.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-09 23:33:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-09 23:33:36 +0000
commit50460419e6f76eecd57dc72a4f2fcc88dc114a50 (patch)
treef0f521202f9274755b2e456163764360f1188937 /src/modules/m_cloaking.cpp
parent765cdd25cb1e3ad1b38a11865a9730e65be4b4e6 (diff)
Fixed m_redirect.so which was claiming every mode that came its way!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@803 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r--src/modules/m_cloaking.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 7639b1651..b467c01d5 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -67,8 +67,11 @@ class ModuleCloaking : public Module
// so we must be VERY careful to only act upon modes which
// we have claimed ourselves. This is a feature to allow
// modules to 'spy' on extended mode activity if they so wish.
+ log(DEBUG,"modechar=%c type=%d MT_CLIENT=%d",modechar,type,MT_CLIENT);
+
if ((modechar == 'x') && (type == MT_CLIENT))
{
+ Srv->Log(DEBUG,"Mode x being handled");
// OnExtendedMode gives us a void* as the target, we must cast
// it into a userrec* or a chanrec* depending on the value of
// the 'type' parameter (MT_CLIENT or MT_CHANNEL)
@@ -85,7 +88,7 @@ class ModuleCloaking : public Module
// will not work if the user has only one level of domain
// naming in their hostname (e.g. if they are on a lan or
// are connecting via localhost) -- this doesnt matter much.
- if (strstr(dest->host,"."))
+ if (strchr(dest->host,'.'))
{
// in inspircd users have two hostnames. A displayed
// hostname which can be modified by modules (e.g.