Code:
 on *:rawmode:$chan:{
if $1 == +q && $me isin $2- {
.msg $chan Thanks for the Q $nick
}
elseif $1 == -q && $me isin $2- {
.msg $chan :( $nick Why'd you remove my Q?
}
}