diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irc/connection.ex | 6 | ||||
l--------- | lib/lsg_irc/.#youtube_handler.ex | 1 | ||||
-rw-r--r-- | lib/lsg_irc/alcolog_plugin.ex | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/irc/connection.ex b/lib/irc/connection.ex index 3d27f93..fee84c3 100644 --- a/lib/irc/connection.ex +++ b/lib/irc/connection.ex @@ -196,10 +196,14 @@ defmodule IRC.Connection do "?" => :query, "." => :dot, "~" => :tilde, + "@" => :at, "++" => :plus_plus, "--" => :minus_minus, "!!" => :bang_bang, "??" => :query_query, + ".." => :dot_dot, + "~~" => :tilde_tilde, + "@@" => :at_at } def handle_continue(:connect, state) do @@ -367,7 +371,7 @@ defmodule IRC.Connection do end def handle_info(unhandled, client) do - IO.puts inspect(unhandled) + Logger.debug("unhandled: #{inspect unhandled}") {:noreply, client} end diff --git a/lib/lsg_irc/.#youtube_handler.ex b/lib/lsg_irc/.#youtube_handler.ex deleted file mode 120000 index 0557ec1..0000000 --- a/lib/lsg_irc/.#youtube_handler.ex +++ /dev/null @@ -1 +0,0 @@ -href@echoes.1780
\ No newline at end of file diff --git a/lib/lsg_irc/alcolog_plugin.ex b/lib/lsg_irc/alcolog_plugin.ex index 290be50..8360b3c 100644 --- a/lib/lsg_irc/alcolog_plugin.ex +++ b/lib/lsg_irc/alcolog_plugin.ex @@ -57,7 +57,7 @@ defmodule LSG.IRC.AlcoologPlugin do def init(_) do triggers = for(t <- @pubsub_triggers, do: "trigger:"<>t) for sub <- @pubsub ++ triggers do - {:ok, _} = Registry.register(IRC.PubSub, "account", plugin: __MODULE__) + {:ok, _} = Registry.register(IRC.PubSub, sub, plugin: __MODULE__) end dets_filename = (LSG.data_path() <> "/" <> "alcoolisme.dets") |> String.to_charlist {:ok, dets} = :dets.open_file(dets_filename, [{:type,:bag}]) |