diff --git a/src/AS/Media.c b/src/AS/Media.c index 4e642e9..fceefa9 100644 --- a/src/AS/Media.c +++ b/src/AS/Media.c @@ -14,7 +14,7 @@ char * ASUpload(const ParseeConfig *c, Stream *from, unsigned int size, char *mime) { char *size_str, *path, *ret, *user; - int i; + unsigned int i; HttpClientContext *ctx; HashMap *reply; if (!c || !from) diff --git a/src/Parsee/Logo.c b/src/Parsee/Logo.c index 245a91c..30885d9 100644 --- a/src/Parsee/Logo.c +++ b/src/Parsee/Logo.c @@ -4,11 +4,10 @@ const char *parsee_ascii[PARSEE_ASCII_LINES] = { - "----------------------------", " =+======", " || | _ _/__----", " / || \\ ==+= _/_____\\_", - " | || | -|- L___J", + " | || | -|- L___J ", "_/ || \\_ ||| .______\\", " || | | | |.____.|", " || / | \\ |L____||", diff --git a/src/Routes/Root.c b/src/Routes/Root.c index af89909..d96e5f6 100644 --- a/src/Routes/Root.c +++ b/src/Routes/Root.c @@ -84,11 +84,14 @@ RouteHead(RouteRoot, arr, argp) P("color: #eee;"); P("font-family: sans-serif;"); P("}"); - P("#cols {"); - P("column-count: 3;"); - P("min-width: 100%;"); - P("max-width: 100%;"); - P("width: 100%;"); + P("#ascii {"); + P("text-align: center;"); + P("color: #be1337;"); + P("font-size: 4vw;"); + P("}"); + P("#ascii pre {"); + P("display: inline-block;"); + P("text-align: left;"); P("}"); P("img {"); P("image-rendering: pixelated;"); @@ -115,6 +118,7 @@ RouteHead(RouteRoot, arr, argp) P("
"); { + size_t i; P("");
+ for (i = 0; i < PARSEE_ASCII_LINES; i++)
+ {
+ XMLElement *e = XMLCreateText(parsee_ascii[i]);
+ XMLEncode(args->stream, e);
+ XMLFreeElement(e);
+ P("
");
+ }
+ P("");
P(""); { diff --git a/src/XMPP/MUC.c b/src/XMPP/MUC.c index 832fdfe..3a81764 100644 --- a/src/XMPP/MUC.c +++ b/src/XMPP/MUC.c @@ -170,7 +170,7 @@ XMPPRequestVoice(XMPPComponent *jabber, char *from, char *muc) bool XMPPJoinMUC(XMPPComponent *comp, char *fr, char *muc, bool care) { - XMLElement *presence, *x, *reply; + XMLElement *presence, *x, *reply, *history; char *from, *id; if (!comp || !fr || !muc) { @@ -185,6 +185,9 @@ XMPPJoinMUC(XMPPComponent *comp, char *fr, char *muc, bool care) XMLAddAttr(presence, "to", muc); XMLAddAttr(presence, "id", (id = StrRandom(8))); XMLAddAttr(x, "xmlns", "http://jabber.org/protocol/muc"); + history = XMLCreateTag("history"); + XMLAddAttr(history, "seconds", "3600"); /* TODO: Custom timeout */ + XMLAddChild(x, history); XMLAddChild(presence, x); XMPPAnnotatePresence(presence); diff --git a/src/include/Parsee.h b/src/include/Parsee.h index e19fd42..f64df82 100644 --- a/src/include/Parsee.h +++ b/src/include/Parsee.h @@ -101,7 +101,7 @@ typedef struct Argument { extern const char media_parsee_logo[]; /* An ASCII-art rendition of "小橋" */ -#define PARSEE_ASCII_LINES 9 +#define PARSEE_ASCII_LINES 8 extern const char *parsee_ascii[PARSEE_ASCII_LINES]; /**