Fix crash bug in stickychan
Fix crash bug in stickychan

When you are already in #znc and you did 'stick znc' (# prefix missing!),
stickychan caused segfaults or different weird behavior. This happened because
stickychan didn't handle errors from CUser::AddChan(). AddChan() can only error
out if the channel already exists, but since stickychan already checked this,
were does the error come from?
CChan's constructor does some sanity checks on the channel name. It
automatically adds the proper channel prefix (most likely #) if it's missing.
This means when stickychan checked for the channel "znc" it correctly didn't
find one. When it then tried to add "znc", it really tried adding "#znc" which
could fail if the channel was already added.

Thanks to DM8Mydog for finding this.


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

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