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
Simon Ser
6c0878eeac
Remove duplicate command impl
2021-03-07 21:03:52 +01:00
Simon Ser
ae914d4106
Fix buffer refs in commands
2021-03-03 09:58:09 +01:00
Simon Ser
80e0175d36
Make all resource paths relative
...
Closes: https://todo.sr.ht/~emersion/gamja/17
2021-03-02 22:46:48 +01:00
Simon Ser
2f70256037
Multiple clients per app
2021-01-22 17:36:53 +01:00
Simon Ser
3975467764
Drop state.activeNetwork
...
Just grab it from state.activeBuffer's network.
2021-01-22 10:38:07 +01:00
Simon Ser
ffed801b0e
Take a buffer ID in switchBuffer
2021-01-21 22:15:33 +01:00
Simon Ser
5a1e6ba813
Introduce state.networks
2021-01-21 19:01:50 +01:00
Simon Ser
f35f316577
Add disconnect/reconnect commands
2021-01-12 10:35:38 +01:00
Simon Ser
4b165054a4
Reconnect when loosing connection
2021-01-11 18:12:28 +01:00
Simon Ser
11660e4409
Add /notice command
2020-08-13 11:04:39 +02:00
Simon Ser
476c135379
Extract commands to separate file
2020-07-13 17:22:24 +02:00