diff options
| author | 2006-08-08 14:38:24 +0000 | |
|---|---|---|
| committer | 2006-08-08 14:38:24 +0000 | |
| commit | 93876363f89ea7a451ba1e18407e08a539854208 (patch) | |
| tree | 25b70293d4358ce4af60e355a4b3a8483d666699 /src/modules.cpp | |
| parent | WriteChannel* functions and ChanExceptSender* functions are now methods of ch... (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/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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)); |
