diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:48:48 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:48:48 +0000 |
commit | 24731c63b6320be22f7b3220236271fa7476b975 (patch) | |
tree | 615959bfd36dd30bc5c067c4501dbfb8a2e8cb8b /src/modules/m_password_hash.cpp | |
parent | 79f9faeec84fbcb704b45811b9851148ab1cb20b (diff) |
Add Module* creator to Command and ModeHandler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_password_hash.cpp')
-rw-r--r-- | src/modules/m_password_hash.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/m_password_hash.cpp b/src/modules/m_password_hash.cpp index e91bedd70..761f52bc4 100644 --- a/src/modules/m_password_hash.cpp +++ b/src/modules/m_password_hash.cpp @@ -23,14 +23,12 @@ typedef std::map<irc::string, Module*> hashymodules; */ class CommandMkpasswd : public Command { - Module* Sender; hashymodules &hashers; std::deque<std::string> &names; public: - CommandMkpasswd (InspIRCd* Instance, Module* S, hashymodules &h, std::deque<std::string> &n) - : Command(Instance,"MKPASSWD", 0, 2), Sender(S), hashers(h), names(n) + CommandMkpasswd (InspIRCd* Instance, Module* Creator, hashymodules &h, std::deque<std::string> &n) + : Command(Instance, Creator, "MKPASSWD", 0, 2), hashers(h), names(n) { - this->source = "m_password_hash.so"; syntax = "<hashtype> <any-text>"; } @@ -41,9 +39,9 @@ class CommandMkpasswd : public Command if (x != hashers.end()) { /* Yup, reset it first (Always ALWAYS do this) */ - HashResetRequest(Sender, x->second).Send(); + HashResetRequest(creator, x->second).Send(); /* Now attempt to generate a hash */ - user->WriteServ("NOTICE %s :%s hashed password for %s is %s",user->nick.c_str(), algo, stuff, HashSumRequest(Sender, x->second, stuff).Send() ); + user->WriteServ("NOTICE %s :%s hashed password for %s is %s",user->nick.c_str(), algo, stuff, HashSumRequest(creator, x->second, stuff).Send() ); } else if (names.empty()) { |