diff options
| author | ailin-nemui | 2015-11-28 16:52:55 +0100 |
|---|---|---|
| committer | ailin-nemui | 2015-11-28 16:52:55 +0100 |
| commit | 7e667e3fc106c4b7df8f86d96b2e66f142f1fffb (patch) | |
| tree | 6cf6458cffb320be1db3ad273e7cfcac0e29bcca /scripts | |
| parent | f90c6d1cc5a98414b39f6773d0af793d4c8b0d38 (diff) | |
| parent | 83f7f7bfa1cc99539931ae922fef3fd0efdca388 (diff) | |
| download | scripts.irssi.org-7e667e3fc106c4b7df8f86d96b2e66f142f1fffb.tar.bz2 | |
Merge pull request #187 from mh-source/gh-pages
mh_sbuserinfo.pl v1.02
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mh_sbuserinfo.pl | 20 |
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); } ############################################################################## |
