From: Steinar H. Gunderson Date: Sat, 20 Sep 2014 11:42:12 +0000 (+0200) Subject: Add a quit ocmmand, for easier profiling. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=f45d6376e3ca0bbdbfad739ad3a771d3faa7cfdc;hp=a804bc0791d0dada8935fc2c752d5945ff6e5e42 Add a quit ocmmand, for easier profiling. --- diff --git a/remoteglot.pl b/remoteglot.pl index b66fd2c..b248d5f 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -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."); }