From 57f81a164ae406daf334c3ad5b8152ee91fdaee3 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 10 Apr 2004 01:32:45 +0000 Subject: Fixes to 'N' datagram git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@483 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 7ebc61f9c..5a4f542fc 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -5147,6 +5147,7 @@ void DoSync(serverrec* serv, char* udp_host,int udp_port, long MyKey) void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* udp_host,int udp_port) { + // %d %s %s %s %s %s %s :%s char* tm = strtok(params," "); char* nick = strtok(NULL," "); char* host = strtok(NULL," "); @@ -5154,7 +5155,7 @@ void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* char* ident = strtok(NULL," "); char* modes = strtok(NULL," "); char* server = strtok(NULL," "); - char* gecos = strchr(params,':') + 1; + char* gecos = strtok(NULL," "); time_t TS = atoi(tm); user_hash::iterator iter = clientlist.find(nick); if (iter != clientlist.end()) -- cgit v1.2.3