badgerdb messageservers storage
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -53,6 +53,13 @@ func (ints *Server) GetServerCard() *meowlib.ServerCard {
|
||||
return &sc
|
||||
}
|
||||
|
||||
func (sc *Server) GetUid() string {
|
||||
if len(sc.Login) > 0 || len(sc.Password) > 0 {
|
||||
return sc.Login + ":" + sc.Password + "@" + sc.Url
|
||||
}
|
||||
return sc.Url
|
||||
}
|
||||
|
||||
// Create a server from a server card
|
||||
func CreateServerFromServerCard(server *meowlib.ServerCard) *Server {
|
||||
var is Server
|
||||
|
Reference in New Issue
Block a user