lib/meimei/client.rb
# Parses a messages and dispatches as necessary.
Parses a messages and dispatches as necessary.
Parses a messages and dispatches as necessary .
def process_message(msg)
      @current_from = nil
      @current_to = nil
      @current_msg = nil
      case msg
      when /^:(.+?)!(.+?)@(\S+) PRIVMSG (\S+) :(.+)$/
        @current_from = $1
        @current_to = $4
        @current_msg = $5.strip
        self.check_command_plugins(@current_msg)
      when /^PING (.+)$/
        @current_server.write("PONG #{$1}")
      end
    end
def process_message ( msg ) @current_from = nil @current_to = nil @current_msg = nil case msg when / ^:(.+?)!(.+?)@( \S +) PRIVMSG ( \S +) :(.+)$ / @current_from = $1 @current_to = $4 @current_msg = $5 . strip self . check_command_plugins ( @current_msg ) when / ^PING (.+)$ / @current_server . write ( "PONG #{$1}" ) end end
Parses a messages and dispatches as necessary.
Parses a messages and dispatches as necessary .
msg
<not_specific>