diff options
Diffstat (limited to 'lib/irc/shout.ex')
-rw-r--r-- | lib/irc/shout.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/irc/shout.ex b/lib/irc/shout.ex index 8a3966b..912517c 100644 --- a/lib/irc/shout.ex +++ b/lib/irc/shout.ex @@ -12,9 +12,9 @@ defmodule Irc.Shout do def do_shout({:ok, conn}, target, message, opts) do mon = Process.monitor(conn) result = with \ - {:ok, _info} <- Connection.await_up(conn, Keyword.get(opts, :await_up_timeout)), - :ok <- join(conn, target), - :ok <- Connection.sendline(conn, ['PRIVMSG ', target, ' :', message]) + {_, {:ok, _info}} <- {:await_up, Connection.await_up(conn, Keyword.get(opts, :await_up_timeout))}, + {_, :ok} <- {:join, join(conn, target)}, + {_, :ok} <- {:send, Connection.sendline(conn, ['PRIVMSG ', target, ' :', message])} do :ok else |