Andrey Petrov
1c44c714e6
chat: Sort NamesPrefix by recently active
2019-03-17 14:41:03 -04:00
Andrey Petrov
924c6bd234
Makefile: Use static builds by default
2019-03-15 22:56:48 -04:00
Andrey Petrov
d3eda56f82
build: Update go modules
2019-03-15 22:40:30 -04:00
Andrey Petrov
3f0faf761e
main: Skip command autocomplete if space-prefixed
...
Fixes #300
2019-03-15 18:39:53 -04:00
Andrey Petrov
ae46a91e0f
/reply: Set reply target properly
...
Fixes #299
2019-03-15 18:32:46 -04:00
Andrey Petrov
0b06b56c0e
main: --admin and --whitelist: Skip non-key lines
...
Closes #298
2019-03-15 18:30:21 -04:00
Andrey Petrov
60701198fc
/op: Fix room op being tied to the nick, add remove option
...
Closes #301
2019-03-15 18:18:20 -04:00
Ulisse Mini
953c3d46b2
chat: Use strings.Builder
2019-02-24 09:40:47 -06:00
UlisseMini
7b06848c75
Makefile: Remove unneeded variable
2019-02-24 09:40:47 -06:00
UlisseMini
f3c80047b9
Makefile: Use go test ./... to test all packages.
2019-02-24 09:40:47 -06:00
UlisseMini
c1a8912297
sanitize: Move global variables to top of file
2019-02-24 09:40:47 -06:00
UlisseMini
4c968fc966
chat: Use a string instead of a bytes.Buffer
2019-02-24 09:40:47 -06:00
UlisseMini
9c918676ed
sshd: Better comments and changed += 1 to ++
2019-02-24 09:40:47 -06:00
UlisseMini
e6233daefd
sshd: Better comments
2019-02-24 09:40:47 -06:00
UlisseMini
40f6957e93
chat: Better comments
2019-02-24 09:40:47 -06:00
UlisseMini
a1b891aae2
host.go: drop = 0 from declaration; it is the zero value (golint)
2019-02-24 09:40:47 -06:00
UlisseMini
57c6abe86c
Better comments
2019-02-24 09:40:47 -06:00
Andrey Petrov
3813360d91
cmd/ssh-chat: Set ServerVersion to include ssh-chat
2019-02-11 15:21:56 -05:00
Ulisse mini
81d7e16862
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)
2019-01-25 13:42:27 -05:00
Ulisse mini
429ebbf60d
logger: change nil bytes.Buffer into ioutil.Discard ( #293 )
2019-01-23 11:31:33 -05:00
Robert Hailey
40bf204058
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
2019-01-02 15:46:21 -05:00
Andrey Petrov
60f3202818
go mod tidy
2018-12-27 13:46:04 -05:00
Andrey Petrov
a998e91639
travisci: Remove explicit dep fetch ( #287 )
2018-12-25 14:53:38 -05:00
Andrey Petrov
903d6c9420
/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.
2018-12-25 14:29:19 -05:00
Andrey Petrov
bdd9274aaa
set: Fix race condition
2018-12-15 20:37:46 -05:00
Andrey Petrov
3572c4674c
main: Add /banned command to list banned entries for ops.
2018-12-15 19:04:42 -05:00
Andrey Petrov
86dae2a53e
main: auth: Fix ban by IP, also improve log formatting.
...
Closes #284
2018-12-15 18:47:35 -05:00
Harald Nordgren
f36d7eb9cc
travisci: Bump Go versions and use '.x' to always get latest patch versions ( #281 )
2018-10-28 11:25:05 -04:00
Boris Verhovsky
75492825e9
/shrug: Ignore additional arguments
2018-09-06 14:04:26 -05:00
Andrey Petrov
9697c7d37f
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
2018-09-06 14:03:53 -05:00
Andrey Petrov
e72af3ad8e
README: Link deploy examples
2018-02-15 12:47:46 -05:00
Andrey Petrov
d73aae0f15
/shrug ¯\_(ツ)_/¯
v1.7
2018-01-19 13:41:24 -05:00
Andrey Petrov
87dd859fed
/timestamp: Toggle timestamps after 30min of inactivity
...
Closes #244
CC #194 , #99 , #242
2018-01-19 13:35:42 -05:00
Andrey Petrov
66fee99a81
/uptime and /whois relative timestamps made more precise
...
Replaced go-humanize dependency with our own logic.
Fixes #259 .
2018-01-19 12:35:45 -05:00
Andrey Petrov
14b380b473
dep ensure -update
2018-01-19 11:36:43 -05:00
goose121
fd77009f8d
Strip control characters from metadata inputs ( #257 )
2018-01-02 20:27:54 -05:00
Steven L
2078e13819
vendor: Switch to using go dep
...
* Adding go dep to the project
* Adding lockfile and changing README Go version
2017-10-12 13:40:35 -04:00
Steven L
206a9073f0
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
2017-10-04 13:20:01 -04:00
Steven L
80a5879f04
Adding a contribituion file and issue template ( #248 )
2017-10-03 13:49:52 -04:00
Sahil Goel
0cb58facef
tests: Fix flake in TestSetExpiring
...
* Fix Test Case 3 of #187
2017-08-28 14:34:47 -04:00
Dmitri Shuralyov
50001bf172
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.
2017-07-17 15:03:55 -04:00
Andrey Petrov
e3b5c3712c
chat/doc: gofmt
2017-07-17 10:28:33 -04:00
JimmyBot
2c1e5239c5
docs: Typo and odd grammar fix ( #240 )
...
* Typo and odd grammar
* Forgot a word in my edit
2017-07-16 10:47:45 -04:00
Oliver Graff
05597b3e6a
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 .
2017-06-14 09:07:24 -04:00
Oliver Graff
a631215f5b
/nick: Avoid announcing when it's the same nick ( #237 )
...
Fixes #234
2017-06-13 11:12:32 -04:00
Andrey Petrov
25689a88ed
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
v1.6
2017-05-11 11:23:29 -04:00
Steven L
227dad7492
command.go: modifying Theme command to show all available themes ( #232 )
...
command.go: modifying Theme command to show all available themes
2017-05-07 17:48:08 -04:00
Steven L
e800c88a56
Fixed /reply bug ( #230 )
2017-04-27 21:04:37 -04:00
Jesse Shapiro
7781d5b135
sshd: Add SHA256 prefix to pubkey fingerprints ( #220 )
...
Fixes #214
2016-10-22 09:49:26 -04:00
Nick Scheibenpflug
55c1def24d
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
2016-09-15 13:52:55 -04:00