mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Add option hideSystemMessages to hide server messages on client
Use "set hideSystemMessages on" in client console to activate.
This commit is contained in:
parent
a03419e7d9
commit
99dcb44851
@ -724,10 +724,17 @@ void processCommand(const std::string &message)
|
||||
Settings conf = settings.write["session"][what];
|
||||
|
||||
readed >> value;
|
||||
|
||||
if (value == "on")
|
||||
{
|
||||
conf->Bool() = true;
|
||||
logGlobal->info("Option %s enabled!", what);
|
||||
}
|
||||
else if (value == "off")
|
||||
{
|
||||
conf->Bool() = false;
|
||||
logGlobal->info("Option %s disabled!", what);
|
||||
}
|
||||
}
|
||||
else if(cn == "sinfo")
|
||||
{
|
||||
|
@ -787,7 +787,7 @@ void SystemMessage::applyCl( CClient *cl )
|
||||
str << "System message: " << text;
|
||||
|
||||
logNetwork->errorStream() << str.str(); // usually used to receive error messages from server
|
||||
if(LOCPLINT)
|
||||
if(LOCPLINT && !settings["session"]["hideSystemMessages"].Bool())
|
||||
LOCPLINT->cingconsole->print(str.str());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user