Feature #160
Add more context to MessageEvent
Start date:
January 25, 2016
Due date:
% Done:
0%
Estimated time:
Description
It would be useful to be able to know more about a user than just their name (ident and host).
For example, tracking and parsing user modes would allow us to limit certain commands to only operators on a channel.
This will require adding support for accessing Hecate's Core or Hook class from Core plugins (to allow tracking without ending up with a dependency on IRC connections).
Updated by ChalamiuS about 8 years ago
Because of the synchronous events in #161 there might be no need for this module to be able to access the core any more, which is a good thing.
Updated by ChalamiuS about 8 years ago
- Status changed from New to Assigned
To keep track of user modes the module would have to keep track of the following things:
- JOIN (add the user to context without any modes)
- PART & QUIT & KICK (remove the user from context)
- MODE (updating user modes)
- NAMES (353 & 366 for loading modes from users that are already there)
"Shortcuts" for getting user and channel context from a message should be added to the ModuleBase class so that the classes don't have to implement calls to Hooks.request on their own.