Fix funky alias delete behaviour.

Change-Id: Ic4c38d8245f4a88d1b3d1ce4fdf9ecb1c620d1da
Reviewed-on: http://gerrit.dmdirc.com/3562
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>