diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-04 15:11:08 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-04 15:11:08 +0000 |
commit | 3ee6d068490ba71ec8c7044e2eb6dd662df9577c (patch) | |
tree | 828bf6fc3e2fcce088f6e988d24070753284604a /src | |
parent | 5e854ddd378736e88fb3ab1aedbd5b6b8622123b (diff) |
Modes/permissions not being propogated on NICK
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2146 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 88798f478..b7c9a2929 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -612,7 +612,7 @@ 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()) == '+') + while (*(modes.c_str()) == '+') { char* m = (char*)modes.c_str(); m++; @@ -643,6 +643,7 @@ class TreeSocket : public InspSocket strlcpy(clientlist[tempnick]->fullname, gecos.c_str(),MAXGECOS); clientlist[tempnick]->registered = 7; clientlist[tempnick]->signon = age; + strlcpy(clientlist[tempnick]->modes, modes.c_str(),53); strlcpy(clientlist[tempnick]->ip,ip.c_str(),16); for (int i = 0; i < MAXCHANS; i++) { |