diff options
Diffstat (limited to 'lib/irc/client/command/names.ex')
-rw-r--r-- | lib/irc/client/command/names.ex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/irc/client/command/names.ex b/lib/irc/client/command/names.ex index b5a84a6..56ff2e9 100644 --- a/lib/irc/client/command/names.ex +++ b/lib/irc/client/command/names.ex @@ -1,21 +1,21 @@ defmodule Irc.Client.Command.Names do - alias Irc.Parser.Line + alias Irc.Line require Irc.Parser.Numeric import Irc.Parser.Numeric - def init() do + def init(_) do {[rpl_NAMREPLY(), rpl_ENDOFNAMES()], :names, ["userhost-in-names"]} end - def handle_line(%Line{command: rpl_NAMREPLY()}) do + def handle_line(_, %Line{command: rpl_NAMREPLY()}) do :buffer end - def handle_line(%Line{command: rpl_ENDOFNAMES(), args: [_, target | _]}) do + def handle_line(_, %Line{command: rpl_ENDOFNAMES(), args: [_, target | _]}) do :finish end - def handle_buffer(buffer = [%Line{args: [_, target | _]} | _]) do + def handle_buffer(_, buffer = [%Line{args: [_, target | _]} | _]) do {:event, {:names, target, buffer}} end |