WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

Auth: Look for OPs or Voice #39

Closed NanoSector closed 7 years ago

NanoSector commented 9 years ago

The Auth module should be able to look for OPs and voiced users in a channel and give them privileges. Great suggestion by Stifler.

Amunak commented 9 years ago

Yeah, I feel like ops, halfops, owners, people with voice, but also regular users should be a special "user" in the bot which would allow a very fine-grained control over what permissions those people get.

Most bots just ignore in-channel statuses and I feel like that's a huge issue because in no way should one not distinguish between an anonymous user that is marked as a channel owner by the nework and anonymous user that's just an ordinary client.

NanoSector commented 9 years ago

We probably want the Auth module to depend on ChannelManager in that case, and have ChannelManager have information about each channel ready.

That also means we should track MODE changes and people joining and leaving, on a per-channel basis.

Amunak commented 9 years ago

yeah, when the auth module is loaded (or this could possibly be a separate module that would just provide this optional functionality to the auth module) we definitely do want to track people who are on channels with the bot and their status (I believe the channel manager was supposed to do this anyway).

NanoSector commented 9 years ago

Yeah I believe ChannelManager was supposed to create and manage entries for each channel. We've never gotten around to implementing that properly, beyond the bot itself.

NanoSector commented 9 years ago

I'll move this to Auth's repo once it comes available.

NanoSector commented 7 years ago

Please see #74.