pokemontrades / porygon-bot

Porygon-Bot for IRC.
Apache License 2.0
7 stars 5 forks source link

Cache user registration status #62

Open not-an-aardvark opened 7 years ago

not-an-aardvark commented 7 years ago

Currently, if a command requires an account to be registered, the bot has to ping NickServ every single time a user attempts to use the command. This can cause commands to be slow, or can cause commands to fail if the status check times out.

We can get around this by caching registered nicks. However, it can't be time-based, because an imposter could join immediately after a registered account quits. So the cache should only be maintained as long as the bot can confirm that the user has not logged out.