Skip to content

Commit

Permalink
donuts: rework join message
Browse files Browse the repository at this point in the history
  • Loading branch information
c00kiemon5ter committed Dec 9, 2012
1 parent 54b14a4 commit ee99f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions donuts
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ case "${cmd}" in
"pou sai re ${who}"
"pou eisai mwri ${who} ?"
"lol, ${who} - yolo yolo yolo!"
"WELCOME TO THE FOSS AUEB IRC CHANNEL"
"${who}, WELCOME TO THE FOSS AUEB IRC CHANNEL"
)
if [[ "${who}" == "${oper}" ]]
then who= newho= sayit "EGERTHEITW!"
else who= newho= sayit "${messages[RANDOM%${#messages[@]}]}"
fi

n="$(cut -d' ' -f1 "${notes}" | grep -c "${who}")"
(( n > 0 )) && mesg="${n} new messages. use '/msg pancakes !pm' to read them"
(( n > 0 )) && mesg="${n} new messages. use '/msg ${whoami} !pm' to read them"
[[ -n "${mesg}" ]] && sayit "${mesg}"
;;
PART)
Expand Down

0 comments on commit ee99f65

Please sign in to comment.