summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-10 01:51:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-10 01:51:15 +0000
commit937ce6539ca689c1071f6fb67638e33703d6fac7 (patch)
treef388217a2316539f904733f0212a61c9a566fcf6 /src
parentf5f33337f99d71c5432c302a68b6ae6819580bbd (diff)
Fixes to server syncing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@485 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/InspIRCd.layout6
-rw-r--r--src/inspircd.cpp9
2 files changed, 11 insertions, 4 deletions
diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout
index 4ddebfc79..158e7b27d 100644
--- a/src/InspIRCd.layout
+++ b/src/InspIRCd.layout
@@ -13,9 +13,9 @@ LeftChar=1
[Editor_1]
Open=1
Top=1
-CursorCol=29
-CursorRow=636
-TopLine=619
+CursorCol=12
+CursorRow=5153
+TopLine=5121
LeftChar=1
[Editor_2]
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index f21df853a..9484532c2 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -5148,6 +5148,13 @@ 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 g[MAXBUF];
+ strcpy(g,params);
+ char* gecos = g;
+ while ((gecos[0] != ':') && (strlen(gecos)))
+ gecos++;
+ if (strlen(gecos))
+ gecos++;
char* tm = strtok(params," ");
char* nick = strtok(NULL," ");
char* host = strtok(NULL," ");
@@ -5155,7 +5162,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 = strtok(NULL,"\r\n");
+ char* junk = strtok(NULL,"\r\n");
time_t TS = atoi(tm);
user_hash::iterator iter = clientlist.find(nick);
if (iter != clientlist.end())