From 24731c63b6320be22f7b3220236271fa7476b975 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:48:48 +0000 Subject: Add Module* creator to Command and ModeHandler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_password_hash.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/modules/m_password_hash.cpp') 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 hashymodules; */ class CommandMkpasswd : public Command { - Module* Sender; hashymodules &hashers; std::deque &names; public: - CommandMkpasswd (InspIRCd* Instance, Module* S, hashymodules &h, std::deque &n) - : Command(Instance,"MKPASSWD", 0, 2), Sender(S), hashers(h), names(n) + CommandMkpasswd (InspIRCd* Instance, Module* Creator, hashymodules &h, std::deque &n) + : Command(Instance, Creator, "MKPASSWD", 0, 2), hashers(h), names(n) { - this->source = "m_password_hash.so"; syntax = " "; } @@ -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()) { -- cgit v1.2.3