summaryrefslogtreecommitdiff
path: root/lib/irc/client/command/chghost.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irc/client/command/chghost.ex')
-rw-r--r--lib/irc/client/command/chghost.ex6
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