diff options
author | Diogo Sousa <diogogsousa@gmail.com> | 2013-06-23 16:24:30 +0100 |
---|---|---|
committer | Diogo Sousa <diogogsousa@gmail.com> | 2013-06-28 16:07:24 +0100 |
commit | 4057b7dd5852575a415cca8f465b4d419dcbdf9d (patch) | |
tree | cd313a8c1d00582e89d69c1ec4e51b780a3d294d /src/common/proto-irc.c | |
parent | d1725e3f443f0133c113f417b6a594f79c6831e7 (diff) |
Now inbound_cap_ls() can enable extensions when a bouncer uses a namespace for
the extension server-time.
Diffstat (limited to 'src/common/proto-irc.c')
-rw-r--r-- | src/common/proto-irc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index 3c9a63e5..875247e7 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -1384,9 +1384,9 @@ handle_message_tag_time (const char *time, message_tags_data *tags_data) * * See http://ircv3.atheme.org/specification/message-tags-3.2 */ -/* TODO:orium: we should ignore capabilities not enabled! */ static void -handle_message_tags (const char *tags_str, message_tags_data *tags_data) +handle_message_tags (server *serv, const char *tags_str, + message_tags_data *tags_data) { char **tags; int i; @@ -1407,7 +1407,7 @@ handle_message_tags (const char *tags_str, message_tags_data *tags_data) *value = '\0'; value++; - if (!strcmp (key, "time")) + if (serv->have_server_time && !strcmp (key, "time")) handle_message_tag_time (value, tags_data); } @@ -1447,7 +1447,7 @@ irc_inline (server *serv, char *buf, int len) *sep = '\0'; buf = sep + 1; - handle_message_tags(tags, &tags_data); + handle_message_tags(serv, tags, &tags_data); } url_check_line (buf, len); @@ -1495,7 +1495,7 @@ irc_inline (server *serv, char *buf, int len) if (*text == ':') text++; - process_numeric (sess, atoi (word[2]), word, word_eol, text, &tags_data); // TODO:orium (data tags) + process_numeric (sess, atoi (word[2]), word, word_eol, text, &tags_data); } else { process_named_msg (sess, type, word, word_eol, &tags_data); |