Selaa lähdekoodia

rename IncludeAllChannelAttrs

tags/v2.0.0
Shivaram Lingamneni 4 vuotta sitten
vanhempi
commit
3005e95c1f
3 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 2
    2
      irc/channel.go
  2. 2
    2
      irc/channelmanager.go
  3. 1
    1
      irc/channelreg.go

+ 2
- 2
irc/channel.go Näytä tiedosto

@@ -359,7 +359,7 @@ func (channel *Channel) Transfer(client *Client, target string, hasPrivs bool) (
359 359
 	status = channelTransferFailed
360 360
 	defer func() {
361 361
 		if status == channelTransferComplete && err == nil {
362
-			channel.Store(IncludeAllChannelAttrs)
362
+			channel.Store(IncludeAllAttrs)
363 363
 		}
364 364
 	}()
365 365
 
@@ -400,7 +400,7 @@ func (channel *Channel) transferOwnership(newOwner string) {
400 400
 func (channel *Channel) AcceptTransfer(client *Client) (err error) {
401 401
 	defer func() {
402 402
 		if err == nil {
403
-			channel.Store(IncludeAllChannelAttrs)
403
+			channel.Store(IncludeAllAttrs)
404 404
 		}
405 405
 	}()
406 406
 

+ 2
- 2
irc/channelmanager.go Näytä tiedosto

@@ -198,7 +198,7 @@ func (cm *ChannelManager) SetRegistered(channelName string, account string) (err
198 198
 	defer func() {
199 199
 		if err == nil && channel != nil {
200 200
 			// registration was successful: make the database reflect it
201
-			err = channel.Store(IncludeAllChannelAttrs)
201
+			err = channel.Store(IncludeAllAttrs)
202 202
 		}
203 203
 	}()
204 204
 
@@ -272,7 +272,7 @@ func (cm *ChannelManager) Rename(name string, newName string) (err error) {
272 272
 	var info RegisteredChannel
273 273
 	defer func() {
274 274
 		if channel != nil && info.Founder != "" {
275
-			channel.Store(IncludeAllChannelAttrs)
275
+			channel.Store(IncludeAllAttrs)
276 276
 			// we just flushed the channel under its new name, therefore this delete
277 277
 			// cannot be overwritten by a write to the old name:
278 278
 			cm.server.channelRegistry.Delete(info)

+ 1
- 1
irc/channelreg.go Näytä tiedosto

@@ -70,7 +70,7 @@ const (
70 70
 
71 71
 // this is an OR of all possible flags
72 72
 const (
73
-	IncludeAllChannelAttrs = ^uint(0)
73
+	IncludeAllAttrs = ^uint(0)
74 74
 )
75 75
 
76 76
 // RegisteredChannel holds details about a given registered channel.

Loading…
Peruuta
Tallenna