diff options
Diffstat (limited to 'hotline/client.go')
| -rw-r--r-- | hotline/client.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hotline/client.go b/hotline/client.go index b423f9f..e676e65 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -46,6 +46,12 @@ func (cp *ClientPrefs) IconBytes() []byte { return iconBytes } +func (cp *ClientPrefs) AddBookmark(name, addr, login, pass string) error { + cp.Bookmarks = append(cp.Bookmarks, Bookmark{Addr: addr, Login: login, Password: pass}) + + return nil +} + func readConfig(cfgPath string) (*ClientPrefs, error) { fh, err := os.Open(cfgPath) if err != nil { |