This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some IRC servers support STATUSMSG. STATUSMSG allows sending messages to a subset of a channel's users, based on their mode. By sending a message to +#channel, only people who have voice or higher will receive the message. Previously, Cinch didn't take this into account at all. Message#channel would be nil and Message#reply only worked by chance (Cinch thought that +#channel was a user and replied to it). The new support explicitly supports STATUSMSG. For a message sent to +#channel, Message#channel will return #channel and Message#reply will reply to +#channel. Additionally, an attribute called Message#statusmsg_mode was added, which would contain the STATUSMSG mode that was addressed, using mode characters, not sigils. For +#channel, statusmsg_mode would be "v". There is currently no direct support for sending arbitrary STATUSMSG messages. That is, Channel has no APIs for it. Users who really need it have to construct their own Target instance. New APIs might be added in the future.
- Loading branch information
Showing
1 changed file
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters