Remove some deprecated method usages.

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