diff options
Diffstat (limited to 'chat/ejabberd/patches/patch-ab')
-rw-r--r-- | chat/ejabberd/patches/patch-ab | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chat/ejabberd/patches/patch-ab b/chat/ejabberd/patches/patch-ab new file mode 100644 index 00000000000..5f48ed139ff --- /dev/null +++ b/chat/ejabberd/patches/patch-ab @@ -0,0 +1,24 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/03/10 08:58:32 martti Exp $ + +What is this for? + +--- src/mod_last.erl.orig 2008-01-16 12:33:27.000000000 +0200 ++++ src/mod_last.erl 2008-02-11 13:46:13.000000000 +0200 +@@ -133,7 +133,16 @@ + sub_el = [{xmlelement, "query", + [{"xmlns", ?NS_LAST}, + {"seconds", integer_to_list(Sec)}], +- [{xmlcdata, Status}]}]} ++ [{xmlcdata, Status}]}]}; ++ [{last_activity, _, TimeStamp}] -> ++ {MegaSecs, Secs, _MicroSecs} = now(), ++ TimeStamp2 = MegaSecs * 1000000 + Secs, ++ Sec = TimeStamp2 - TimeStamp, ++ IQ#iq{type = result, ++ sub_el = [{xmlelement, "query", ++ [{"xmlns", ?NS_LAST}, ++ {"seconds", integer_to_list(Sec)}], ++ []}]} + end. + + |