lib/protonbot/plug_utils.rb in protonbot-0.2.6 vs lib/protonbot/plug_utils.rb in protonbot-0.2.7
- old
+ new
@@ -89,19 +89,19 @@
# Sends CTCP to given target.
# @param target [String]
# @param msg [String]
# @return [Plug] self
def ctcp(target, msg)
- write("PRIVMSG #{target} :\x01#{msg}\x01")
+ write("PRIVMSG #{target} :\x01#{self.class.process_colors(msg)}\x01")
self
end
# Sends NCTCP to given target.
# @param target [String]
# @param msg [String]
# @return [Plug] self
def nctcp(target, msg)
- write("NOTICE #{target} :\x01#{msg}\x01")
+ write("NOTICE #{target} :\x01#{self.class.process_colors(msg)}\x01")
self
end
# Invites user to given channel
# @param chan [String]