summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-24 12:14:26 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-24 12:14:26 +0000
commit21f4b3a7bf34328d3c588ff2f9b74e8e3ee735e5 (patch)
tree53d876cca7c380cf68f8b4ce027624c21b902c0e
parent873b749ddc53a6d7f124ae6c5d8eb373dfb1f540 (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
-rw-r--r--src/userprocess.cpp4
-rw-r--r--src/xline.cpp32
2 files changed, 18 insertions, 18 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 96eba0469..df422c721 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -224,7 +224,7 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME)
if ((TIME > curr->timeout) && (curr->registered != REG_ALL))
{
curr->muted = true;
- GlobalCulls.AddItem(curr,"Registration timeout");
+ userrec::QuitUser(this, curr, "Registration timeout");
continue;
}
else
@@ -277,9 +277,9 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME)
char message[MAXBUF];
snprintf(message, MAXBUF, "Ping timeout: %ld second%s", (long)time, time > 1 ? "s" : "");
curr->muted = true;
- GlobalCulls.AddItem(curr, message);
curr->lastping = 1;
curr->nping = TIME+curr->pingmax;
+ userrec::QuitUser(this, curr, message);
continue;
}
curr->Write("PING :%s",this->Config->ServerName);
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);
}
}
}