summaryrefslogtreecommitdiffstats
path: root/scripts/mh_sbuserinfo.pl
diff options
context:
space:
mode:
authormh2015-11-27 20:31:05 +0100
committermh2015-11-27 20:31:05 +0100
commit83f7f7bfa1cc99539931ae922fef3fd0efdca388 (patch)
treec3f32d7c235d5fa3aacca969cb11a26fe08fe34b /scripts/mh_sbuserinfo.pl
parent1b57d4efe283c3be448e40801fb24c196f4b334d (diff)
downloadscripts.irssi.org-83f7f7bfa1cc99539931ae922fef3fd0efdca388.tar.bz2
mh_sbuserinfo.pl v1.02
statusbar item that shows users and limit info in channels changes: only show item when channel is synced cleaned out redundant code
Diffstat (limited to 'scripts/mh_sbuserinfo.pl')
-rw-r--r--scripts/mh_sbuserinfo.pl20
1 files changed, 6 insertions, 14 deletions
diff --git a/scripts/mh_sbuserinfo.pl b/scripts/mh_sbuserinfo.pl
index 75089da..f1561bb 100644
--- a/scripts/mh_sbuserinfo.pl
+++ b/scripts/mh_sbuserinfo.pl
@@ -1,6 +1,6 @@
##############################################################################
#
-# mh_sbuserinfo.pl v1.01 (20151127)
+# mh_sbuserinfo.pl v1.02 (20151127)
#
# Copyright (c) 2015 Michael Hansen
#
@@ -55,6 +55,9 @@
# see '/help statusbar' for more details and do not forget to '/save'
#
# history:
+# v1.02 (20151127)
+# only show item when channel is synced
+# cleaned out redundant code
# v1.01 (20151127)
# call statusbar_redraw directly in signals
# now using elsif
@@ -76,7 +79,7 @@ use strict;
use Irssi 20100403;
use Irssi::TextUI;
-our $VERSION = '1.01';
+our $VERSION = '1.02';
our %IRSSI =
(
'name' => 'mh_sbuserinfo',
@@ -248,21 +251,10 @@ sub statusbar_userinfo
$format = $format . $limit . '%n';
}
-
- } else {
-
- $format = '?'
}
}
- if ($format ne '')
- {
- $statusbaritem->default_handler($get_size_only, '{sb ' . $format . '}', '', 0);
-
- } else {
-
- $statusbaritem->default_handler($get_size_only, '{sb }', '', 0);
- }
+ $statusbaritem->default_handler($get_size_only, '{sb ' . $format . '}', '', 0);
}
##############################################################################