If you want to do multiple CTCP reply changes:
on ^*:ctcpreply:*: {
if ($1 == version) { your code to do here including the haltdef command }
}or if you only want to filter versions and nothing else:
on ^*:ctcpreply:version: { your code to do here including the haltdef command }