!7 static int maxLineLength = tenK(); concept Dialog { new L entries; } concept Entry { S text; S ip; } p { db(); } html { S text = mapGet text(params); Dialog dialog = null; if (nempty(text)) { text = shorten(text, maxLineLength); dialog = cnew(Dialog); dialog.entries.add(cnew(Entry, ip := subBot_clientIP(), +text)); dialog.change(); } ret hhtml_head_title_body("Talk", hcommentIfNempty(dialog != null ? dialog.id : null) + hfullcenter(hform(htextfield('text, autofocus := true, style := "width: 400px; text-align: center"))) ); }