All pastes #640092 Raw Edit

Something

public ruby v1 · immutable
#640092 ·published 2007-07-31 02:14 UTC
rendered paste body
#Ruby error executing hook 'RB': could not load "test.rb"#   (eval):13:in `module_load'# Ruby error executing hook 'RB': could not load "test.rb"#   (eval):13:in `module_load'# Ruby error executing hook 'RB': could not load "test.rb"#   (eval):13:in `module_load'# Ruby error executing hook 'RB': could not load "test.rb"#   (eval):13:in `module_load'# Ruby error executing hook 'RB': could not load "test.rb"#   (eval):13:in `module_load'# Ruby error executing hook 'RB': could not load "test.rb"#   (eval):13:in `module_load'# Ruby error executing hook 'RB': could not load "Test.rb"#   (eval):13:in `module_load'#===================== SCRIPT ========================include XChatRubyclass Test < XChatRubyPlugin  def initialize    @test_name = "test"    @active = false    @status_windows = "RB_TEST"        hook_command( "TestEcho", XCHAT_PRI_NORM, method( :test_echo ),                  " ", " " )        hook_print( "Channel Message", XCHAT_PRI_NORM, method( :filtre ), "Channel Message" )  end  def pr(data)    puts( data, "Recycled-IRC", @status_windows )  end  def filtre(words, data)    pr(words)    return XCHAT_EAT_NONE  end  def test_echo( words, words_eol, data )    pr(words)    return XCHAT_EAT_NONE  endend