Browse Source

fuck debian

Alison Watson 1 year ago
parent
commit
53bab8bfd5
3 changed files with 5 additions and 5 deletions
  1. 3
    3
      source/modules/mod_doomrla.rb
  2. 1
    1
      source/modules/mod_dtl.rb
  3. 1
    1
      source/modules/mod_notify.rb

+ 3
- 3
source/modules/mod_doomrla.rb View File

@@ -34,7 +34,7 @@ class Mod_DoomRLA < Vrobot4::Module::Module
34 34
 
35 35
    def c_assemblyinfo m, argv
36 36
       t = ""
37
-      w = @winfo.select {|wep| wep if wep["Assembly"] and wep["AssemblyItem"].casecmp? argv}
37
+      w = @winfo.select {|wep| wep if wep["Assembly"] and wep["AssemblyItem"].casecmp(argv) == 0}
38 38
       raise ArgumentError, "No assemblies found" if w == nil || w.empty?
39 39
 
40 40
       w.each {|wep| t << wep["Assembly"] + " - " + wep["Name"] + "\n"}
@@ -42,7 +42,7 @@ class Mod_DoomRLA < Vrobot4::Module::Module
42 42
    end
43 43
 
44 44
    def c_weaponinfo m, argv
45
-      w = @winfo.find {|wep| wep if wep["Name"].casecmp? argv}
45
+      w = @winfo.find {|wep| wep if wep["Name"].casecmp(argv) == 0}
46 46
       raise ArgumentError, "Weapon not found" if w == nil
47 47
 
48 48
       t  = "#{w["Damage"]} #{w["DamageType"]} damage\n"
@@ -64,7 +64,7 @@ class Mod_DoomRLA < Vrobot4::Module::Module
64 64
 
65 65
    def c_monsterinfo m, argv
66 66
       mi = @minfo.select do |mon|
67
-         mon if mon["Name"].casecmp? argv or mon["Tags"].split(", ").include? argv
67
+         mon if mon["Name"].casecmp(argv) == 0 or mon["Tags"].split(", ").include? argv
68 68
       end
69 69
       raise ArgumentError, "No monsters found" if mi == nil || mi.empty?
70 70
 

+ 1
- 1
source/modules/mod_dtl.rb View File

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

+ 1
- 1
source/modules/mod_notify.rb View File

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

Loading…
Cancel
Save