tell ceod when it is a club rep; club reps don't need the new member email
[public/pyceo-broken.git] / etc / spam / new-member.d / announce
index 555649e..aea5cd4 100755 (executable)
@@ -19,7 +19,7 @@ h_from="$prog <ceo+$prog@csclub.uwaterloo.ca>"
 h_to="Membership and Accounts <ceo@csclub.uwaterloo.ca>"
 h_cc="$authrn <$auth@csclub.uwaterloo.ca>"
 
-if test "$prog" = addmember; then
+if [[ "$prog" = addmember || "$prog" == addclubrep ]]; then
     user="$CEO_USER" name="$CEO_NAME" dept="$CEO_DEPT" status="$CEO_STATUS"
     subj="New Member: $user"
     test -z "$dept" && dept="things unknown"
@@ -28,7 +28,7 @@ Account: $user
 Program: $dept
 Added by: $auth"
 
-elif test "$prog" = addclub; then
+elif [[ "$prog" = addclub ]]; then
     user="$CEO_USER" name="$CEO_NAME" status="$CEO_STATUS"
     subj="New Club Account: $user"
     body="Club: $name