ssh-chat
3 years agogo mod update v1.10.1
Andrey Petrov [Wed, 11 Nov 2020 20:44:24 +0000 (15:44 -0500)]
go mod update

3 years agoMerge pull request #366 from Niwla23/dockerfiles
Andrey Petrov [Thu, 29 Oct 2020 13:48:30 +0000 (09:48 -0400)]
Merge pull request #366 from Niwla23/dockerfiles

Add Dockerfile and docker-compose.yml

3 years agoAdd Dockerfile and docker-compose.yml
Alwin Lohrie [Wed, 28 Oct 2020 15:19:16 +0000 (16:19 +0100)]
Add Dockerfile and docker-compose.yml

3 years agomain: /rename should not complain when symbol is set and name is unchanged v1.10
Andrey Petrov [Mon, 3 Aug 2020 18:13:51 +0000 (14:13 -0400)]
main: /rename should not complain when symbol is set and name is unchanged

3 years agochat/message: Use user.ID() names for mono bot theme
Andrey Petrov [Mon, 3 Aug 2020 17:57:11 +0000 (13:57 -0400)]
chat/message: Use user.ID() names for mono bot theme

3 years ago/motd: Add reload functionality when msg is @
Andrey Petrov [Mon, 3 Aug 2020 17:26:12 +0000 (13:26 -0400)]
/motd: Add reload functionality when msg is @

3 years agomotd.txt: Sync up the latest motd
Andrey Petrov [Mon, 3 Aug 2020 16:34:43 +0000 (12:34 -0400)]
motd.txt: Sync up the latest motd

3 years agoUpdate CODE_OF_CONDUCT.md
Andrey Petrov [Mon, 3 Aug 2020 16:32:03 +0000 (12:32 -0400)]
Update CODE_OF_CONDUCT.md

3 years agoREADME: Add CoC link
Andrey Petrov [Mon, 3 Aug 2020 15:51:56 +0000 (11:51 -0400)]
README: Add CoC link

3 years agoUpdate CODE_OF_CONDUCT.md
Andrey Petrov [Mon, 3 Aug 2020 15:48:40 +0000 (11:48 -0400)]
Update CODE_OF_CONDUCT.md

3 years agoCreate CODE_OF_CONDUCT.md
Andrey Petrov [Mon, 3 Aug 2020 15:45:22 +0000 (11:45 -0400)]
Create CODE_OF_CONDUCT.md

3 years agoMerge pull request #352 from shazow/sponsor-prefix
Andrey Petrov [Mon, 3 Aug 2020 15:43:17 +0000 (11:43 -0400)]
Merge pull request #352 from shazow/sponsor-prefix

chat, main: Add /rename op command, optional symbol prefix

3 years agoMerge branch 'master' into sponsor-prefix
Andrey Petrov [Mon, 3 Aug 2020 15:41:19 +0000 (11:41 -0400)]
Merge branch 'master' into sponsor-prefix

3 years agoMerge pull request #356 from shazow/focus-cmd
Andrey Petrov [Mon, 3 Aug 2020 15:40:28 +0000 (11:40 -0400)]
Merge pull request #356 from shazow/focus-cmd

/focus: Add command to only show messages from focused users

3 years agochat: Add /focus command origin/focus-cmd
Andrey Petrov [Mon, 3 Aug 2020 15:32:55 +0000 (11:32 -0400)]
chat: Add /focus command

Only show messages from focused users

3 years agoset: Add Interface, ZeroValue helper
Andrey Petrov [Mon, 3 Aug 2020 15:32:16 +0000 (11:32 -0400)]
set: Add Interface, ZeroValue helper

3 years ago/whois: Add extra room info for admins
Andrey Petrov [Thu, 30 Jul 2020 17:10:41 +0000 (13:10 -0400)]
/whois: Add extra room info for admins

Will need to add room context to non-admins eventually too

3 years agochat/message: Set LastMsg during render of self public messages, fix sorting
Andrey Petrov [Thu, 30 Jul 2020 16:52:32 +0000 (12:52 -0400)]
chat/message: Set LastMsg during render of self public messages, fix sorting

Also fixed chat tests

3 years agochat: go fmt
Andrey Petrov [Thu, 30 Jul 2020 16:05:38 +0000 (12:05 -0400)]
chat: go fmt

3 years agoMerge pull request #355 from pavelz/my_name_last_autocomplete
Andrey Petrov [Thu, 30 Jul 2020 16:03:35 +0000 (12:03 -0400)]
Merge pull request #355 from pavelz/my_name_last_autocomplete

main: Autocomplete deprioritize own name

3 years agochat/message: Fix RecentActiveUsers sort order
Andrey Petrov [Thu, 30 Jul 2020 16:02:07 +0000 (12:02 -0400)]
chat/message: Fix RecentActiveUsers sort order

3 years agoupdated tests, moved code closer to the caller.
Pavel Zaitsev [Mon, 27 Jul 2020 23:11:03 +0000 (19:11 -0400)]
updated tests, moved code closer to the caller.

* addded condition for zero time on lastMsg.

* removed extra paramter in NamePrefix
* moved code from NamePrefix to completeName
* removed extra parameter in tests calling to NamePrefix

3 years agoupdate, to fix tests.
Pavel Zaitsev [Fri, 24 Jul 2020 14:44:23 +0000 (10:44 -0400)]
update, to fix tests.

3 years agoin autocomplete list moves your name to last item in the list of sorted current users
Pavel Zaitsev [Fri, 24 Jul 2020 14:16:29 +0000 (10:16 -0400)]
in autocomplete list moves your name to last item in the list of sorted current users

3 years agoMerge pull request #353 from pavelz/show_admin_status
Andrey Petrov [Mon, 20 Jul 2020 16:27:34 +0000 (12:27 -0400)]
Merge pull request #353 from pavelz/show_admin_status

/whois: Show op status for ops

3 years agoupdated in line with comments in PR
Pavel Zaitsev [Wed, 15 Jul 2020 04:32:53 +0000 (00:32 -0400)]
updated in line with comments in PR
* reduce change footprint to parameter list
* moved Op flag display to last line as to not break bots

3 years agoMerge pull request #354 from lucash-diskkun/master2
Andrey Petrov [Thu, 16 Jul 2020 17:29:38 +0000 (13:29 -0400)]
Merge pull request #354 from lucash-diskkun/master2

chat: Sort /names output

3 years agosorting nicks on /names and /list
Lucas Hourahine [Thu, 16 Jul 2020 17:25:14 +0000 (13:25 -0400)]
sorting nicks on /names and /list

3 years agonow if both are ops it will be reflected in output of whois command
Pavel Zaitsev [Wed, 8 Jul 2020 03:24:25 +0000 (23:24 -0400)]
now if both are ops it will be reflected in output of whois command

3 years agomain: Add symbol support
Andrey Petrov [Wed, 24 Jun 2020 17:53:24 +0000 (13:53 -0400)]
main: Add symbol support

3 years agochat: Use user.ID() instead of user.Name()
Andrey Petrov [Wed, 24 Jun 2020 17:53:14 +0000 (13:53 -0400)]
chat: Use user.ID() instead of user.Name()

3 years agochat, main: Add /rename op command
Andrey Petrov [Wed, 24 Jun 2020 16:36:02 +0000 (12:36 -0400)]
chat, main: Add /rename op command

4 years agoMerge pull request #350 from shazow/shazow-patch-1
Andrey Petrov [Fri, 1 May 2020 16:03:20 +0000 (12:03 -0400)]
Merge pull request #350 from shazow/shazow-patch-1

.github: Improve CI test step

4 years ago.github: Improve CI test step origin/shazow-patch-1
Andrey Petrov [Fri, 1 May 2020 15:50:16 +0000 (11:50 -0400)]
.github: Improve CI test step

4 years ago.github: Add github action for CI
Andrey Petrov [Fri, 1 May 2020 15:49:42 +0000 (11:49 -0400)]
.github: Add github action for CI

4 years agochat: Fix ignore test, reduce flakeyness
Andrey Petrov [Fri, 1 May 2020 15:41:35 +0000 (11:41 -0400)]
chat: Fix ignore test, reduce flakeyness

4 years agochat: Clean up ignore comparisons
Andrey Petrov [Fri, 1 May 2020 15:41:19 +0000 (11:41 -0400)]
chat: Clean up ignore comparisons

4 years agoIgnored people still show up when they send private `/msg`
Abdelkader Bouadjadja [Thu, 30 Apr 2020 01:09:21 +0000 (05:09 +0400)]
Ignored people still show up when they send private `/msg`

4 years agoFix test comment
Abdelkader Bouadjadja [Wed, 29 Apr 2020 20:34:40 +0000 (00:34 +0400)]
Fix test comment

4 years agoIgnored people still show up when they `/me` emote
Abdelkader Bouadjadja [Wed, 29 Apr 2020 20:28:06 +0000 (00:28 +0400)]
Ignored people still show up when they `/me` emote

4 years agoMerge pull request #347 from shazow/fix-key-parse
Andrey Petrov [Mon, 20 Apr 2020 19:36:38 +0000 (15:36 -0400)]
Merge pull request #347 from shazow/fix-key-parse

main: Use new x/crypto/ssh key parsing helpers

4 years agomain: Use x/crypto/ssh helpers for parsing passworded keys origin/fix-key-parse
Andrey Petrov [Mon, 20 Apr 2020 19:34:42 +0000 (15:34 -0400)]
main: Use x/crypto/ssh helpers for parsing passworded keys

4 years agogo mod: Update, mostly for x/crypto
Andrey Petrov [Mon, 20 Apr 2020 19:34:28 +0000 (15:34 -0400)]
go mod: Update, mostly for x/crypto

4 years agoMerge pull request #343 from shazow/term-bot-nopty v1.9
Andrey Petrov [Fri, 17 Apr 2020 16:28:27 +0000 (12:28 -0400)]
Merge pull request #343 from shazow/term-bot-nopty

sshd: Terminal.Term() fallback to Env TERM

4 years agosshd: Terminal.Term() fallback to Env TERM origin/term-bot-nopty
Andrey Petrov [Fri, 17 Apr 2020 16:22:31 +0000 (12:22 -0400)]
sshd: Terminal.Term() fallback to Env TERM

4 years agomain: Sort flags, unhide --unsafe-passphrase for now
Andrey Petrov [Thu, 16 Apr 2020 16:56:15 +0000 (12:56 -0400)]
main: Sort flags, unhide --unsafe-passphrase for now

4 years agoMerge pull request #342 from shazow/unsafe-password
Andrey Petrov [Thu, 16 Apr 2020 16:46:32 +0000 (12:46 -0400)]
Merge pull request #342 from shazow/unsafe-password

main: Add --unsafe-passphrase

4 years agomain: Add extraHelp
Andrey Petrov [Thu, 16 Apr 2020 16:44:20 +0000 (12:44 -0400)]
main: Add extraHelp

4 years agomain: Clarify passphrase shenanigans
Andrey Petrov [Thu, 16 Apr 2020 16:32:12 +0000 (12:32 -0400)]
main: Clarify passphrase shenanigans

4 years agomain: Force passphrase auth even with pubkey auth
Andrey Petrov [Thu, 16 Apr 2020 15:30:13 +0000 (11:30 -0400)]
main: Force passphrase auth even with pubkey auth

4 years agoMerge pull request #341 from shazow/term-bot
Andrey Petrov [Thu, 16 Apr 2020 15:07:06 +0000 (11:07 -0400)]
Merge pull request #341 from shazow/term-bot

TERM=bot mode

4 years agomain: Add --unsafe-passphrase
Andrey Petrov [Wed, 15 Apr 2020 18:19:28 +0000 (14:19 -0400)]
main: Add --unsafe-passphrase

4 years agoCreate FUNDING.yml
Andrey Petrov [Tue, 14 Apr 2020 15:13:33 +0000 (11:13 -0400)]
Create FUNDING.yml

4 years agomain: Skip prompt, highlight, autocomplete in bot mode
Andrey Petrov [Mon, 13 Apr 2020 15:33:12 +0000 (11:33 -0400)]
main: Skip prompt, highlight, autocomplete in bot mode

4 years agosshd: Remove temporary "Connecting..." prompt
Andrey Petrov [Mon, 13 Apr 2020 15:32:38 +0000 (11:32 -0400)]
sshd: Remove temporary "Connecting..." prompt

4 years agomain: Add TERM=bot handling for Host
Andrey Petrov [Mon, 13 Apr 2020 15:23:11 +0000 (11:23 -0400)]
main: Add TERM=bot handling for Host

4 years agochat/message: Add UserConfig.Echo
Andrey Petrov [Mon, 13 Apr 2020 15:22:53 +0000 (11:22 -0400)]
chat/message: Add UserConfig.Echo

4 years agochat: Disable broken TestIgnore test
Andrey Petrov [Mon, 13 Apr 2020 14:55:41 +0000 (10:55 -0400)]
chat: Disable broken TestIgnore test

4 years agomain, sshd: Add comments and TODOs
Andrey Petrov [Sun, 12 Apr 2020 17:04:53 +0000 (13:04 -0400)]
main, sshd: Add comments and TODOs

4 years agoGet the term value
Chris Miller [Fri, 10 Jan 2020 01:18:32 +0000 (01:18 +0000)]
Get the term value

4 years agoApply env vars SSHCHAT_TIMESTAMP and SSHCHAT_THEME
Chris Miller [Fri, 10 Jan 2020 00:52:12 +0000 (00:52 +0000)]
Apply env vars SSHCHAT_TIMESTAMP and SSHCHAT_THEME

4 years agoWait for shell
Chris Miller [Fri, 10 Jan 2020 00:37:51 +0000 (00:37 +0000)]
Wait for shell

4 years agoMerge pull request #309 from shazow/req-env
Andrey Petrov [Sun, 12 Apr 2020 16:36:07 +0000 (12:36 -0400)]
Merge pull request #309 from shazow/req-env

sshd: Add Terminal.Env()

4 years agosshd/terminal: gofmt
Andrey Petrov [Thu, 2 Apr 2020 00:40:56 +0000 (20:40 -0400)]
sshd/terminal: gofmt

4 years agoMerge pull request #339 from yumaokao/cjk-fullwidth
Andrey Petrov [Thu, 2 Apr 2020 00:37:43 +0000 (20:37 -0400)]
Merge pull request #339 from yumaokao/cjk-fullwidth

sshd/terminal: Add fullwidth check for CJK in visualLength

4 years agosshd/terminal: Add fullwidth check for CJK in visualLength
yumaokao [Sat, 21 Mar 2020 11:57:39 +0000 (19:57 +0800)]
sshd/terminal: Add fullwidth check for CJK in visualLength

4 years agoMerge pull request #338 from 42wim/f-imports
Andrey Petrov [Sun, 8 Mar 2020 22:46:26 +0000 (18:46 -0400)]
Merge pull request #338 from 42wim/f-imports

Remove import comment. Fixes #337

4 years agoRemove import comment. Fixes #337
Wim [Sun, 8 Mar 2020 22:32:02 +0000 (23:32 +0100)]
Remove import comment. Fixes #337

Fix issue with go1.13+
See https://github.com/golang/go/issues/37747

4 years agosshd: Fix env error check origin/req-env
Andrey Petrov [Fri, 10 Jan 2020 14:25:59 +0000 (09:25 -0500)]
sshd: Fix env error check

Co-Authored-By: Chris Miller <millerlogic@users.noreply.github.com>
4 years agoMakefile: Fix binary ldflags missing
Andrey Petrov [Tue, 7 Jan 2020 01:14:32 +0000 (20:14 -0500)]
Makefile: Fix binary ldflags missing

4 years agosshd: Apply read deadline to connection handler (#331)
Andrey Petrov [Tue, 7 Jan 2020 01:09:34 +0000 (20:09 -0500)]
sshd: Apply read deadline to connection handler (#331)

This should prevent connections from stalling out and eating up file descriptors without ever joining the chat.

4 years agosshd/terminal: Add more readline-compatible navigation
Akshay Shekher [Sun, 5 Jan 2020 15:51:10 +0000 (07:51 -0800)]
sshd/terminal: Add more readline-compatible navigation

- Alt-F: jump forward by a word
- Alt-B: jump backword by a word
- Ctrl-F: jump forward by a character
- Ctrl-B: jump backword by a character

4 years agosshd/terminal: Fix import comment
Juan Pablo Ossa Zapata [Mon, 4 Nov 2019 16:42:10 +0000 (11:42 -0500)]
sshd/terminal: Fix import comment

4 years agoMerge pull request #317 from tyrelsouza/master
Andrey Petrov [Thu, 11 Jul 2019 19:16:24 +0000 (15:16 -0400)]
Merge pull request #317 from tyrelsouza/master

Best domain Ever.

4 years agobetter domain
Tyrel Souza [Thu, 11 Jul 2019 18:44:21 +0000 (14:44 -0400)]
better domain

5 years agosshd/terminal: Undo emoji offset bugfix v1.8.2
Andrey Petrov [Sun, 21 Apr 2019 20:48:12 +0000 (16:48 -0400)]
sshd/terminal: Undo emoji offset bugfix

Introduced another bug: #316

5 years agosshd: Close connection on failed handshake
Andrey Petrov [Wed, 17 Apr 2019 20:57:30 +0000 (16:57 -0400)]
sshd: Close connection on failed handshake

Hopefully fixed #315

5 years agosshchat: term.Write on empty lines to fix prompt reset bug
Andrey Petrov [Fri, 29 Mar 2019 21:26:18 +0000 (17:26 -0400)]
sshchat: term.Write on empty lines to fix prompt reset bug

5 years agosshd/terminal: Use clearline and clearscreen codes for enterClear
Andrey Petrov [Fri, 29 Mar 2019 21:25:51 +0000 (17:25 -0400)]
sshd/terminal: Use clearline and clearscreen codes for enterClear

Fixes emoji offset bug

5 years agosshd/terminal: Import test from upstream patch
Andrey Petrov [Tue, 26 Mar 2019 20:02:45 +0000 (16:02 -0400)]
sshd/terminal: Import test from upstream patch

5 years agoMerge pull request #311 from tyrelsouza/patch-1
Andrey Petrov [Fri, 29 Mar 2019 18:15:39 +0000 (14:15 -0400)]
Merge pull request #311 from tyrelsouza/patch-1

Update README to match current --help

5 years agoUpdate README to match current --help
Tyrel Souza [Fri, 29 Mar 2019 18:14:57 +0000 (14:14 -0400)]
Update README to match current --help

5 years agoREADME: Are you sure you don't just want the binary release?
Andrey Petrov [Mon, 25 Mar 2019 14:18:27 +0000 (10:18 -0400)]
README: Are you sure you don't just want the binary release?

5 years agoREADME: Badge color
Andrey Petrov [Mon, 25 Mar 2019 14:16:12 +0000 (10:16 -0400)]
README: Badge color

5 years agoREADME: Badges
Andrey Petrov [Mon, 25 Mar 2019 14:13:54 +0000 (10:13 -0400)]
README: Badges

Add downloads badge

5 years agochat/message: Handle nil theme (mono) v1.8.1
Andrey Petrov [Sun, 24 Mar 2019 22:59:16 +0000 (18:59 -0400)]
chat/message: Handle nil theme (mono)

Fixes #310

5 years agosshd: Add Terminal.Env()
Andrey Petrov [Sun, 24 Mar 2019 17:41:33 +0000 (13:41 -0400)]
sshd: Add Terminal.Env()

5 years agochat/message: Fix tests v1.8
Andrey Petrov [Fri, 22 Mar 2019 20:04:59 +0000 (16:04 -0400)]
chat/message: Fix tests

5 years agosshd/terminal: Clear screen below on enterClear
Andrey Petrov [Fri, 22 Mar 2019 19:31:17 +0000 (15:31 -0400)]
sshd/terminal: Clear screen below on enterClear

5 years ago/timestamp, /theme: Fix rendering, add tests
Andrey Petrov [Fri, 22 Mar 2019 19:27:00 +0000 (15:27 -0400)]
/timestamp, /theme: Fix rendering, add tests

5 years agoMerge pull request #308 from shazow/timestamp-both
Andrey Petrov [Thu, 21 Mar 2019 22:21:29 +0000 (18:21 -0400)]
Merge pull request #308 from shazow/timestamp-both

/timestamp: time and datetime modes

5 years ago/timestamp: time and datetime modes origin/timestamp-both
Andrey Petrov [Thu, 21 Mar 2019 21:12:32 +0000 (17:12 -0400)]
/timestamp: time and datetime modes

5 years agoMerge pull request #306 from shazow/fork-terminal
Andrey Petrov [Thu, 21 Mar 2019 19:40:28 +0000 (15:40 -0400)]
Merge pull request #306 from shazow/fork-terminal

Fork golang.org/x/crypto/ssh/terminal, remove echo override hack

5 years agogo mod tidy origin/fork-terminal
Andrey Petrov [Tue, 19 Mar 2019 16:11:56 +0000 (12:11 -0400)]
go mod tidy

5 years agosshchat, host: Switch to new terminal clearline api
Andrey Petrov [Thu, 21 Mar 2019 19:28:59 +0000 (15:28 -0400)]
sshchat, host: Switch to new terminal clearline api

5 years agosshd/terminal: Switch terminal.ClearLine to termina.SetEnterClear(...)
Andrey Petrov [Thu, 21 Mar 2019 19:23:55 +0000 (15:23 -0400)]
sshd/terminal: Switch terminal.ClearLine to termina.SetEnterClear(...)

5 years agosshchat: Fix tests to use new rendering format.
Andrey Petrov [Thu, 21 Mar 2019 17:39:33 +0000 (13:39 -0400)]
sshchat: Fix tests to use new rendering format.

5 years agosshd/terminal: Use N-moves in Terminal.move when possible
Andrey Petrov [Tue, 19 Mar 2019 19:05:13 +0000 (15:05 -0400)]
sshd/terminal: Use N-moves in Terminal.move when possible

5 years agosshd/terminal: Fix mid-line enter and reflow bugs
Andrey Petrov [Tue, 19 Mar 2019 16:09:54 +0000 (12:09 -0400)]
sshd/terminal: Fix mid-line enter and reflow bugs

5 years agolegal: Put sshd/terminal notice in root
Andrey Petrov [Mon, 18 Mar 2019 19:36:21 +0000 (15:36 -0400)]
legal: Put sshd/terminal notice in root