diff options
author | shennetsind <ind@henn.et> | 2013-03-17 01:33:28 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-03-17 01:33:28 -0300 |
commit | 7032044f54ac44bab604e700ea1f76066432a2f4 (patch) | |
tree | afd2bd2bc4b33c084e630dc333ccbfd3ea30e73a /src | |
parent | 3b89a135dcde9779bd0537cd136a7c34cfadbe3f (diff) | |
download | hercules-7032044f54ac44bab604e700ea1f76066432a2f4.tar.gz hercules-7032044f54ac44bab604e700ea1f76066432a2f4.tar.bz2 hercules-7032044f54ac44bab604e700ea1f76066432a2f4.tar.xz hercules-7032044f54ac44bab604e700ea1f76066432a2f4.zip |
Follow up 3b89a135dcde9779bd0537cd136a7c34cfadbe3f
Dropping the not-used setting from the previous implementation.
http://hercules.ws/board/topic/272-re-introducing-console-input/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r-- | src/char/char.c | 8 | ||||
-rw-r--r-- | src/login/login.c | 7 | ||||
-rw-r--r-- | src/login/login.h | 1 | ||||
-rw-r--r-- | src/map/map.c | 12 |
4 files changed, 1 insertions, 27 deletions
diff --git a/src/char/char.c b/src/char/char.c index 260f7a5cf..a059d08ea 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -148,8 +148,6 @@ unsigned int save_flag = 0; // Initial position (it's possible to set it in conf file) struct point start_point = { 0, 53, 111 }; -int console = 0; - //----------------------------------------------------- // Auth database //----------------------------------------------------- @@ -4721,8 +4719,6 @@ int char_config_read(const char* cfgName) char_del_delay = atoi(w2); } else if(strcmpi(w1,"db_path")==0) { safestrncpy(db_path, w2, sizeof(db_path)); - } else if (strcmpi(w1, "console") == 0) { - console = config_switch(w2); } else if (strcmpi(w1, "fame_list_alchemist") == 0) { fame_list_size_chemist = atoi(w2); if (fame_list_size_chemist > MAX_FAME_LIST) { @@ -4876,10 +4872,6 @@ int do_init(int argc, char **argv) add_timer_func_list(online_data_cleanup, "online_data_cleanup"); add_timer_interval(gettick() + 1000, online_data_cleanup, 0, 0, 600 * 1000); - if( console ) { - //##TODO invoke a CONSOLE_START plugin event - } - //Cleaning the tables for NULL entrys @ startup [Sirius] //Chardb clean if( SQL_ERROR == Sql_Query(sql_handle, "DELETE FROM `%s` WHERE `account_id` = '0'", char_db) ) diff --git a/src/login/login.c b/src/login/login.c index 51bc7f29c..712fa0e31 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1602,7 +1602,6 @@ void login_set_defaults() login_config.ip_sync_interval = 0; login_config.log_login = true; safestrncpy(login_config.date_format, "%Y-%m-%d %H:%M:%S", sizeof(login_config.date_format)); - login_config.console = false; login_config.new_account_flag = true; login_config.new_acc_length_limit = true; login_config.use_md5_passwds = false; @@ -1682,8 +1681,6 @@ int login_config_read(const char* cfgName) login_config.min_group_id_to_connect = atoi(w2); else if(!strcmpi(w1, "date_format")) safestrncpy(login_config.date_format, w2, sizeof(login_config.date_format)); - else if(!strcmpi(w1, "console")) - login_config.console = (bool)config_switch(w2); else if(!strcmpi(w1, "allowed_regs")) //account flood protection system allowed_regs = atoi(w2); else if(!strcmpi(w1, "time_allowed")) @@ -1910,10 +1907,6 @@ int do_init(int argc, char** argv) } } - if( login_config.console ) { - //##TODO invoke a CONSOLE_START plugin event - } - // server port open & binding if( (login_fd = make_listen_bind(login_config.login_ip,login_config.login_port)) == -1 ) { ShowFatalError("Failed to bind to port '"CL_WHITE"%d"CL_RESET"'\n",login_config.login_port); diff --git a/src/login/login.h b/src/login/login.h index 7ed556628..3cfea8bdc 100644 --- a/src/login/login.h +++ b/src/login/login.h @@ -68,7 +68,6 @@ struct Login_Config { unsigned int ip_sync_interval; // interval (in minutes) to execute a DNS/IP update (for dynamic IPs) bool log_login; // whether to log login server actions or not char date_format[32]; // date format used in messages - bool console; // console input system enabled? bool new_account_flag,new_acc_length_limit; // autoregistration via _M/_F ? / if yes minimum length is 4? int start_limited_time; // new account expiration time (-1: unlimited) bool use_md5_passwds; // work with password hashes instead of plaintext passwords? diff --git a/src/map/map.c b/src/map/map.c index dbe3937e8..bd0d97ece 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -157,7 +157,6 @@ char charhelp_txt[256] = "conf/charhelp.txt"; char wisp_server_name[NAME_LENGTH] = "Server"; // can be modified in char-server configuration file -int console = 0; int enable_spy = 0; //To enable/disable @spy commands, which consume too much cpu time when sending packets. [Skotlex] int enable_grf = 0; //To enable/disable reading maps from GRF files, bypassing mapcache [blackhole89] @@ -3328,11 +3327,7 @@ int map_config_read(char *cfgName) strcpy(charhelp_txt, w2); else if(strcmpi(w1,"db_path") == 0) safestrncpy(db_path,w2,255); - else if (strcmpi(w1, "console") == 0) { - console = config_switch(w2); - if (console) - ShowNotice("Console Commands are enabled.\n"); - } else if (strcmpi(w1, "enable_spy") == 0) + else if (strcmpi(w1, "enable_spy") == 0) enable_spy = config_switch(w2); else if (strcmpi(w1, "use_grf") == 0) enable_grf = config_switch(w2); @@ -3980,11 +3975,6 @@ int do_init(int argc, char *argv[]) npc_event_do_oninit(); // Init npcs (OnInit) - if( console ) - { - //##TODO invoke a CONSOLE_START plugin event - } - if (battle_config.pk_mode) ShowNotice("Server is running on '"CL_WHITE"PK Mode"CL_RESET"'.\n"); |