SnoooP, you are right. The elseif is not needed...
Besides, a raw 433 should get the job done.
raw 433:*:{ .ns ghost $mnick 15987 .nick $mnick halt }
$mnick returns your main nickname.