From 518844f4b32fd8d125b8a1b10fcb51a256ad85cd Mon Sep 17 00:00:00 2001 From: SyS Date: Sun, 12 Jul 2020 08:40:39 +0530 Subject: [PATCH] release v0.3.2 --- Cargo.lock | 2 +- Cargo.toml | 2 +- include/tgconnector.inc | 2 +- src/lib.rs | 3 ++- src/plugin.rs | 4 ++-- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 50cf4c5..e43b936 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -560,7 +560,7 @@ dependencies = [ [[package]] name = "tgconnector" -version = "0.3.1" +version = "0.3.2" dependencies = [ "encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", "fern 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index a11d572..550ffd7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tgconnector" -version = "0.3.1" +version = "0.3.2" authors = ["Sreyas-Sreelal"] edition = "2018" diff --git a/include/tgconnector.inc b/include/tgconnector.inc index 344b605..c2002bc 100644 --- a/include/tgconnector.inc +++ b/include/tgconnector.inc @@ -7,7 +7,7 @@ #endif #define _tgconnector_included -#define TGCONNECTOR_VERSION 31 +#define TGCONNECTOR_VERSION 32 #define INVALID_MESSAGE_ID (TGMessage:-1) #define INVALID_BOT_ID (TGBot:-1) diff --git a/src/lib.rs b/src/lib.rs index b2db9db..26cb0d7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,6 +37,7 @@ initialize_plugin!( TgConnector::get_chat_description ], { + samp::plugin::enable_process_tick(); let samp_logger = samp::plugin::logger() .level(log::LevelFilter::Info); @@ -48,7 +49,7 @@ initialize_plugin!( .apply(); TgConnector { - plugin_version: 31, + plugin_version: 32, amx_list: Vec::new(), bots: HashMap::new(), bot_context_id: 0, diff --git a/src/plugin.rs b/src/plugin.rs index dd94ff8..75be8e9 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -25,7 +25,7 @@ impl SampPlugin for TgConnector { " ############################################################### # TGConnector # - # v0.3.1 # + # v0.3.2 # # Found any bugs? Report it here: # # https://github.com/Sreyas-Sreelal/tgconnector/issues # # # @@ -35,7 +35,7 @@ impl SampPlugin for TgConnector { } fn on_unload(self: &mut TgConnector) { - info!("**TGConnector v0.3.1!"); + info!("**TGConnector v0.3.2!"); } fn on_amx_load(&mut self, amx: &Amx) {