aboutsummaryrefslogtreecommitdiff
path: root/src/mod_shared_roster.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2011-07-15 02:49:48 +0200
committerBadlop <badlop@process-one.net>2011-07-15 02:49:48 +0200
commit12d6f3364bc62c71af3df97bde70a22c3bd205d1 (patch)
tree64d71426a0b3e4c86383613a0744f2017daed387 /src/mod_shared_roster.erl
parentTry first to get table of the specific Host, otherwise try 'global' (diff)
Support static_modules in mod_blocking, configure, pres_counter, register, shared_roster and sic
Diffstat (limited to 'src/mod_shared_roster.erl')
-rw-r--r--src/mod_shared_roster.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mod_shared_roster.erl b/src/mod_shared_roster.erl
index 670745c7d..bc9c2fd88 100644
--- a/src/mod_shared_roster.erl
+++ b/src/mod_shared_roster.erl
@@ -63,8 +63,9 @@
-record(sr_group, {group_host, opts}).
-record(sr_user, {us, group_host}).
-start(Host, _Opts) ->
- HostB = list_to_binary(Host),
+start(Host, Opts) when is_list(Host) ->
+ start(list_to_binary(Host), Opts);
+start(HostB, _Opts) ->
mnesia:create_table(sr_group,
[{disc_copies, [node()]},
{attributes, record_info(fields, sr_group)}]),