Skip to content

Commit

Permalink
Finished up a little more syntaxy stuff...
Browse files Browse the repository at this point in the history
  • Loading branch information
robbyrussell committed Sep 16, 2005
1 parent 4485aed commit 79be7ce
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions svnwatch.rb
Expand Up @@ -7,12 +7,12 @@

require 'drb'

# Configuration
@conf = Hash.new

@conf[:port] = '7666' # 7666
@conf[:host] = 'localhost' # localhost, don't set to remote ip unless you know what you are doing
@conf[:chan] = '#pdx.rb'
# Configuration Options
@conf = {
:port => '7666', # 7666
:host => 'localhost', # localhost, don't set to remote ip unless you know what you are doing
:chan => '#pdx.rb' # IRC channel that you want rbot to send notices to
}

class SvnWatch < Plugin

Expand All @@ -25,7 +25,7 @@ def help(plugin, topic="")
def privmsg(m)
m.reply "I don't actually have anything to say. I just sit and wait for SVN to call me."
end

# Sends a message to the channel defined. This will allow
# you to use the DRb instance to call the send_msg(str)
# method, which will output to the desired channel
Expand All @@ -46,3 +46,5 @@ def send_msg(str)
DRb.start_service("druby://#{@conf[:host]}:#{@conf[:port]}", @svnwatch)
DRb.thread.join
}

# that's all folks!

0 comments on commit 79be7ce

Please sign in to comment.