The first notice in
Code:
 .Warn User:/notice $chan -v $1 | /notice $1 $$?="Your Warning"
should be /mode

P.S.: Please use Code Tags (the button looks like the # character) around code in the future.