summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAilin Nemui2016-06-25 15:46:46 +0200
committerAilin Nemui2016-06-25 15:46:46 +0200
commitf159b467f63d8783aac4da4d0e8dee42145df64d (patch)
tree0b03bfa4facce4b99f5d69bde0d693dd923ab45b /scripts
parent01541e222cbdc15341bcd921ab5cbb5230938c6f (diff)
downloadscripts.irssi.org-f159b467f63d8783aac4da4d0e8dee42145df64d.tar.bz2
uberprompt 0.3
* fix crash on /window close or /window hide with split windows
Diffstat (limited to 'scripts')
-rw-r--r--scripts/uberprompt.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/uberprompt.pl b/scripts/uberprompt.pl
index c4b8cc9..8273d8d 100644
--- a/scripts/uberprompt.pl
+++ b/scripts/uberprompt.pl
@@ -278,7 +278,7 @@ use Data::Dumper;
{ package Irssi::Nick } # magic.
-our $VERSION = "0.2"; # 255b35bb44161e0
+our $VERSION = "0.3"; # 960b4fdf423a081
our %IRSSI =
(
authors => "shabble",
@@ -627,7 +627,7 @@ sub uberprompt_render_prompt {
my $prompt_arg = '';
# default prompt sbar arguments (from config)
- if (scalar( () = $window->items )) {
+ if ($window && scalar( () = $window->items )) {
$prompt_arg = '$[.15]{itemname}';
} else {
$prompt_arg = '${winname}';