Simon Ser
a514104c55
commands: drop unvoice
...
We have devoice already, and that's the one defined in popular
clients such as WeeChat.
2024-02-15 16:40:41 +01:00
Simon Ser
535bdb2f52
Migrate to async/await
2023-04-19 12:51:13 +02:00
Simon Ser
f45b51d981
commands: fix TypeError in kickban
...
The ban variable was undefined.
2022-04-14 10:53:35 +02:00
delthas
fab42ba2ee
commands: add password param to /join
2022-02-02 20:45:18 +01:00
Simon Ser
9f93e200ed
commands: add comment param to /kick usage
2022-01-31 18:30:48 +01:00
Simon Ser
5d6de11a4c
commands: simplify /who usage string
...
As per https://modern.ircdocs.horse/#who-message
2022-01-09 19:30:01 +01:00
Rafael Castillo
43f1329fb0
Add away command
2021-12-13 17:35:41 +01:00
Simon Ser
4cabae89ff
lib/irc: add CapRegistry
2021-12-10 15:34:51 +01:00
Cara Salter
723951a07b
commands: Add LIST command
...
Signed-off-by: Cara Salter <cara@devcara.com>
2021-11-18 16:24:18 +01:00
Simon Ser
ed41f08ba4
Get rid of a wild var keyword
2021-09-06 16:53:25 +02:00
Simon Ser
c98ad539d5
Add message arg to /query
...
Closes: https://todo.sr.ht/~emersion/gamja/94
2021-07-21 15:21:58 +02:00
Simon Ser
7b11b10955
Add /whowas command
2021-07-03 19:24:20 +02:00
Simon Ser
dc8f95c74d
Improve composer form indentation
2021-06-22 13:38:05 +02:00
Simon Ser
f875426826
Add /unvoice
2021-06-11 13:02:04 +02:00
Simon Ser
4249da4ba8
Add /quiet and /unquiet
2021-06-11 00:27:19 +02:00
Simon Ser
5507b3253b
Mark server buffer as unread after server query command
...
When a command will print its reply in the server buffer, mark it
as unread to make it more obvious where to look.
Closes: https://todo.sr.ht/~emersion/gamja/53
2021-06-10 19:33:59 +02:00
Simon Ser
8972130252
s/var/let/
2021-06-10 18:11:11 +02:00
Simon Ser
0c0f0ab79e
Fix /me failing in user query buffers
...
This is a regression.
2021-06-09 10:17:32 +02:00
Simon Ser
dd753aab2e
Add support for /mode without arguments
2021-06-07 14:12:49 +02:00
Simon Ser
db7aa337cb
Remove App.isChannel
...
Replace all remaining usage with Client.isChannel. Client will be
able to use the ISUPPORT tokens to check if a name is a channel.
2021-06-04 19:13:59 +02:00
Simon Ser
fe9c483570
s/network/server/
...
Closes: https://todo.sr.ht/~emersion/gamja/46
2021-06-03 11:46:50 +02:00
Simon Ser
55882776b0
Make command descriptions more consistent
2021-06-03 10:28:04 +02:00
Simon Ser
291c9e177d
Add /unban
2021-06-03 10:25:33 +02:00
Simon Ser
a2dc045683
Add getActiveChannel
...
Simplifies the command logic
2021-06-03 10:19:09 +02:00
Simon Ser
9067b5a168
Make getActiveClient throw an error if disconnected
2021-06-03 10:19:09 +02:00
Simon Ser
a4294975a2
Add support for /ban without argument
2021-06-03 10:19:09 +02:00
Simon Ser
e271a3cd0e
Add /who
2021-05-31 17:02:56 +02:00
Simon Ser
e90c07e64e
Remove unnecessary if in /ban
...
If whois info is unavailable, the promise is rejected.
2021-05-31 14:53:56 +02:00
Drew DeVault
1dcdb2d778
Add /lusers command
2021-05-29 13:14:07 +02:00
Drew DeVault
65c2816739
Add /invite command
2021-05-29 13:11:11 +02:00
Drew DeVault
0473b9ced7
Add /voice, /devoice
...
This also generalizes the logic for these commands along with /op and
/deop.
2021-05-29 13:06:21 +02:00
Simon Ser
b4367eb13c
Simplify /query usage string
2021-05-28 13:58:39 +02:00
Simon Ser
5b29cf83f6
Add /motd
2021-05-28 11:17:37 +02:00
Drew DeVault
e000832483
Add /ban, /kickban commands
2021-05-27 23:21:01 +02:00
Drew DeVault
121d7ec075
Add /whois command
...
This also rigs up some helpers in Client for handling the whois
response, which I will use for /ban and /quiet and such shortly.
2021-05-27 23:15:53 +02:00
Drew DeVault
f5debac388
Add /op, /deop commands
2021-05-27 23:05:21 +02:00
Simon Ser
74dc78a20b
Fix lib/irc.js import path in commands.js
2021-05-27 21:46:56 +02:00
Simon Ser
9567d56f53
Switch to channel buffer on /join
...
Closes: https://todo.sr.ht/~emersion/gamja/37
2021-05-27 19:10:42 +02:00
Drew DeVault
e2e2f7a8fc
/mode: use active buffer if omitted
2021-05-27 18:02:51 +02:00
Drew DeVault
0b1c4da0ce
Add /stats command
2021-05-27 17:58:54 +02:00
Drew DeVault
51d775dc4c
Add /j alias for /join
2021-05-27 17:52:48 +02:00
Simon Ser
b8c4bb3112
Improve command error reporting
...
state.error is expected to be a String, not an Error.
2021-05-27 11:26:42 +02:00
Simon Ser
d5e21097f8
Add /quote command
...
Closes: https://todo.sr.ht/~emersion/gamja/22
2021-05-27 11:22:34 +02:00
Drew DeVault
d34bff9ed6
Implement /kick and KICK handling in buffers
2021-05-27 10:58:57 +02:00
Simon Ser
695b02caaa
Introduce store helper
...
Responsible for serializing/deserializing data to be saved in
localStorage. Add a prefix to all localStorage entries to avoid
conflicts with other webapps. Stop guarding against localStorage
not existing, browsers can just implement a dumb interface to
disable it.
2021-05-26 18:43:11 +02:00
Simon Ser
12a38ace90
Add support for IRCv3 setname
2021-05-25 20:22:21 +02:00
Simon Ser
e0cde27d66
Add simple /mode command
2021-05-23 11:41:04 +02:00
Simon Ser
78f22fce4e
Add help section for commands
2021-03-08 17:25:00 +01:00
Simon Ser
17a2d48b2e
Add help dialog with keybindings reference
2021-03-08 17:05:48 +01:00
Simon Ser
718929f0d2
Sort commands by name
2021-03-07 21:06:26 +01:00