diff options
author | Alexey Shchepin <alexey@process-one.net> | 2005-06-30 11:29:04 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2005-06-30 11:29:04 +0000 |
commit | d6d51b0fb707c790964d99914e0b97713bcd0cd1 (patch) | |
tree | f182d1c6e847b39493dd0e2e5ca29e63064c4c36 | |
parent | * (all): Enhanced virtual hosting support (diff) |
* src/mod_offline.erl: Bugfix
SVN Revision: 371
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/mod_offline.erl | 13 |
2 files changed, 11 insertions, 6 deletions
@@ -1,3 +1,7 @@ +2005-06-30 Alexey Shchepin <alexey@sevcom.net> + + * src/mod_offline.erl: Bugfix + 2005-06-20 Alexey Shchepin <alexey@sevcom.net> * (all): Enhanced virtual hosting support diff --git a/src/mod_offline.erl b/src/mod_offline.erl index a289c9195..5b70650a8 100644 --- a/src/mod_offline.erl +++ b/src/mod_offline.erl @@ -103,12 +103,13 @@ store_packet(From, To, Packet) -> TimeStamp = now(), {xmlelement, _Name, _Attrs, Els} = Packet, Expire = find_x_expire(TimeStamp, Els), - ?PROCNAME ! #offline_msg{us = {LUser, LServer}, - timestamp = TimeStamp, - expire = Expire, - from = From, - to = To, - packet = Packet}, + gen_mod:get_module_proc(To#jid.lserver, ?PROCNAME) ! + #offline_msg{us = {LUser, LServer}, + timestamp = TimeStamp, + expire = Expire, + from = From, + to = To, + packet = Packet}, stop; _ -> ok |