Skip to content

Commit

Permalink
removed broken scanning function
Browse files Browse the repository at this point in the history
  • Loading branch information
talkkonnect committed Mar 5, 2022
1 parent 55369e8 commit 90c8e8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
27 changes: 1 addition & 26 deletions clientcommands.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,32 +457,7 @@ func (b *Talkkonnect) Scan() {
return
}

if b.Client.Self.Channel.ID+1 > maxchannelid {
prevChannelID = 0
channel := b.Client.Channels[prevChannelID]
b.Client.Self.Move(channel)
return
}

if prevChannelID < maxchannelid {
prevChannelID++

for i := prevChannelID; uint32(i) < maxchannelid+1; i++ {
channel := b.Client.Channels[i]
if channel != nil {
b.Client.Self.Move(channel)
time.Sleep(1000 * time.Millisecond)
if len(b.Client.Self.Channel.Users) == 1 {
b.Scan()
break
} else {

log.Println("info: Found Someone Online Stopped Scan on Channel ", b.Client.Self.Channel.Name)
return
}
}
}
}
log.Println("alert: New Scan Not Implemented Yet")
}

func (b *Talkkonnect) SendMessage(textmessage string, PRecursive bool) {
Expand Down
4 changes: 2 additions & 2 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
package talkkonnect

const (
talkkonnectVersion string = "2.12.04"
talkkonnectVersion string = "2.12.05"
talkkonnectReleased string = "Mar 5 2022"
)

/* Release Notes
1. Fixed Channel Up/Down when No Token For Last Channel
1. Removed Old Scanning Function
*/

0 comments on commit 90c8e8f

Please sign in to comment.