lib/protonbot/memos/plugin.rb in protonbot-memos-0.1.0 vs lib/protonbot/memos/plugin.rb in protonbot-memos-0.1.1
- old
+ new
@@ -44,10 +44,10 @@
hook(type: :privmsg) do |dat|
memos = dat[:db].query('memos').ensure.select('host' => dat[:host]).finish
unless memos.empty?
memos.each do |memo|
- dat.reply("#{dat[:nick]}: #{memo['message']} [#{memo['by']}]")
+ dat.reply("%B#{dat[:nick]}%N: #{memo['message']} %B[%N%C%PURPLE#{memo['by']}%N%B]%N")
end
dat[:db].query('memos').ensure.delete('host' => dat[:host]).write.finish
end
end
end
\ No newline at end of file