Use irc_send_msg instead of irc_send_msg_raw() to echo messages to self, to make sure CTCP ACTIONs work. Not important, just more correct.
Other CTCPs sent to oneself are dropped, but why CTCP yourself anyway?