We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First of all, great work. I'm having a problem though with the chat box getting cleared completely when I purge a message.
The problem seems to be:
if (obj.detail.command === "CLEARCHAT") { $('#log').empty(); }
Which completely deletes the chat instead of purging an individual message.
The text was updated successfully, but these errors were encountered:
Hello.
Never notice that both /clear and /timeout uses same command id. I will update the themes later during Chinese New Year holidays.
This code should fix the issue. Will test further as I update the themes.
if (obj.detail.command === "CLEARCHAT" && typeof obj.detail.tags["ban-duration"] == "undefined") { $('#log').empty(); }
Edit: Wait this does not fix all issues. Will try to find other solution. Edit 2: This should fix it, I think ??
if (obj.detail.command === "CLEARCHAT" && typeof obj.detail.tags["ban-duration"] == "undefined" && typeof obj.detail.body == "undefined") { $('#log').empty(); }
Edit 3: Doesn't need ban duration.
if (obj.detail.command === "CLEARCHAT" && typeof obj.detail.body == "undefined") { $('#log').empty(); }
Sorry, something went wrong.
No branches or pull requests
First of all, great work. I'm having a problem though with the chat box getting cleared completely when I purge a message.
The problem seems to be:
if (obj.detail.command === "CLEARCHAT") { $('#log').empty(); }
Which completely deletes the chat instead of purging an individual message.
The text was updated successfully, but these errors were encountered: