20 Commits

Author SHA1 Message Date
Andrey Petrov
078fbbe828 chat, internal/humantime: Tweak departure message 2019-03-17 15:01:41 -04:00
Andrey Petrov
fa516ba085
Merge pull request #304 from shazow/autocomplete-sort
chat: Sort NamesPrefix by recently active
2019-03-17 14:42:04 -04:00
Andrey Petrov
1c44c714e6 chat: Sort NamesPrefix by recently active 2019-03-17 14:41:03 -04:00
Andrey Petrov
eb10bad08e sshchat, chat: Override terminal echo and do our own echo 2019-03-16 11:52:07 -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
UlisseMini
40f6957e93 chat: Better comments 2019-02-24 09:40:47 -06: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
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
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
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
3ba0c59341 Unflake tests, remove lock from chat/message.User 2016-07-24 16:17:02 -04:00
Andrey Petrov
ea2d4d0dfc chat: Fix race conditions. 2016-07-12 11:18:07 -04:00
Andrey Petrov
bb1d568b38 Make Set private. 2015-01-20 16:44:35 -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
9335a2139b Sanitize names on join and /nick. 2015-01-20 14:13:59 -08:00
Andrey Petrov
797d8c92be --log file with timestamps 2015-01-18 22:05:49 -08:00
Andrey Petrov
0c21486992 History backfill, also tests pass. 2015-01-18 18:55:47 -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