aboutsummaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of codeberg:emersion/gamjaRunxi Yu2024-08-151-1/+1
|\
| * lib/irc: remove stray hardcoded constantSimon Ser2024-08-131-1/+1
| |
* | Merge branch 'master' of codeberg:emersion/gamjaRunxi Yu2024-07-252-8/+25
|\|
| * lib/client: add support for AUTHENTICATE chunkingSimon Ser2024-06-302-8/+25
| | | | | | | | | | SASL responses need to be split into 400 byte chunks before being sent to the server.
* | Merge branch 'master' of https://git.sr.ht/~emersion/gamjaRunxi Yu2024-06-272-2/+11
|\|
| * Hide replies to our own internal WHO commandsSimon Ser2024-04-171-1/+6
| | | | | | | | References: https://todo.sr.ht/~emersion/gamja/88
| * lib/client: fix number of field check in RPL_WHOSPCRPLSimon Ser2024-04-171-1/+1
| | | | | | | | The first field is the client.
| * Add support for soju.im/filehostSimon Ser2024-04-161-0/+4
| | | | | | | | | | | | For now, only handle paste events containing files. Co-authored-by: Alex McGrath <amk@amk.ie>
* | Revert "lib/client.js: hardcode username"Ferass El Hafidi2024-04-181-1/+1
| | | | | | | | This reverts commit fb16317f66b6861fe9a541823db99066813547df.
* | lib/client: 'fix' error reportingFerass El Hafidi2024-03-241-4/+0
| |
* | lib/client: add delay before AUTHENTICATE <base64> and CAP ENDFerass El Hafidi2024-03-241-2/+6
| | | | | | | | This hack fixes SASL login on InspIRCd.
* | lib/client: disable batch capFerass El Hafidi2024-03-221-1/+0
| | | | | | | | | | This fixes chat history on InspIRCd. XXX: Hacky 'solution'
* | lib/client.js: hardcode usernameFerass El Hafidi2024-03-221-1/+1
|/
* lib/irc: fix whitespace RegExp test in isURIPrefixSimon Ser2024-03-131-2/+2
|
* lib/irc: fix assignment to undefined variable in isURIPrefixSimon Ser2024-03-071-1/+1
|
* lib/irc: fix whitespace split in isURIPrefixSimon Ser2024-03-071-3/+5
| | | | We want to get the last index of whitespace, not the first one.
* lib/irc: ignore highlights in URLsSimon Ser2024-03-021-1/+25
|
* lib/client: print raw messages in debug modeSimon Ser2024-03-011-4/+7
| | | | | Browser consoles aren't super helpful in general and just show the command name, require extra clicks to see the params.
* lib/linkify: add geo URI schemeSimon Ser2024-01-101-0/+1
|
* Upgrade linkifyjs to v4Simon Ser2024-01-102-29/+25
|
* lib/client: ensure server prefix is never nullSimon Ser2023-08-171-2/+4
| | | | | Fixes a null deref in handleChatMessage, because incoming message prefixes are populated with the server's if null.
* Migrate to async/awaitSimon Ser2023-04-191-39/+33
|
* lib/irc: add formatURLSimon Ser2023-04-191-0/+11
|
* lib/client: encode empty SASL response as "+"Simon Ser2023-03-211-1/+1
|
* Fix stripping hex color formattingdelthas2022-12-021-1/+23
| | | | | | | | | | | Hex colors can be set with the same formats as the regular colors: <CODE>, <CODE><COLOR>, or <CODE><COLOR>,<COLOR>. Previously we only supporteed <CODE><COLOR>. This patch enables stripping colors for all valid color formats. Co-authored-by: Simon Ser <contact@emersion.fr>
* Move msg.tags fallback to clientSimon Ser2022-11-301-0/+3
|
* lib/client: unify checks for chathistory endSimon Ser2022-11-301-1/+1
|
* Use ratified extended-monitor cap nameSimon Ser2022-11-061-0/+1
| | | | References: https://github.com/ircv3/ircv3-specifications/pull/508
* Add support for OAuth 2.0 authenticationSimon Ser2022-10-142-0/+116
|
* Drop support for soju.im/readSimon Ser2022-09-031-14/+3
| | | | It's been superseded by draft/read-marker.
* Fix draft/read-marker cap not negotiatedSimon Ser2022-09-031-0/+1
| | | | Fixes: 1428ec4d4991 ("Add support for draft/read-marker")
* Fetch read marker before backlog for user targetsSimon Ser2022-09-031-0/+5
|
* Limit composer lengthSimon Ser2022-08-281-0/+30
| | | | Often times IRC servers will truncate messages which are too big.
* Ignore RPL_CHANNEL_URLSimon Ser2022-08-221-0/+1
|
* Add support for draft/read-markerSimon Ser2022-07-011-0/+28
| | | | References: https://github.com/ircv3/ircv3-specifications/pull/489
* Workaround the sad state of base64 web APIsSimon Ser2022-06-242-2/+45
| | | | | This is necessary to make usernames/passwords with UTF-8 in them work correctly.
* Add a settings dialogSimon Ser2022-06-081-1/+4
| | | | | | Add an option to hide chat events or always expand them. Closes: https://todo.sr.ht/~emersion/gamja/73
* Add support for bot modeSimon Ser2022-06-081-0/+4
| | | | References: https://ircv3.net/specs/extensions/bot-mode
* Handle CHATHISTORY messages when reaching end of batchSimon Ser2022-04-221-2/+2
| | | | Closes: https://todo.sr.ht/~emersion/gamja/115
* lib/irc: fix bound check in isHighlightSimon Ser2022-02-251-1/+1
| | | | | Doesn't seem like this was causing any issues, but let's fix the logic regardless.
* lib/irc: remove unnecessary non-breaking-space caseSimon Ser2022-02-251-2/+0
| | | | Handled by the default case already.
* lib/irc: add missing num range to alphaNum regexpSimon Ser2022-02-251-1/+1
|
* lib/irc: drop outdated CapRegistry TODOSimon Ser2022-02-161-1/+0
|
* Add support for soju.im/readSimon Ser2022-02-111-0/+1
|
* fix ping after reconnectДамјан Георгиевски2022-02-041-0/+2
| | | | | | | | | client.setPingInterval was only called once in app.connect(), but client.disconnect() disables it, and the ping timer is never again set, even though the client can reconnect. the change passes the ping time as a parameter to the client, and the client calls setPingInterval() after a successful WS open event.
* commands: add password param to /joindelthas2022-02-021-2/+6
|
* lib/irc: add missing Isupport.chanModesSimon Ser2022-01-311-3/+14
| | | | It was called by forEachChannelModeUpdate, but wasn't implemented.
* lib/irc: add CapRegistrySimon Ser2021-12-102-48/+78
|
* Implement exponential backoff for reconnectionsSimon Ser2021-12-071-3/+40
| | | | Closes: https://todo.sr.ht/~emersion/gamja/118
* Refactor ISUPPORT handlingSimon Ser2021-12-072-63/+99
| | | | | | Add a helper class to parse ISUPPORT tokens. Instead of having manual ISUPPORT handling all over the place, use pre-processed values.