mirror of
https://github.com/anope/anope.git
synced 2026-06-28 09:16:38 +02:00
Set quitmsg on ERROR
This commit is contained in:
+4
-1
@@ -569,7 +569,10 @@ bool IRCdMessage::OnCapab(const Anope::string &, const std::vector<Anope::string
|
||||
bool IRCdMessage::OnError(const Anope::string &, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
if (!params.empty())
|
||||
Log(LOG_TERMINAL) << "Error: " << params[0];
|
||||
{
|
||||
Log() << "ERROR: " << params[0];
|
||||
quitmsg = "Received ERROR from uplink: " + params[0];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user