fuck debian

master
an 2018-06-29 01:37:19 -04:00
parent c38c3969ef
commit 53bab8bfd5
3 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ class Mod_DoomRLA < Vrobot4::Module::Module
def c_assemblyinfo m, argv
t = ""
w = @winfo.select {|wep| wep if wep["Assembly"] and wep["AssemblyItem"].casecmp? argv}
w = @winfo.select {|wep| wep if wep["Assembly"] and wep["AssemblyItem"].casecmp(argv) == 0}
raise ArgumentError, "No assemblies found" if w == nil || w.empty?
w.each {|wep| t << wep["Assembly"] + " - " + wep["Name"] + "\n"}
@ -42,7 +42,7 @@ class Mod_DoomRLA < Vrobot4::Module::Module
end
def c_weaponinfo m, argv
w = @winfo.find {|wep| wep if wep["Name"].casecmp? argv}
w = @winfo.find {|wep| wep if wep["Name"].casecmp(argv) == 0}
raise ArgumentError, "Weapon not found" if w == nil
t = "#{w["Damage"]} #{w["DamageType"]} damage\n"
@ -64,7 +64,7 @@ class Mod_DoomRLA < Vrobot4::Module::Module
def c_monsterinfo m, argv
mi = @minfo.select do |mon|
mon if mon["Name"].casecmp? argv or mon["Tags"].split(", ").include? argv
mon if mon["Name"].casecmp(argv) == 0 or mon["Tags"].split(", ").include? argv
end
raise ArgumentError, "No monsters found" if mi == nil || mi.empty?

View File

@ -22,7 +22,7 @@ class Mod_DecatessaradimensionalLoungeAlertationAndRolinationManagerator < Vrobo
def get_role m, argv
roles = m.chan.real.server.roles
role = roles.find {|r| r.name.casecmp? argv}
role = roles.find {|r| r.name.casecmp(argv) == 0}
unless role and @info.any? {|id| role.id == id}
raise ArgumentError, "Invalid notification group, use `.listnotify` for a list of available groups."
end

View File

@ -12,7 +12,7 @@ class Mod_Notify < Vrobot4::Module::Module
def get_role m, argv
roles = m.chan.real.server.roles
role = roles.find {|r| r.name.casecmp? argv}
role = roles.find {|r| r.name.casecmp(argv) == 0}
unless role and @info.any? {|id| role.id == id}
raise ArgumentError, "Invalid notification group, use `.listnotify` for a list of available groups."
end