diff options
author | href <href@random.sh> | 2021-01-11 15:53:02 +0100 |
---|---|---|
committer | href <href@random.sh> | 2021-01-11 15:53:02 +0100 |
commit | 0f3f0e035b43eabd3f739c41964446962cf54208 (patch) | |
tree | 9279c54e100c92375c9d980e2031e0a153245025 /lib/irc/client/command/invite.ex | |
parent | Some fixes (diff) |
Cont. wipmaster
Diffstat (limited to 'lib/irc/client/command/invite.ex')
-rw-r--r-- | lib/irc/client/command/invite.ex | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/irc/client/command/invite.ex b/lib/irc/client/command/invite.ex index 833c2fc..7a14cb8 100644 --- a/lib/irc/client/command/invite.ex +++ b/lib/irc/client/command/invite.ex @@ -1,21 +1,20 @@ defmodule Irc.Client.Command.Invite do - alias Irc.Parser.Line + alias Irc.Line @type invite :: {:invite, channel :: String.t(), inviter :: String.t(), invited_nick :: String.t()} @type invited :: {:invite, channel :: String.t, inviter :: Irc.Mask.t} @type t :: invite | invited - def init() do + def init(_) do {"INVITE", :invite, "invite-notify"} end - def handle_line(%Line{command: "INVITE", source: inviter, args: [invited, channel]}) do + def handle_line(_, %Line{command: "INVITE", source: inviter, args: [invited, channel]}) do {:event, {:invite, channel, inviter, invited}} end - def handle_line(%Line{command: "INVITE", source: inviter, args: [channel]}) do + def handle_line(_, %Line{command: "INVITE", source: inviter, args: [channel]}) do {:event, {:invite, channel, inviter}} end end - |