# File lib/rbot/ircbot.rb, line 676
  def action(where, message, mchan="", mring=-1)
    if mchan == ""
      chan = where
    else
      chan = mchan
    end
    if mring < 0
      if where =~ /^#/
        ring = 2
      else
        ring = 1
      end
    else
      ring = mring
    end
    sendq "PRIVMSG #{where} :\001ACTION #{message}\001", chan, ring
    if(where =~ /^#/)
      irclog "* #{@nick} #{message}", where
    elsif (where =~ /^(\S*)!.*$/)
      irclog "* #{@nick}[#{where}] #{message}", $1
    else
      irclog "* #{@nick}[#{where}] #{message}", where
    end
  end