Archaism
parent
1d2e1bdb29
commit
9434cb3752
4
at.go
4
at.go
|
@ -65,8 +65,8 @@ func (a *atMonitor) Run(c *irc.Client, done chan bool) {
|
|||
|
||||
current := atHS.UserListZWS()
|
||||
|
||||
arrived := listSubstract(current, a.previousUserList)
|
||||
left := listSubstract(a.previousUserList, current)
|
||||
arrived := listSubtract(current, a.previousUserList)
|
||||
left := listSubtract(a.previousUserList, current)
|
||||
|
||||
if len(arrived) > 0 {
|
||||
diffText = fmt.Sprint(" +", arrived)
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
func listSubstract(a, b []string) (ret []string) {
|
||||
func listSubtract(a, b []string) (ret []string) {
|
||||
mb := make(map[string]bool, len(b))
|
||||
|
||||
for _, x := range b {
|
||||
|
|
Loading…
Reference in New Issue