diff options
| author | 2008-01-27 00:12:11 +0000 | |
|---|---|---|
| committer | 2008-01-27 00:12:11 +0000 | |
| commit | 20bea3078d67a090ebcca64bf3cdbd7e6ab6adb6 (patch) | |
| tree | 154357b8fdc476393e110ac48686a1160b508058 /src/modules.cpp | |
| parent | ANNOUNCENENT -> ANNOUNCEMENT (diff) | |
| download | inspircd++-20bea3078d67a090ebcca64bf3cdbd7e6ab6adb6.tar.gz inspircd++-20bea3078d67a090ebcca64bf3cdbd7e6ab6adb6.tar.bz2 inspircd++-20bea3078d67a090ebcca64bf3cdbd7e6ab6adb6.zip | |
Change API OnOperCompare to OnPassCompare, password hashing is now available for <connect:allow>, <power die= restart=>, <title> (m_customtitle.so), <vhost> (m_vhost.so), this works the same was as for <oper>: load m_password_hash.so (after all hasher modules, of course), and add hash="md5/sha256/whatever" to the relevant tag. Also fix m_callerid.cpp crashing on unload.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8755 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 2aae2a00d..cd869585f 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -151,7 +151,7 @@ int Module::OnChangeLocalUserGECOS(User*, const std::string&) { return 0; } int Module::OnLocalTopicChange(User*, Channel*, const std::string&) { return 0; } void Module::OnEvent(Event*) { return; } char* Module::OnRequest(Request*) { return NULL; } -int Module::OnOperCompare(const std::string&, const std::string&, int) { return 0; } +int Module::OnPassCompare(Extensible* ex, const std::string &password, const std::string &input, const std::string& hashtype) { return 0; } void Module::OnGlobalOper(User*) { } void Module::OnPostConnect(User*) { } int Module::OnAddBan(User*, Channel*, const std::string &) { return 0; } |
