summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;