1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 04:23:13 +02:00

fixed "if (sptr->passwd[0])" causing win32 fault

This commit is contained in:
drbin
2000-09-02 15:50:07 +00:00
parent f564867259
commit ea41e25761
+2 -2
View File
@@ -962,8 +962,8 @@ static int register_user(cptr, sptr, nick, username, umode, virthost)
*/
if (MyConnect(sptr))
{
if (sptr->passwd[0])
if (sptr->passwd[0] && (nsptr = find_person(NickServ, NULL)))
if (*sptr->passwd)
if (*sptr->passwd && (nsptr = find_person(NickServ, NULL)))
sendto_one(nsptr, ":%s PRIVMSG %s@%s :IDENTIFY %s",
sptr->name, NickServ, SERVICES_NAME, sptr->passwd);
/* Force the user to join the given chans -- codemastr */