Both your code, and the snippet that RusselB linked to are open to exploitation. Any person who hosts either of those snippets can have their hard drive formatted.
People, do not
use any of the code presented here, and take a look at these posts: 1 2
Never ever put code directly into a scid/scon/timer command without being fully aware of the accompanied dangers, which is double evaluation, once when issuing the command, and once when the scid/scon reaches the targetted connection.