This part won\'t work correctly - notice $nick Hello and welcome to $chan! I\'ve seen %grtj [ $+ [ $chan ] ] people join here! }
It should be -
notice $nick Hello and welcome to $chan $+ ! I\'ve seen %grtj [ $+ [ $chan ] ] people join here! }