1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

thx tg.. is_localhost() was being used very inconsistently

This commit is contained in:
psyc://psyced.org/~lynX 2010-02-26 21:56:20 +01:00
parent 446a3006a8
commit dcbee7a64e
8 changed files with 10 additions and 9 deletions

View file

@ -107,7 +107,7 @@ parseUDP(ip, port, msg) {
send_udp(ip, port, reply);
return;
}
islocaltarget = is_localhost(tu[UHost]);
islocaltarget = is_localhost(lower_case(tu[UHost]));
// TODO this may be either local or remote users
if (islocaltarget && tu[UUser]) target = find_person(tu[UUser]);
// TODO works only for online users
@ -156,7 +156,7 @@ parseUDP(ip, port, msg) {
su = parse_uniform(source);
source = 0;
#if 0
if (is_localhost(su[UHost])) {
if (is_localhost(lower_case(su[UHost]))) {
object o;
o = find_person(su[UUser]);
// TODO: check that source is coming from