Unverified Commit 6e92b52a authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Actually open the bulletin board

parent 2112f5d8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -56,12 +56,12 @@ func Open(acc string) error {
		return errors.New("account preference database problem")
	}

	bulldir := path.Join(xdg.ConfigHome, "BULLETIN")
	bulldir := path.Join(xdg.DataHome, "BULLETIN")
	err = os.MkdirAll(bulldir, 0700)
	if err != nil {
		return errors.New("bulletin directory problem")
	}
	User.bull, err = sql.Open("sqlite", path.Join(bulldir, acc, ".db"))
	User.bull, err = sql.Open("sqlite", path.Join(bulldir, "bboard.db"))
	if err != nil {
		return errors.New("bulletin database problem")
	}