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
This commit is contained in:
brain 2008-04-21 22:19:18 +00:00
parent 28a1967177
commit 15a1ffae23
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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