Sha256: 983cc79af6108b9c10f8fc893cd84a649a2336070fbd4374720a584add07aa0b
Contents?: true
Size: 447 Bytes
Versions: 1
Compression:
Stored size: 447 Bytes
Contents
module Ring class SQA class Alarm class UDP2IRC def send message, channel=CFG.irc.channel msg = [@password, channel, message[:short]].join ' ' msg += "\0" while msg.size % 16 > 0 UDPSocket.new.send msg, 0, HOST, PORT end private def initialize host=CFG.irc.host, port=CFG.irc.port, password=CFG.irc.password @host = host @port = port @password = password end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ring-sqa-0.0.15 | lib/ring/sqa/alarm/udp2irc.rb |