Fix some generic craziness.

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