CClient: Only auth users that sent a password
CClient: Only auth users that sent a password

We introduced a bug where sending "USER foo\r\nNICK foo\r\n" to znc would cause
an "invalid password" message even though no password was sent yet. This was
caused by a missing check.

This is easily fixed by checking whether we already received a password before
checking if the password is valid.


git-svn-id: 3ad904ec35b89a071badd9cb0113dfe58093e920@2117 726aef4b-f618-498e-8847-2d620e286838

KiNgMaR/znc,wolfy1339/znc,DarthGandalf/znc,Zarthus/znc,Adam-/znc,KiNgMaR/znc,TuffLuck/znc,dgw/znc,badloop/znc,ollie27/znc,withinsoft/znc,jantman/znc,wolfy1339/znc,jreese/znc,YourBNC/znc,withinsoft/znc,Kriechi/znc,Zarthus/znc,anthonyryan1/znc,znc/znc,YourBNC/znc,KielBNC/znc,badloop/znc,trisk/znc,KielBNC/znc,anthonyryan1/znc,KiNgMaR/znc,Kriechi/znc,dgw/znc,wolfy1339/znc,BtbN/znc,elyscape/znc,aarondunlap/znc,reedloden/znc,Mikaela/znc,BtbN/znc,DarthGandalf/znc,psychon/znc,Mkaysi/znc,reedloden/znc,YourBNC/znc,jpnurmi/znc,aarondunlap/znc,jreese/znc,TingPing/znc,Hasimir/znc,markusj/znc,KiNgMaR/znc,Phansa/znc,reedloden/znc,aarondunlap/znc,reedloden/znc,Kriechi/znc,znc/znc,BtbN/znc,GLolol/znc,anthonyryan1/znc,Zarthus/znc,Phansa/znc,jpnurmi/znc,jpnurmi/znc,markusj/znc,Mikaela/znc,elyscape/znc,dgw/znc,Adam-/znc,dgw/znc,trisk/znc,Kriechi/nobnc,Zarthus/znc,GLolol/znc,Mkaysi/znc,TingPing/znc,Adam-/znc,jantman/znc,kashike/znc,kashike/znc,Mikaela/znc,Mkaysi/znc,aarondunlap/znc,jpnurmi/znc,elyscape/znc,Kriechi/znc,badloop/znc,DarthGandalf/znc,GLolol/znc,Mkaysi/znc,evilnet/znc,znc/znc,withinsoft/znc,trisk/znc,Phansa/znc,Mikaela/znc,wolfy1339/znc,aarondunlap/znc,ollie27/znc,Hasimir/znc,psychon/znc,TingPing/znc,TuffLuck/znc,jreese/znc,Adam-/znc,KielBNC/znc,withinsoft/znc,reedloden/znc,jpnurmi/znc,kashike/znc,aarondunlap/znc,markusj/znc,badloop/znc,KiNgMaR/znc,jantman/znc,GLolol/znc,YourBNC/znc,elyscape/znc,markusj/znc,psychon/znc,Kriechi/nobnc,DarthGandalf/znc,ollie27/znc,kashike/znc,YourBNC/znc,badloop/znc,markusj/znc,dgw/znc,anthonyryan1/znc,Zarthus/znc,anthonyryan1/znc,jantman/znc,Kriechi/nobnc,TuffLuck/znc,Hasimir/znc,jantman/znc,elyscape/znc,markusj/znc,Mikaela/znc,Adam-/znc,evilnet/znc,YourBNC/znc,ollie27/znc,TingPing/znc,evilnet/znc,znc/znc,trisk/znc,Phansa/znc,anthonyryan1/znc,Hasimir/znc,Phansa/znc,jpnurmi/znc,kashike/znc,Mkaysi/znc,jpnurmi/znc,TuffLuck/znc,TingPing/znc,GLolol/znc,trisk/znc,psychon/znc,anthonyryan1/znc,jreese/znc,psychon/znc,elyscape/znc,znc/znc,badloop/znc,Mikaela/znc,Zarthus/znc,aarondunlap/znc,ollie27/znc,Phansa/znc,KiNgMaR/znc,DarthGandalf/znc,psychon/znc,Mkaysi/znc,evilnet/znc,KielBNC/znc,znc/znc,wolfy1339/znc,jreese/znc,Hasimir/znc,evilnet/znc,TuffLuck/znc,TuffLuck/znc,reedloden/znc,jantman/znc,ollie27/znc,DarthGandalf/znc,Mkaysi/znc,Kriechi/znc,Mikaela/znc,Kriechi/znc,badloop/znc,Adam-/znc,BtbN/znc,GLolol/znc,withinsoft/znc,jreese/znc,withinsoft/znc,Adam-/znc,evilnet/znc,BtbN/znc,trisk/znc,TingPing/znc,kashike/znc,dgw/znc,BtbN/znc,TuffLuck/znc,Hasimir/znc,Hasimir/znc,KielBNC/znc,KielBNC/znc,wolfy1339/znc