The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CommandMkpasswd Class Reference

Inheritance diagram for CommandMkpasswd:

Inheritance graph
[legend]
Collaboration diagram for CommandMkpasswd:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommandMkpasswd (InspIRCd *Instance, Module *S, hashymodules &h, std::deque< std::string > &n)
void MakeHash (User *user, const char *algo, const char *stuff)
CmdResult Handle (const std::vector< std::string > &parameters, User *user)
 Handle the command from a user.

Private Attributes

ModuleSender
hashymoduleshashers
std::deque< std::string > & names

Detailed Description

Definition at line 24 of file m_password_hash.cpp.


Constructor & Destructor Documentation

CommandMkpasswd::CommandMkpasswd InspIRCd Instance,
Module S,
hashymodules h,
std::deque< std::string > &  n
[inline]
 

Definition at line 30 of file m_password_hash.cpp.

References Command::source, and Command::syntax.


Member Function Documentation

CmdResult CommandMkpasswd::Handle const std::vector< std::string > &  parameters,
User user
[inline, virtual]
 

Handle the command from a user.

Parameters:
parameters The parameters for the command.
user The user who issued the command.
Returns:
Return CMD_SUCCESS on success, or CMD_FAILURE on failure. If the command succeeds but should remain local to this server, return CMD_LOCALONLY.

Implements Command.

Definition at line 60 of file m_password_hash.cpp.

References CMD_FAILURE, and MakeHash().

void CommandMkpasswd::MakeHash User user,
const char *  algo,
const char *  stuff
[inline]
 

Definition at line 37 of file m_password_hash.cpp.

References hashers, names, User::nick, Sender, and User::WriteServ().

Referenced by Handle().


Member Data Documentation

hashymodules& CommandMkpasswd::hashers [private]
 

Definition at line 27 of file m_password_hash.cpp.

Referenced by MakeHash().

std::deque<std::string>& CommandMkpasswd::names [private]
 

Definition at line 28 of file m_password_hash.cpp.

Referenced by MakeHash().

Module* CommandMkpasswd::Sender [private]
 

Definition at line 26 of file m_password_hash.cpp.

Referenced by MakeHash().


The documentation for this class was generated from the following file: