mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 20:09:41 +01:00
JOIN: Only give chanop, not chan founder (will save that for regged chans)
This commit is contained in:
parent
f57a43f3da
commit
8eb8193b18
@ -241,7 +241,8 @@ func (channel *Channel) Join(client *Client, key string) {
|
|||||||
channel.members.Add(client)
|
channel.members.Add(client)
|
||||||
if len(channel.members) == 1 {
|
if len(channel.members) == 1 {
|
||||||
channel.createdTime = time.Now()
|
channel.createdTime = time.Now()
|
||||||
channel.members[client][ChannelFounder] = true
|
// // we should only do this on registered channels
|
||||||
|
// channel.members[client][ChannelFounder] = true
|
||||||
channel.members[client][ChannelOperator] = true
|
channel.members[client][ChannelOperator] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user