]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
autoaway: remove dead code
authorTrevor Slocum <redacted>
Wed, 27 Apr 2016 00:34:00 +0000 (17:34 -0700)
committerTrevor Slocum <redacted>
Wed, 27 Apr 2016 01:09:03 +0000 (18:09 -0700)
scripts/autoaway.pl

index be6cbf7b73f22e2f86846a564187c3c828c241a9..ef3c485652ad9a7f9a9f1b4eb22dc09684037eeb 100644 (file)
@@ -23,7 +23,7 @@ use Irssi;
 use Irssi::Irc;
 
 use vars qw($VERSION %IRSSI);
-$VERSION = "0.3";
+$VERSION = "0.4";
 %IRSSI = (
     authors => 'Larry "Vizzie" Daffner',
     contact => 'vizzie@airmail.net',
@@ -31,7 +31,7 @@ $VERSION = "0.3";
     description => 'Automatically goes  away after defined inactivity',
     license => 'BSD',
     url => 'http://www.flamingpackets.net/~vizzie/irssi/',
-    changed => 'Tue Oct 19 14:41:15 CDT 2010',
+    changed => 'Tue Apr 26 19:30:00 CDT 2016',
     changes => 'Applied multiserver/store config patch from Adam Monsen'
 );
 
@@ -76,16 +76,6 @@ sub cmd_away {
   
   if ($data eq "") {
     $autoaway_state = 0;
-    # If $autoaway_state is 2, we went away by typing /away, and need
-    # to restart autoaway ourselves. Otherwise, we were autoaway, and
-    # we'll let the autoaway return take care of business.
-
-    if ($autoaway_state eq 2) {
-      if ($autoaway_sec) {
-       $autoaway_to_tag =
-         Irssi::timeout_add($autoaway_sec*1000, "auto_timeout", "");
-      }
-    }
   } else {
     if ($autoaway_state eq 0) {
       Irssi::timeout_remove($autoaway_to_tag);
git clone https://git.99rst.org/PROJECT