From 93876363f89ea7a451ba1e18407e08a539854208 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 8 Aug 2006 14:38:24 +0000 Subject: 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 --- src/modules.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 1b00f3510..71dee1a59 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -414,11 +414,6 @@ void Server::ChangeUserNick(userrec* user, const std::string &nickname) force_nickchange(user,nickname.c_str()); } -void Server::QuitUser(userrec* user, const std::string &reason) -{ - kill_link(user,reason.c_str()); -} - bool Server::IsUlined(const std::string &server) { return is_uline(server.c_str()); @@ -633,7 +628,7 @@ bool Server::PseudoToUser(userrec* alive, userrec* zombie, const std::string &me std::string oldnick = alive->nick; std::string oldhost = alive->host; std::string oldident = alive->ident; - kill_link(alive,message.c_str()); + userrec::QuitUser(alive,message.c_str()); if (find(local_users.begin(),local_users.end(),alive) != local_users.end()) { local_users.erase(find(local_users.begin(),local_users.end(),alive)); -- cgit v1.3.1-10-gc9f91