I give up. How do you create a new floor? This is on a barebones debian apt-get installed system, using the text mode client. I can enter a new room , but I cannot specify a floor that doesn't already exist, and .ef just tells me "No floor
'floorname'."
'floorname'."
okay. It was a server side issue not a local issue, thank you for clearing that up.
Now line 689-707 of messages.c
/* Extract URL's */
num_urls = 0; /* Start with a clean slate */
searchptr = message->text;
while ( (searchptr != NULL) && (num_urls < MAXURLS) ) {
searchptr = strstr(searchptr, "http://");
if (searchptr != NULL) {
safestrncpy(urls[num_urls], searchptr, sizeof(urls[num_urls]));
for (i = 0; i < strlen(urls[num_urls]); i++) {
ch = urls[num_urls][i];
if (ch == '>' || ch == '\"' || ch == ')' ||
ch == ' ' || ch == '\n') {
urls[num_urls][i] = 0;
break;
}
}
num_urls++;
++searchptr;
}
}
If you search through it twice aster the while statement and using
searchptr = strstr(searchptr, "https://");
will that take too many resources or is there a quicker more efficient method? It has been so long since I
looked at C code.
Now line 689-707 of messages.c
/* Extract URL's */
num_urls = 0; /* Start with a clean slate */
searchptr = message->text;
while ( (searchptr != NULL) && (num_urls < MAXURLS) ) {
searchptr = strstr(searchptr, "http://");
if (searchptr != NULL) {
safestrncpy(urls[num_urls], searchptr, sizeof(urls[num_urls]));
for (i = 0; i < strlen(urls[num_urls]); i++) {
ch = urls[num_urls][i];
if (ch == '>' || ch == '\"' || ch == ')' ||
ch == ' ' || ch == '\n') {
urls[num_urls][i] = 0;
break;
}
}
num_urls++;
++searchptr;
}
}
If you search through it twice aster the while statement and using
searchptr = strstr(searchptr, "https://");
will that take too many resources or is there a quicker more efficient method? It has been so long since I
looked at C code.
Sig:
You might need to be in the room who is supposed to be on the floor you're creating when you go to create it.
I think.
Not sure.
[#]
Tue Oct 01 2013 11:44:30 EDT
from
Freakdog <freakdog@dogpound2.citadel.org>
It's the latter that is the issue here; there is no longer an external editorconfigured.
In the citadel.rc (or your own .citadelrc) file, find this section:
# Set EDITOR to the name of an external editor to be used for entering
# messages. If you want the external editor to be used by default, be sure
# to reflect this in the command set below.
#
#editor=/usr/local/citadel/pico
And add an editor line pointing at the editor you want to use.
The section, above, is the default for the citadel.rc file, and has to be modified.
[#]
Tue Oct 01 2013 11:46:45 EDT
from
Freakdog <freakdog@dogpound2.citadel.org>
If you use the text client, it's ;A(ide) C(reate floor)
Right, but there's no external editor configured on Uncensored; there used
to be. Yes, I could run a local client, I suppose, but ssh requires less
thought since I pretty much always have that.
Oct 1 2013 11:46am from Freakdog @dogpound2 (Dog Pound BBS II)
If you use the text client, it's ;A(ide) C(reate floor)
Thank you. That's... definitely not intuitive. I thought I'd tried everything.
To elaborate, this is not a CRISIS, and if it is, it's mine alone. I just
didn't know whether it was intentional.
This is what happens when you try to use the servers external editor:
Lobby> Enter message
*** No editor available; using built-in editor.
Oct 1 2013 12:13pm from zooer
Lobby> Enter message
*** No editor available; using built-in editor.
Oct 1 2013 12:13pm from zooer
Tue Oct 01 2013 19:10:16 EDT from zooer @ Uncensored/* sloppy slide them all down, hey it's the client, who cares. :-) */
I CARE damn it!
send diffs! or pay fleeb a beer to do it ;-P
The non-expert menu still has * for a doorway command here, though that's long gone in the regular build (since 2010, if I am reading the commits right).
Maybe it is a doorway to your mind!
The W)ho command only shows yourself in this version I downloaded the other day. I already know I am on. And I
know IGnatius T Foobar is on as well as fifteen googlebots but what about the others, how would I know they are
on?
The W)ho command only shows yourself in this version I downloaded the other day. I already know I am on. And I
know IGnatius T Foobar is on as well as fifteen googlebots but what about the others, how would I know they are
on?
If you search through it twice aster the while statement and usingIt has been so long since I
searchptr = strstr(searchptr, "https://");
will that take too many resources or is there a quicker more efficient method?
looked at C code.
dothebart will disagree with me on this, but my opinion is that at this scale, cpu cycles are cheap.
So I've made a change to the client code. No telling how long it'll take before that code falls into your eager hands, but it's checked into the tree so you'll get it eventually. :)
It now starts with an array containing "http://" "https://" and "ftp://" and runs through the message searching for each of those prefixes.
Share And Enjoy.
Fri Oct 04 2013 22:08:19 EDT from IGnatius T Foobar @ UncensoredIf you search through it twice aster the while statement and usingIt has been so long since I
searchptr = strstr(searchptr, "https://");
will that take too many resources or is there a quicker more efficient method?
looked at C code.
dothebart will disagree with me on this, but my opinion is that at this scale, cpu cycles are cheap.
So I've made a change to the client code. No telling how long it'll take before that code falls into your eager hands, but it's checked into the tree so you'll get it eventually. :)
It now starts with an array containing "http://" "https://" and "ftp://" and runs through the message searching for each of those prefixes.
Share And Enjoy.
Oh, I actually implemented something similar for the RSS-Client so twitter feeds would become more usefull; it would look up those tiny urls and expand them. Usefull since you wouldn't have to click the cat in the box anymore, being able to distinguish whether you already knew that URL or not.
however, while it was easy to do with the old model of one thread being busy with everything automated in a line, it would have become hell complicated with the event driven model,
and since that feature wasn't released yet, and twitter changed the rss'abilities it never saw a public release.
[#]
Sat Oct 05 2013 08:48:42 EDT
from
Freakdog <freakdog@dogpound2.citadel.org>
So I've made a change to the client code. No telling how long it'll
take before that code falls into your eager hands, but it's checked
into the tree so you'll get it eventually. :)
It now starts with an array containing "http://" "https://" and
"ftp://" and runs through the message searching for each of those
prefixes.
Can that fix be made available for Webcit, too? My "goodbye" file has a number of links to various Citadels with https:// at the beginning, and they never render as links from webcit.
I noticed it on another version but I don't remember if it was something I downloaded directly or was in theOct 4 2013 9:54pm from IGnatius T Foobar @uncnsrd
I noticed that too. I'm not sure whether it's been recently fixed or
recetly broken.
repositories. It worked correctly on an earlier version so it must be recently broken
Cool, thanks. I didn't think about ftp:// or porn:// and everything is already filtered through nsa://It now starts with an array containing "http://" "https://" and
"ftp://" and runs through the message searching for each of those
prefixes.
Oct 4 2013 9:54pm from IGnatius T Foobar @uncnsrd
I noticed that too. I'm not sure whether it's been recently fixed or
recetly broken.
Works fine for me either sshing to uncensored or using my local client (installed from apt-get, I THINK). I did notice that behavior on my test system on the AWS; it wouldn't show the connected web user (my wife).