Fix a std::out_of_range error in partyline
Fix a std::out_of_range error in partyline

If the CHANTYPES token was the last one in a 005 numeric, partyline would call
std::insert() with CString::npos for the position to insert at. This throws a
std::out_of_range error. Fix this by using CString::append() in this case.

Thanks to Superfly_ for the bug report and helping me reproduce this.


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

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