equal
deleted
inserted
replaced
28 $editor $tf |
28 $editor $tf |
29 |
29 |
30 # Send the message using MCabber's pipe |
30 # Send the message using MCabber's pipe |
31 if [ -s $tf ]; then |
31 if [ -s $tf ]; then |
32 cmd="say_to -f $tf $jid" |
32 cmd="say_to -f $tf $jid" |
33 echo $cmd >> $FIFOPATH |
33 else |
|
34 cmd="echo [extsay] The file has not been modified. Message cancelled." |
34 fi |
35 fi |
|
36 echo $cmd >> $FIFOPATH |
35 |
37 |
36 # Do not remove the file too soon |
38 # Do not remove the file too soon |
37 (sleep 20 ; rm $tf)& |
39 setsid sh -c "cd / && sleep 20 && rm $tf & :" /dev/null 2>&1 < /dev/null |
38 |
40 |
39 exit 0 |
41 exit 0 |