From ea41e2576169d2fa5c8fe6c5e335345809001861 Mon Sep 17 00:00:00 2001 From: drbin Date: Sat, 2 Sep 2000 15:50:07 +0000 Subject: [PATCH] fixed "if (sptr->passwd[0])" causing win32 fault --- src/s_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/s_user.c b/src/s_user.c index 804743971..06f2f1587 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -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 */