CNick: Fix bug in RemPerm()
CNick: Fix bug in RemPerm()

The following sequence triggered this bug:

 /mode <chan> +ov-o <you> <you> <you>

The deop called CNick::RemPerm('@') which removed the '@' from the list of
perms via std::string::erase(<positiong of '@' in that string>). The bug was
that erase() by default erases till the end of the string, but we only wanted
to remove a single character. The fix is easy, just pass in '1' as a second
parameter. :)

Thanks to sp219 for finding and reporting this bug.


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

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