Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coretasks: fix bad WHO tracking stuck in loop
`who_reqs` used to track `WHO` requests to the server flipped keys/values and was never getting cleared upon `RPL_ENDOFWHO`. Eventually, this would lead to an endless loop while the bot tried to get an unused "querytype" (`randint`) in order to track `WHO` replies. Now, key/values are in a more useful order (channel --map--> querytype). Also, the unneccessary loop used to ensure unique values for the query type was removed. A `RPL_WHOREPLY` includes the channel name in the response, so confirming that the querytype for a channel matched is sufficient. The same querytype could even be used for every channel without issue.
- Loading branch information