Remove deprecated method calls.

Depends-On: Ie4c2dfb2da88679e367d921650dcbce87b9ba328
Change-Id: Ia70524f84070adf62dff7822ac13807eafff499f
Reviewed-on: http://gerrit.dmdirc.com/3293
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>