From 56f5bec830a546f413ae71185b2750e5fb0c0ab6 Mon Sep 17 00:00:00 2001 From: Falco Peijnenburg Date: Sat, 30 Nov 2024 17:30:58 +0100 Subject: [PATCH] Switch SetMOTDPage to use RunConsoleCommand --- gamemode/modules/fadmin/fadmin/motd/sv_init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemode/modules/fadmin/fadmin/motd/sv_init.lua b/gamemode/modules/fadmin/fadmin/motd/sv_init.lua index c1c962201..200adc7d3 100644 --- a/gamemode/modules/fadmin/fadmin/motd/sv_init.lua +++ b/gamemode/modules/fadmin/fadmin/motd/sv_init.lua @@ -70,7 +70,7 @@ function FAdmin.MOTD.SetMOTDPage(ply, cmd, args) return false end if ply:EntIndex() ~= 0 and (not ply.IsSuperAdmin or not ply:IsSuperAdmin()) then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end - game.ConsoleCommand("_FAdmin_MOTDPage \"" .. args[1] .. "\"\n") + RunConsoleCommand("_FAdmin_MOTDPage", args[1]) file.Write("FAdmin/CurMOTDPage.txt", args[1]) return true, args[1]