From 032b5b4783b6d94b73d6e1223f80ef3680bde3fb Mon Sep 17 00:00:00 2001 From: Erin Nova Date: Thu, 22 Jul 2021 13:39:24 -0400 Subject: [PATCH] Fix error in chat.rs --- Cargo.lock | 2 +- src/chat.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5fd9f6c..0845d70 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -807,7 +807,7 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" [[package]] name = "pogchat" -version = "0.4.0" +version = "0.5.0" dependencies = [ "bincode", "chrono", diff --git a/src/chat.rs b/src/chat.rs index 1163453..79e1d71 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -67,7 +67,7 @@ fn check_token(token: Cookie, message: Json>) -> JsonValue { for i in &users { // loop through elements if i.name == message.name.to_lowercase() { // if it finds the user in the file - if token == "NULL" { + if token.value() == "NULL" { warn!("NULL token!"); return json!({ "status": "fail",