Files
znc/Nick.cpp
psychon ef3b8d4c37 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: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1547 726aef4b-f618-498e-8847-2d620e286838
2009-06-26 10:34:42 +00:00

3.3 KiB