78 Commits

Author SHA1 Message Date
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
Andrey Petrov
587b487927 Mild refactoring towards decoupling channel from host. 2015-01-10 20:11:46 -08:00
Andrey Petrov
723313bcb2 Bugfixen. 2015-01-10 19:48:17 -08:00
Andrey Petrov
e626eab624 /kick and /msg 2015-01-10 18:05:31 -08:00
Andrey Petrov
d5626b7514 Abstracted sshd.Connection; Op works now. 2015-01-10 13:46:36 -08:00
Andrey Petrov
0c5c7b50b6 Resolve name collision to GuestX, with test. 2015-01-06 21:42:57 -08:00
Andrey Petrov
4dd80fb822 Tests pass. 2015-01-01 18:51:34 -08:00
Andrey Petrov
6a662bf358 Channel Member now wrapping User with metadata, new Auth struct. 2015-01-01 18:40:10 -08:00
Andrey Petrov
6f7410c7a0 Making a dent in golint: 94 -> 70 2014-12-26 17:59:29 -08:00
Andrey Petrov
4c5dff7960 Themes are working, and /theme command. 2014-12-26 17:40:57 -08:00
Andrey Petrov
b40136c3e1 Added /nick and /exit commands. 2014-12-26 14:34:13 -08:00
Andrey Petrov
dac5cfbb5e Split up message types, added exit codes, basic command handling. 2014-12-25 16:25:02 -08:00
Andrey Petrov
3bb4bbf991 AutoCompleteFunction is back. 2014-12-25 00:37:50 -08:00
Andrey Petrov
d3b0a56d78 Added Host struct. 2014-12-25 00:09:43 -08:00