summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorailin-nemui2016-06-27 09:34:55 +0200
committerGitHub2016-06-27 09:34:55 +0200
commitde064f2e9c8c0a0e5186290e719498895cd77125 (patch)
tree0b03bfa4facce4b99f5d69bde0d693dd923ab45b /scripts
parent01541e222cbdc15341bcd921ab5cbb5230938c6f (diff)
parentf159b467f63d8783aac4da4d0e8dee42145df64d (diff)
downloadscripts.irssi.org-de064f2e9c8c0a0e5186290e719498895cd77125.tar.bz2
Merge pull request #285 from ailin-nemui/uberprompt
uberprompt 0.3
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}';