Compare commits
No commits in common. "0f775e150dde7da8ea404252b8542dc1779b9180" and "09993218c6031d56000f14dfc7023808e5b794fe" have entirely different histories.
0f775e150d
...
09993218c6
3
our.rb
3
our.rb
@ -78,6 +78,7 @@ class User
|
||||
def loop
|
||||
while line = s.gets
|
||||
msg = Message.new line
|
||||
puts "S: #{msg.raw}"
|
||||
@hooks.each{|h| h.call(msg)}
|
||||
end
|
||||
end
|
||||
@ -118,7 +119,7 @@ i.hook do |msg|
|
||||
cmd, args = content.split(' ', 2)
|
||||
cmd = "#{cmds_dir}/#{cmd}"
|
||||
args ||= ''
|
||||
next unless File.exist? cmd
|
||||
next unless File.exists? cmd
|
||||
if not File.executable? cmd
|
||||
i.privmsg target, "#{cmd} isn't executable. try chmod +x"
|
||||
next
|
||||
|
@ -12,5 +12,4 @@ OUR_CMDS_DIR=${OUR_CMDS_DIR:-/town/our}
|
||||
--tmpfs /tmp \
|
||||
--unshare-pid \
|
||||
--die-with-parent \
|
||||
--uid 0 --gid 0 \
|
||||
"$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user