cinchrb / cinch

The IRC Bot Building Framework
http://www.rubydoc.info/gems/cinch
MIT License
1k stars 180 forks source link

Ability to restrict a plugin to certain chans only #99

Closed Shahor closed 11 years ago

Shahor commented 11 years ago

Hello,

I wrote this small patch because I needed this very feature. I just began reading the source so I may have done it wrong, please let me know if it is the case, I'll be glad to follow your advices/conventions.

Cheers

dominikh commented 11 years ago

I'm not sure I want it to be part of Cinch's core, because it's a very specific use case. Other people might want to limit it to users, or users in a channel, or forbid it for some channels only, or forbid it for some users in some channel etc.

I'd suggest using an ACL extension, like the following: https://gist.github.com/3857485

Shahor commented 11 years ago

Thank you for this tip :) I will do it this way then.

2012/10/9 Dominik Honnef notifications@github.com

I'm not sure I want it to be part of Cinch's core, because it's a very specific use case. Other people might want to limit it to users, or users in a channel, or forbid it for some channels only, or forbid it for some users in some channel etc.

I'd suggest using an ACL extension, like the following: https://gist.github.com/3857485

— Reply to this email directly or view it on GitHubhttps://github.com/cinchrb/cinch/pull/99#issuecomment-9253616.