diff options
author | shennetsind <ind@henn.et> | 2013-10-24 06:45:48 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-24 07:03:30 -0200 |
commit | e08c05a0f73d6e6ea4fe64a9b91291bc0a002251 (patch) | |
tree | efe8ae89989a63c008db2cf244c9ea1eb93b3711 /src/map/atcommand.c | |
parent | 8b07c677e351056b0d23fbc3726f80829ae4d253 (diff) | |
download | hercules-e08c05a0f73d6e6ea4fe64a9b91291bc0a002251.tar.gz hercules-e08c05a0f73d6e6ea4fe64a9b91291bc0a002251.tar.bz2 hercules-e08c05a0f73d6e6ea4fe64a9b91291bc0a002251.tar.xz hercules-e08c05a0f73d6e6ea4fe64a9b91291bc0a002251.zip |
Added idletime options
There have been requests for the extension of the feature, I was reluctant given more options would cause features relying on the feature to be easier to counter (less accurate), with the modification of the feature to employ options the feature is now configurable at the server owners discretion.
Special Thanks to Haruna
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 19128083d..27fbb7218 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9664,6 +9664,9 @@ bool is_atcommand(const int fd, struct map_session_data* sd, const char* message sprintf(atcmd_msg, "%s", message); } + if( battle_config.idletime_criteria & BCIDLE_ATCOMMAND ) + sd->idletime = last_tick; + //Clearing these to be used once more. memset(command, '\0', sizeof(command)); memset(params, '\0', sizeof(params)); |