diff options
author | Jordan Bracco <href@random.sh> | 2022-12-20 03:37:05 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:42 +0100 |
commit | 8a130bbafe90b45bf99e63091d11082e0a675c1b (patch) | |
tree | b0c129724b9d00da2a9cff261891955ab98cb739 /lib/plugins | |
parent | Rename IRC.{Message,Trigger} to Nola.{Message,Trigger}, refs T77. (diff) |
More IRC. cleanup, refs T77.
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/link/html.ex | 2 | ||||
-rw-r--r-- | lib/plugins/link/twitter.ex | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/plugins/link/html.ex b/lib/plugins/link/html.ex index 9b44319..a941aac 100644 --- a/lib/plugins/link/html.ex +++ b/lib/plugins/link/html.ex @@ -46,7 +46,7 @@ defmodule Nola.Plugins.Link.HTML do else "" end - [clean_text("#{prefix}#{Map.get(opengraph, "title")}")] ++ IRC.splitlong(clean_text("#{date}#{Map.get(opengraph, "description")}")) + [clean_text("#{prefix}#{Map.get(opengraph, "title")}")] ++ Nola.Irc.Message.splitlong(clean_text("#{date}#{Map.get(opengraph, "description")}")) else clean_text(title) end diff --git a/lib/plugins/link/twitter.ex b/lib/plugins/link/twitter.ex index e7f3e63..48e6bae 100644 --- a/lib/plugins/link/twitter.ex +++ b/lib/plugins/link/twitter.ex @@ -68,7 +68,7 @@ defmodule Nola.Plugins.Link.Twitter do else text end - text = IRC.splitlong(text) + text = Nola.Irc.Message.splitlong(text) reply_to = if tweet.in_reply_to_status_id do reply_url = link_tweet({tweet.in_reply_to_screen_name, tweet.in_reply_to_status_id}, opts) @@ -79,7 +79,7 @@ defmodule Nola.Plugins.Link.Twitter do quoted = if tweet.quoted_status do full_text = tweet.quoted_status |> expand_twitter_text(opts) - |> IRC.splitlong_with_prefix(">") + |> Nola.Irc.Message.splitlong_with_prefix(">") head = format_tweet_header(tweet.quoted_status, opts, details: false, prefix: "↓ quoting") |