Fix minor errors
parent
34d8744a6a
commit
5cb9129185
|
@ -1 +1 @@
|
||||||
--protected source/*.rb servers/*.rb - README
|
--protected source/*.rb source/servers/*.rb
|
||||||
|
|
|
@ -123,7 +123,7 @@ module Vrobot4::Module
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if opt.length
|
if opt.length
|
||||||
check_arg argv, 0, opt[0] if argv.length
|
check_arg argv, 0, opt[0] unless argv.empty?
|
||||||
else
|
else
|
||||||
check_arg argv, 0, req[0]
|
check_arg argv, 0, req[0]
|
||||||
end
|
end
|
||||||
|
|
|
@ -128,7 +128,7 @@ module Vrobot4::Server
|
||||||
def initialize info
|
def initialize info
|
||||||
@info = info
|
@info = info
|
||||||
@modules = [Mod_Base.new(nil)]
|
@modules = [Mod_Base.new(nil)]
|
||||||
load_permissions info["permissions"] if info.key? "permissions"
|
load_permissions info["permissions"]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Loads and initializes a module into the load list.
|
# Loads and initializes a module into the load list.
|
||||||
|
|
Loading…
Reference in New Issue