1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-02 17:18:31 +00:00

Add bunching get_link, without enabling it

This commit is contained in:
Kane York 2015-11-01 00:26:46 -07:00
parent d6f5b28ef5
commit 40e26b5535
3 changed files with 137 additions and 7 deletions

View file

@ -159,3 +159,17 @@ func RemoveFromSliceC(ary *[]chan<- ClientMessage, val chan<- ClientMessage) boo
*ary = slice
return true
}
func AddToSliceB(ary *[]BunchSubscriber, client *ClientInfo, mid int) bool {
newSub := BunchSubscriber{Client: client, MessageID: mid}
slice := *ary
for _, v := range slice {
if v == newSub {
return false
}
}
slice = append(slice, newSub)
*ary = slice
return true
}