diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irc/connection.ex | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/irc/connection.ex b/lib/irc/connection.ex index bdcc658..3d27f93 100644 --- a/lib/irc/connection.ex +++ b/lib/irc/connection.ex @@ -454,6 +454,21 @@ defmodule IRC.Connection do :ok end + defp track_mode(network, channel, nick, "+v") do + IRC.UserTrack.change_privileges(network, channel, nick, {[:voice], []}) + :ok + end + + defp track_mode(network, channel, nick, "-v") do + IRC.UserTrack.change_privileges(network, channel, nick, {[], [:voice]}) + :ok + end + + defp track_mode(network, channel, nick, mode) do + Logger.warn("Unhandled track_mode: #{inspect {nick, mode}}") + :ok + end + defp server(%{conn: %{host: host, port: port}}) do host <> ":" <> to_string(port) end |