ssh-chat
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

5 years agosshchat: Replace terminal echo hack with our forked terminal
Andrey Petrov [Sun, 17 Mar 2019 21:36:38 +0000 (17:36 -0400)]
sshchat: Replace terminal echo hack with our forked terminal

5 years agosshd/terminal: Add Terminal.ClearLine option
Andrey Petrov [Sun, 17 Mar 2019 21:35:49 +0000 (17:35 -0400)]
sshd/terminal: Add Terminal.ClearLine option

5 years agosshd/terminal: Add original LICENSE
Andrey Petrov [Sun, 17 Mar 2019 21:35:27 +0000 (17:35 -0400)]
sshd/terminal: Add original LICENSE

5 years agosshd/terminal: Import fork of x/crypto/ssh
Andrey Petrov [Sun, 17 Mar 2019 21:12:31 +0000 (17:12 -0400)]
sshd/terminal: Import fork of x/crypto/ssh

5 years agochat: Fix runtime bug with uninitialized strings builder
Andrey Petrov [Mon, 18 Mar 2019 14:08:12 +0000 (10:08 -0400)]
chat: Fix runtime bug with uninitialized strings builder

5 years agosshchat: Fix empty messages borking rendering
Andrey Petrov [Sun, 17 Mar 2019 20:10:16 +0000 (16:10 -0400)]
sshchat: Fix empty messages borking rendering

5 years ago/timestamp: Remove timezone by default for now
Andrey Petrov [Sun, 17 Mar 2019 20:05:38 +0000 (16:05 -0400)]
/timestamp: Remove timezone by default for now

5 years ago/timestamp: Switch TZINFO with UTC offset
Andrey Petrov [Sun, 17 Mar 2019 20:00:48 +0000 (16:00 -0400)]
/timestamp: Switch TZINFO with UTC offset

5 years agochat, internal/humantime: Tweak departure message
Andrey Petrov [Sun, 17 Mar 2019 19:01:41 +0000 (15:01 -0400)]
chat, internal/humantime: Tweak departure message

5 years agoMerge pull request #304 from shazow/autocomplete-sort
Andrey Petrov [Sun, 17 Mar 2019 18:42:04 +0000 (14:42 -0400)]
Merge pull request #304 from shazow/autocomplete-sort

chat: Sort NamesPrefix by recently active

5 years agochat: Sort NamesPrefix by recently active origin/autocomplete-sort
Andrey Petrov [Sat, 16 Mar 2019 19:27:43 +0000 (15:27 -0400)]
chat: Sort NamesPrefix by recently active

5 years ago/timestamp now prefixes each line with a timestamp
Andrey Petrov [Sun, 17 Mar 2019 18:05:22 +0000 (14:05 -0400)]
/timestamp now prefixes each line with a timestamp

Freakin' Timestamps On Every Freakin' Line

5 years agosshchat: Echo command messages with the new timestamp code.
Andrey Petrov [Sun, 17 Mar 2019 17:50:01 +0000 (13:50 -0400)]
sshchat: Echo command messages with the new timestamp code.

5 years agochat: Add timezone support to /timestamp
Andrey Petrov [Sat, 16 Mar 2019 16:20:43 +0000 (12:20 -0400)]
chat: Add timezone support to /timestamp

5 years agochat: Remove injectTimestamp after 30min stuff
Andrey Petrov [Fri, 15 Mar 2019 20:30:06 +0000 (16:30 -0400)]
chat: Remove injectTimestamp after 30min stuff

5 years agochat/message: Add second resolution
Andrey Petrov [Fri, 15 Mar 2019 20:26:39 +0000 (16:26 -0400)]
chat/message: Add second resolution

5 years agochat/message: Add PublicMsg.RenderSelf(...) to support old-style formatting
Andrey Petrov [Fri, 15 Mar 2019 20:20:13 +0000 (16:20 -0400)]
chat/message: Add PublicMsg.RenderSelf(...) to support old-style formatting

5 years agosshchat, chat: Override terminal echo and do our own echo
Andrey Petrov [Fri, 15 Mar 2019 20:01:47 +0000 (16:01 -0400)]
sshchat, chat: Override terminal echo and do our own echo

5 years agoRevert "host: Add timestamps into prompt when enabled"
Andrey Petrov [Fri, 15 Mar 2019 19:57:50 +0000 (15:57 -0400)]
Revert "host: Add timestamps into prompt when enabled"

This reverts commit 6ce14bfc33e5a5aeb6003cdec9a873588eabe8f0.

We're going to do another approach.

5 years agohost: Add timestamps into prompt when enabled
Andrey Petrov [Wed, 6 Mar 2019 20:25:38 +0000 (12:25 -0800)]
host: Add timestamps into prompt when enabled

5 years agochat/message: Add timestamp prefix support
Andrey Petrov [Wed, 6 Mar 2019 20:25:02 +0000 (12:25 -0800)]
chat/message: Add timestamp prefix support

5 years agoMakefile: Use static builds by default
Andrey Petrov [Sat, 16 Mar 2019 02:56:48 +0000 (22:56 -0400)]
Makefile: Use static builds by default

5 years agobuild: Update go modules
Andrey Petrov [Sat, 16 Mar 2019 02:40:30 +0000 (22:40 -0400)]
build: Update go modules

5 years agomain: Skip command autocomplete if space-prefixed
Andrey Petrov [Fri, 15 Mar 2019 22:39:53 +0000 (18:39 -0400)]
main: Skip command autocomplete if space-prefixed

Fixes #300

5 years ago/reply: Set reply target properly
Andrey Petrov [Fri, 15 Mar 2019 22:32:46 +0000 (18:32 -0400)]
/reply: Set reply target properly

Fixes #299

5 years agomain: --admin and --whitelist: Skip non-key lines
Andrey Petrov [Fri, 15 Mar 2019 22:30:21 +0000 (18:30 -0400)]
main: --admin and --whitelist: Skip non-key lines

Closes #298

5 years ago/op: Fix room op being tied to the nick, add remove option
Andrey Petrov [Fri, 15 Mar 2019 22:18:20 +0000 (18:18 -0400)]
/op: Fix room op being tied to the nick, add remove option

Closes #301

5 years agochat: Use strings.Builder
Ulisse Mini [Sun, 24 Feb 2019 01:28:36 +0000 (20:28 -0500)]
chat: Use strings.Builder

5 years agoMakefile: Remove unneeded variable
UlisseMini [Fri, 25 Jan 2019 17:47:35 +0000 (12:47 -0500)]
Makefile: Remove unneeded variable

5 years agoMakefile: Use go test ./... to test all packages.
UlisseMini [Fri, 25 Jan 2019 17:46:37 +0000 (12:46 -0500)]
Makefile: Use go test ./... to test all packages.

5 years agosanitize: Move global variables to top of file
UlisseMini [Fri, 25 Jan 2019 17:39:21 +0000 (12:39 -0500)]
sanitize: Move global variables to top of file

5 years agochat: Use a string instead of a bytes.Buffer
UlisseMini [Fri, 25 Jan 2019 17:32:57 +0000 (12:32 -0500)]
chat: Use a string instead of a bytes.Buffer

5 years agosshd: Better comments and changed += 1 to ++
UlisseMini [Fri, 25 Jan 2019 17:25:05 +0000 (12:25 -0500)]
sshd: Better comments and changed += 1 to ++

5 years agosshd: Better comments
UlisseMini [Fri, 25 Jan 2019 17:23:41 +0000 (12:23 -0500)]
sshd: Better comments

5 years agochat: Better comments
UlisseMini [Fri, 25 Jan 2019 17:18:57 +0000 (12:18 -0500)]
chat: Better comments

5 years agohost.go: drop = 0 from declaration; it is the zero value (golint)
UlisseMini [Fri, 25 Jan 2019 17:09:15 +0000 (12:09 -0500)]
host.go: drop = 0 from declaration; it is the zero value (golint)

5 years agoBetter comments
UlisseMini [Fri, 25 Jan 2019 17:07:34 +0000 (12:07 -0500)]
Better comments

5 years agocmd/ssh-chat: Set ServerVersion to include ssh-chat
Andrey Petrov [Mon, 11 Feb 2019 20:21:56 +0000 (15:21 -0500)]
cmd/ssh-chat: Set ServerVersion to include ssh-chat

5 years agocmd, main: Return instead of os.Exit(0), use ioutil.Discard for default logger
Ulisse mini [Fri, 25 Jan 2019 18:42:27 +0000 (13:42 -0500)]
cmd, main: Return instead of os.Exit(0), use ioutil.Discard for default logger

* logger: change nil bytes.Buffer into ioutil.Discard

* cmd.go: Clearify imports

* cmd.go: Use return instead of os.Exit(0)

5 years agologger: change nil bytes.Buffer into ioutil.Discard (#293)
Ulisse mini [Wed, 23 Jan 2019 16:31:33 +0000 (11:31 -0500)]
logger: change nil bytes.Buffer into ioutil.Discard (#293)

5 years agochat: When a user leaves, add time since they joined to the exit message.
Robert Hailey [Wed, 2 Jan 2019 20:46:21 +0000 (14:46 -0600)]
chat: When a user leaves, add time since they joined to the exit message.

* Show the connection duration upon departure

* humantime: ugly sub-second precision replaces grammatically incorrect "1 seconds" message

* simplify function name

* humantime: repair unit test

* move: util/humantime -> internal/humantime

* go fmt everything

5 years agogo mod tidy
Andrey Petrov [Thu, 27 Dec 2018 18:46:04 +0000 (13:46 -0500)]
go mod tidy

5 years agotravisci: Remove explicit dep fetch (#287)
Andrey Petrov [Tue, 25 Dec 2018 19:53:38 +0000 (14:53 -0500)]
travisci: Remove explicit dep fetch (#287)

5 years ago/ban query support (#286)
Andrey Petrov [Tue, 25 Dec 2018 19:29:19 +0000 (14:29 -0500)]
/ban query support (#286)

For #285

Turns out there were some bugs in Set, and I was using it incorrectly too.

The query syntax is a little awkward but couldn't find a nicer easy to parse format that worked with quoted string values.

5 years agoset: Fix race condition
Andrey Petrov [Sun, 16 Dec 2018 01:37:46 +0000 (20:37 -0500)]
set: Fix race condition

5 years agomain: Add /banned command to list banned entries for ops.
Andrey Petrov [Sun, 16 Dec 2018 00:04:42 +0000 (19:04 -0500)]
main: Add /banned command to list banned entries for ops.

5 years agomain: auth: Fix ban by IP, also improve log formatting.
Andrey Petrov [Sat, 15 Dec 2018 23:47:35 +0000 (18:47 -0500)]
main: auth: Fix ban by IP, also improve log formatting.

Closes #284

5 years agotravisci: Bump Go versions and use '.x' to always get latest patch versions (#281)
Harald Nordgren [Sun, 28 Oct 2018 15:25:05 +0000 (16:25 +0100)]
travisci: Bump Go versions and use '.x' to always get latest patch versions (#281)

5 years ago/shrug: Ignore additional arguments
Boris Verhovsky [Thu, 6 Sep 2018 19:04:26 +0000 (13:04 -0600)]
/shrug: Ignore additional arguments

5 years agoSwitch to go modules, update travisci for Go 1.11 (#279)
Andrey Petrov [Thu, 6 Sep 2018 19:03:53 +0000 (14:03 -0500)]
Switch to go modules, update travisci for Go 1.11 (#279)

* Switch to go modules, update travisci for go 1.11

* Add go.{mod,sum}

* travisci: Merge envs, oops

Closes #271

6 years agoREADME: Link deploy examples
Andrey Petrov [Thu, 15 Feb 2018 17:47:46 +0000 (12:47 -0500)]
README: Link deploy examples

6 years ago/shrug ¯\_(ツ)_/¯ v1.7
Andrey Petrov [Fri, 19 Jan 2018 18:41:24 +0000 (13:41 -0500)]
/shrug ¯\_(ツ)_/¯

6 years ago/timestamp: Toggle timestamps after 30min of inactivity
Andrey Petrov [Fri, 19 Jan 2018 18:35:37 +0000 (13:35 -0500)]
/timestamp: Toggle timestamps after 30min of inactivity

Closes #244

CC #194, #99, #242

6 years ago/uptime and /whois relative timestamps made more precise
Andrey Petrov [Fri, 19 Jan 2018 17:34:15 +0000 (12:34 -0500)]
/uptime and /whois relative timestamps made more precise

Replaced go-humanize dependency with our own logic.

Fixes #259.

6 years agodep ensure -update
Andrey Petrov [Fri, 19 Jan 2018 16:36:43 +0000 (11:36 -0500)]
dep ensure -update

6 years agoStrip control characters from metadata inputs (#257)
goose121 [Wed, 3 Jan 2018 01:27:54 +0000 (18:27 -0700)]
Strip control characters from metadata inputs (#257)

6 years agovendor: Switch to using `go dep`
Steven L [Thu, 12 Oct 2017 17:40:35 +0000 (13:40 -0400)]
vendor: Switch to using `go dep`

* Adding go dep to the project

* Adding lockfile and changing README Go version

6 years agoColorize /name output with selected theme (#249)
Steven L [Wed, 4 Oct 2017 17:20:01 +0000 (13:20 -0400)]
Colorize /name output with selected theme (#249)

* command.go: colorizing names according to theme (#205)

* Adding safety check for nil and mono

* Refactoring coloring into a function

6 years agoAdding a contribituion file and issue template (#248)
Steven L [Tue, 3 Oct 2017 17:49:52 +0000 (13:49 -0400)]
Adding a contribituion file and issue template (#248)

6 years agotests: Fix flake in TestSetExpiring
Sahil Goel [Mon, 28 Aug 2017 18:34:47 +0000 (00:04 +0530)]
tests: Fix flake in TestSetExpiring

* Fix Test Case 3 of #187

6 years agoTravis: Check for gofmt issues. (#241)
Dmitri Shuralyov [Mon, 17 Jul 2017 19:03:55 +0000 (15:03 -0400)]
Travis: Check for gofmt issues. (#241)

* Travis: Check for gofmt issues.

This will help catch issues like https://github.com/shazow/ssh-chat/pull/240#discussion_r127626103
in CI.

* chat: Fix gofmt issue.

6 years agochat/doc: gofmt
Andrey Petrov [Mon, 17 Jul 2017 14:28:33 +0000 (10:28 -0400)]
chat/doc: gofmt

6 years agodocs: Typo and odd grammar fix (#240)
JimmyBot [Sun, 16 Jul 2017 14:47:45 +0000 (10:47 -0400)]
docs: Typo and odd grammar fix (#240)

* Typo and odd grammar

* Forgot a word in my edit

6 years agoFix unit tests / Travis (#238)
Oliver Graff [Wed, 14 Jun 2017 13:07:24 +0000 (06:07 -0700)]
Fix unit tests / Travis (#238)

* Fix net_test

* Update host test to add carriage return char

* Fix host_test so it will not hang if the SSH connection fails

Fixes #231, closes #235.

6 years ago/nick: Avoid announcing when it's the same nick (#237)
Oliver Graff [Tue, 13 Jun 2017 15:12:32 +0000 (08:12 -0700)]
/nick: Avoid announcing when it's the same nick (#237)

Fixes #234

7 years agochat: Emit BEL when receiving a PM. v1.6
Andrey Petrov [Thu, 11 May 2017 15:23:17 +0000 (11:23 -0400)]
chat: Emit BEL when receiving a PM.

Also get rid of extraneous SetReplyTo which was not getting set before because we were switching on the wrong type.

Closes #207
CC @sleibrock

7 years agocommand.go: modifying Theme command to show all available themes (#232)
Steven L [Sun, 7 May 2017 21:48:08 +0000 (17:48 -0400)]
command.go: modifying Theme command to show all available themes (#232)

command.go: modifying Theme command to show all available themes

7 years agoFixed /reply bug (#230)
Steven L [Fri, 28 Apr 2017 01:04:37 +0000 (21:04 -0400)]
Fixed /reply bug (#230)

7 years agosshd: Add SHA256 prefix to pubkey fingerprints (#220)
Jesse Shapiro [Sat, 22 Oct 2016 13:49:26 +0000 (09:49 -0400)]
sshd: Add SHA256 prefix to pubkey fingerprints (#220)

Fixes #214

7 years agoWindows support (fixed #217)
Nick Scheibenpflug [Thu, 15 Sep 2016 17:52:55 +0000 (13:52 -0400)]
Windows support (fixed #217)

* Swap out gopass dependency

Remove github.com/mewbak/gopass in favor of github.com/howeyc/gopass

* Add Windows to Makefile and build_release

Added Windows/386 and Windows/amd64 to the Makefile.  Some minor changes
needed to be made to build_release to give the windows binary the ".exe"
extension.

* Makefile: remove windows/amd64

7 years agotests: Fix ineffectual assigns
Andrey Petrov [Thu, 1 Sep 2016 21:01:47 +0000 (17:01 -0400)]
tests: Fix ineffectual assigns

7 years agorefactor: User.Config -> User.Config() and User.SetConfig(UserConfig)
Andrey Petrov [Mon, 29 Aug 2016 14:11:39 +0000 (10:11 -0400)]
refactor: User.Config -> User.Config() and User.SetConfig(UserConfig)

7 years agorefactor: User.SetColorIdx -> User.setColorIdx, preparing to abstract user
Andrey Petrov [Mon, 29 Aug 2016 13:58:17 +0000 (09:58 -0400)]
refactor: User.SetColorIdx -> User.setColorIdx, preparing to abstract user

7 years agochat/message: Remove User.Ignore(...) and User.Unignore(...)
Andrey Petrov [Sat, 27 Aug 2016 19:15:07 +0000 (15:15 -0400)]
chat/message: Remove User.Ignore(...) and User.Unignore(...)

Also changes some messaging

7 years agorefactor: Id -> ID
Andrey Petrov [Wed, 24 Aug 2016 17:47:22 +0000 (13:47 -0400)]
refactor: Id -> ID

7 years agoset: Switch to a common set implementation
Andrey Petrov [Wed, 24 Aug 2016 17:30:19 +0000 (13:30 -0400)]
set: Switch to a common set implementation

7 years agoset: Improve coverage and cleanup. Switch sshchat package to use it.
Andrey Petrov [Mon, 15 Aug 2016 01:03:16 +0000 (21:03 -0400)]
set: Improve coverage and cleanup. Switch sshchat package to use it.

7 years agoset: Generalized Set type
Andrey Petrov [Sun, 14 Aug 2016 21:13:48 +0000 (17:13 -0400)]
set: Generalized Set type

7 years agotests: Fix flake in TestHostNameCollision
Andrey Petrov [Wed, 24 Aug 2016 17:53:59 +0000 (13:53 -0400)]
tests: Fix flake in TestHostNameCollision

7 years ago/uptime: Format output to be more human-friendly
Greg Wedow [Sun, 21 Aug 2016 16:20:53 +0000 (12:20 -0400)]
/uptime: Format output to be more human-friendly

7 years agomotd: Don't trim surrounding whitespace from the --motd file input.
Greg Wedow [Sun, 21 Aug 2016 16:17:30 +0000 (12:17 -0400)]
motd: Don't trim surrounding whitespace from the --motd file input.

7 years agoMakefile: Support building from source tarball v1.5
Andrey Petrov [Wed, 17 Aug 2016 17:34:06 +0000 (13:34 -0400)]
Makefile: Support building from source tarball

Fixes #168

7 years agotravisci: Enable go 1.7
Andrey Petrov [Tue, 16 Aug 2016 18:20:48 +0000 (14:20 -0400)]
travisci: Enable go 1.7

7 years ago/reply: Enabled again.
Andrey Petrov [Tue, 16 Aug 2016 18:20:32 +0000 (14:20 -0400)]
/reply: Enabled again.

Fixes #202

7 years agoREADME: Add FAQ link
Steven L [Tue, 16 Aug 2016 18:03:01 +0000 (14:03 -0400)]
README: Add FAQ link

7 years agoreleases: Add freebsd
Andrey Petrov [Tue, 16 Aug 2016 14:47:43 +0000 (10:47 -0400)]
releases: Add freebsd

7 years ago/help: Improve help for /ignore and /theme
Andrey Petrov [Tue, 16 Aug 2016 14:18:27 +0000 (10:18 -0400)]
/help: Improve help for /ignore and /theme