From dc35ab5251997f35ff81f4de06c0da22dbc393f4 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Sun, 20 Aug 2023 09:31:26 -0400 Subject: [PATCH] [Bug Fix] Fix #motd/#set motd Command (#3558) # Notes - This command was non-functional since the consolidation due to an oversight on my part. --- zone/gm_commands/set.cpp | 2 ++ zone/gm_commands/set/motd.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/zone/gm_commands/set.cpp b/zone/gm_commands/set.cpp index a7dbb99bb..8626db5cc 100644 --- a/zone/gm_commands/set.cpp +++ b/zone/gm_commands/set.cpp @@ -33,6 +33,7 @@ #include "set/loginserver_info.cpp" #include "set/mana.cpp" #include "set/mana_full.cpp" +#include "set/motd.cpp" #include "set/name.cpp" #include "set/ooc_mute.cpp" #include "set/password.cpp" @@ -98,6 +99,7 @@ void command_set(Client *c, const Seperator *sep) Cmd{.cmd = "loginserver_info", .u = "loginserver_info [Email] [Password]", .fn = SetLoginserverInfo, .a = {"#setlsinfo"}}, Cmd{.cmd = "mana", .u = "mana [Amount]", .fn = SetMana, .a = {"#setmana"}}, Cmd{.cmd = "mana_full", .u = "mana_full", .fn = SetManaFull, .a = {"#mana"}}, + Cmd{.cmd = "motd", .u = "motd", .fn = SetMOTD, .a = {"#motd"}}, Cmd{.cmd = "name", .u = "name", .fn = SetName, .a = {"#name"}}, Cmd{.cmd = "ooc_mute", .u = "ooc_mute", .fn = SetOOCMute, .a = {"#oocmute"}}, Cmd{.cmd = "password", .u = "password [Account Name] [Password] (account table password)", .fn = SetPassword, .a = {"#setpass"}}, diff --git a/zone/gm_commands/set/motd.cpp b/zone/gm_commands/set/motd.cpp index f22cad89b..51ec7ca98 100755 --- a/zone/gm_commands/set/motd.cpp +++ b/zone/gm_commands/set/motd.cpp @@ -3,7 +3,7 @@ extern WorldServer worldserver; -void command_motd(Client *c, const Seperator *sep) +void SetMOTD(Client *c, const Seperator *sep) { const auto arguments = sep->argnum; if (arguments < 2) {