Andrey Petrov [Fri, 22 Mar 2019 20:04:59 +0000 (16:04 -0400)]
chat/message: Fix tests
Andrey Petrov [Fri, 22 Mar 2019 19:31:17 +0000 (15:31 -0400)]
sshd/terminal: Clear screen below on enterClear
Andrey Petrov [Fri, 22 Mar 2019 19:27:00 +0000 (15:27 -0400)]
/timestamp, /theme: Fix rendering, add tests
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
Andrey Petrov [Thu, 21 Mar 2019 21:12:32 +0000 (17:12 -0400)]
/timestamp: time and datetime modes
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
Andrey Petrov [Tue, 19 Mar 2019 16:11:56 +0000 (12:11 -0400)]
go mod tidy
Andrey Petrov [Thu, 21 Mar 2019 19:28:59 +0000 (15:28 -0400)]
sshchat, host: Switch to new terminal clearline api
Andrey Petrov [Thu, 21 Mar 2019 19:23:55 +0000 (15:23 -0400)]
sshd/terminal: Switch terminal.ClearLine to termina.SetEnterClear(...)
Andrey Petrov [Thu, 21 Mar 2019 17:39:33 +0000 (13:39 -0400)]
sshchat: Fix tests to use new rendering format.
Andrey Petrov [Tue, 19 Mar 2019 19:05:13 +0000 (15:05 -0400)]
sshd/terminal: Use N-moves in Terminal.move when possible
Andrey Petrov [Tue, 19 Mar 2019 16:09:54 +0000 (12:09 -0400)]
sshd/terminal: Fix mid-line enter and reflow bugs
Andrey Petrov [Mon, 18 Mar 2019 19:36:21 +0000 (15:36 -0400)]
legal: Put sshd/terminal notice in root
Andrey Petrov [Sun, 17 Mar 2019 21:36:38 +0000 (17:36 -0400)]
sshchat: Replace terminal echo hack with our forked terminal
Andrey Petrov [Sun, 17 Mar 2019 21:35:49 +0000 (17:35 -0400)]
sshd/terminal: Add Terminal.ClearLine option
Andrey Petrov [Sun, 17 Mar 2019 21:35:27 +0000 (17:35 -0400)]
sshd/terminal: Add original LICENSE
Andrey Petrov [Sun, 17 Mar 2019 21:12:31 +0000 (17:12 -0400)]
sshd/terminal: Import fork of x/crypto/ssh
Andrey Petrov [Mon, 18 Mar 2019 14:08:12 +0000 (10:08 -0400)]
chat: Fix runtime bug with uninitialized strings builder
Andrey Petrov [Sun, 17 Mar 2019 20:10:16 +0000 (16:10 -0400)]
sshchat: Fix empty messages borking rendering
Andrey Petrov [Sun, 17 Mar 2019 20:05:38 +0000 (16:05 -0400)]
/timestamp: Remove timezone by default for now
Andrey Petrov [Sun, 17 Mar 2019 20:00:48 +0000 (16:00 -0400)]
/timestamp: Switch TZINFO with UTC offset
Andrey Petrov [Sun, 17 Mar 2019 19:01:41 +0000 (15:01 -0400)]
chat, internal/humantime: Tweak departure message
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
Andrey Petrov [Sat, 16 Mar 2019 19:27:43 +0000 (15:27 -0400)]
chat: Sort NamesPrefix by recently active
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
Andrey Petrov [Sun, 17 Mar 2019 17:50:01 +0000 (13:50 -0400)]
sshchat: Echo command messages with the new timestamp code.
Andrey Petrov [Sat, 16 Mar 2019 16:20:43 +0000 (12:20 -0400)]
chat: Add timezone support to /timestamp
Andrey Petrov [Fri, 15 Mar 2019 20:30:06 +0000 (16:30 -0400)]
chat: Remove injectTimestamp after 30min stuff
Andrey Petrov [Fri, 15 Mar 2019 20:26:39 +0000 (16:26 -0400)]
chat/message: Add second resolution
Andrey Petrov [Fri, 15 Mar 2019 20:20:13 +0000 (16:20 -0400)]
chat/message: Add PublicMsg.RenderSelf(...) to support old-style formatting
Andrey Petrov [Fri, 15 Mar 2019 20:01:47 +0000 (16:01 -0400)]
sshchat, chat: Override terminal echo and do our own echo
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.
Andrey Petrov [Wed, 6 Mar 2019 20:25:38 +0000 (12:25 -0800)]
host: Add timestamps into prompt when enabled
Andrey Petrov [Wed, 6 Mar 2019 20:25:02 +0000 (12:25 -0800)]
chat/message: Add timestamp prefix support
Andrey Petrov [Sat, 16 Mar 2019 02:56:48 +0000 (22:56 -0400)]
Makefile: Use static builds by default
Andrey Petrov [Sat, 16 Mar 2019 02:40:30 +0000 (22:40 -0400)]
build: Update go modules
Andrey Petrov [Fri, 15 Mar 2019 22:39:53 +0000 (18:39 -0400)]
main: Skip command autocomplete if space-prefixed
Fixes #300
Andrey Petrov [Fri, 15 Mar 2019 22:32:46 +0000 (18:32 -0400)]
/reply: Set reply target properly
Fixes #299
Andrey Petrov [Fri, 15 Mar 2019 22:30:21 +0000 (18:30 -0400)]
main: --admin and --whitelist: Skip non-key lines
Closes #298
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
Ulisse Mini [Sun, 24 Feb 2019 01:28:36 +0000 (20:28 -0500)]
chat: Use strings.Builder
UlisseMini [Fri, 25 Jan 2019 17:47:35 +0000 (12:47 -0500)]
Makefile: Remove unneeded variable
UlisseMini [Fri, 25 Jan 2019 17:46:37 +0000 (12:46 -0500)]
Makefile: Use go test ./... to test all packages.
UlisseMini [Fri, 25 Jan 2019 17:39:21 +0000 (12:39 -0500)]
sanitize: Move global variables to top of file
UlisseMini [Fri, 25 Jan 2019 17:32:57 +0000 (12:32 -0500)]
chat: Use a string instead of a bytes.Buffer
UlisseMini [Fri, 25 Jan 2019 17:25:05 +0000 (12:25 -0500)]
sshd: Better comments and changed += 1 to ++
UlisseMini [Fri, 25 Jan 2019 17:23:41 +0000 (12:23 -0500)]
sshd: Better comments
UlisseMini [Fri, 25 Jan 2019 17:18:57 +0000 (12:18 -0500)]
chat: Better comments
UlisseMini [Fri, 25 Jan 2019 17:09:15 +0000 (12:09 -0500)]
host.go: drop = 0 from declaration; it is the zero value (golint)
UlisseMini [Fri, 25 Jan 2019 17:07:34 +0000 (12:07 -0500)]
Better comments
Andrey Petrov [Mon, 11 Feb 2019 20:21:56 +0000 (15:21 -0500)]
cmd/ssh-chat: Set ServerVersion to include ssh-chat
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)
Ulisse mini [Wed, 23 Jan 2019 16:31:33 +0000 (11:31 -0500)]
logger: change nil bytes.Buffer into ioutil.Discard (#293)
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
Andrey Petrov [Thu, 27 Dec 2018 18:46:04 +0000 (13:46 -0500)]
go mod tidy
Andrey Petrov [Tue, 25 Dec 2018 19:53:38 +0000 (14:53 -0500)]
travisci: Remove explicit dep fetch (#287)
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.
Andrey Petrov [Sun, 16 Dec 2018 01:37:46 +0000 (20:37 -0500)]
set: Fix race condition
Andrey Petrov [Sun, 16 Dec 2018 00:04:42 +0000 (19:04 -0500)]
main: Add /banned command to list banned entries for ops.
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
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)
Boris Verhovsky [Thu, 6 Sep 2018 19:04:26 +0000 (13:04 -0600)]
/shrug: Ignore additional arguments
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
Andrey Petrov [Thu, 15 Feb 2018 17:47:46 +0000 (12:47 -0500)]
README: Link deploy examples
Andrey Petrov [Fri, 19 Jan 2018 18:41:24 +0000 (13:41 -0500)]
/shrug ¯\_(ツ)_/¯
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
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.
Andrey Petrov [Fri, 19 Jan 2018 16:36:43 +0000 (11:36 -0500)]
dep ensure -update
goose121 [Wed, 3 Jan 2018 01:27:54 +0000 (18:27 -0700)]
Strip control characters from metadata inputs (#257)
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
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
Steven L [Tue, 3 Oct 2017 17:49:52 +0000 (13:49 -0400)]
Adding a contribituion file and issue template (#248)
Sahil Goel [Mon, 28 Aug 2017 18:34:47 +0000 (00:04 +0530)]
tests: Fix flake in TestSetExpiring
* Fix Test Case 3 of #187
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.
Andrey Petrov [Mon, 17 Jul 2017 14:28:33 +0000 (10:28 -0400)]
chat/doc: gofmt
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
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.
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
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
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
Steven L [Fri, 28 Apr 2017 01:04:37 +0000 (21:04 -0400)]
Fixed /reply bug (#230)
Jesse Shapiro [Sat, 22 Oct 2016 13:49:26 +0000 (09:49 -0400)]
sshd: Add SHA256 prefix to pubkey fingerprints (#220)
Fixes #214
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
Andrey Petrov [Thu, 1 Sep 2016 21:01:47 +0000 (17:01 -0400)]
tests: Fix ineffectual assigns
Andrey Petrov [Mon, 29 Aug 2016 14:11:39 +0000 (10:11 -0400)]
refactor: User.Config -> User.Config() and User.SetConfig(UserConfig)
Andrey Petrov [Mon, 29 Aug 2016 13:58:17 +0000 (09:58 -0400)]
refactor: User.SetColorIdx -> User.setColorIdx, preparing to abstract user
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
Andrey Petrov [Wed, 24 Aug 2016 17:47:22 +0000 (13:47 -0400)]
refactor: Id -> ID
Andrey Petrov [Wed, 24 Aug 2016 17:30:19 +0000 (13:30 -0400)]
set: Switch to a common set implementation
Andrey Petrov [Mon, 15 Aug 2016 01:03:16 +0000 (21:03 -0400)]
set: Improve coverage and cleanup. Switch sshchat package to use it.
Andrey Petrov [Sun, 14 Aug 2016 21:13:48 +0000 (17:13 -0400)]
set: Generalized Set type
Andrey Petrov [Wed, 24 Aug 2016 17:53:59 +0000 (13:53 -0400)]
tests: Fix flake in TestHostNameCollision
Greg Wedow [Sun, 21 Aug 2016 16:20:53 +0000 (12:20 -0400)]
/uptime: Format output to be more human-friendly
Greg Wedow [Sun, 21 Aug 2016 16:17:30 +0000 (12:17 -0400)]
motd: Don't trim surrounding whitespace from the --motd file input.
Andrey Petrov [Wed, 17 Aug 2016 17:34:06 +0000 (13:34 -0400)]
Makefile: Support building from source tarball
Fixes #168
Andrey Petrov [Tue, 16 Aug 2016 18:20:48 +0000 (14:20 -0400)]
travisci: Enable go 1.7
Andrey Petrov [Tue, 16 Aug 2016 18:20:32 +0000 (14:20 -0400)]
/reply: Enabled again.
Fixes #202
Steven L [Tue, 16 Aug 2016 18:03:01 +0000 (14:03 -0400)]
README: Add FAQ link
Andrey Petrov [Tue, 16 Aug 2016 14:47:43 +0000 (10:47 -0400)]
releases: Add freebsd
Andrey Petrov [Tue, 16 Aug 2016 14:18:27 +0000 (10:18 -0400)]
/help: Improve help for /ignore and /theme