By the time my_func gets called, the TextMsg will have already been sent, you won't be able to block it. Take a look throug engine.inc at the register_message functions. You can use these to actually intercept the message and stop it from being sent.
__________________
No longer around. Thanks your support, everyone! As always: