mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
support for XEP-0203
This commit is contained in:
parent
f4542adc8b
commit
13b4af8098
5 changed files with 32 additions and 15 deletions
|
@ -28,6 +28,7 @@ int msg(string source, string mc, string data,
|
|||
PT(("_time_idle %O == %O, right?\n", vars["_time_idle"], t))
|
||||
}
|
||||
t = gmtime(time() - t);
|
||||
vars["_INTERNAL_time_jabber_legacy"] = JABBERTIMELEGACY(t);
|
||||
vars["_INTERNAL_time_jabber"] = JABBERTIME(t);
|
||||
} else {
|
||||
return 1;
|
||||
|
@ -385,6 +386,7 @@ int msg(string source, string mc, string data,
|
|||
// and JEP-0091 Delayed Delivery
|
||||
mc = "_message_public_history";
|
||||
t = gmtime(vars["_time_place"]);
|
||||
vars["_INTERNAL_time_place_jabber_legacy"] = JABBERTIMELEGACY(t);
|
||||
vars["_INTERNAL_time_place_jabber"] = JABBERTIME(t);
|
||||
} else if (!vars["_context"]) {
|
||||
mc = "_request_message_public";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue