summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-10 01:32:45 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-10 01:32:45 +0000
commit57f81a164ae406daf334c3ad5b8152ee91fdaee3 (patch)
tree051733c7b60abe1aeb4d373185148b3795babaa7 /src
parent94f78bdbc49c5c427156ac43d10d8e64b4ca4596 (diff)
Fixes to 'N' datagram
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@483 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp3
1 files changed, 2 insertions, 1 deletions
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())