well you may want to add some flood control or a one time response to the person or risk being flooded off..
also why use so many switches for ur close? -m will do for a pm
you said " Then it will pm you with the nick that pm your bot "
don't you mean notice
for this
/notice YourNick Please note $nick has PM'ed me
you could just get rid of the YourNick part an use $me
notice $me Please note $nick has PM'ed me