summaryrefslogtreecommitdiff
path: root/src/cmd_kill.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-08 14:38:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-08 14:38:24 +0000
commit93876363f89ea7a451ba1e18407e08a539854208 (patch)
tree25b70293d4358ce4af60e355a4b3a8483d666699 /src/cmd_kill.cpp
parent6ab1d0dffb8084bf6a2ad8a446a3836fa3760c8a (diff)
kill_link() and Server::QuitUser() -> userrec::QuitUser() (static member) - this cant be a normal member as it causes the userrec to be deleted, and "delete this" is bad, mmm'k
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4789 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_kill.cpp')
-rw-r--r--src/cmd_kill.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp
index 0084da9dc..ad602c097 100644
--- a/src/cmd_kill.cpp
+++ b/src/cmd_kill.cpp
@@ -79,7 +79,7 @@ void cmd_kill::Handle (const char** parameters, int pcnt, userrec *user)
WriteTo(user, u, "KILL %s :%s!%s!%s (%s)", u->nick, Config->ServerName, user->dhost, user->nick, parameters[1]);
WriteOpers("*** Local Kill by %s: %s!%s@%s (%s)", user->nick, u->nick, u->ident, u->host, parameters[1]);
snprintf(killreason,MAXQUIT,"Killed (%s (%s))", user->nick, parameters[1]);
- kill_link(u, killreason);
+ userrec::QuitUser(u, killreason);
}
}
else