Simon Ser
bc3abbec32
lib/client: catch handleMessage errors
2021-11-21 13:48:07 +01:00
Simon Ser
4f927b5536
lib/client: always request sasl cap when available
...
This will allow us to issue post-registration SASL commands.
2021-11-21 13:35:32 +01:00
Simon Ser
86b08296a0
lib/client: don't disconnect on SASL error if registered
...
This will let users try multiple auth attempts when we'll implement
post-registration auth.
2021-11-21 13:23:14 +01:00
Simon Ser
25dd6aabf6
lib/client: remove one roundtrip during SASL auth
...
Instead of waiting for the server's empty challenge, send two
AUTHENTICATE commands in a row.
2021-11-21 13:21:42 +01:00
Simon Ser
0af40a1a8e
state: add account to server
2021-11-21 12:13:44 +01:00
Simon Ser
51bf8da3d6
lib/client: don't error out if SASL isn't available on RPL_WELCOME
...
Some servers (soju) might remove the sasl cap on connection
registration.
2021-11-19 19:32:13 +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
c4c0a77162
Avoid inline script in index.html
...
This helps Parcel generate a proper standalone JS bundle.
2021-11-17 10:58:02 +01:00
Simon Ser
3f2553291f
ci: fix deploy branch check again, exclude config.json
2021-11-17 10:45:18 +01:00
Simon Ser
debd50f482
ci: fix deploy branch check
2021-11-17 10:33:16 +01:00
Simon Ser
a57428002f
ci: add deploy task
2021-11-17 10:31:09 +01:00
Simon Ser
bbfeb5bcbc
ci: add .build.yml
2021-11-17 10:20:49 +01:00
Simon Ser
0980983bdc
readme: add link to IRC channel
2021-11-17 10:17:41 +01:00
Simon Ser
e37c2a2cec
Auto-dismiss client error on reconnect
...
References: https://todo.sr.ht/~emersion/gamja/74
2021-11-17 10:12:36 +01:00
Simon Ser
82e5a2795d
Properly handle port in irc:// URLs
2021-11-16 11:52:38 +01:00
Simon Ser
a0b250df3f
Reword ProtocolHandlerNagger message
2021-11-16 11:30:33 +01:00
Simon Ser
321140327e
Add UI to enable protocol handler
2021-11-16 11:19:25 +01:00
Simon Ser
be475026c8
lib/irc: fix handling for prefixes without host
...
name!user is a valid prefix.
2021-11-15 16:05:51 +01:00
Simon Ser
55361c5a2b
Store WHO list in RPL_ENDOFWHO
...
This allows the state-tracker to figure out whether a WHO query
returned no result.
2021-11-10 10:32:23 +01:00
Simon Ser
c11bf6508a
Only allow one WHO command at a time
...
Closes: https://todo.sr.ht/~emersion/gamja/120
2021-11-10 10:08:47 +01:00
Simon Ser
195e4ca371
Don't stop fetching backlog on error
...
Some servers allow fetching history from some targets but not
others. Don't completely stop fetching chat history on error.
The root cause was a variable shadowing in Client.fetchBatch.
2021-11-10 09:53:17 +01:00
Simon Ser
1206cfae37
Add support for draft/extended-monitor
...
References: https://github.com/ircv3/ircv3-specifications/pull/466
2021-11-09 12:50:11 +01:00
Simon Ser
df29650b98
Always insert non-chathistory messages at the end
2021-11-09 10:49:18 +01:00
Simon Ser
94901f1662
Request WHO info w/ empty message list in switchBuffer
2021-11-08 15:03:05 +01:00
Simon Ser
9475ffb8c6
Don't auto-join without prompting user
2021-11-08 13:01:54 +01:00
Simon Ser
f3c48a3748
Add "open" URL param
...
This can be set to an irc:// URL to open. This is useful for
bouncers.
2021-11-08 12:33:02 +01:00
Simon Ser
14031c594b
Ask confirmation before JOIN on irc:// link click
2021-11-08 10:44:10 +01:00
Simon Ser
74fe6ee944
Auto-join when adding new network on irc:// link click
...
Closes: https://todo.sr.ht/~emersion/gamja/111
2021-11-07 19:47:49 +01:00
Simon Ser
a58befd6d7
s/var/let/
2021-11-07 13:51:39 +01:00
Simon Ser
38a3075a2c
Disconnect previous server on connect re-submit
2021-11-07 13:50:26 +01:00
Simon Ser
96dd8476ad
De-duplicate nicks in folded JOIN/PART/QUIT lines
2021-11-05 15:00:08 +01:00
Simon Ser
800f5ceb6a
Keep track of channel join status
...
This makes us behave better when we receive a self-PART message
from the server.
2021-11-05 11:49:56 +01:00
Simon Ser
7b19cf48a4
Add Parcel to dev dependencies
...
Closes: https://todo.sr.ht/~emersion/gamja/119
2021-11-04 12:21:21 +01:00
Simon Ser
50f10a43dd
components/buffer: show MODE target if different from buffer name
...
This happens for user modes, for instance.
2021-11-03 21:58:26 +01:00
Simon Ser
eb66045371
lib/client: use Client.isMyNick to handle self-NICK messages
...
This handles case-mapping.
2021-11-03 21:50:33 +01:00
Simon Ser
a1ab87c71c
Route self-NICK messages to server buffer
2021-11-03 21:49:53 +01:00
Simon Ser
8ebb61cb0e
Route user MODE messages to server buffer
2021-11-03 21:44:24 +01:00
Simon Ser
8f90613951
components/buffer-header: add help text for user details
...
This makes it easier for users new to IRC to figure out what these
things mean. Additionally, it's not possible for a malicious user
to spoof the <abbr> style.
2021-11-03 17:23:32 +01:00
Simon Ser
0888af4a6f
Request more messages for event-playback infinite scrolling
...
When the server supports draft/event-playback, some messages (like
join/part/etc) may be collapsed together. Request more messages to
avoid ending up with a half-filled page.
2021-11-03 16:31:12 +01:00
Simon Ser
08cd94d775
lib/irc: add "fullname" to isMeaningfulRealname
2021-11-02 18:12:18 +01:00
Simon Ser
eec4126562
components/buffer-header: mark unauthenticated users as such
2021-11-02 18:04:53 +01:00
Simon Ser
6acf6d544a
components/buffer-header: skip account name if it matches nick
2021-11-02 18:01:07 +01:00
Simon Ser
ac7785aa7f
lib/client: fix missing account in WHOX
2021-11-02 17:58:00 +01:00
Simon Ser
85e73d0ee8
Add RPL_WELCOME to server buffer
2021-11-02 15:27:24 +01:00
Simon Ser
483f0c65b1
Add hint in server operators buffer header
2021-11-01 18:45:16 +01:00
Simon Ser
33c3cf3278
Remove unnecessary irc.formatDate call
2021-10-29 16:34:50 +02:00
Simon Ser
40210f8b00
Upgrade http-server
2021-10-29 16:25:58 +02:00
Simon Ser
a1057092e0
state: move in QUIT and NICK update logic
2021-10-23 23:24:11 +02:00
Simon Ser
bf471abb1b
Add App.routeMessage
...
This splits handleMessage into two functions: one decides in which
buffers the message should be appended to, the other performs
message side-effects like auto-join.
2021-10-23 23:01:32 +02:00
Simon Ser
c4a1f38b33
state: process RPL_NAMREPLY atomically
...
This allows updating the buf.members map only once when receiving
RPL_ENDOFNAMES, instead of repeatedly re-creating it each time a
RPL_NAMREPLY message is received.
2021-10-23 20:05:07 +02:00