diff options
Diffstat (limited to 'src/VideoList.hx')
| -rw-r--r-- | src/VideoList.hx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/VideoList.hx b/src/VideoList.hx index 2f13b6c..e2d88d5 100644 --- a/src/VideoList.hx +++ b/src/VideoList.hx @@ -64,4 +64,10 @@ abstract VideoList(Array<VideoItem>) from Array<VideoItem> to Array<VideoItem> { return itemPos; } + public function itemsByUser(client:Client):Int { + var i = 0; + for (item in this) if (item.author == client.name) i++; + return i; + } + } |
