Ditch the internal numerical-based logic.

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