From: Steinar H. Gunderson Date: Wed, 6 Aug 2014 21:44:42 +0000 (+0200) Subject: Add a command to stop the polling. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=2187ba0a0e12b8e751524491e25905d7ecc2e07b Add a command to stop the polling. --- 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."); }