summaryrefslogtreecommitdiffstats
path: root/scripts/autoaway.pl
diff options
context:
space:
mode:
authorTrevor Slocum2016-04-26 17:34:00 -0700
committerTrevor Slocum2016-04-26 18:09:03 -0700
commit4290276950b399105bde8dd6b8ca1843c1cd4adb (patch)
treeb9c39ecd3fe7c40cf497ef3e77e830b767de303b /scripts/autoaway.pl
parent6ad5ab8474f188c453b3dbeb91ccd427a6419fb7 (diff)
downloadscripts.irssi.org-4290276950b399105bde8dd6b8ca1843c1cd4adb.tar.bz2
autoaway: remove dead code
Diffstat (limited to 'scripts/autoaway.pl')
-rw-r--r--scripts/autoaway.pl14
1 files changed, 2 insertions, 12 deletions
diff --git a/scripts/autoaway.pl b/scripts/autoaway.pl
index be6cbf7..ef3c485 100644
--- a/scripts/autoaway.pl
+++ b/scripts/autoaway.pl
@@ -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);