Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ping_response(line)
- pinged_by, response = line.split(':')
- @socket.puts "PONG :#{response}"
- puts "Pinged by #{pinged_by} at #{Time.now.to_i}"
- end
- state :default;
- @conf[:warnings], @conf[:strict], @conf[:fatal] = true,true,true;
- register_event(:default, 'Ping', 'ping_response')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement