126 Commits

Author SHA1 Message Date
Steven L
1102162d1f message.go: stripping emoji for when no theme is set 2022-07-28 12:29:53 -04:00
Akshay Shekher
d25630020d
/back, /away: Change no-op to return err
Fixes #402

When the user is not set as away, using the
`/back` or `/away` command should return error.
The previous behaviour was inconsistent,
`/away` sent a message and `/back` ignored it.
New behaviour is error for both cases.

Co-authored-by: Akshay <akshay.shekher@gmail.com>
2021-10-13 11:00:11 -04:00
Andrey Petrov
c3dccfd3eb
chat: /back help formatting. 2021-04-24 12:14:24 -04:00
Akshay
aae5bc8d2e Added /back and tests for all away commands 2021-04-24 07:54:50 -07:00
Andrey Petrov
37b101c3c1 chat: Add /mute command for op 2021-04-13 11:21:16 -04:00
Andrey Petrov
7a783d46af sshd, chat/message: Add more debug logging for close failures 2021-04-05 11:06:44 -04:00
Andrey Petrov
9329227403 chat: /away tweaks 2021-03-15 10:53:00 -04:00
Akshay
0338cb824d chat: Added support for user away status, fixes #377
made away toggle status, like irc

updated /away feature

* added away message
* added broadcast away message as emote
* updated names list to show away users on the same line, with colors

added /away -> back message

Update away time to be time since marked away

reverted changes made for /list
2021-03-15 10:30:54 -04:00
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