Sha256: 4eb7e6d238699bbc8a287d10f4f08bd0cc636e60a419ceae2c541660647e977d

Contents?: true

Size: 426 Bytes

Versions: 5

Compression:

Stored size: 426 Bytes

Contents

class IRC
  module Commands
    def privmsg(target, message)
      send_cmd(:privmsg, target, message)
    end

    alias msg privmsg

    def notice(target, message)
      send_cmd(:notice, target, message)
    end

    def join(channel)
      send_cmd(:join, channel)
    end

    def part(channel, message=nil)
      send_cmd(:part, channel, message)
    end

    def pong(msg)
      send_cmd(:pong, msg)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
on_irc-2.1.5 lib/on_irc/commands.rb
on_irc-2.1.4 lib/on_irc/commands.rb
on_irc-2.1.3 lib/on_irc/commands.rb
on_irc-2.1.1 lib/on_irc/commands.rb
on_irc-2.1.0 lib/on_irc/commands.rb