diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.cpp | 1 | ||||
-rw-r--r-- | src/inspircd.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 6873e4e9c..bf80f7e75 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1790,6 +1790,7 @@ void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* char* dhost = strtok(NULL," "); char* ident = strtok(NULL," "); char* modes = strtok(NULL," "); + char* ipaddr = strtok(NULL," "); char* server = strtok(NULL," :"); char* gecos = strtok(NULL,"\r\n"); gecos++; diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 979493fa4..3aa5ecaa8 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2324,7 +2324,7 @@ void ConnectUser(userrec *user) WriteOpers("*** Client connecting on port %d: %s!%s@%s",user->port,user->nick,user->ident,user->host); char buffer[MAXBUF]; - snprintf(buffer,MAXBUF,"N %d %s %s %s %s +%s %s :%s",user->age,user->nick,user->host,user->dhost,user->ident,user->modes,ServerName,user->fullname); + snprintf(buffer,MAXBUF,"N %d %s %s %s %s +%s %s %s :%s",user->age,user->nick,user->host,user->dhost,user->ident,user->modes,user->ip,ServerName,user->fullname); NetSendToAll(buffer); } @@ -2905,7 +2905,7 @@ void DoSync(serverrec* serv, char* tcp_host) // send users and channels for (user_hash::iterator u = clientlist.begin(); u != clientlist.end(); u++) { - snprintf(data,MAXBUF,"N %d %s %s %s %s +%s %s :%s",u->second->age,u->second->nick,u->second->host,u->second->dhost,u->second->ident,u->second->modes,u->second->server,u->second->fullname); + snprintf(data,MAXBUF,"N %d %s %s %s %s +%s %s %s :%s",u->second->age,u->second->nick,u->second->host,u->second->dhost,u->second->ident,u->second->modes,u->second->ip,u->second->server,u->second->fullname); serv->SendPacket(data,tcp_host); if (strcmp(chlist(u->second),"")) { |