Issue 1106, Fixes issue 1172 git-svn-id: http://svn.dmdirc.com/trunk@3970 00569f92-eb28-0410-84fd-f71c24880f