summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-18 19:01:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-18 19:01:41 +0000
commit999a6a3972937e4d2a2e65a5452aedef96f1f48a (patch)
tree726fe7d387261b9b6ca0b052bab0d9920d7ae8b7 /src/inspircd.cpp
parent07da571e04017e8d681d385cdd67be3f043aa28f (diff)
Changed format of 'b' token
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@650 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 4e5b5c0be..0dc824076 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -1105,7 +1105,7 @@ void ChangeDisplayedHost(userrec* user, const char* host)
{
strncpy(user->dhost,host,160);
char buffer[MAXBUF];
- snprintf(buffer,MAXBUF,"b %s :%s",user->nick,host);
+ snprintf(buffer,MAXBUF,"b %s %s",user->nick,host);
NetSendToAll(buffer);
}
@@ -6492,8 +6492,8 @@ void handle_a(char token,char* params,serverrec* source,serverrec* reply, char*
void handle_b(char token,char* params,serverrec* source,serverrec* reply, char* udp_host)
{
- char* nick = strtok(params," :");
- char* host = strtok(NULL,"\r\n");
+ char* nick = strtok(params," ");
+ char* host = strtok(NULL," ");
userrec* user = Find(nick);