diff options
| author | 2006-12-05 20:20:13 +0000 | |
|---|---|---|
| committer | 2006-12-05 20:20:13 +0000 | |
| commit | 743b5409f88ce65c69c44ebde7ef19c4cf7f0bcf (patch) | |
| tree | a4f55d00074d66d7b4e44fe7ae587572075bf311 /src/modules/m_oper_hash.cpp | |
| parent | More tweakage (diff) | |
| download | inspircd++-743b5409f88ce65c69c44ebde7ef19c4cf7f0bcf.tar.gz inspircd++-743b5409f88ce65c69c44ebde7ef19c4cf7f0bcf.tar.bz2 inspircd++-743b5409f88ce65c69c44ebde7ef19c4cf7f0bcf.zip | |
Fix all this.
TODO: A system to group together modules which share an identical request/event API, so m_oper_hash can enumerate modules which implement HashRequest
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5866 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_oper_hash.cpp')
| -rw-r--r-- | src/modules/m_oper_hash.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_oper_hash.cpp b/src/modules/m_oper_hash.cpp index e070bfc87..de6b3f993 100644 --- a/src/modules/m_oper_hash.cpp +++ b/src/modules/m_oper_hash.cpp @@ -51,7 +51,7 @@ class cmd_mkpasswd : public command_t void MakeHash(userrec* user, Module* ProviderMod, const char* algo, const char* stuff) { - HashResetRequest(Sender, ProviderMod); + HashResetRequest(Sender, ProviderMod).Send(); user->WriteServ("NOTICE %s :%s hashed password for %s is %s",user->nick, algo, stuff, HashSumRequest(Sender, ProviderMod, stuff).Send() ); } @@ -67,7 +67,7 @@ class cmd_mkpasswd : public command_t } else { - user->WriteServ("NOTICE %s :Unknown hash type, valid hash types are:%s%s", (Prov & PROV_MD5) > 0 ? " MD5" : "", (Prov & PROV_SHA) > 0 ? " SHA256" : ""); + user->WriteServ("NOTICE %s :Unknown hash type, valid hash types are:%s%s", user->nick, ((Prov & PROV_MD5) > 0) ? " MD5" : "", ((Prov & PROV_SHA) > 0) ? " SHA256" : ""); } /* NOTE: Don't propogate this across the network! @@ -93,6 +93,7 @@ class ModuleOperHash : public Module ModuleOperHash(InspIRCd* Me) : Module::Module(Me) { + ID = 0; Conf = NULL; OnRehash(""); |
