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:
parent
4d15033c34
commit
424bc2bf70
8 changed files with 103 additions and 20 deletions
|
@ -391,10 +391,10 @@ object compile_object(string file) {
|
|||
unless (name = SIMUL_EFUN_FILE->legal_name(name, 1))
|
||||
return (object)0;
|
||||
|
||||
string username;
|
||||
if (sscanf(file, "place/~%s#updates", username)) {
|
||||
object p;
|
||||
unless ((p = SIMUL_EFUN_FILE->summon_person(username, NET_PATH "user")) && p->vQuery("password")) {
|
||||
string username, channel;
|
||||
if (sscanf(file, "place/~%s#%s", username, channel)) {
|
||||
object p = SIMUL_EFUN_FILE->summon_person(username, NET_PATH "user");
|
||||
unless (p && !p->isNewbie()) {
|
||||
P3(("PLACE %O NOT CLONED: %O isn't a registered user\n", name, username));
|
||||
return (object)0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue