Correct typo in name-lookup plugin.

This commit is contained in:
Major-
2015-02-25 16:33:57 +00:00
parent 496de2b7f8
commit 5814c5b44f
+1 -1
View File
@@ -24,7 +24,7 @@ def lookup_entity(type, name)
return cached unless cached.nil?
id = name[name.rindex(' ') + 1, name.length - 1].to_i if name.include?(' ')
id = find_entities(type, name, 1).first if (id .nil? || id.zero?)
id = find_entities(type, name, 1).first if (id.nil? || id.zero?)
raise "The #{type} called #{name} could not be identified." if id.nil?