Advertisement
swarley

auto_load.lc

Oct 23rd, 2011
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.29 KB | None | 0 0
  1. def ping_response(line)
  2.     pinged_by, response = line.split(':')
  3.     @socket.puts "PONG :#{response}"
  4.     puts "Pinged by #{pinged_by} at #{Time.now.to_i}"
  5. end
  6.  
  7. state :default;
  8. @conf[:warnings], @conf[:strict], @conf[:fatal] = true,true,true;
  9. register_event(:default, 'Ping', 'ping_response')
  10.  
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement