This commit is contained in:
Alexander Yakovlev 2017-10-19 16:29:35 +07:00
parent f30502abc0
commit 0142f6859f

View file

@ -45,11 +45,11 @@ class QuestBook
if msg[1] != '' then
print = true
end
color = Digest::MD5.hexdigest(msg[1]).to_i(16) % 14 + 2
who = "[\x03#{color}#{msg[1]}\x0f]"
msg = msg[2]
a = Nokogiri::HTML.parse msg
msg = a.text
color = Digest::MD5.hexdigest(msg[1]).to_i(16) % 14 + 2
who = "[\x03#{color}#{msg[1]}\x0f]"
if msg[2] != @last and print then
Channel('#questbook').send("#{who}: #{msg}")
@last = msg[2]