lib/protonbot/plug_utils.rb in protonbot-0.2.7 vs lib/protonbot/plug_utils.rb in protonbot-0.3.0

- old
+ new

@@ -93,9 +93,18 @@ def ctcp(target, msg) write("PRIVMSG #{target} :\x01#{self.class.process_colors(msg)}\x01") self end + # Sends CTCP ACTION to given target + # @param target [String] + # @param msg [String] + # @return [Plug] self + def action(target, msg) + ctcp(target, "ACTION #{msg}") + self + end + # Sends NCTCP to given target. # @param target [String] # @param msg [String] # @return [Plug] self def nctcp(target, msg)