mirror of
https://github.com/anope/anope.git
synced 2026-07-08 16:23:12 +02:00
Fix bug #1028, the *_getpass and *_sendpass modules will now refuse to load if the given encryption module is unable to do decryption.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2147 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -103,6 +103,10 @@ class CSSendPass : public Module
|
||||
|
||||
if (!UseMail)
|
||||
throw ModuleException("sendpass may not be loaded if UseMail is loaded");
|
||||
|
||||
char tmp_pass[PASSMAX];
|
||||
if (!enc_decrypt("tmp", tmp_pass, PASSMAX - 1))
|
||||
throw ModuleException("Incompatible with the encryption module being used");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user