Are you sure my 3 lines are even executing? I joined adams.freenode.net and joined a channel, which caused those 3 script lines to execute, and it fired up the /who #channel_name and then triggered the raw events 352 and 315 not the 353/366 from /names.