From 2187ba0a0e12b8e751524491e25905d7ecc2e07b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 6 Aug 2014 23:44:42 +0200 Subject: [PATCH] Add a command to stop the polling. --- remoteglot.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/remoteglot.pl b/remoteglot.pl index 4428e26..b66fd2c 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -177,6 +177,9 @@ sub handle_fics { AnyEvent::HTTP::http_get($url, sub { handle_pgn(@_, $url); }); + } elsif ($msg =~ /^stoppgn$/) { + $t->cmd("tell $who Stopping poll."); + $http_timer = undef; } else { $t->cmd("tell $who Couldn't understand '$msg', sorry."); } -- 2.39.2