The reason it may not be working is that you've made an event for channel notices (/notice #chan), so if you're testing it with a regular /notice <nick> command it's not going to show.
And secondly, for the topic there are two different events.
When you join, raw 332 is triggered, but when the topic is changed, an on TOPIC event is triggered
If it's the raw event you're looking for, the "topic set by:" information is also triggered, which is raw 333