Commit Graph

8 Commits

Author SHA1 Message Date
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