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

use the UNick

This commit is contained in:
psyc://psyced.org/~lynX 2009-03-04 11:27:19 +01:00
parent 8e4e990261
commit 6fd2423ff9
17 changed files with 52 additions and 56 deletions

View file

@ -182,12 +182,7 @@ advertise(source) {
gated[source] = 1;
}
#endif
} else {
// maybe this kind of logic should be in parse_uniform?
// or is it too rarely needed thus inefficient?
login = u[UResource];
if (stringp(login) && strlen(login) > 1)
login = login[1 ..];
} else login = u[UNick];
}
unless (login && strlen(login)) return;
// introduce the federation user into the ircnet
@ -226,7 +221,7 @@ render(mc, data, vars, source) {
// return;
// }
// string ircsrc = (u[UScheme] || "xmpp") +";"+
// (UName(u) +"|"+
// (u[UNick] +"|"+
// replace(u[UHost], ".", "_");
if (source) {
advertise(source);

View file

@ -204,7 +204,7 @@ static int _status_place_members(mixed source, string mc,
# else
"_nick" : n,
# endif
"_nick_login" : u[UResource],
"_nick_login" : u[UNick],
"_identification_host" : u[UHost],
"_IRC_away" : "H",
"_IRC_hops" : "1",
@ -412,12 +412,12 @@ w(string mc, string data, mapping vars, mixed source) {
# ifdef ALIASES
if (raliases[source]) {
nick2 = raliases[source];
vars["_source_hack"] = nick2 + ((u[UUser] ||
(u[UResource] && u[UResource][0]))
? "!"+ UName(u) +"@"+ u[UHost]
: "!"+ (vars["_nick_long"] || vars["_INTERNAL_nick_plain"]
|| vars["_nick"])
+"@alias.undefined");
vars["_source_hack"] = nick2 +"!"+
u[UNick]? u[UNick] +"@"+ u[UHost]
: (vars["_nick_long"]
|| vars["_INTERNAL_nick_plain"]
|| vars["_nick"])
+"@alias.undefined";
}
unless (nick2) {
@ -426,7 +426,7 @@ w(string mc, string data, mapping vars, mixed source) {
case "psyc":
if (u[UUser] || (u[UResource] && strlen(u[UResource])
&& u[UResource][0] == '~')) {
string tmp = UName(u);
string tmp = u[UNick];
vars["_source_hack"] = u[UScheme] + "://"
+ u[UHostPort] +"/~"+ tmp +"!"+ tmp +"@"
+ u[UHostPort];