mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-29 23:29:27 -07:00
don't give operator to the first person to enter an empty persistent channel
This commit is contained in:
@@ -145,10 +145,8 @@ func (channel *Channel) Join(client *Client, key string) {
|
||||
|
||||
client.channels.Add(channel)
|
||||
channel.members.Add(client)
|
||||
if len(channel.members) == 1 {
|
||||
if !channel.flags[Persistent] {
|
||||
channel.members[client][ChannelCreator] = true
|
||||
}
|
||||
if !channel.flags[Persistent] && (len(channel.members) == 1) {
|
||||
channel.members[client][ChannelCreator] = true
|
||||
channel.members[client][ChannelOperator] = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user