]> git.sesse.net Git - remoteglot/commitdiff
Add a quit ocmmand, for easier profiling.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Sep 2014 11:42:12 +0000 (13:42 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Sep 2014 11:42:12 +0000 (13:42 +0200)
remoteglot.pl

index b66fd2c43acec6f6a9db5703e06e1f42a3fc9d90..b248d5f74b1568f162b3b5685d0d3a739243991c 100755 (executable)
@@ -180,6 +180,9 @@ sub handle_fics {
                } elsif ($msg =~ /^stoppgn$/) {
                        $t->cmd("tell $who Stopping poll.");
                        $http_timer = undef;
+               } elsif ($msg =~ /^quit$/) {
+                       $t->cmd("tell $who Bye bye.");
+                       exit;
                } else {
                        $t->cmd("tell $who Couldn't understand '$msg', sorry.");
                }