summaryrefslogtreecommitdiff
path: root/npc/commands/motd.txt
diff options
context:
space:
mode:
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;
}