Retrieve Reply information from ExecBodyParams #52

Merged
modulatingforce merged 11 commits from retrieve-reply-details into main 2024-04-03 19:51:04 -04:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit fde96ac895 - Show all commits

View file

@ -73,7 +73,8 @@ impl ExecBodyParams {
// filter out all tags that do not have content.
let tag_contents: Vec<String> = tags.iter().filter_map(|tag| {
if let Some(&Some(ref t)) = map.get(*tag) {
// if let Some(&Some(ref t)) = map.get(*tag) {
if let Some(Some(t)) = map.get(*tag) {
Some(t.clone())
} else {
None
@ -82,7 +83,7 @@ impl ExecBodyParams {
// if no tags got filtered out return the struct.
// else return `None`.
return if tag_contents.len() == 5 {
if tag_contents.len() == 5 {
Some(ReplyParent {
sender: TwitchUserBasics {
id: tag_contents[0].clone(),

View file

@ -4,7 +4,7 @@ use std::sync::Arc;
use tokio::sync::Mutex;
use twitch_irc::login::StaticLoginCredentials;
use twitch_irc::message::{PrivmsgMessage, ReplyToMessage};
use twitch_irc::message::ReplyToMessage;
use twitch_irc::transport::tcp::{TCPTransport, TLS};
use twitch_irc::TwitchIRCClient;

View file

@ -147,7 +147,6 @@ async fn rp(params : ExecBodyParams)
params.clone()
).await;
}
else
{
println!("no reply")