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

/status url fix for user channels

This commit is contained in:
Gabor Adam Toth 2010-02-24 06:10:19 +01:00
parent a5b52d8264
commit 3e48f15b17
3 changed files with 7 additions and 7 deletions

View file

@ -2029,7 +2029,7 @@ showStatus(verbosity, al, person, mc, data, vars) {
// problem with POST over https apparently.. // problem with POST over https apparently..
(HTTP_URL) (HTTP_URL)
# endif # endif
+ "/@"+ MYNICK +" "+ + "/"+ pathName() +" "+
# endif # endif
# ifdef SIP_PATH # ifdef SIP_PATH
// "sip:#"+ MYLOWERNICK +"@"+ SERVER_HOST +" "+ // "sip:#"+ MYLOWERNICK +"@"+ SERVER_HOST +" "+
@ -2126,6 +2126,11 @@ psycName() {
return "@"+MYLOWERNICK; return "@"+MYLOWERNICK;
} }
pathName() {
ASSERT("pathName", stringp(MYNICK), MYNICK)
return "@"+MYNICK;
}
// inheritance hooks // inheritance hooks
leave(source, mc, data, vars) { return 1; } leave(source, mc, data, vars) { return 1; }
enter(source, mc, data, vars) { // mayEnter? enter(source, mc, data, vars) { // mayEnter?

View file

@ -631,10 +631,6 @@ numEntries() {
return sizeof(_thread); return sizeof(_thread);
} }
pathName() {
return psycName();
}
// old stuff // old stuff
#if 0 #if 0

View file

@ -212,10 +212,9 @@ qHistoryGlimpse() {
} }
psycName() { psycName() {
ASSERT("psycName", stringp(MYNICK), MYNICK)
return MYLOWERNICK; return MYLOWERNICK;
} }
pathName() { pathName() {
return regreplace(psycName(), "#", "/", 1); return regreplace(MYNICK, "#", "/", 1);
} }