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

user channel improvements

- allow arbitrary user channels to be subscribed, e.g. #follow or #friends, /sub ~user defaults to #follow
- friends & /invite'd strangers are allowed to join
This commit is contained in:
Gabor Adam Toth 2010-02-20 23:22:52 +01:00
parent 4d15033c34
commit 424bc2bf70
8 changed files with 103 additions and 20 deletions

View file

@ -547,11 +547,12 @@ int boss(mixed guy) {
mixed find_place(mixed a) {
P3((">> find_place(%O)\n", a))
string path, err;
string path, err, nick;
object o;
if (objectp(a)) return a;
if (path = lower_uniform(a)) return path;
if (sscanf(a, "~%s", nick) && legal_name(nick)) a += "#follow";
unless (a = legal_name(a, 1)) return 0;
path = PLACE_PATH + lower_case(a); // assumes amylaar
o = find_object(path);