Permalink
Browse files

[listbuffer.py] Make the modes align even if there are none.

  • Loading branch information...
1 parent 894e46f commit 7390e83b473bf61e1c2001ad5dbfe2c8895bb870 @FiXato committed Mar 19, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 listbuffer.py
View
@@ -280,7 +280,10 @@ def lb_line_format(list_data,curr=False):
str += weechat.color("yellow,red")
str += "%s%25s %7s " % (weechat.color("bold"), list_data['channel'], "(%s)" % list_data['users'])
if not list_data['nomodes']:
- str += "%10s: " % ("[%s]" % list_data['modes'])
+ modes = "[%s]" % list_data['modes']
+ else:
+ modes = "[]"
+ str += "%10s: " % modes
str += "%s" % list_data['topic']
return str

0 comments on commit 7390e83

Please sign in to comment.