rathena/src/config/secure.hpp
Aleos 4befcf747f
Corrected SECURE_NPCTIMEOUT behavior (#3394)
* Fixes #3381 and fixes #3391.
* Properly end NPC sessions when a player times out.
Thanks to @mazvi, @anacondaqq, and @gustavobrigo!
2018-08-11 16:13:24 -04:00

51 lines
1.3 KiB
C++

// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef CONFIG_SECURE_HPP
#define CONFIG_SECURE_HPP
/**
* rAthena configuration file (http://rathena.org)
* For detailed guidance on these check http://rathena.org/wiki/SRC/config/
**/
/**
* @INFO: This file holds optional security settings
**/
/**
* Optional NPC Dialog Timer
* When enabled all npcs dialog will 'timeout' if user is on idle for longer than the amount of seconds allowed
* - On 'timeout' the npc dialog window changes its next/menu to a 'close' button
* Comment to disable the timer.
**/
#define SECURE_NPCTIMEOUT
/**
* Number of seconds after an 'input' field is displayed before invoking an idle timeout.
* Default: 180
**/
#define NPC_SECURE_TIMEOUT_INPUT 180
/**
* Number of seconds after a 'menu' is displayed before invoking an idle timeout.
* Default: 60
**/
#define NPC_SECURE_TIMEOUT_MENU 60
/**
* Number of seconds after a 'next' button is displayed before invoking an idle timeout.
* Default: 60
**/
#define NPC_SECURE_TIMEOUT_NEXT 60
/**
* (Secure) Optional NPC Dialog Timer
* @requirement : SECURE_NPCTIMEOUT must be enabled
* Minimum Interval Between timeout checks in seconds
* Default: 1s
**/
#define SECURE_NPCTIMEOUT_INTERVAL 1
#endif /* CONFIG_SECURE_HPP */