aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--degesch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index d240969..849b7ce 100644
--- a/degesch.c
+++ b/degesch.c
@@ -2417,6 +2417,7 @@ ctcp_parse (const char *message)
}
// Finish the last text part. We ignore unended tagged chunks.
+ // TODO: don't ignore them, e.g. a /me may get cut off
if (!in_ctcp && start != m.len)
{
struct ctcp_chunk *chunk = ctcp_chunk_new ();
@@ -4176,6 +4177,9 @@ irc_connect (struct app_context *ctx, struct error **e)
irc_send (ctx, "USER %s 8 * :%s", username, realname);
// XXX: maybe we should wait for the first message from the server
+ // FIXME: the user may exist already after we've reconnected. Either
+ // make sure that there's no reference of this nick upon disconnection,
+ // or search in "irc_users" first... or something.
ctx->irc_user = irc_make_user (ctx, xstrdup (nickname));
ctx->irc_user_mode = xstrdup ("");
ctx->irc_user_host = NULL;