fixes issue 4040 Change-Id: Iee0dbde098f0870624112f77fddeee44c266191f Reviewed-on: http://gerrit.dmdirc.com/1194 Reviewed-by: Gregory Holmes <greg@dmdirc.com> Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>