Username.replace issues with user.sanitize in latest build


PhantomBot Version: 2.3.8-NB-20170925
Build Revision: ad268f6
OS Version: Windows 10
Java Version: 1.8 u 131
Browser and Version (for Panel Support): Latest Stable Chrome
Stock PhantomBot: No - but modifications are irrelevant

Description of Issue:

In the nightly build there’s a new sanitize function that’s used in most of the point features. For some reason I’m getting an error because of it:

Here’s the error from some users attempting to !gift each other:

[09-26-2017 @ 02:00:12.206 GMT] [init.js:300] (, command, ./systems/pointSystem.js) InternalError: The choice of Java method java.lang.String.replace matching JavaScript argument types (function,string) is ambiguous; candidate methods are: 
    class java.lang.String replace(char,char)
    class java.lang.String replace(java.lang.CharSequence,java.lang.CharSequence) (misc.js#69)


Fixed in 3783585


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.