mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 19:41:00 +00:00
Availability degree checked by server
This commit is contained in:
parent
7bcd5852f4
commit
c324da0255
@ -3980,4 +3980,9 @@ jabber/*
|
|||||||
group/master
|
group/master
|
||||||
- don't use local objects as they may get replaced and zeroed
|
- don't use local objects as they may get replaced and zeroed
|
||||||
use local uniforms instead (fixes some strange ghost membership fx)
|
use local uniforms instead (fixes some strange ghost membership fx)
|
||||||
|
usercmd
|
||||||
|
+ _failure_necessary_variable for _request_do_presence that
|
||||||
|
doesn't provide _availability (just provides _mood for example)
|
||||||
|
- tycho: Availability degree is not checked by server and can
|
||||||
|
be negative, like -5.
|
||||||
|
|
||||||
|
@ -1762,15 +1762,22 @@ case "_friend": // tmp
|
|||||||
return 1;
|
return 1;
|
||||||
#ifndef _flag_disable_module_presence
|
#ifndef _flag_disable_module_presence
|
||||||
case "_presence":
|
case "_presence":
|
||||||
P3(("%O with %O\n", mc, vars))
|
if (t = vars["_degree_mood"]) {
|
||||||
if ((t = vars["_degree_mood"]) && intp(t))
|
if (! sscanf(t, "%1d", t)) {
|
||||||
vSet("mood", mood = t);
|
w("_warning_usage_mood");
|
||||||
if ((t = vars["_degree_availability"]) && intp(t)) {
|
return 1;
|
||||||
announce(t, !vars["_degree_automation"],
|
}
|
||||||
|
vSet("mood", mood = t);
|
||||||
|
}
|
||||||
|
if (t = vars["_degree_availability"]) {
|
||||||
|
if (! sscanf(t, "%1d", t))
|
||||||
|
w("_warning_usage_availability");
|
||||||
|
else
|
||||||
|
announce(t, !vars["_degree_automation"],
|
||||||
1, vars["_description_presence"]);
|
1, vars["_description_presence"]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
P1(("got invalid %O: %O, %O\n", mc, vars, data))
|
P1(("got invalid %O: %O, %O in %O\n", mc, vars, data, ME))
|
||||||
w("_failure_necessary_variable");
|
w("_failure_necessary_variable");
|
||||||
return 1;
|
return 1;
|
||||||
#endif // _flag_disable_module_presence
|
#endif // _flag_disable_module_presence
|
||||||
|
Loading…
Reference in New Issue
Block a user