Commit Graph
56 Commits
Author SHA1 Message Date
Akshay ShekherandAkshay 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 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 aa78d0eb22 chat: Add /focus command
Only show messages from focused users
2020-08-03 11:32:55 -04:00
Andrey Petrov 86b70a1fc7 chat: go fmt 2020-07-30 12:05:38 -04:00
Lucas Hourahine 09c8bbdd4c sorting nicks on /names and /list 2020-07-16 13:25:14 -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 a90574126e /timestamp: Switch TZINFO with UTC offset 2019-03-17 16:00:48 -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
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
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
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
Oliver Graff a631215f5b /nick: Avoid announcing when it's the same nick (#237)
Fixes #234
2017-06-13 11:12:32 -04:00
Steven L 227dad7492 command.go: modifying Theme command to show all available themes (#232)
command.go: modifying Theme command to show all available themes
2017-05-07 17:48:08 -04:00
Andrey Petrov cdcc4a9931 refactor: User.Config -> User.Config() and User.SetConfig(UserConfig) 2016-08-29 10:11:39 -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 981376f018 /help: Improve help for /ignore and /theme 2016-08-16 10:19:47 -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
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
Matt Day 0ab31046c0 Fix go vet nitpicks.
Fixes #130:
* pass by reference into AllowAnonymous
* check return value of From() rather than value of From function
2015-08-20 04:28:52 -06: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 6c83bcb06a Rename fix. 2015-01-18 20:16:08 -08:00
Andrey Petrov 76bfdeeb70 /slap 2015-01-18 20:07:21 -08:00
Andrey Petrov 84df305ddf /op with pubkey. 2015-01-18 20:03:08 -08:00
Andrey Petrov 0c21486992 History backfill, also tests pass. 2015-01-18 18:55:47 -08:00
Andrey Petrov 544c9789c0 /reply command with autocomplete. 2015-01-18 18:11:30 -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
Andrey Petrov e626eab624 /kick and /msg 2015-01-10 18:05:31 -08:00
Nick Presta a2ee2000bb Adding impl for quiet mode with tests. 2015-01-03 01:52:11 -05:00
Andrey Petrov 4dd80fb822 Tests pass. 2015-01-01 18:51:34 -08:00
Andrey Petrov 6a662bf358 Channel Member now wrapping User with metadata, new Auth struct. 2015-01-01 18:40:10 -08:00
Andrey Petrov 6874601c0b Op command support, and /op 2015-01-01 17:09:08 -08:00
Andrey Petrov 3b5f4faf76 Padded help output, because why not. 2015-01-01 16:17:58 -08:00
Andrey Petrov fb7cd83821 CommandHandler func -> Command struct 2015-01-01 15:37:28 -08:00
Andrey Petrov 6f7410c7a0 Making a dent in golint: 94 -> 70 2014-12-26 17:59:29 -08:00
Andrey Petrov 4c5dff7960 Themes are working, and /theme command. 2014-12-26 17:40:57 -08:00
Andrey Petrov f3a4045ed9 Added /nick, /names 2014-12-26 16:05:04 -08:00