diff options
| author | Geert Hauwaerts | 2015-08-20 15:34:46 +0200 | 
|---|---|---|
| committer | Geert Hauwaerts | 2015-08-20 15:34:46 +0200 | 
| commit | be2fc89cd33d57ac8fef7cd693b27b4017e5169d (patch) | |
| tree | 6020d84b0247739ffb55be6d64af7aa9c902a130 | |
| parent | 932b8b56aed93ad6145a8e04cf849fb2a01dcbab (diff) | |
| parent | 392964081ab5da15f9d132ff595286dbba78309f (diff) | |
| download | scripts.irssi.org-be2fc89cd33d57ac8fef7cd693b27b4017e5169d.tar.bz2 | |
Merge pull request #154 from benedicteb/gh-pages
Edited regex for socket_path search.
| -rw-r--r-- | scripts/screen_away.pl | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/screen_away.pl b/scripts/screen_away.pl index 722ceed..639d8eb 100644 --- a/scripts/screen_away.pl +++ b/scripts/screen_away.pl @@ -104,7 +104,7 @@ if ($socket !~ /^No Sockets found/s) {    # therefore first find the pid and use that to find the actual sessionname    $socket_pid = substr($ENV{'STY'}, 0, index($ENV{'STY'}, '.'));    $socket_path = $socket; -  $socket_path =~ s/^.+\d+ Sockets? in ([^\n]+)\.\n.+$/$1/s; +  $socket_path =~ s/^.*\d+ Sockets? in ([^\n]+)\..*$/$1/s;    $socket_name = $socket;    $socket_name =~ s/^.+?($socket_pid\.\S+).+$/$1/s;    if (length($socket_path) != length($socket)) {  | 
