PhantomBot Version: 188.8.131.52-NB-20180509 (Revision: 3887b3e)
Control Panel Version 1.1
Java Version: 1.8.0_171-b11
OS Version: Windows 10
Control Panel Software
jQuery UI 1.11.4
Font Awesome 4.5.0
I noticed the other day that the Notices were not being triggered when I deleted some of them.
The bug happens when you have several notices and the bot has been running for some time and you remove all but one notice.
Let’s say you have 4 notices, the bot will start at index 0 incrementing the counter on every successful post to chat. So if you are on index 2 and remove all but one the bot will keep forever and ever try to send the notice at index 3 which no longer exist.
The following is a copy of the log:
[05-10-2018 @ 17:15:02.824 GMT] [CHAT] /me test 0
[05-10-2018 @ 17:20:02.838 GMT] [CHAT] /me test 1
[05-10-2018 @ 17:25:02.852 GMT] [CHAT] /me test 2
[05-10-2018 @ 17:30:02.866 GMT] [CHAT] /me test 3
[05-10-2018 @ 17:35:02.878 GMT] [CHAT] /me test 0
[05-10-2018 @ 17:40:02.894 GMT] [CHAT] /me test 1
[05-10-2018 @ 17:49:39.576 GMT] edsmcr: something
At 17:41 I deleted notices 1 to 3 leaving only 0. But since the next index to be sent was supposed to be 3 it will always fail to send it.
variable needs to be reset if the sendNotice() function fails.