3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

JOIN: Only give chanop, not chan founder (will save that for regged chans)

This commit is contained in:
Daniel Oaks 2016-12-01 18:12:51 +10:00
parent f57a43f3da
commit 8eb8193b18

View File

@ -241,7 +241,8 @@ func (channel *Channel) Join(client *Client, key string) {
channel.members.Add(client)
if len(channel.members) == 1 {
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
}