aboutsummaryrefslogtreecommitdiff
path: root/src/mod_pubsub/mod_pubsub_odbc.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-12-04 16:08:31 +0000
committerBadlop <badlop@process-one.net>2009-12-04 16:08:31 +0000
commit5a006b977dd948db73ae68c52673e277ba2c7905 (patch)
treedc0ff3b68261891b8586834d8368bda742185645 /src/mod_pubsub/mod_pubsub_odbc.erl
parentExplain limitation in the mod_pubsub_odbc host option. (diff)
Small relax the limitation in the mod_pubsub_odbc host option.
SVN Revision: 2781
Diffstat (limited to 'src/mod_pubsub/mod_pubsub_odbc.erl')
-rw-r--r--src/mod_pubsub/mod_pubsub_odbc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_pubsub/mod_pubsub_odbc.erl b/src/mod_pubsub/mod_pubsub_odbc.erl
index 910ceda2e..0cbcdf38f 100644
--- a/src/mod_pubsub/mod_pubsub_odbc.erl
+++ b/src/mod_pubsub/mod_pubsub_odbc.erl
@@ -3557,7 +3557,7 @@ transaction_retry(Host, Fun, Trans, Count) ->
odbc_conn({_U, Host, _R})->
Host;
odbc_conn(Host) ->
- Host--"pubsub.". %% TODO, improve that for custom host
+ lists:dropwhile(fun(A) -> A/=$. end, Host) -- ".".
%% escape value for database storage
escape({_U, _H, _R}=JID)->