without knowing what %timer is,

i'd suggest changing:

/timer $+ $nick $+ training $+ $2 -o 1

into: /timer $+ $nick $+ training $+ $2 -o 0