summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-06 09:41:39 -0400
committerAdam <Adam@anope.org>2011-04-06 09:41:39 -0400
commit711a570d241912d0e2ab1ff26c894f3abd379266 (patch)
tree0d1fcd2eb083ab9e8509651a69674474d4e43730
parentcb9ccc443d703f0249929968f7df2183949095d8 (diff)
Run OnCheckAuthentication with the account name if there is one
-rw-r--r--modules/core/ns_identify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/ns_identify.cpp b/modules/core/ns_identify.cpp
index 529547dfb..f5f196f62 100644
--- a/modules/core/ns_identify.cpp
+++ b/modules/core/ns_identify.cpp
@@ -39,7 +39,7 @@ class CommandNSIdentify : public Command
else
{
EventReturn MOD_RESULT;
- FOREACH_RESULT(I_OnCheckAuthentication, OnCheckAuthentication(u, this, params, nick, pass));
+ FOREACH_RESULT(I_OnCheckAuthentication, OnCheckAuthentication(u, this, params, na ? na->nc->display : nick, pass));
if (MOD_RESULT == EVENT_STOP)
return MOD_CONT;