diff options
| author | 2018-08-12 14:56:27 +0100 | |
|---|---|---|
| committer | 2018-08-12 15:01:45 +0100 | |
| commit | ba23c2b115ad3bf2632179d283165c1579332fd8 (patch) | |
| tree | 992b199acb6e10e75ab18422147de1cf377a65b4 /src/modules.cpp | |
| parent | Pass the Extensible container to ExtensionItem::free(). (diff) | |
Convert AWAY to use cross-module events and clean up slightly.
OnSetAway has been replaced with four events. OnUserPreAway and
OnUserPreBack can be used to deny an away state change and/or
change the away message of a local user. OnUserAway and OnUserBack
allow modules to be notified that a user's away state has changed.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 56ed3c828..8f2d874dc 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -127,7 +127,6 @@ void Module::OnExpireLine(XLine*) { DetachEvent(I_OnExpireLine); } void Module::OnCleanup(ExtensionItem::ExtensibleType, Extensible*) { } ModResult Module::OnChannelPreDelete(Channel*) { DetachEvent(I_OnChannelPreDelete); return MOD_RES_PASSTHRU; } void Module::OnChannelDelete(Channel*) { DetachEvent(I_OnChannelDelete); } -ModResult Module::OnSetAway(User*, const std::string &) { DetachEvent(I_OnSetAway); return MOD_RES_PASSTHRU; } void Module::OnBuildNeighborList(User*, IncludeChanList&, std::map<User*,bool>&) { DetachEvent(I_OnBuildNeighborList); } void Module::OnGarbageCollect() { DetachEvent(I_OnGarbageCollect); } ModResult Module::OnSetConnectClass(LocalUser* user, ConnectClass* myclass) { DetachEvent(I_OnSetConnectClass); return MOD_RES_PASSTHRU; } |
