FuelRats / pipsqueak

ED Fuel rats IRC bot
Other
13 stars 14 forks source link

Added a sanity check #236

Closed theunkn0wn1 closed 6 years ago

theunkn0wn1 commented 6 years ago

Added a sanity check to sopel-modules\rat-board.py This sanity check will prevent dispatchers from assigning a client to their own cases.

I myself have done this a few times in error as well as other Dispatches, requiring a pm'ed !unassign afterwards. The error can produce confusion for clients, as they are told to add themselves to their friends list.

Instead the !assign attempt will fail with a nicely worded error message (please do review) "Unable to assign a client to their own case."

theunkn0wn1 commented 6 years ago

craap.. left a debug line in. DO NOT MERGE YET Fixed.

Marenthyu commented 6 years ago

Will test and merge tomorrow (07/11)