Method code for $motd.set_motd()

[Turn on line numbering]
arg what, value;

(> .perms(sender()) <);
if (!(what in .variables()))
    throw(~motd, toliteral(what) + " is not a valid motd variable, try one of: " + toliteral(.variables()));
if (!(type(value) in ['string, 'list]))
    throw(~motd, "Value must be sent as a string or a list of strings.");
set_var(what, value);

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon