Fixup for running on Debian on Debian Trixie (13)

This commit is contained in:
Stef Dunlap 2025-06-02 12:00:39 -04:00
parent 09993218c6
commit f60561d470
2 changed files with 2 additions and 2 deletions

3
our.rb
View File

@ -78,7 +78,6 @@ class User
def loop
while line = s.gets
msg = Message.new line
puts "S: #{msg.raw}"
@hooks.each{|h| h.call(msg)}
end
end
@ -119,7 +118,7 @@ i.hook do |msg|
cmd, args = content.split(' ', 2)
cmd = "#{cmds_dir}/#{cmd}"
args ||= ''
next unless File.exists? cmd
next unless File.exist? cmd
if not File.executable? cmd
i.privmsg target, "#{cmd} isn't executable. try chmod +x"
next

View File

@ -12,4 +12,5 @@ OUR_CMDS_DIR=${OUR_CMDS_DIR:-/town/our}
--tmpfs /tmp \
--unshare-pid \
--die-with-parent \
--uid 0 --gid 0 \
"$@"