Fix ABO log

This commit is contained in:
poka 2019-12-18 02:53:11 +01:00
parent ac356a7ae3
commit ed5af53c90
1 changed files with 2 additions and 2 deletions

View File

@ -21,14 +21,14 @@ case "$SERVICE" in
ON)
log "Abonnement Kalkun"
if [[ "$MEMBER" != "" ]]; then
add_contact $MEMBER $PHONE && log "${c_green}Contact has been added to database$c_" || "${c_red}Contact can't be added to database$c_";
add_contact $MEMBER $PHONE && log "${c_green}Contact has been added to database$c_" || log "${c_red}Contact can't be added to database$c_";
sms_SEND "$PHONE" "$MEMBER votre inscription annuaire est active"
fi
;;
OFF)
log "Retrait Kalkun"
if [[ $MEMBER ]]; then
rm_contact $MEMBER $PHONE && log "${c_green}Contact has been deleted from database$c_" || "${c_red}Contact can't be deleted database$c_";
rm_contact $MEMBER $PHONE && log "${c_green}Contact has been deleted from database$c_" || log "${c_red}Contact can't be deleted database$c_";
sms_SEND "$PHONE" "$MEMBER retrait annuaire prise en compte..."
fi
;;