summaryrefslogtreecommitdiff
path: root/npc/commands/motd.txt
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-14 23:20:28 -0200
committerjesusalva <cpntb1@ymail.com>2018-02-14 23:20:28 -0200
commitee5cfe47beaa845059109cb61045beba88a39dae (patch)
tree388917d092bff08453af6ce11bc33e40395a9987 /npc/commands/motd.txt
parentfb1778dcd19a5ee945f5cdbd43d0bcab2adabd8e (diff)
downloadserverdata-ee5cfe47beaa845059109cb61045beba88a39dae.tar.gz
serverdata-ee5cfe47beaa845059109cb61045beba88a39dae.tar.bz2
serverdata-ee5cfe47beaa845059109cb61045beba88a39dae.tar.xz
serverdata-ee5cfe47beaa845059109cb61045beba88a39dae.zip
Change all custom commands. Mostly logging and obfuscation. Remove some functions.
Diffstat (limited to 'npc/commands/motd.txt')
-rw-r--r--npc/commands/motd.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/commands/motd.txt b/npc/commands/motd.txt
index 9a9c702e1..6a6ba6123 100644
--- a/npc/commands/motd.txt
+++ b/npc/commands/motd.txt
@@ -40,6 +40,7 @@ function script MOTDConfig {
.@size = getvariableofnpc(.size, "@motd");
$MOTD_Messages$[.@size] = .@s$;
set getvariableofnpc(.size, "@motd"), getarraysize($MOTD_Messages$);
+ logmes "MOTD modified: line added";
// FIXME: log to GM log
}
}
@@ -51,6 +52,7 @@ function script MOTDConfig {
deletearray $MOTD_Messages$[.@l], 1; // remove and shift
mes l("Line @@ has been removed.", .@l);
set getvariableofnpc(.size, "@motd"), getarraysize($MOTD_Messages$);
+ logmes "MOTD modified: line removed";
// FIXME: log to GM log
}
@@ -83,6 +85,7 @@ function script MOTDConfig {
if (.@s$ != "")
{
$MOTD_Messages$[.@l] = .@s$;
+ logmes "MOTD modified: line edited";
// FIXME: log to GM log
}
}
@@ -189,5 +192,5 @@ OnInit:
MOTD_debug_text;
.size = getarraysize($MOTD_Messages$);
.dsize = getarraysize($@Debug_Messages$);
- bindatcmd "motd", "@motd::OnCall", 0, 99, 0;
+ bindatcmd "motd", "@motd::OnCall", 99, 99, 1;
}