austinv11 / PeripheralsPlusPlus

A pseudo-port of miscperipherals, with other stuff as well!
GNU General Public License v2.0
25 stars 28 forks source link

Chatbox commands error if label cannot be set, but has no way to detect that #148

Closed KnightMiner closed 8 years ago

KnightMiner commented 8 years ago

Currently, if you add the label to a chatbox using the fifth parameter when labels are disabled, it returns an error. The problem is that there is no way to know you cannot set the label before getting the error, meaning your code relies on the users configuration.

Either the command needs to just ignore the label if it cannot be set, or a new function (such as canSetLabel returning a boolean) needs to be added.