mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
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:
parent
28a1967177
commit
15a1ffae23
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user