aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunter M <hunterm.haxxr@gmail.com>2012-04-26 23:45:32 -0400
committerHunter M <hunterm.haxxr@gmail.com>2012-04-26 23:45:32 -0400
commit21e43e6538421b2dec9b22217af6d63dd4726c15 (patch)
treef92ecc474590f989589a0e41e1a0a542fcaaf5d1
parent352b2ccf1bbdceaa4a2fae865b91579b78ad878c (diff)
downloadrccmd-21e43e6538421b2dec9b22217af6d63dd4726c15.tar.gz
rccmd-21e43e6538421b2dec9b22217af6d63dd4726c15.tar.xz
rccmd-21e43e6538421b2dec9b22217af6d63dd4726c15.zip
:c
-rw-r--r--chat.msa2
-rw-r--r--main.ms6
2 files changed, 4 insertions, 4 deletions
diff --git a/chat.msa b/chat.msa
index f6211d9..74e85d2 100644
--- a/chat.msa
+++ b/chat.msa
@@ -78,5 +78,5 @@
assign(@player, $player)
include('lib.library/config.msa')
_checkforperm('seen')
- msg(get_value(@player.'.lastseen.usformat'))
+ msg(get_value(to_lower(@player).'.lastseen.usformat'))
<<<
diff --git a/main.ms b/main.ms
index d9fa963..135f21d 100644
--- a/main.ms
+++ b/main.ms
@@ -6,6 +6,9 @@ if(equals(@rccmd_activated_msg_on_startup, 'true'),
bind(player_join, null, null, @event,
assign(@player, @event[player])
+ _time()
+ store_value(to_lower(@event[player]).'lastseen.usformat', concat(@month, '/', @day, '/', @year, ' ', @hour, ':', @minute, ':', @second))
+ store_value(to_lower(@event[player]).'lastseen.euformat', concat(@day, '/', @month, '/', @year, ' ', @hour, ':', @minute, ':', @second))
assign(@x, array_get(ploc(@event[player]), 0))
assign(@y, array_get(ploc(@event[player]), 1))
assign(@z, array_get(ploc(@event[player]), 2))
@@ -16,9 +19,6 @@ bind(player_join, null, null, @event,
assign(@xplevel, plevel(@event[player]))
assign(@mode, pmode(@event[player]))
include('lib.library/config.msa')
- _time()
- store_value(@event[player].'lastseen.usformat', @month.'/'.@day.'/'.@year.' '.@hour.':'.@minute.':'.@second)
- store_value(@event[player].'lastseen.euformat', @day.'/'.@month.'/'.@year.' '.@hour.':'.@minute.':'.@second)
if(equals(@motd_on_join, 'true'),
tmsg(@event[player], concat(@motd)),
true