Reset timeout count if a PRIVMSG is sent
This commit is contained in:
parent
70f9b42d1b
commit
36c8205a12
|
@ -83,6 +83,15 @@ async fn main() -> anyhow::Result<()> {
|
|||
format!("{:#?}", channel_users).replace("\n", "\r\n"),
|
||||
)?;
|
||||
}
|
||||
let users = unwrap_or_continue!(channel_users.get_mut(channel));
|
||||
let user = unwrap_or_continue!(users.get_mut(nick));
|
||||
|
||||
*user = match user {
|
||||
Status::TimeoutCount(count) if *count > conf.timeout_limit.unwrap_or(1) => {
|
||||
Status::TimeoutCount(0)
|
||||
}
|
||||
_ => *user,
|
||||
};
|
||||
}
|
||||
Command::PART(ref channel, Some(ref message)) => {
|
||||
if message == &conf.quit_message {
|
||||
|
|
Loading…
Reference in a new issue