Tidy up some deprecated uses.

Change-Id: Ib0cbe91bec51db7e66d860d65840e784f880e53d
Depends-On: Iec6278e7aa84c74fa8a6fea1af2d021f3835b241
Reviewed-on: http://gerrit.dmdirc.com/3392
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>