diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-02 08:20:59 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-02 08:20:59 +0000 |
| commit | a819cb0cc0f54a042a088dfba9c1f6b817928641 (patch) | |
| tree | 7931a9d81367c184ca2550a1819ef685e3e0c927 /include/modules.h | |
| parent | 3617d7978899f830d952d9bac70ed14bb0cc0fd6 (diff) | |
Rewrote the vhost code, and moved it to be part of nickalias instead of in its own list. This also fixes being able to steal other users vhosts with /hs on
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2724 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
| -rw-r--r-- | include/modules.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/include/modules.h b/include/modules.h index 129e2666d..bfd8b3928 100644 --- a/include/modules.h +++ b/include/modules.h @@ -989,20 +989,15 @@ class CoreExport Module */ virtual void OnNickEraseAccess(NickCore *nc, const std::string &entry) { } - /** called when a HostCore is deleted - * @param hc pointer to the HostCore + /** called when a vhost is deleted + * @param na The nickalias of the vhost */ - virtual void OnDeleteHostCore(HostCore *hc) { } + virtual void OnDeleteVhost(NickAlias *na) { } - /** called on findHostCore - * @param nick the name of the HostCore we are searching for + /** Called when a vhost is set + * @param na The nickalias of the vhost */ - virtual void OnFindHostCore(const std::string &nick) { } - - /** called when a new HostCore is inserted - * @param hc pointer to the HostCore - */ - virtual void OnInsertHostCore(HostCore *hc) { } + virtual void OnSetVhost(NickAlias *na) { } /** Called when a mode is set on a channel * @param c The channel @@ -1090,7 +1085,7 @@ enum Implementation I_OnUserKicked, I_OnBotFantasy, I_OnBotNoFantasyAccess, I_OnBotBan, I_OnBotPreLoad, /* HostServ */ - I_OnHostServHelp, I_OnDeleteHostCore, I_OnFindHostCore, I_OnInsertHostCore, + I_OnHostServHelp, I_OnSetVhost, I_OnDeleteVhost, /* MemoServ */ I_OnMemoServHelp, |
