1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

Bugfix for checking if user mode was empty (don't show (+) in statusbar)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@665 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-09-24 16:31:45 +00:00 committed by cras
parent f76248133a
commit cb9c32d981

View File

@ -142,7 +142,8 @@ static void statusbar_nick(SBAR_ITEM_REC *item, int ypos)
server = active_win == NULL ? NULL : active_win->active_server;
ircserver = IRC_SERVER(server);
umode_size = ircserver == NULL || ircserver->usermode == NULL ? 0 :
umode_size = ircserver == NULL || ircserver->usermode == NULL ||
ircserver->usermode[0] == '\0' ? 0 :
strlen(ircserver->usermode)+3;
/* nick */