diff options
| author | 2009-05-24 02:53:45 +0000 | |
|---|---|---|
| committer | 2009-05-24 02:53:45 +0000 | |
| commit | 0da6b3a13def40e8fd002b9fc60f955467f6372d (patch) | |
| tree | d4aa39ece30255afe7447fb46f39c45c39d679a3 /src/modules.cpp | |
| parent | m_dnsbl: Add default duration and error message on invalid duration (diff) | |
| download | inspircd++-0da6b3a13def40e8fd002b9fc60f955467f6372d.tar.gz inspircd++-0da6b3a13def40e8fd002b9fc60f955467f6372d.tar.bz2 inspircd++-0da6b3a13def40e8fd002b9fc60f955467f6372d.zip | |
OnRehash changes: split to multiple hooks to clarify use and prevent explosion of rehashes on a /REHASH *
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 5ffaf1203..5d61812c0 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -114,7 +114,9 @@ void Module::OnUserDisconnect(User*) { } void Module::OnUserJoin(User*, Channel*, bool, bool&) { } void Module::OnPostJoin(User*, Channel*) { } void Module::OnUserPart(User*, Channel*, std::string&, bool&) { } -void Module::OnRehash(User*, const std::string&) { } +void Module::OnPreRehash(User*, const std::string&) { } +void Module::OnModuleRehash(User*, const std::string&) { } +void Module::OnRehash(User*) { } int Module::OnUserPreJoin(User*, Channel*, const char*, std::string&, const std::string&) { return 0; } void Module::OnMode(User*, void*, int, const std::deque<std::string>&, const std::deque<TranslateType>&) { } Version Module::GetVersion() { return Version("Misconfigured", VF_VENDOR, -1); } |
