diff options
author | Jordan Bracco <href@random.sh> | 2022-12-20 03:27:32 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:42 +0100 |
commit | a2e3a9e6fcab2e32e0ca208d8242e8d6812a67df (patch) | |
tree | 4dd596a3a8a9025137d7723107d794ec9e329d06 /lib/plugins/quatre_cent_vingt.ex | |
parent | Finish moving things from IRC. to Nola., refs T77 (diff) |
Rename IRC.{Message,Trigger} to Nola.{Message,Trigger}, refs T77.
Diffstat (limited to '')
-rw-r--r-- | lib/plugins/quatre_cent_vingt.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/quatre_cent_vingt.ex b/lib/plugins/quatre_cent_vingt.ex index 254f5ce..6b3cc46 100644 --- a/lib/plugins/quatre_cent_vingt.ex +++ b/lib/plugins/quatre_cent_vingt.ex @@ -45,7 +45,7 @@ defmodule Nola.Plugins.QuatreCentVingt do for coeff <- @coeffs do qvc = to_string(420 * coeff) - def handle_info({:irc, :trigger, unquote(qvc), m = %IRC.Message{trigger: %IRC.Trigger{args: [], type: :bang}}}, dets) do + def handle_info({:irc, :trigger, unquote(qvc), m = %Nola.Message{trigger: %Nola.Trigger{args: [], type: :bang}}}, dets) do {count, last} = get_statistics_for_nick(dets, m.account.id) count = count + unquote(coeff) text = achievement_text(count) @@ -64,7 +64,7 @@ defmodule Nola.Plugins.QuatreCentVingt do end end - def handle_info({:irc, :trigger, "420", m = %IRC.Message{trigger: %IRC.Trigger{args: [nick], type: :bang}}}, dets) do + def handle_info({:irc, :trigger, "420", m = %Nola.Message{trigger: %Nola.Trigger{args: [nick], type: :bang}}}, dets) do account = Nola.Account.find_by_nick(m.network, nick) if account do text = case get_statistics_for_nick(dets, m.account.id) do |