This commit is contained in:
parent
8adab21761
commit
fde96ac895
3 changed files with 4 additions and 4 deletions
|
@ -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(),
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -147,7 +147,6 @@ async fn rp(params : ExecBodyParams)
|
|||
params.clone()
|
||||
).await;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
println!("no reply")
|
||||
|
|
Loading…
Reference in a new issue