diff options
Diffstat (limited to 'lib/irc/client/command/account.ex')
-rw-r--r-- | lib/irc/client/command/account.ex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/irc/client/command/account.ex b/lib/irc/client/command/account.ex index c5ec1a9..e0088cd 100644 --- a/lib/irc/client/command/account.ex +++ b/lib/irc/client/command/account.ex @@ -1,17 +1,17 @@ defmodule Irc.Client.Command.Account do - alias Irc.Parser.Line + alias Irc.Line - @type t :: logout :: {:account, Irc.Mask.t} | login :: {:account, Irc.Mask.t, String.t} + #@type t :: (logout :: {:account, Irc.Mask.t}) | (login :: {:account, Irc.Mask.t, String.t}) - def init() do + def init(_) do {"ACCOUNT", nil, "account-notify"} end - def handle_line(%Line{command: "ACCOUNT", source: target, args: ["*"]}) do + def handle_line(_, %Line{command: "ACCOUNT", source: target, args: ["*"]}) do {:event, {:account, target}} end - def handle_line(%Line{command: "ACCOUNT", source: target, args: [account_name]}) do + def handle_line(_, %Line{command: "ACCOUNT", source: target, args: [account_name]}) do {:event, {:account, target, account_name}} end |