Skip to content

Commit 652890c

Browse files
committed
server group check url count
1 parent d46b8a9 commit 652890c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/bot/remote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func ConnectUniversal(cli *client.QQClient) {
3535
"User-Agent": []string{"CQHttp/4.15.0"},
3636
}
3737
for _, group := range config.Conf.ServerGroups {
38-
if group.Disabled {
38+
if group.Disabled || group.Urls == nil || len(group.Urls) < 1 {
3939
continue
4040
}
4141
serverGroup := *group

0 commit comments

Comments
 (0)