Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | make chatbot message box transparent to avoid collisions Suggested by mgagnon in /chat. Hint from stephan. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
c8b3ec1e6d3a5db21d87617b4c391702 |
| User & Date: | mark 2022-09-27 14:39:07.861 |
Context
|
2022-09-28
| ||
| 12:28 | improve login-group command documentation and output Prompted by [forum:58f01f6d92], [forum:a7d15cc071], and [forum:1c639bcdea]. Clarify semantics of -R|--repository in 'fossil login-group join' and make user output more helpful. While here, trim some trailing whitespace. ... (check-in: 83bc81e882 user: mark tags: trunk) | |
|
2022-09-27
| ||
| 14:39 | make chatbot message box transparent to avoid collisions Suggested by mgagnon in /chat. Hint from stephan. ... (check-in: c8b3ec1e6d user: mark tags: trunk) | |
| 13:47 | Fix a bug in the chat-robot. ... (check-in: b3f87ef7c2 user: drh tags: trunk) | |
Changes
Changes to src/chat.c.
| ︙ | ︙ | |||
648 649 650 651 652 653 654 |
isWiki = fossil_strcmp(zFrom,zChatUser)==0;
}else{
/* see https://fossil-scm.org/forum/forumpost/e0be0eeb4c */
blob_appendf(&json, "null,");
isWiki = 0;
}
blob_appendf(&json, "\"uclr\":%!j,",
| | | 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 |
isWiki = fossil_strcmp(zFrom,zChatUser)==0;
}else{
/* see https://fossil-scm.org/forum/forumpost/e0be0eeb4c */
blob_appendf(&json, "null,");
isWiki = 0;
}
blob_appendf(&json, "\"uclr\":%!j,",
isWiki ? "transparent" : user_color(zFrom ? zFrom : "nobody"));
if(bRaw){
blob_appendf(&json, "\"xmsg\":%!j,", zRawMsg);
}else{
zMsg = chat_format_to_html(zRawMsg ? zRawMsg : "", isWiki);
blob_appendf(&json, "\"xmsg\":%!j,", zMsg);
fossil_free(zMsg);
|
| ︙ | ︙ | |||
750 751 752 753 754 755 756 |
isWiki = fossil_strcmp(zFrom, zChatUser)==0;
}else{
/* see https://fossil-scm.org/forum/forumpost/e0be0eeb4c */
blob_appendf(&json, "null,");
isWiki = 0;
}
blob_appendf(&json, "\"uclr\":%!j,",
| | | 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 |
isWiki = fossil_strcmp(zFrom, zChatUser)==0;
}else{
/* see https://fossil-scm.org/forum/forumpost/e0be0eeb4c */
blob_appendf(&json, "null,");
isWiki = 0;
}
blob_appendf(&json, "\"uclr\":%!j,",
isWiki ? "transparent" : user_color(zFrom ? zFrom : "nobody"));
blob_append(&json,"\"xmsg\":", 7);
if(fRaw){
blob_appendf(&json, "%!j,", zRawMsg);
}else{
char * zMsg = chat_format_to_html(zRawMsg ? zRawMsg : "", isWiki);
blob_appendf(&json, "%!j,", zMsg);
fossil_free(zMsg);
|
| ︙ | ︙ |