1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 10:53:13 +02:00

+- Fixed the passwd NICK problem

This commit is contained in:
stskeeps
2000-09-16 19:39:33 +00:00
parent b3fc0f5d6b
commit 362ec0b08d
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -627,3 +627,4 @@
- Possible fixed the SJOIN kick bug (mode +Q), servers can now always kick
- Added NEW DNS resolver (Win32 Only atm) ... use by defining NEWDNS
- FIXED "BUG" caused by NEWDNS *shrug*
- Fixed the passwd NICK problem
+5 -1
View File
@@ -1611,8 +1611,12 @@ int m_nick(cptr, sptr, parc, parv)
* - originally by taz, modified by Wizzu
*/
if ((parc > 2) && (strlen(parv[2]) < sizeof(sptr->passwd)))
{
if (sptr->passwd)
MyFree(sptr->passwd);
sptr->passwd = MyMalloc(strlen(parv[2]) + 1);
(void)strcpy(sptr->passwd, parv[2]);
}
/* This had to be copied here to avoid problems.. */
(void)strcpy(sptr->name, nick);
if (sptr->user && IsNotSpoof(sptr))