[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:
LDA 2024-07-26 12:41:23 +02:00
commit b773ebabc2
2 changed files with 11 additions and 5 deletions

View file

@ -82,6 +82,12 @@ RouteHead(RouteRoot, arr, argp)
} }
P("</i></blockquote>"); P("</i></blockquote>");
P("<p>");
{
P("Welcome, sysadmin! ");
}
P("</p>");
P("<p>"); P("<p>");
{ {
P("Your homeserver now can interact with the bridge, with "); P("Your homeserver now can interact with the bridge, with ");

View file

@ -201,11 +201,6 @@ XEP393Decode(StrView view, XEP393Element *root)
{ {
Spanify(XEP393_MONO); 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') else if (curr == '\n')
{ {
/* TODO: Remove this */ /* TODO: Remove this */
@ -213,6 +208,11 @@ XEP393Decode(StrView view, XEP393Element *root)
span_view.end = subview.start; span_view.end = subview.start;
Spanify(XEP393_NL); 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 else
{ {
/* Text character: update end */ /* Text character: update end */