So the snippet you posted is in a socket (sockread) event?
If so, there is no way that it is interfering with the raw ### events. When using sockets, the only events that trigger are the socket events. RAW/on TEXT/NOTICE/etc don't ever trigger.
-genius_at_work