diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-24 12:14:26 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-24 12:14:26 +0000 |
commit | 21f4b3a7bf34328d3c588ff2f9b74e8e3ee735e5 (patch) | |
tree | 53d876cca7c380cf68f8b4ce027624c21b902c0e /src/xline.cpp | |
parent | 873b749ddc53a6d7f124ae6c5d8eb373dfb1f540 (diff) |
Convert some ancient GlobalCulls usage into userrec::QuitUser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7534 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index def9db42b..6ae2aa632 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -723,9 +723,9 @@ void XLineManager::apply_lines(const int What) if (*ServerInstance->Config->MoronBanner) u->WriteServ("NOTICE %s :*** %s", u->nick, ServerInstance->Config->MoronBanner); if (ServerInstance->Config->HideBans) - ServerInstance->GlobalCulls.AddItem(u, "G-Lined", reason); + userrec::QuitUser(ServerInstance, u, "G-Lined", reason); else - ServerInstance->GlobalCulls.AddItem(u, reason); + userrec::QuitUser(ServerInstance, u, reason); } } @@ -737,9 +737,9 @@ void XLineManager::apply_lines(const int What) if (*ServerInstance->Config->MoronBanner) u->WriteServ("NOTICE %s :*** %s", u->nick, ServerInstance->Config->MoronBanner); if (ServerInstance->Config->HideBans) - ServerInstance->GlobalCulls.AddItem(u, "K-Lined", reason); + userrec::QuitUser(ServerInstance, u, "K-Lined", reason); else - ServerInstance->GlobalCulls.AddItem(u, reason); + userrec::QuitUser(ServerInstance, u, reason); } } @@ -751,9 +751,9 @@ void XLineManager::apply_lines(const int What) if (*ServerInstance->Config->MoronBanner) u->WriteServ("NOTICE %s :*** %s", u->nick, ServerInstance->Config->MoronBanner); if (ServerInstance->Config->HideBans) - ServerInstance->GlobalCulls.AddItem(u, "Q-Lined", reason); + userrec::QuitUser(ServerInstance, u, "Q-Lined", reason); else - ServerInstance->GlobalCulls.AddItem(u, reason); + userrec::QuitUser(ServerInstance, u, reason); } } @@ -765,9 +765,9 @@ void XLineManager::apply_lines(const int What) if (*ServerInstance->Config->MoronBanner) u->WriteServ("NOTICE %s :*** %s", u->nick, ServerInstance->Config->MoronBanner); if (ServerInstance->Config->HideBans) - ServerInstance->GlobalCulls.AddItem(u, "Z-Lined", reason); + userrec::QuitUser(ServerInstance, u, "Z-Lined", reason); else - ServerInstance->GlobalCulls.AddItem(u, reason); + userrec::QuitUser(ServerInstance, u, reason); } } } @@ -799,9 +799,9 @@ void XLineManager::apply_lines(const int What) if (*ServerInstance->Config->MoronBanner) u->WriteServ("NOTICE %s :*** %s", u->nick, ServerInstance->Config->MoronBanner); if (ServerInstance->Config->HideBans) - ServerInstance->GlobalCulls.AddItem(u, "G-Lined", reason); + userrec::QuitUser(ServerInstance, u, "G-Lined", reason); else - ServerInstance->GlobalCulls.AddItem(u, reason); + userrec::QuitUser(ServerInstance, u, reason); } } if ((What & APPLY_KLINES) && (klines.size() || pklines.size())) @@ -812,9 +812,9 @@ void XLineManager::apply_lines(const int What) if (*ServerInstance->Config->MoronBanner) u->WriteServ("NOTICE %s :*** %s", u->nick, ServerInstance->Config->MoronBanner); if (ServerInstance->Config->HideBans) - ServerInstance->GlobalCulls.AddItem(u, "K-Lined", reason); + userrec::QuitUser(ServerInstance, u, "K-Lined", reason); else - ServerInstance->GlobalCulls.AddItem(u, reason); + userrec::QuitUser(ServerInstance, u, reason); } } if ((What & APPLY_QLINES) && (qlines.size() || pqlines.size())) @@ -825,9 +825,9 @@ void XLineManager::apply_lines(const int What) if (*ServerInstance->Config->MoronBanner) u->WriteServ("NOTICE %s :*** %s", u->nick, ServerInstance->Config->MoronBanner); if (ServerInstance->Config->HideBans) - ServerInstance->GlobalCulls.AddItem(u, "Q-Lined", reason); + userrec::QuitUser(ServerInstance, u, "Q-Lined", reason); else - ServerInstance->GlobalCulls.AddItem(u, reason); + userrec::QuitUser(ServerInstance, u, reason); } } if ((What & APPLY_ZLINES) && (zlines.size() || pzlines.size())) @@ -838,9 +838,9 @@ void XLineManager::apply_lines(const int What) if (*ServerInstance->Config->MoronBanner) u->WriteServ("NOTICE %s :*** %s", u->nick, ServerInstance->Config->MoronBanner); if (ServerInstance->Config->HideBans) - ServerInstance->GlobalCulls.AddItem(u, "Z-Lined", reason); + userrec::QuitUser(ServerInstance, u, "Z-Lined", reason); else - ServerInstance->GlobalCulls.AddItem(u, reason); + userrec::QuitUser(ServerInstance, u, reason); } } } |