diff options
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index 2061b39..6b150d1 100644 --- a/src/settings.c +++ b/src/settings.c @@ -88,6 +88,7 @@ void BarSettingsDestroy (BarSettings_t *settings) { free (settings->eventCmd); free (settings->loveIcon); free (settings->banIcon); + free (settings->atIcon); free (settings->npSongFormat); free (settings->npStationFormat); for (size_t i = 0; i < MSG_COUNT; i++) { @@ -122,6 +123,7 @@ void BarSettingsRead (BarSettings_t *settings) { settings->sortOrder = BAR_SORT_NAME_AZ; settings->loveIcon = strdup (" <3"); settings->banIcon = strdup (" </3"); + settings->atIcon = strdup (" @ "); settings->npSongFormat = strdup ("\"%t\" by \"%a\" on \"%l\"%r%@%s"); settings->npStationFormat = strdup ("Station \"%n\" (%i)"); @@ -214,6 +216,9 @@ void BarSettingsRead (BarSettings_t *settings) { } else if (streq ("ban_icon", key)) { free (settings->banIcon); settings->banIcon = strdup (val); + } else if (streq ("at_icon", key)) { + free (settings->atIcon); + settings->atIcon = strdup (val); } else if (streq ("volume", key)) { settings->volume = atoi (val); } else if (streq ("format_nowplaying_song", key)) { |