LearnProgramming / percival

An IRC bot designed to help the LPMCers track quotes, log channels, and all sorts of things
22 stars 8 forks source link

Approved Users #9

Open jfredett opened 12 years ago

jfredett commented 12 years ago

There should be a list of "Approved Users" for whom certain commands are allowed. There should therefore be a UserCapability class which supports a approved_user? class method, so that when I pass a nickname into the #approved_user? method, it returns true if the user is approved, false otherwise.

colwem commented 12 years ago

The ChannelChanger plugin has a UserRole class that implements this. It should probably be refactored though.