diff options
author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-06-23 12:13:09 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-06-23 12:13:09 +0200 |
commit | 426652597584210e2123e107bbfc49bc6752a70f (patch) | |
tree | 761ce45761afb0b15ae17e04506113fbe5a9dc40 /cmd | |
parent | Use nick/realname from config (diff) |
Display typing indicators
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/irc/main.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/irc/main.go b/cmd/irc/main.go index 598c015..e18341d 100644 --- a/cmd/irc/main.go +++ b/cmd/irc/main.go @@ -71,6 +71,13 @@ func main() { case irc.ChannelMessageEvent: line := formatIRCMessage(ev.Nick, ev.Content) app.AddLine(ev.Channel, line, ev.Time, false) + app.TypingStop(ev.Channel, ev.Nick) + case irc.ChannelTypingEvent: + if ev.State == 1 || ev.State == 2 { + app.TypingStart(ev.Channel, ev.Nick) + } else { + app.TypingStop(ev.Channel, ev.Nick) + } case irc.HistoryEvent: var lines []ui.Line var lastT time.Time |