diff options
| author | raven <citrons@mondecitronne.com> | 2026-02-10 17:20:19 -0600 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-02-10 17:20:19 -0600 |
| commit | 159773c277a4067f42037d1cbac31659de776382 (patch) | |
| tree | 5bd4b3cf5692246a43f44e040fdcdb4c8d93c384 /client | |
| parent | afa2c09d19ff85d7fb0092470c21b2ca551340d0 (diff) | |
only show welcome message once
Diffstat (limited to 'client')
| -rw-r--r-- | client/application.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/application.go b/client/application.go index 0debedd..3b627b1 100644 --- a/client/application.go +++ b/client/application.go @@ -25,6 +25,7 @@ type application struct { cmdWindow cmdWindow prompts []window.Prompt activePaste <-chan string + welcomed bool } func newApplication(serverAddress string, insecure bool) *application { @@ -273,7 +274,10 @@ func (a *application) onAuth(uid string) { } } }) - a.cmdWindow.info("welcome! type /help for help. try: /join talk") + if !a.welcomed { + a.cmdWindow.info("welcome! type /help for help. try: /join talk") + a.welcomed = true + } } func (a *application) sendUpdate(o proto.Object, cb func(proto.Command)) { |
