Browse Source

Fix console log spam

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
18399897a2
  1. 12
      sources/InfoQueryHandler/InfoQueryHandler.uc

12
sources/InfoQueryHandler/InfoQueryHandler.uc

@ -233,14 +233,16 @@ private final static function OutAcediaHelp()
default.currentOutput default.currentOutput
.Flush() .Flush()
.WriteLine(T(default.TACEDIA_HELP)); .WriteLine(T(default.TACEDIA_HELP));
if (!class'Commands_Feature'.static.IsEnabled())
{
default.currentOutput.WriteLine(T(default.TACEDIA_HELP_COMMANDS_NO));
return;
}
prefix = class'Commands_Feature'.static prefix = class'Commands_Feature'.static
.GetChatPrefix() .GetChatPrefix()
.IntoMutableText() .IntoMutableText()
.ChangeDefaultColor(__().color.TextEmphasis); .ChangeDefaultColor(__().color.TextEmphasis);
if (!class'Commands_Feature'.static.IsEnabled()) { if ( class'Commands_Feature'.static.IsUsingChatInput()
default.currentOutput.WriteLine(T(default.TACEDIA_HELP_COMMANDS_NO));
}
else if ( class'Commands_Feature'.static.IsUsingChatInput()
&& class'Commands_Feature'.static.IsUsingMutateInput()) && class'Commands_Feature'.static.IsUsingMutateInput())
{ {
builder = builder =
@ -303,7 +305,7 @@ defaultproperties
TACEDIA_HELP_COMMANDS_NO = 6 TACEDIA_HELP_COMMANDS_NO = 6
stringConstants(6) = "Unfortunately other commands aren't available right now. To enable them please type {$TextEmphasis mutate acediacommands} in console if you have enough rights to reenable them." stringConstants(6) = "Unfortunately other commands aren't available right now. To enable them please type {$TextEmphasis mutate acediacommands} in console if you have enough rights to reenable them."
TACEDIA_HELP_COMMANDS_USELESS = 7 TACEDIA_HELP_COMMANDS_USELESS = 7
stringConstants(7) = "Unfortunately every known way to access other command is disabled on this server. To enable them please type {$TextEmphasis mutate acediacommands} in console if you have enough rights to reenable them." stringConstants(7) = "Unfortunately every known way to access other commands is disabled on this server. To enable them please type {$TextEmphasis mutate acediacommands} in console if you have enough rights to reenable them."
TACEDIA_RUNNING = 8 TACEDIA_RUNNING = 8
stringConstants(8) = "AcediaCore is running" stringConstants(8) = "AcediaCore is running"
TACEDIA_VERSION = 9 TACEDIA_VERSION = 9

Loading…
Cancel
Save