diff options
author | Marius Halden <marius.h@lden.org> | 2016-04-12 00:37:39 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-05-07 14:31:03 +0200 |
commit | 1ce076a9040e9637876832084438af566e025600 (patch) | |
tree | 41b8037b196991b2933433c8093a15f07294f4cf | |
parent | 0f56b8dc9e8ddbec1cf7cacd35a782cbfbd6186c (diff) |
Fix some errors created when changing set account to GSList
-rw-r--r-- | irc_channel.c | 2 | ||||
-rw-r--r-- | protocols/account.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/irc_channel.c b/irc_channel.c index 739360de..f66cf654 100644 --- a/irc_channel.c +++ b/irc_channel.c @@ -883,7 +883,7 @@ static char *set_eval_by_account(set_t *set, char *value) if (!(acc = account_get(ic->irc->b, *account))) { goto fail; } else { - new_acc = g_slist_append(new_acc, account); + new_acc = g_slist_append(new_acc, acc); } } diff --git a/protocols/account.c b/protocols/account.c index 6f6ad339..4438ee36 100644 --- a/protocols/account.c +++ b/protocols/account.c @@ -191,7 +191,6 @@ char *set_eval_account(set_t *set, char *value) accounts = g_strsplit(saccount, ",", 0); for (account = accounts; *account; account++) { if (g_strcasecmp(*account, old) == 0) { - fprintf(stderr, "Found\n"); found = TRUE; g_free(*account); *account = g_strdup(value); @@ -203,7 +202,6 @@ char *set_eval_account(set_t *set, char *value) saccount = g_strjoinv(",", accounts); g_strfreev(accounts); - fprintf(stderr, "%s\n", saccount); set_setstr(&ic->set, "account", saccount); g_free(saccount); |