This commit is contained in:
psyc://psyced.org/~lynX 2011-08-26 11:19:35 +02:00
parent 23b0214076
commit 8cf148e717
5 changed files with 13 additions and 4 deletions

View File

@ -1130,7 +1130,8 @@ echo "Extracting psyced data..."
if test -d .git
then
if ! test `realpath .` = $BASE_DIR
# eh? what was 'realpath' supposed to be?
if ! test `pwd` = $BASE_DIR
then
if git clone . $BASE_DIR && cp -a .git/config $BASE_DIR/.git
then

View File

@ -1,6 +1,9 @@
<PSYC:TEXTDB> ## vim:syntax=mail
## Check utf-8: Praise Atatürk!
_warning_server_shutdown_temporary
|Serverneustart: [_reason]
_status_circuit_encryption_cipher
|Gratuliere! Deine Verbindung ist mit Folgenlosigkeit verschlüsselt.

View File

@ -666,7 +666,7 @@ int xmpp_sendmsg(mixed target, string mc, mixed data, mapping vars,
// need to have a different domain name
} else if (is_localhost(u[UHost])) {
unless (u[UUser]) {
P0(("Intercepted %O to %O from %O\n", mc, target, source))
P1(("Intercepted %O to %O from %O\n", mc, target, source))
// 0 makes sendmsg try to relay via xmpp.scheme.psyced.org
// but fippo doesn't like that
return -4;
@ -1053,7 +1053,8 @@ int bignum_cmp(string a, string b) {
// allocating a local variable to "cache" it
if (strlen(a) > strlen(b)) return 1;
if (strlen(a) < strlen(b)) return -1;
for (i=0; i<strlen(a); i++) if (a[i] == b[i]) break;
for (i=0; i<strlen(a); i++) if (a[i] != b[i]) break;
P4(("bignum_cmp\n%O vs\n%O at %O is %c vs %c\n", a, b, i, a[i], b[i]))
if (a[i] > b[i]) return 1;
return -1;
}

View File

@ -139,7 +139,8 @@ msg(source, mc, data, vars, showingLog, target) {
case "_failure_unsuccessful_delivery":
case "_failure_unsuccessful_delivery_resolve":
case "_failure_unsupported_function_root":
unless (abbrev("_notice_forward", vars["_method_relay"])) {
unless (stringp(vars["_method_relay"])
&& abbrev("_notice_forward", vars["_method_relay"])) {
t = "Root got "+ (vars["_method_relay"] || mc || "missing method");
if (vars["_target_relay"]) t += " to "+ to_string(vars["_target_relay"]);
if (vars["_source_relay"]) t += " from "+ to_string(vars["_source_relay"]);

View File

@ -138,6 +138,9 @@ parse_statuses(string data) {
o = send_to_user ? user : find_place(nick);
// show tweets on driver console..
P1(("<%O> %O\n", o || nick, d["text"]))
// _message_twitter ? not so convincing.. a lot of the
// things are converted rss newsfeeds, and when private
// people are "chatting" over twitter, they are still