diff options
author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-09-01 17:04:12 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-09-01 17:04:12 +0200 |
commit | 500a3f272a5de4bc777ef19f700bcdb6fd74c058 (patch) | |
tree | de6caca752b64c51c6e14268854dbb4d939cf4ff | |
parent | Move ui.Home and ui.homeMessages up (diff) |
irc: Reset typing ratelimiter after sent message
-rw-r--r-- | irc/states.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/irc/states.go b/irc/states.go index 8e08275..3ba5572 100644 --- a/irc/states.go +++ b/irc/states.go @@ -335,6 +335,8 @@ func (s *Session) PrivMsg(target, content string) { func (s *Session) privMsg(act actionPrivMsg) (err error) { err = s.send("PRIVMSG %s :%s\r\n", act.Target, act.Content) + target := s.Casemap(act.Target) + delete(s.typingStamps, target) return } |