Skip to content

Commit

Permalink
titles are limited to 512... thanks to the evil fool who exploited th…
Browse files Browse the repository at this point in the history
…is to disconnect my cute little bot :(
  • Loading branch information
Oli4242 committed Nov 13, 2014
1 parent 82bb327 commit e580584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Yuko
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ def handle_privmsg_request(irc, message, request)
end

if request[:name] == 'internet'
irc.privmsg message.channel, "http://www.internetshouldbeillegal.com/"
irc.privmsg message.channel, "http://www.internetshouldbeillegal.com/"
end
end

def handle_privmsg_urls(irc, message, urls)
urls.take(3).each do |url|
begin
object = LinkThumbnailer.generate url
irc.privmsg message.channel, object.title if object.title && object.title.size > 0
irc.privmsg message.channel, object.title[0...512] if object.title && object.title.size > 0
rescue StandardError
end
end
Expand Down
2 changes: 1 addition & 1 deletion config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
config.irc.port = 6667
config.irc.ssl = false
config.irc.channel = '#mangas'
config.irc.nickname = 'Yuko'
config.irc.nickname = 'Yuko3'
config.irc.greeting = 'Yuko kuruyo~ https://youtu.be/cIkoZbvTfwc \o/'

# MyAnimeList Account:
Expand Down

0 comments on commit e580584

Please sign in to comment.