forked from an/flokati
fix
This commit is contained in:
parent
85b5e3d519
commit
d128cc7491
1
main.go
1
main.go
|
@ -36,6 +36,7 @@ func init() {
|
|||
}
|
||||
|
||||
func main() {
|
||||
sayCh := make(chan string, 1024)
|
||||
xlog.Info("%s started", SoftwareInfo())
|
||||
modules.Init(sayCh, *mods)
|
||||
modules.BotNick = strings.ToLower(*nick)
|
||||
|
|
|
@ -31,11 +31,8 @@ func Matrix() {
|
|||
}
|
||||
})
|
||||
|
||||
fmt.Println("hier 1")
|
||||
|
||||
go func() {
|
||||
for {
|
||||
fmt.Println("hier 2")
|
||||
if err := cl.Sync(); err != nil {
|
||||
fmt.Println("Sync() returned ", err)
|
||||
}
|
||||
|
@ -43,14 +40,9 @@ func Matrix() {
|
|||
}
|
||||
}()
|
||||
|
||||
fmt.Println("hier 11")
|
||||
|
||||
sayCh <- fmt.Sprintf("%s\n%s", "*", SoftwareInfo())
|
||||
|
||||
fmt.Println("hier 4")
|
||||
|
||||
for {
|
||||
fmt.Println("hier 3")
|
||||
var targets string
|
||||
line := strings.Split(<-sayCh, "\n")
|
||||
if len(line) < 2 {
|
||||
|
|
Loading…
Reference in New Issue