Tidy up icky method.

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