Remove deprecated method call.

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