diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-09 16:16:32 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-09 16:16:32 +0000 |
commit | f2ce65bd86b0b48fa4abe958f6190bb7be862dce (patch) | |
tree | 5bc68f92af0c30045bdefafc131decf7927965c4 | |
parent | c50f3fd6445338c0e7511b49897618d99ab45a8a (diff) |
Fixed broken IDLE reply
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2295 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index de444fb4a..1ca48aece 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1376,13 +1376,14 @@ class TreeSocket : public InspSocket { if (std::string(u->server) != Srv->GetServerName()) { + userrec* x = Srv->FindNick(params[0]); log(DEBUG,"Got IDLE, sending back IDLE"); char signon[MAXBUF]; char idle[MAXBUF]; - snprintf(signon,MAXBUF,"%lu",(unsigned long)u->signon); - snprintf(idle,MAXBUF,"%lu",(unsigned long)abs((u->idle_lastmsg)-time(NULL))); + snprintf(signon,MAXBUF,"%lu",(unsigned long)x->signon); + snprintf(idle,MAXBUF,"%lu",(unsigned long)abs((x->idle_lastmsg)-time(NULL))); std::deque<std::string> par; - par.push_back(u->nick); + par.push_back(x->nick); par.push_back(signon); par.push_back(idle); DoOneToMany(params[0],"IDLE",par); |