diff options
Diffstat (limited to '')
-rw-r--r-- | lib/irc/user_track.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/irc/user_track.ex b/lib/irc/user_track.ex index 2614d98..02d5752 100644 --- a/lib/irc/user_track.ex +++ b/lib/irc/user_track.ex @@ -85,6 +85,12 @@ defmodule IRC.UserTrack do end end + def channel(channel) do + Enum.filter(to_list(), fn({_, nick, _, _, _, _, channels}) -> + Map.get(channels, channel) + end) + end + def joined(c, s), do: joined(c,s,[]) def joined(channel, sender=%{nick: nick, user: uname, host: host}, privileges) do |