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/chghost.ex | |
parent | Some fixes (diff) |
Cont. wipmaster
Diffstat (limited to 'lib/irc/client/command/chghost.ex')
-rw-r--r-- | lib/irc/client/command/chghost.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/irc/client/command/chghost.ex b/lib/irc/client/command/chghost.ex index 2b4adab..9a59307 100644 --- a/lib/irc/client/command/chghost.ex +++ b/lib/irc/client/command/chghost.ex @@ -1,13 +1,13 @@ defmodule Irc.Client.Command.Chghost do - alias Irc.Parser.Line + alias Irc.Line @type t :: {:chghost, old_mask :: Irc.Mask.t, new_mask :: Irc.Mask.t} - def init() do + def init(_) do {"CHGHOST", nil, "chghost"} end - def handle_line(%Line{source: old_mask, args: [new_user, new_host]}, _) do + def handle_line(_, %Line{source: old_mask, args: [new_user, new_host]}) do new_mask = %Irc.Mask{old_mask | user: new_user, host: new_host} {:event, {:chghost, old_mask, new_mask}} end |