summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2005-12-07 13:01:33 +0000
committerAlexey Shchepin <alexey@process-one.net>2005-12-07 13:01:33 +0000
commit56d62e11a8ad91b8ac858bf1219c792e067bc629 (patch)
tree65af632e605c281e501e9af5b2bb7cc1fa03d5d6 /src
parent* doc/guide.tex: Updated (diff)
* src/mod_offline.erl: Don't store headline messages
* src/mod_offline_odbc.erl: Likewise SVN Revision: 454
Diffstat (limited to 'src')
-rw-r--r--src/mod_offline.erl3
-rw-r--r--src/mod_offline_odbc.erl3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mod_offline.erl b/src/mod_offline.erl
index b86c0bc9..a261dbfc 100644
--- a/src/mod_offline.erl
+++ b/src/mod_offline.erl
@@ -96,7 +96,8 @@ stop(Host) ->
store_packet(From, To, Packet) ->
Type = xml:get_tag_attr_s("type", Packet),
if
- (Type /= "error") and (Type /= "groupchat") ->
+ (Type /= "error") and (Type /= "groupchat") and
+ (Type /= "headline") ->
case check_event(From, To, Packet) of
true ->
#jid{luser = LUser, lserver = LServer} = To,
diff --git a/src/mod_offline_odbc.erl b/src/mod_offline_odbc.erl
index d7a77ae4..1a62f08d 100644
--- a/src/mod_offline_odbc.erl
+++ b/src/mod_offline_odbc.erl
@@ -111,7 +111,8 @@ stop(Host) ->
store_packet(From, To, Packet) ->
Type = xml:get_tag_attr_s("type", Packet),
if
- (Type /= "error") and (Type /= "groupchat") ->
+ (Type /= "error") and (Type /= "groupchat") and
+ (Type /= "headline") ->
case check_event(From, To, Packet) of
true ->
#jid{luser = LUser} = To,