Closed clintecker closed 10 years ago
I would probably implement channel access controls as authorize(username)
on Hector::Identity.adapter
.
In fact, even though channel access controls seem out of Hector's proper scope, Hector's default YamlIdentityAdapter
could simply return true
for everyone, leaving finer-grained controls for others to implement.
P.S. I know this issue is hella old and nobody except for Clint cares about it. I just happened to be looking at the list. Don't judge!
:+1:
You would be passing in username + channel, though, right?
Hmm, yeah. authorize_join(username, channel)
or something. I can envision other authorize_
methods for decidedly un-Hector-like events such as kicking, opping, or even sending messages.
How.... primitive.
Your face is primitive
hm!!
GitHub is racist against eggplants and refuses to let me post one
I think you mean AUBERGINE
GOD
This is kind of a big thing, but it would entail Hector talking to some sort of relational database to store persistant channel permissions. Ultimately I believe usernames and passwords themselves would be stored here.
Probably the easiest solution would be to use sqlite.