Added in 1.9.4
$stripped
Returns the number of control codes that were stripped from an incoming message, if any.
Used in on TEXT, on NOTICE, on CTCP, on PART, on QUIT and on SNOTICE, possibly others as well.
Example
on *:TEXT:*:*:echo -ag Number og stripped control codes is $stripped