fixed issue with command events

This commit is contained in:
gnembon committed 2020-07-21 12:10:41 -03:00
1 parent cfc97c5703
commit b36ccc137f
1 file changed
+1 -1
@@ -193,7 +193,7 @@ public class CarpetEventServer
public void removeEventCall(String hostName, String funName)
{
callList.removeIf((c)-> c.function.getString().equals(funName) && ( hostName == null || c.host.equalsIgnoreCase(hostName) ) );
callList.removeIf((c)-> c.function.getString().equals(funName) && ( hostName == c.host || (c.host != null && c.host.equalsIgnoreCase(hostName) )) );
}
public void removeAllCalls(String hostName)