47 Commits

Author SHA1 Message Date
Andrey Petrov
e0ab53500e
Merge branch 'master' into sponsor-prefix 2020-08-03 11:41:19 -04:00
Andrey Petrov
aa78d0eb22 chat: Add /focus command
Only show messages from focused users
2020-08-03 11:32:55 -04:00
Andrey Petrov
987a2e870a chat/message: Set LastMsg during render of self public messages, fix sorting
Also fixed chat tests
2020-07-30 12:52:32 -04:00
Andrey Petrov
7822904afc
chat/message: Fix RecentActiveUsers sort order 2020-07-30 12:02:07 -04:00
Pavel Zaitsev
5885f7fbdd updated tests, moved code closer to the caller.
* addded condition for zero time on lastMsg.

* removed extra paramter in NamePrefix
* moved code from NamePrefix to completeName
* removed extra parameter in tests calling to NamePrefix
2020-07-29 18:23:34 -04:00
Andrey Petrov
cb0bdc8e0e chat: Use user.ID() instead of user.Name() 2020-06-24 13:53:14 -04:00
Andrey Petrov
36843252b4 chat, main: Add /rename op command 2020-06-24 12:36:02 -04:00
Abdelkader Bouadjadja
6fe0b40327 Ignored people still show up when they send private /msg 2020-04-30 05:09:21 +04:00
Abdelkader Bouadjadja
7169ee1240 Ignored people still show up when they /me emote 2020-04-30 00:28:06 +04:00
Andrey Petrov
2076980aea chat/message: Add UserConfig.Echo 2020-04-13 11:22:53 -04:00
Andrey Petrov
5057b891c0 chat/message: Handle nil theme (mono)
Fixes #310
2019-03-24 18:59:33 -04:00
Andrey Petrov
338ded7a4e chat/message: Fix tests 2019-03-22 16:04:59 -04:00
Andrey Petrov
c058f72fe4 /timestamp, /theme: Fix rendering, add tests 2019-03-22 15:27:00 -04:00
Andrey Petrov
c5cc4b0594 /timestamp: time and datetime modes 2019-03-21 17:12:32 -04:00
Andrey Petrov
5ff61f0a0f /timestamp: Remove timezone by default for now 2019-03-17 16:05:38 -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
9c3db55c83 sshchat: Echo command messages with the new timestamp code. 2019-03-17 13:50:01 -04:00
Andrey Petrov
8282fad7dc chat: Add timezone support to /timestamp 2019-03-16 12:20:43 -04:00
Andrey Petrov
54ce8bb08d chat: Remove injectTimestamp after 30min stuff 2019-03-16 11:52:07 -04:00
Andrey Petrov
783c607fad chat/message: Add second resolution 2019-03-16 11:52:07 -04:00
Andrey Petrov
33d0c08ffe chat/message: Add PublicMsg.RenderSelf(...) to support old-style formatting 2019-03-16 11:52:07 -04:00
Andrey Petrov
dca2cec67f chat/message: Add timestamp prefix support 2019-03-16 11:52:07 -04: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
87dd859fed /timestamp: Toggle timestamps after 30min of inactivity
Closes #244

CC #194, #99, #242
2018-01-19 13:35:42 -05: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
2017-05-11 11:23:29 -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
1b7af5e559 chat/message/theme: Cleanup and refactor, tweak solarized. 2016-08-13 13:59:37 -04:00
Andrey Petrov
972bb86621 chat/message/theme: Tweak default colorscheme
Fewer grey names, lighter grey for system messages.
2016-08-12 17:13:11 -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
92d821387b chat/message/theme: Apply PM colors, add new themes to /help, cleanup.
Fixes #191.
2016-08-11 15:09:59 -04:00
S Leibrock
f870c5761d chat/message/theme: Two new themes, solarized and hacker (#196) 2016-08-08 13:23:51 -04:00
S Leibrock
ef2cec2758 chat/message/theme: Fixing zero division error for one color themes (#195) 2016-08-07 15:12:19 -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
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
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
62fbe2dc32 chat/message: Consistent value receivers 2016-07-17 14:51:03 -04:00
Andrey Petrov
9bf1f53445 Fixed /kick command to actually close target 2016-07-15 16:22:25 -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