summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-12 11:20:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-12 11:20:38 +0000
commit5469a91c7f9cbd08cb2f458015f02606abc8154b (patch)
tree56df75e142f066891d9a94886ab139d4cc7097af /src
parentafb129a6421a7b07a21d845c50065b3c1bb49510 (diff)
remote kill fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@559 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 3cd832b89..dd79bd0a1 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -3916,10 +3916,10 @@ void handle_kill(char **parameters, int pcnt, userrec *user)
// remote kill
WriteOpers("*** Remote kill: %s!%s@%s (%s)",user->nick,u->nick,u->ident,u->host,parameters[1]);
sprintf(killreason,"[%s] Killed (%s (%s))",u->server,user->nick,parameters[1]);
- WriteCommonExcept(user,"QUIT :%s",killreason);
+ WriteCommonExcept(u,"QUIT :%s",killreason);
// K token must go to ALL servers!!!
char buffer[MAXBUF];
- snprintf(buffer,MAXBUF,"K %s :%s",user->nick,killreason);
+ snprintf(buffer,MAXBUF,"K %s %s :%s",user->nick,u->nick,killreason);
for (int j = 0; j < 255; j++)
{
if (servers[j] != NULL)
@@ -3931,7 +3931,7 @@ void handle_kill(char **parameters, int pcnt, userrec *user)
}
}
}
- user_hash::iterator iter = clientlist.find(user->nick);
+ user_hash::iterator iter = clientlist.find(u->nick);
if (iter != clientlist.end())
{
log(DEBUG,"deleting user hash value %d",iter->second);