summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-27 19:53:16 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-27 19:53:16 +0000
commit1bc693d37b068d5dedb4fa51a43ffbee75ce5050 (patch)
treebe6a7e5465221efe07ac3457980a9c3f6b24459c /src/commands.cpp
parent644b87f4a073f3450e1c8299ae9c33f11073de45 (diff)
Fixes to all kinds of annoying problems
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1220 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index f7361640c..f8d4c208d 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1756,7 +1756,7 @@ void handle_nick(char **parameters, int pcnt, userrec *user)
WriteCommon(user,"NICK %s",parameters[0]);
- // Q token must go to ALL servers!!!
+ // N token must go to ALL servers!!!
char buffer[MAXBUF];
snprintf(buffer,MAXBUF,"n %s %s",user->nick,parameters[0]);
NetSendToAll(buffer);
@@ -2066,10 +2066,9 @@ void handle_n(char token,char* params,serverrec* source,serverrec* reply, char*
char* newnick = strtok(NULL," ");
userrec* user = Find(oldnick);
-
+
if (user)
{
- WriteCommon(user,"NICK %s",newnick);
if (is_uline(tcp_host))
{
int MOD_RESULT = 0;
@@ -2088,8 +2087,9 @@ void handle_n(char token,char* params,serverrec* source,serverrec* reply, char*
// broadcast this because its a services thingy
char buffer[MAXBUF];
snprintf(buffer,MAXBUF,"n %s %s",user->nick,newnick);
- NetSendToAll(buffer);
+ NetSendToAllExcept(tcp_host,buffer);
}
+ WriteCommon(user,"NICK %s",newnick);
user = ReHashNick(user->nick, newnick);
if (!user) return;
if (!user->nick) return;