say.sh 341 B

123456789101112
  1. # You should source this function and use it to send your strings to the
  2. # channel, which is the first argument say() takes. Every other argument
  3. # is printed on its own line. Note that you may use arrays as well.
  4. function say {
  5. a=("$@")
  6. for str in "${a[@]:1}"; do
  7. printf 'PRIVMSG %s :%s\n' "${a[0]}" "$str" >&3
  8. done
  9. }