mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
If .theme suffix was given for /SET theme, irssi printed "theme changed to
xxx" message every time any setting was changed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1596 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f9c9e6fc75
commit
f20a6b0198
@ -1115,9 +1115,13 @@ static void change_theme(const char *name, int verbose)
|
||||
static void read_settings(void)
|
||||
{
|
||||
const char *theme;
|
||||
int len;
|
||||
|
||||
theme = settings_get_str("theme");
|
||||
if (strcmp(current_theme->name, theme) != 0)
|
||||
len = strlen(current_theme->name);
|
||||
if (strcmp(current_theme->name, theme) != 0 &&
|
||||
(strncmp(current_theme->name, theme, len) != 0 ||
|
||||
strcmp(theme+len, ".theme") != 0))
|
||||
change_theme(theme, TRUE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user