Less ugly... maybe...

Change-Id: I2a96203406fd7d79e0ad5d268e7d9572c67678a4
Reviewed-on: http://gerrit.dmdirc.com/2800
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager