What am I doing wrong? This should work shouldn't it?

Code:

on *:text:!trackrequest *:#: {
  $addtok($2-, #, 32)
  msg $chan $2 is now added to the queue. 
}

on *:text:!tracklist:#: {
  msg $chan This is the returned token: $gettok($2-, #, 32) 
}