Index: include/modules.h
===================================================================
RCS file: /home/cmunk/ircsystems/cvsroot/unreal/include/Attic/modules.h,v
retrieving revision 1.1.2.94.2.27
diff -u -r1.1.2.94.2.27 modules.h
--- include/modules.h	23 Feb 2008 16:10:37 -0000	1.1.2.94.2.27
+++ include/modules.h	25 Dec 2008 02:36:10 -0000
@@ -652,6 +652,7 @@
 #define HOOKTYPE_SILENCED 47
 #define HOOKTYPE_POST_SERVER_CONNECT 48
 #define HOOKTYPE_RAWPACKET_IN 49
+#define HOOKTYPE_LOCAL_NICKPASS 50
 
 /* Hook return values */
 #define HOOK_CONTINUE 0
Index: src/modules/m_nick.c
===================================================================
RCS file: /home/cmunk/ircsystems/cvsroot/unreal/src/modules/Attic/m_nick.c,v
retrieving revision 1.1.2.22
diff -u -r1.1.2.22 m_nick.c
--- src/modules/m_nick.c	19 Dec 2006 12:52:53 -0000	1.1.2.22
+++ src/modules/m_nick.c	25 Dec 2008 02:36:11 -0000
@@ -1180,11 +1180,13 @@
 	if (MyConnect(sptr))
 	{
 		char userhost[USERLEN + HOSTLEN + 6];
-		if (sptr->passwd && (nsptr = find_person(NickServ, NULL)))
+		if (sptr->passwd && (nsptr = find_person(NickServ, NULL))) {
 			sendto_one(nsptr, ":%s %s %s@%s :IDENTIFY %s",
 			    sptr->name,
 			    (IsToken(nsptr->from) ? TOK_PRIVATE : MSG_PRIVATE),
 			    NickServ, SERVICES_NAME, sptr->passwd);
+			RunHook2(HOOKTYPE_LOCAL_NICKPASS, sptr, nsptr);
+		}
 		if (buf[0] != '\0' && buf[1] != '\0')
 			sendto_one(cptr, ":%s MODE %s :%s", cptr->name,
 			    cptr->name, buf);
