Mercurial > prosody-hg
annotate util/roster.lua @ 3388:02e668d64e05
MUC: No need to call is_admin twice now, global admins are admins on hosts
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 17 Jul 2010 15:20:45 +0100 |
| parents | 69442c83602e |
| children |
| rev | line source |
|---|---|
|
3359
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
1 module "roster" |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
2 |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 local roster = {}; |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
4 roster.__index = roster; |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
5 |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
6 function new() |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
7 return setmetatable({}, roster); |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
8 end |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
9 |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
10 function roster:subscribers() |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
11 end |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
12 |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
13 function roster:subscriptions() |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
14 end |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
15 |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
16 function roster:items() |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
17 end |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
18 |
|
69442c83602e
util.roster: Initial skeleton commit
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
19 return _M; |
