From 2b84d86113a183d56fd2471bf72ce6068bb969cb Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 29 Nov 2005 17:54:03 +0000 Subject: Fixed mode stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2016 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/modules') 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; -- cgit v1.2.3