diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-11-15 16:28:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 16:28:22 +0100 |
commit | 4e8c1548e01c15a9934b1a2d02ce2396ab859957 (patch) | |
tree | d86702448fcc2db0a7eb53929e9ccb1a27059496 /src/fe-common/core | |
parent | 933fac7e9d4d1cea93887cb38bab51c938a8c687 (diff) | |
parent | 02c677f467b398f8b91b1e90544502ff98a6e0da (diff) | |
download | irssi-4e8c1548e01c15a9934b1a2d02ce2396ab859957.zip |
Merge pull request #786 from ailin-nemui/show-inital-nick
show initial nick and name on first start
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/Makefile.am | 1 | ||||
-rw-r--r-- | src/fe-common/core/fe-settings.c | 7 | ||||
-rw-r--r-- | src/fe-common/core/fe-settings.h | 6 |
3 files changed, 13 insertions, 1 deletions
diff --git a/src/fe-common/core/Makefile.am b/src/fe-common/core/Makefile.am index 29cc941a..cf4e8ee3 100644 --- a/src/fe-common/core/Makefile.am +++ b/src/fe-common/core/Makefile.am @@ -55,6 +55,7 @@ pkginc_fe_common_core_HEADERS = \ fe-exec.h \ fe-messages.h \ fe-queries.h \ + fe-settings.h \ fe-tls.h \ formats.h \ hilight-text.h \ diff --git a/src/fe-common/core/fe-settings.c b/src/fe-common/core/fe-settings.c index abbd45a8..de9f67a1 100644 --- a/src/fe-common/core/fe-settings.c +++ b/src/fe-common/core/fe-settings.c @@ -26,7 +26,7 @@ #include "misc.h" #include "lib-config/iconfig.h" #include "settings.h" - +#include "fe-settings.h" #include "levels.h" #include "printtext.h" #include "keyboard.h" @@ -41,6 +41,11 @@ static void set_print(SETTINGS_REC *rec) g_free(value); } +void fe_settings_set_print(const char *key) +{ + set_print(settings_get_record(key)); +} + static void set_print_pattern(const char *pattern) { GSList *sets, *tmp; diff --git a/src/fe-common/core/fe-settings.h b/src/fe-common/core/fe-settings.h new file mode 100644 index 00000000..dd33f223 --- /dev/null +++ b/src/fe-common/core/fe-settings.h @@ -0,0 +1,6 @@ +#ifndef __FE_CHANNELS_H +#define __FE_CHANNELS_H + +void fe_settings_set_print(const char *key); + +#endif |