Patch by kylef and submitted via git. Sorry that we are using subversion and that subversion is bad at tracking this kind of authorship. :( git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2211 726aef4b-f618-498e-8847-2d620e286838