Commit Graph

16 Commits

Author SHA1 Message Date
ee1c72a7f5
Chores: lint, nolint, fmt, etc 2022-10-23 02:01:03 -07:00
00308d0ce6
Fix bugs from merge 2022-03-21 17:08:41 -07:00
4be5266426
Merge from yung stanley's master branch
Signed-off-by: kayos@tcp.direct <kayos@tcp.direct>
2022-03-21 17:06:14 -07:00
Liam Stanley
b5af8a2128
add RPL_CREATIONTIME
Signed-off-by: Liam Stanley <me@liamstanley.io>
2022-03-21 16:19:03 -04:00
8b3710579e
Add: missing ALREADYOPER error 2022-03-19 17:13:01 -07:00
5e68e20bbb
Add: codes + event.IsError() 2022-03-19 12:36:33 -07:00
de1dae9799
Remove unnecessary debug output 2022-03-16 10:09:43 -07:00
5ea3252b9b New: handle RPL_CREATIONTIME 2021-11-26 00:53:20 -08:00
Liam Stanley
634e679a3d initial sts functionality 2019-07-11 23:36:29 -04:00
Liam Stanley
b8ad83b1fb re-add draft versions of message-tags and msgid for backwards compatibility 2019-07-04 15:53:02 -04:00
Liam Stanley
0c617b31b8 update to non-draft message-tags spec 2019-07-04 14:40:45 -04:00
Liam Stanley
c1e59a02f4 add WebIRC support; closes #33 and #34 2019-01-02 10:33:29 -05:00
nmeum
ec512cad4f Preliminary support for the MONITOR command (#22)
This commit adds support for the IRCv3.2 MONITOR command [1]. This
includes a new function for sending MONITOR commands to the IRC server
and constants for creating handlers for the server responses.

Discussion: Currently no fancy abstraction is offered for the MONITOR
command. Meaning the caller can:

1. Send MONITOR commands to the server with invalid modifier, where
   `modifier ∉ {+, -, C, L, S}`.
2. Add a target to the list of targets being monitored which is already
   in that list. Which the client MUST NOT do according to the
   specification.

Both 1. and 2. could be addressed by implementing separate functions for
the different MONITOR command modifiers (e.g. `MonitorAdd()`,
`MonitorDel()`, …). If 2. is not considered an issue and should be
resolved by the caller 1. could alternatively by defining a new type for
the modifier.

An entirely different solution would be adding methods for monitoring to
the `User struct`. For example: `User.Monitor(), User.Unmonitor(), …`.

[1]: https://ircv3.net/specs/core/monitor-3.2.html
2018-12-10 08:49:51 -08:00
Liam Stanley
618b32529b STOPPED -> CLOSED; re-add DISCONNECTED (fixes #26) 2018-12-09 17:01:19 -08:00
Liam Stanley
bbccf004ba add: expose CTCP encode/decode; add: Event.IsCTCP()
closes #20
2018-09-30 19:28:09 -04:00
Liam Stanley
e4e045f864 spelling.. 2018-01-28 16:30:54 -05:00