diff options
-rw-r--r-- | irc_channel.c | 2 | ||||
-rw-r--r-- | protocols/account.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/irc_channel.c b/irc_channel.c index f66cf654..739360de 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, acc); + new_acc = g_slist_append(new_acc, account); } } diff --git a/protocols/account.c b/protocols/account.c index 4438ee36..6f6ad339 100644 --- a/protocols/account.c +++ b/protocols/account.c @@ -191,6 +191,7 @@ 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); @@ -202,6 +203,7 @@ 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); |