From 15a1ffae233e1bf28a3c1dc9e1e8b6298c6a0f57 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 21 Apr 2008 22:19:18 +0000 Subject: Fix quietbans and hidesplits etc, cull list's sending a seperate quit message to normal users was broken git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9574 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cull_list.cpp | 2 +- src/xline.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cull_list.cpp b/src/cull_list.cpp index f7f163298..db9d4978e 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -51,7 +51,7 @@ int CullList::Apply() User *u = (*a); user_hash::iterator iter = ServerInstance->Users->clientlist->find(u->nick); const char* preset_reason = u->GetOperQuit(); - std::string reason = u->operquitmsg; + std::string reason = u->quitmsg; std::string oper_reason = *preset_reason ? preset_reason : u->operquitmsg; if (reason.length() > MAXQUIT - 1) diff --git a/src/xline.cpp b/src/xline.cpp index 610af2e6c..1e2e415cd 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -420,6 +420,7 @@ void XLine::DefaultApply(User* u, const std::string &line, bool bancache) snprintf(sreason, MAXBUF, "%s-Lined: %s", line.c_str(), this->reason); if (*ServerInstance->Config->MoronBanner) u->WriteServ("NOTICE %s :*** %s", u->nick, ServerInstance->Config->MoronBanner); + if (ServerInstance->Config->HideBans) ServerInstance->Users->QuitUser(u, line + "-Lined", sreason); else -- cgit v1.2.3