Skip to content

Commit eda108f

Browse files
committed
1 parent 5dd834e commit eda108f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/irc/scripts/utility.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function getPlayerFromPartialName (name)
4646
if getPlayerName(player) == name then
4747
return player
4848
end
49-
if string.find(string.lower(getPlayerName(player)),string.lower(name),0,false) then
49+
if string.find(string.lower(getPlayerName(player)),string.lower(name),0,true) then
5050
table.insert(matches,player)
5151
end
5252
end
@@ -62,7 +62,7 @@ function getTeamFromPartialName (name)
6262
if getTeamName(team) == name then
6363
return team
6464
end
65-
if string.find(string.lower(getTeamName(team)),string.lower(name),0,false) then
65+
if string.find(string.lower(getTeamName(team)),string.lower(name),0,true) then
6666
table.insert(matches,team)
6767
end
6868
end
@@ -78,7 +78,7 @@ function getResourceFromPartialName (name)
7878
if getResourceName(resource) == name then
7979
return resource
8080
end
81-
if string.find(string.lower(getResourceName(resource)),string.lower(name),0,false) then
81+
if string.find(string.lower(getResourceName(resource)),string.lower(name),0,true) then
8282
table.insert(matches,resource)
8383
end
8484
end

0 commit comments

Comments
 (0)