on *:SNOTICE:*client exiting*: { .echo -a caca | halt }
The problem on your code is on this part " if $1- iswm client exiting" which should be the other way around, "if *client exiting* iswm $1-" or "if client exiting isin $1-". The code I provided above would be better this way
.