22 Commits

Author SHA1 Message Date
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
50022e9e44 broken: Split UserScreen into PipedScreen, BufferedScreen, HandledScreen 2017-04-28 11:43:15 -04:00
Andrey Petrov
33a76bb7f4 broken: Use Member rather than message.User when possible; chat tests are broken. 2017-04-28 11:43:15 -04:00
Andrey Petrov
01b989cab2 chat/message/user: screen -> WriteCloser embedded 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
4bca1f0294 refactor: Identifier.SetID -> Identifier.SetName
Identifier.ID() is now read-only and derived from name.
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
Andrey Petrov
cdcc4a9931 refactor: User.Config -> User.Config() and User.SetConfig(UserConfig) 2016-08-29 10:11:39 -04:00
Andrey Petrov
454777448f refactor: User.SetColorIdx -> User.setColorIdx, preparing to abstract user 2016-08-29 09:58:17 -04:00
Andrey Petrov
33d7d26a17 chat/message: Remove User.Ignore(...) and User.Unignore(...)
Also changes some messaging
2016-08-27 15:15:07 -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
Andrey Petrov
f6e022548c chat/message: Fix highlighting and BEL, fix race condition.
Fixes #169
2016-08-11 15:35:50 -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
Federico Ruggi
58e1cb60bd commands: /ignore, /unignore
#154
* Add `/ignore`/`/unignore` commands
* Move set to common package, use set for ignores
* `chat/set.go` is now `common/set.go`
* use `*IdSet` as type for ignored list for users
* remove `IsIgnoring` and `IgnoredNames` user functions, so to use directly `IdSet` methods
* refactor code accordingly
2016-08-01 11:19:12 -04:00
Andrey Petrov
50d2be3a88 Fixed message buffer timeout 2016-07-24 16:17:02 -04:00
Andrey Petrov
3ba0c59341 Unflake tests, remove lock from chat/message.User 2016-07-24 16:17:02 -04:00
Andrey Petrov
e6f7dba34e Progress: Unchan user 2016-07-24 16:17:02 -04:00
Andrey Petrov
9bf1f53445 Fixed /kick command to actually close target 2016-07-15 16:22:25 -04:00
Andrey Petrov
c2adb4d632 ssh-chat/chat/{message,user,theme,history} -> ssh-chat/chat/message 2015-01-20 16:33:52 -08:00