on *:text:!joinqueue *:#: {
if ($read(list.txt,nw,$2)) { msg $chan You're already in the queue. | return }
else write list.txt $2
msg $chan $2 has been added to the queue!
}
You just change $3 to $2. $3 meaning the third word a user puts. So for instance: $1 !joinqueue$2 userid$3 blank