From 711a570d241912d0e2ab1ff26c894f3abd379266 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 6 Apr 2011 09:41:39 -0400 Subject: Run OnCheckAuthentication with the account name if there is one --- modules/core/ns_identify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit