Andrey Petrov
7461ca8e39
chat/message: Use user.ID() names for mono bot theme
2020-08-03 13:57:11 -04:00
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
86b70a1fc7
chat: go fmt
2020-07-30 12:05:38 -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
Pavel Zaitsev
e5374b7111
update, to fix tests.
2020-07-24 10:44:23 -04:00
Pavel Zaitsev
5ff2ea085b
in autocomplete list moves your name to last item in the list of sorted current users
2020-07-24 10:16:29 -04:00
Lucas Hourahine
09c8bbdd4c
sorting nicks on /names and /list
2020-07-16 13:25:14 -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
Andrey Petrov
544f208473
chat: Fix ignore test, reduce flakeyness
2020-05-01 11:41:35 -04:00
Andrey Petrov
fda705a2dc
chat: Clean up ignore comparisons
2020-05-01 11:41:19 -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
fde04365ac
Fix test comment
2020-04-30 00:34:40 +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
c0f9814ae1
chat: Disable broken TestIgnore test
2020-04-13 10:55:41 -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
2089eda486
chat: Fix runtime bug with uninitialized strings builder
2019-03-18 10:08:12 -04:00
Andrey Petrov
5ff61f0a0f
/timestamp: Remove timezone by default for now
2019-03-17 16:05:38 -04:00
Andrey Petrov
a90574126e
/timestamp: Switch TZINFO with UTC offset
2019-03-17 16:00:48 -04:00
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
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
eb10bad08e
sshchat, chat: Override terminal echo and do our own echo
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
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
Ulisse Mini
953c3d46b2
chat: Use strings.Builder
2019-02-24 09:40:47 -06:00
UlisseMini
4c968fc966
chat: Use a string instead of a bytes.Buffer
2019-02-24 09:40:47 -06: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
903d6c9420
/ban query support ( #286 )
...
For #285
Turns out there were some bugs in Set, and I was using it incorrectly too.
The query syntax is a little awkward but couldn't find a nicer easy to parse format that worked with quoted string values.
2018-12-25 14:29:19 -05:00
Boris Verhovsky
75492825e9
/shrug: Ignore additional arguments
2018-09-06 14:04:26 -05:00
Andrey Petrov
d73aae0f15
/shrug ¯\_(ツ)_/¯
2018-01-19 13:41:24 -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
goose121
fd77009f8d
Strip control characters from metadata inputs ( #257 )
2018-01-02 20:27:54 -05:00
Steven L
206a9073f0
Colorize /name output with selected theme ( #249 )
...
* command.go: colorizing names according to theme (#205 )
* Adding safety check for nil and mono
* Refactoring coloring into a function
2017-10-04 13:20:01 -04:00
Dmitri Shuralyov
50001bf172
Travis: Check for gofmt issues. ( #241 )
...
* Travis: Check for gofmt issues.
This will help catch issues like https://github.com/shazow/ssh-chat/pull/240#discussion_r127626103
in CI.
* chat: Fix gofmt issue.
2017-07-17 15:03:55 -04:00
Andrey Petrov
e3b5c3712c
chat/doc: gofmt
2017-07-17 10:28:33 -04:00
JimmyBot
2c1e5239c5
docs: Typo and odd grammar fix ( #240 )
...
* Typo and odd grammar
* Forgot a word in my edit
2017-07-16 10:47:45 -04:00