63 Commits

Author SHA1 Message Date
Andrey Petrov
7b3818acc1 refactor: host.UserMember{chat.Member} -> host.Member{chat.Member} 2017-04-28 11:43:15 -04:00
Andrey Petrov
cd5686e20e refactor: Move extraneous User interfaces from chat to host 2017-04-28 11:43:15 -04:00
Andrey Petrov
7f2b8e4689 refactor: Add message.Author.ID(), remove a bunch of type assertions 2017-04-28 11:43:15 -04:00
Andrey Petrov
e86996e6b5 progress: Host User interface, and more interfaces in general, tests pass 2017-04-28 11:43:15 -04:00
Andrey Petrov
d16b1f5829 bugfix: Nil item 2017-04-28 11:43:15 -04:00
Andrey Petrov
3ef404198d tests: All passing again 2017-04-28 11:43:15 -04:00
Andrey Petrov
50022e9e44 broken: Split UserScreen into PipedScreen, BufferedScreen, HandledScreen 2017-04-28 11:43:15 -04:00
Andrey Petrov
a22d9380e4 refactor: fixed failing tests 2017-04-28 11:43:15 -04:00
Andrey Petrov
5f2a230ecc progress: broken: Multi-client support, tests fail, Whois factored 2017-04-28 11:43:15 -04:00
Andrey Petrov
91718a511b progress: refactor: Remove Identifier interface, reverse ownership of sshchat identity and message.User 2017-04-28 11:43:15 -04:00
Andrey Petrov
f64b2a3607 refactor: sshchat.getPrompt() -> message.User.Prompt() 2017-04-28 11:43:15 -04:00
Andrey Petrov
b45efc0dae refactor: Privatize sshchat.GetPrompt and sshchat.Identity 2017-04-28 11:43:15 -04:00
Andrey Petrov
bccb5f3c32 refactor: User.Ignored, message.User; add: set.Keyize 2017-04-28 11:43:15 -04:00
Steven L
e800c88a56 Fixed /reply bug (#230) 2017-04-27 21:04:37 -04:00
Andrey Petrov
cdcc4a9931 refactor: User.Config -> User.Config() and User.SetConfig(UserConfig) 2016-08-29 10:11:39 -04:00
Andrey Petrov
d950112dd9 refactor: Id -> ID 2016-08-24 13:54:20 -04:00
Andrey Petrov
0fcc076c74 set: Switch to a common set implementation 2016-08-24 13:54:20 -04:00
Greg Wedow
a67a9d115b /uptime: Format output to be more human-friendly 2016-08-21 12:20:53 -04:00
Andrey Petrov
47607af729 /reply: Enabled again.
Fixes #202
2016-08-16 14:20:51 -04:00
Andrey Petrov
398cd75c5e logging: Add [RemoteAddr] prefix to connection-related messages 2016-08-13 16:22:43 -04:00
Andrey Petrov
cfa86b3e2e /motd: Fixed set message and actual motd coming out of order.
Fixes #165
2016-08-12 16:35:00 -04:00
Micheal Winger
91c62966fa /msg: Send SystemMsg confirmation with each PM 2016-08-06 23:56:24 -04:00
Dmitri Shuralyov
66adee6f9a /whois: Hide IP if user isn't admin; display client and time joined. (#192)
Resolves #170.
2016-08-06 18:20:34 -04:00
Andrey Petrov
c8661e6883 motd: Allow for reading the current motd when no additional args given.
Closes #155, merges #157

Squashed commit of the following:

commit bcb0810637c99223753629a2e55169b07ee9fe51
Author: Andrey Petrov <andrey.petrov@shazow.net>
Date:   Wed Aug 3 17:58:37 2016 -0400

    motd: Refactor inner conditions

commit ac28c8cb4e8dc2a0d23abe3dcf52b69175cde51b
Author: Aaron <aaron.ounn@gmail.com>
Date:   Tue Aug 2 09:38:36 2016 +0300

    Fix small issues with the help message

commit a80ae77e1d691a4ec7125be5441d4f6eea767a75
Author: Aaron <aaron.ounn@gmail.com>
Date:   Tue Aug 2 09:30:21 2016 +0300

    Print the motd if no parameters are passed

commit 2db1b3c123661cdbd622d5ba2ff81ede8cb8a951
Author: Aaron <aaron.ounn@gmail.com>
Date:   Tue Aug 2 09:29:41 2016 +0300

    Update the motd command's description
2016-08-03 17:58:49 -04:00
Andrey Petrov
13ea34b912 Fixed autocomplete crashing bug (#166) 2016-08-03 17:42:53 -04:00
Andrey Petrov
c4604fde94 Disabled autocomplete due to #166.
Also added mutex for user replyTo pointer, since that's being set by
both the host and user.
2016-08-03 12:19:33 -04:00
Andrey Petrov
2abe368022 style: Fix gofmt and vet complaints 2016-07-31 12:18:06 -04:00
Andrey Petrov
50d2be3a88 Fixed message buffer timeout 2016-07-24 16:17:02 -04:00
Andrey Petrov
e6f7dba34e Progress: Unchan user 2016-07-24 16:17:02 -04:00
Andrey Petrov
ace2bc5124 sshd.SSHListener: Use HandlerFunc instead of terminal channel feed 2016-07-17 16:49:14 -04:00
Andrey Petrov
18b2f511cb Use pointer receiver for all of Host 2016-07-15 18:15:07 -04:00
Andrey Petrov
9bf1f53445 Fixed /kick command to actually close target 2016-07-15 16:22:25 -04:00
Andrey Petrov
0fdeda8b75 Progress: Trying to fix more deadlocks, failing. 2016-07-12 18:24:02 -04:00
Andrey Petrov
ea2d4d0dfc chat: Fix race conditions. 2016-07-12 11:18:07 -04:00
Andrey Petrov
39ac1f44ed Build/release script and fix version annotation. 2016-07-10 17:57:39 -04:00
Andrey Petrov
3e54932f7b Don't explode when autocompleting nothing.
Fixes #126.
2015-02-10 12:04:19 -08:00
Andrey Petrov
8188deef30 Root sshchat package, main moved into cmd/ssh-chat/. 2015-01-21 11:47:59 -08:00
Andrey Petrov
c2adb4d632 ssh-chat/chat/{message,user,theme,history} -> ssh-chat/chat/message 2015-01-20 16:33:52 -08:00
Andrey Petrov
c4ffd6f263 /version, /uptime 2015-01-20 14:23:37 -08:00
Andrey Petrov
9335a2139b Sanitize names on join and /nick. 2015-01-20 14:13:59 -08:00
Andrey Petrov
69ea63bf88 /ban and /op now support durations, also all other auth things in the api. 2015-01-19 19:16:37 -08:00
Andrey Petrov
84df305ddf /op with pubkey. 2015-01-18 20:03:08 -08:00
Andrey Petrov
080b6e8f1b /motd 2015-01-18 19:55:01 -08:00
Andrey Petrov
6c972e6e58 Message rate limiting, input length, and ignore empty lines. 2015-01-18 19:11:35 -08:00
Andrey Petrov
0c21486992 History backfill, also tests pass. 2015-01-18 18:55:47 -08:00
Andrey Petrov
544c9789c0 /reply command with autocomplete. 2015-01-18 18:11:30 -08:00
Andrey Petrov
12402c2338 Autocomplete commands. 2015-01-18 17:53:29 -08:00
Andrey Petrov
838285ba43 chat.Color->chat.Style, highlighting works. 2015-01-17 13:26:26 -08:00
Andrey Petrov
3c4e6994c2 chat.Channel->chat.Room, /ban, /whois, chat.User.Identifier
- Renamed chat.Channel -> chat.Room
- /ban works, supports IP also
- /whois works
- chat.User now accepts an Identifier interface rather than name
- Tweaked rate limiting
2015-01-16 21:53:22 -08:00
Andrey Petrov
50540d26e9 Passing /kick test. 2015-01-11 14:12:51 -08:00