From f2ce65bd86b0b48fa4abe958f6190bb7be862dce Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 9 Dec 2005 16:16:32 +0000 Subject: Fixed broken IDLE reply git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2295 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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 par; - par.push_back(u->nick); + par.push_back(x->nick); par.push_back(signon); par.push_back(idle); DoOneToMany(params[0],"IDLE",par); -- cgit v1.2.3