Tidy up icky logic.

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