mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
JOIN: Fix a dumb bug. Really dumb bug.
This commit is contained in:
parent
88b5dd5621
commit
9a94121281
@ -279,9 +279,11 @@ func (channel *Channel) Join(client *Client, key string) {
|
|||||||
chanReg := client.server.loadChannelNoMutex(tx, channel.nameCasefolded)
|
chanReg := client.server.loadChannelNoMutex(tx, channel.nameCasefolded)
|
||||||
|
|
||||||
if chanReg == nil {
|
if chanReg == nil {
|
||||||
channel.createdTime = time.Now()
|
if len(channel.members) == 1 {
|
||||||
channel.members[client][ChannelOperator] = true
|
channel.createdTime = time.Now()
|
||||||
givenMode = &ChannelOperator
|
channel.members[client][ChannelOperator] = true
|
||||||
|
givenMode = &ChannelOperator
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// we should only do this on registered channels
|
// we should only do this on registered channels
|
||||||
if client.account != nil && client.account.Name == chanReg.Founder {
|
if client.account != nil && client.account.Name == chanReg.Founder {
|
||||||
|
Loading…
Reference in New Issue
Block a user