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:
@@ -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
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user