Implementing a finite state machineHave you tried my library? It does exactly what you're looking for. It is very easy to implement you...
This user does not accept Private Messages