mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 17:05:11 +00:00
[MOD] Small welcome message
Nothing much related to Parsee itself, I still need to think out some tools and rewrite the XEP-0393 parser...
This commit is contained in:
parent
41a0ae20ea
commit
b773ebabc2
2 changed files with 11 additions and 5 deletions
|
|
@ -82,6 +82,12 @@ RouteHead(RouteRoot, arr, argp)
|
|||
}
|
||||
P("</i></blockquote>");
|
||||
|
||||
P("<p>");
|
||||
{
|
||||
P("Welcome, sysadmin! ");
|
||||
}
|
||||
P("</p>");
|
||||
|
||||
P("<p>");
|
||||
{
|
||||
P("Your homeserver now can interact with the bridge, with ");
|
||||
|
|
|
|||
|
|
@ -201,11 +201,6 @@ XEP393Decode(StrView view, XEP393Element *root)
|
|||
{
|
||||
Spanify(XEP393_MONO);
|
||||
}
|
||||
else if (sol && IdentifySpans('>', '\n', subview, &span_view))
|
||||
{
|
||||
/* TODO: This doesnt work with more than one line of quotes. */
|
||||
Spanify(XEP393_QUOT);
|
||||
}
|
||||
else if (curr == '\n')
|
||||
{
|
||||
/* TODO: Remove this */
|
||||
|
|
@ -213,6 +208,11 @@ XEP393Decode(StrView view, XEP393Element *root)
|
|||
span_view.end = subview.start;
|
||||
Spanify(XEP393_NL);
|
||||
}
|
||||
else if (IdentifySpans('>', '\n', subview, &span_view))
|
||||
{
|
||||
/* TODO: This doesnt work with more than one line of quotes. */
|
||||
Spanify(XEP393_QUOT);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Text character: update end */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue