Massive cleanup - coding style, tiny bugs, typos and other errors

This commit is contained in:
Sergei
2023-07-29 22:23:11 -07:00
committed by eleksir
parent 0f1177bd91
commit e8f8b3cb49
18 changed files with 767 additions and 392 deletions

View File

@@ -94,8 +94,8 @@ func main() {
Debug: verboseClient,
Session: false,
Status: "xa",
StatusMessage: "echo bot is starting up",
DialTimeout: 10 * time.Second,
StatusMessage: fmt.Sprintf("%s bot is starting up", config.Jabber.Nick),
DialTimeout: time.Duration(config.Jabber.ConnectionTimeout) * time.Second,
}
go sigHandler()
@@ -145,7 +145,6 @@ func main() {
default:
// Это уже что-то странное.
// Вероятно, ошибка парсинга xml. Собственно, баг сервера, тут мы ничего поделать не можем
os.Exit(1)
}
}