summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-29 17:54:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-11-29 17:54:03 +0000
commit2b84d86113a183d56fd2471bf72ce6068bb969cb (patch)
tree135b5763553163f2e9bb2a59932146874bd2e068 /src/modules/m_spanningtree.cpp
parentc09e39fa58c88eabf6c933cb78d1ea67d6fbe2c8 (diff)
Fixed mode stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2016 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index fe00ac42b..adc4a2a38 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -490,6 +490,12 @@ class TreeSocket : public InspSocket
std::string ident = params[4];
time_t age = atoi(params[0].c_str());
std::string modes = params[5];
+ if (*(modes.c_str()) == '+')
+ {
+ char* m = (char*)modes.c_str();
+ m++;
+ modes = m;
+ }
std::string ip = params[6];
std::string gecos = params[7];
char* tempnick = (char*)nick.c_str();
@@ -1392,8 +1398,10 @@ class ModuleSpanningTree : public Module
virtual void OnMode(userrec* user, void* dest, int target_type, std::string text)
{
+ log(DEBUG,"*** ONMODE TRIGGER");
if (std::string(user->server) == Srv->GetServerName())
{
+ log(DEBUG,"*** LOCAL");
if (target_type == TYPE_USER)
{
userrec* u = (userrec*)dest;