mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
Merge branch 'master' of git://git.psyced.org/git/psyced
This commit is contained in:
commit
3465bba9bb
3 changed files with 6 additions and 5 deletions
|
@ -91,7 +91,7 @@ _request_add(source, mc, data, vars, b) {
|
|||
}
|
||||
|
||||
unless (ni && p && (p->qFriend(target) || p->qFollower(target))) {
|
||||
sendmsg(source, "_error_add",
|
||||
sendmsg(source, "_error_request_add", // FIXMC
|
||||
"Error: [_person] is not a friend or follower.", ([ "_person": vars["_person"]]));
|
||||
return 1;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ _request_remove(source, mc, data, vars, b) {
|
|||
object target = summon_person(vars["_person"], NET_PATH "user") || vars["_person"];
|
||||
|
||||
unless (p && (qMember(target) || p->qFriend(target) || p->qFollower(target))) {
|
||||
sendmsg(source, "_error_add",
|
||||
sendmsg(source, "_error_request_remove", // FIXMC
|
||||
"Can't remove: [_person] is not a friend or follower.", ([ "_person": vars["_person"]]));
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue