aboutsummaryrefslogtreecommitdiff
path: root/lib/irc.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lib/irc: remove stray hardcoded constantSimon Ser2024-08-131-1/+1
|
* lib/client: add support for AUTHENTICATE chunkingSimon Ser2024-06-301-0/+18
| | | | | SASL responses need to be split into 400 byte chunks before being sent to the server.
* 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>
* 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/irc: add formatURLSimon Ser2023-04-191-0/+11
|
* 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 bot modeSimon Ser2022-06-081-0/+4
| | | | References: https://ircv3.net/specs/extensions/bot-mode
* 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
|
* 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-101-0/+64
|
* Refactor ISUPPORT handlingSimon Ser2021-12-071-19/+79
| | | | | | Add a helper class to parse ISUPPORT tokens. Instead of having manual ISUPPORT handling all over the place, use pre-processed values.
* Add Client.join, show join errors in popupSimon Ser2021-12-041-0/+6
|
* lib/client: add generic error handling to roundtrip()Simon Ser2021-12-041-0/+4
|
* Ignore RPL_AWAYSimon Ser2021-11-231-0/+1
|
* lib/irc: fix handling for prefixes without hostSimon Ser2021-11-151-16/+16
| | | | name!user is a valid prefix.
* lib/irc: add "fullname" to isMeaningfulRealnameSimon Ser2021-11-021-1/+1
|
* lib/irc: extend parseURL to support flags and skip auth + optionsSimon Ser2021-10-201-9/+45
|
* Unescape ISUPPORT valuesSimon Ser2021-10-181-1/+8
| | | | | | This allows ISUPPORT values to contain spaces. References: https://github.com/ircdocs/modern-irc/pull/137
* lib/irc: "unknown" is not a meaningful realnameSimon Ser2021-10-151-1/+1
|
* Handle IRC URLs without channel nameSimon Ser2021-10-131-4/+4
|
* Handle click on irc:// channel URLs inside buffersSimon Ser2021-10-131-0/+24
| | | | References: https://todo.sr.ht/~emersion/gamja/71
* components/buffer: pretty-print RPL_CHANNELMODEIS and RPL_CREATIONTIMESimon Ser2021-10-061-1/+1
|
* components/buffer: add RPL_UMODEIS pretty-printingSimon Ser2021-10-051-0/+1
|
* Hide meaningless real namesSimon Ser2021-09-211-0/+17
|
* Add support for WHOXSimon Ser2021-09-211-0/+1
| | | | This allows querying the account of the user.
* lib/irc: drop CRLF for outgoing messagesSimon Ser2021-09-181-1/+0
| | | | | | Trailing CRLF must not be included in WebSocket messages. Closes: https://todo.sr.ht/~emersion/gamja/104
* Fix double space introduced before last paramHubert Hirtz2021-09-171-1/+3
|
* lib/irc: fix formatMessage when last arg starts with colonSimon Ser2021-09-081-1/+1
| | | | Fixes: a51be5037d3f ("lib/irc: only add colon to trailing arg when necessary")
* lib/irc: only add colon to trailing arg when necessarySimon Ser2021-09-061-4/+7
| | | | | | | | This mirrors go-irc's behavior: https://github.com/go-irc/irc/blob/7ba1a1858f5ee2a44f18501b486ec11dd1990018/parser.go#L374 Closes: https://todo.sr.ht/~emersion/gamja/103
* Add support for MONITORSimon Ser2021-08-241-1/+8
|
* Handle RPL_INVITINGSimon Ser2021-06-241-0/+1
|
* Treat server broadcasts as highlightsSimon Ser2021-06-231-0/+7
|
* Add irc.forEachChannelModeUpdate helperSimon Ser2021-06-111-0/+47
|
* Add /quiet and /unquietSimon Ser2021-06-111-0/+3
|
* s/var/let/Simon Ser2021-06-101-58/+58
|
* Route channel mode and invite/except list to channel bufferSimon Ser2021-06-071-0/+6
|
* Add case-mapping support to irc.isHighlightSimon Ser2021-06-061-4/+6
| | | | Closes: https://todo.sr.ht/~emersion/gamja/77
* Add support for labeled-responseSimon Ser2021-06-041-0/+16
| | | | | It's just used to avoid mixing up messages coming from the server so far.
* Add support for draft/event-playbackSimon Ser2021-06-041-0/+11
|
* Use ISUPPORT CHANTYPES in Client.isChannelSimon Ser2021-06-041-1/+1
|
* Add support for STATUSMSGSimon Ser2021-06-031-3/+2
| | | | Closes: https://todo.sr.ht/~emersion/gamja/65
* lib/irc: rename IRC prefix utilitiesSimon Ser2021-06-031-5/+6
|
* Add support for /ban without argumentSimon Ser2021-06-031-0/+2
|