From 93784202ea97ee120ff9b5450a37e2ad26cca381 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 26 Apr 2004 12:37:38 +0000 Subject: Added ip address to N token for SLINE in services use git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@733 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 1 + src/inspircd.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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),"")) { -- cgit v1.2.3