Few things.
First of all,
on *:ACTION:*:#: /msg $chan $1-
should be
on *:ACTION:*:#: /describe $chan $1-
And whats with it messaging the channels with whatever notices you get? Thats just stupid. Especially since people can flood you out that way. Plus you should take out all the /\'s in the code to make it cleaner.