diff options
-rw-r--r-- | src/cull_list.cpp | 2 | ||||
-rw-r--r-- | src/xline.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
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 |