Fix broken comparison

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