Pass in correct arguments to action.

Change-Id: I531924b79d5d3e8f812b47fdd2a901d02817dbeb
Fixes-Issue: CLIENT-497
Reviewed-on: http://gerrit.dmdirc.com/3364
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>