Try this:
Code:
raw 311:*: { .set %badnick-host *!* $+ @ $+ $4 }