diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-11 17:54:38 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-11 17:54:38 +0200 |
commit | 0c4b727961ed144c69268a5a325d2472652f3f0d (patch) | |
tree | c891a606844cbc648f3d1a7cfa78e4175f32e083 /zyklonb.c | |
parent | e57939e705a3d39a427f0dd713b719a4bde9dafc (diff) | |
download | xK-0c4b727961ed144c69268a5a325d2472652f3f0d.tar.gz xK-0c4b727961ed144c69268a5a325d2472652f3f0d.tar.xz xK-0c4b727961ed144c69268a5a325d2472652f3f0d.zip |
Bump liberty
Diffstat (limited to 'zyklonb.c')
-rw-r--r-- | zyklonb.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -378,7 +378,8 @@ irc_initialize_ssl (struct bot_context *ctx, struct error **e) const char *ssl_cert = str_map_find (&ctx->config, "ssl_cert"); if (ssl_cert) { - char *path = resolve_config_filename (ssl_cert); + char *path = resolve_filename + (ssl_cert, resolve_relative_config_filename); if (!path) print_error ("%s: %s", "cannot open file", ssl_cert); // XXX: perhaps we should read the file ourselves for better messages @@ -1141,10 +1142,10 @@ plugin_load_all_from_config (struct bot_context *ctx) struct str_vector plugins; str_vector_init (&plugins); - split_str_ignore_empty (plugin_list, ',', &plugins); + cstr_split_ignore_empty (plugin_list, ',', &plugins); for (size_t i = 0; i < plugins.len; i++) { - char *name = strip_str_in_place (plugins.vector[i], " "); + char *name = cstr_strip_in_place (plugins.vector[i], " "); struct error *e = NULL; if (!plugin_load (ctx, name, &e)) @@ -1181,10 +1182,10 @@ parse_bot_command (const char *s, const char *command, const char **following) static void split_bot_command_argument_list (const char *arguments, struct str_vector *out) { - split_str_ignore_empty (arguments, ',', out); + cstr_split_ignore_empty (arguments, ',', out); for (size_t i = 0; i < out->len; ) { - if (!*strip_str_in_place (out->vector[i], " \t")) + if (!*cstr_strip_in_place (out->vector[i], " \t")) str_vector_remove (out, i); else i++; |