Yes, it does. This is a special behavior of the CTCP event. "Ctcp *:ping:..." works too.