"NONE" works now with combine_levels(). /WINDOW LEVEL NONE works and if

window doesn't have level it prints "NONE" instead of empty string.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@674 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-09-26 21:44:20 +00:00 committed by cras
commit 5f752567f6
2 changed files with 7 additions and 3 deletions

View file

@ -158,7 +158,9 @@ int combine_level(int dest, const char *src)
g_strup(itemname);
itemlevel = level_get(itemname);
if (**item == '-')
if (strcmp(itemname, "NONE") == 0)
dest = 0;
else if (**item == '-')
dest &= ~(itemlevel);
else
dest |= itemlevel;