summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-05-01 18:38:17 -0400
committerAdam <Adam@anope.org>2014-05-01 18:38:17 -0400
commitd79dd0b7d705e8f18ae0d6494a8bc65c2b0c2819 (patch)
tree6db0098bd6dc92b00004bda90757a3024621bc79 /modules/commands
parent8b2e8137f62fc9b88c0c9f6b065f6850490d5da6 (diff)
Pass password to nick register event so modules like m_ldap_authentication can create the respective account using the decrypted password which might not always be available
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/ns_access.cpp2
-rw-r--r--modules/commands/ns_register.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/ns_access.cpp b/modules/commands/ns_access.cpp
index dfafdb37f..d01f6dc9b 100644
--- a/modules/commands/ns_access.cpp
+++ b/modules/commands/ns_access.cpp
@@ -196,7 +196,7 @@ class NSAccess : public Module
{
}
- void OnNickRegister(User *u, NickAlias *na) anope_override
+ void OnNickRegister(User *u, NickAlias *na, const Anope::string &) anope_override
{
if (u && Config->GetModule(this)->Get<bool>("addaccessonreg"))
na->nc->AddAccess(u->Mask());
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp
index c3d678cf1..8e916c4d7 100644
--- a/modules/commands/ns_register.cpp
+++ b/modules/commands/ns_register.cpp
@@ -198,7 +198,7 @@ class CommandNSRegister : public Command
Log(LOG_COMMAND, source, this) << "to register " << na->nick << " (email: " << (!na->nc->email.empty() ? na->nc->email : "none") << ")";
- FOREACH_MOD(OnNickRegister, (source.GetUser(), na));
+ FOREACH_MOD(OnNickRegister, (source.GetUser(), na, pass));
if (na->nc->GetAccessCount())
source.Reply(_("Nickname \002%s\002 registered under your user@host-mask: %s"), u_nick.c_str(), na->nc->GetAccess(0).c_str());