diff options
| author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-16 16:34:50 +0200 |
|---|---|---|
| committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-16 16:34:50 +0200 |
| commit | 1910dab6e8c17cc85289bcc70cabb71b1bad27a2 (patch) | |
| tree | d2e24f05a427098b370c8eff9dea96392befb8c1 | |
| parent | ui: Reverse color of the nickname on highlight (diff) | |
ui: Show /me from self when echo-message is off
Diffstat (limited to '')
| -rw-r--r-- | app.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -323,9 +323,12 @@ func (app *App) handleInput(buffer, content string) { return } - line := fmt.Sprintf("\x01ACTION %s\x01", args) - app.s.PrivMsg(buffer, line) - // TODO echo message + args := fmt.Sprintf("\x01ACTION %s\x01", args) + app.s.PrivMsg(buffer, args) + if !app.s.HasCapability("echo-message") { + line := ui.LineFromIRCMessage(time.Now(), app.s.Nick(), args, false, false) + app.win.AddLine(buffer, line) + } case "MSG": split := strings.SplitN(args, " ", 2) if len(split) < 2 { |
