aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-04-28 18:16:13 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-04-28 23:41:13 +0200
commit21656d462f797dfcb0adba1783c3f350f0a51167 (patch)
tree9ce5e1e93aecba8c54d932bfdf4ffa906c4df5b1 /degesch.c
parentdff720b49b581d1937cc0aab8256f9eb8cce207e (diff)
downloadxK-21656d462f797dfcb0adba1783c3f350f0a51167.tar.gz
xK-21656d462f797dfcb0adba1783c3f350f0a51167.tar.xz
xK-21656d462f797dfcb0adba1783c3f350f0a51167.zip
degesch: mark some issues
Diffstat (limited to 'degesch.c')
-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;