Compare commits

..

No commits in common. "0ffd5de65cc11e61795bad64edfee96aaf23ad3e" and "7d9cf97445a2a743c73f1e82d18afce9627f2d2c" have entirely different histories.

2 changed files with 28 additions and 28 deletions

View File

@ -9,7 +9,6 @@ go-xmpp4steam is a XMPP/Steam gateway.
* [go-xmpp](https://git.kingpenguin.tk/chteufleur/go-xmpp) for the XMPP part.
* [go-steam](https://github.com/Philipp15b/go-steam) for the steam part.
* [go-sqlite3](https://github.com/mattn/go-sqlite3) for the database part.
* [cfg](https://github.com/jimlawless/cfg) for the configuration file.

View File

@ -88,13 +88,14 @@ func (newLine *DatabaseLine) UpdateLine() bool {
}
func RemoveLine(jid string) bool {
// Update Steam login and password to blank before deleting,
// because it is not really deleted in the SQLite file.
line := new(DatabaseLine)
line.Jid = jid
line.UpdateLine()
return line.UpdateLine()
// FIXME not working
/*
log.Printf("%sRemove line %s", LogInfo, jid)
stmt, err := db.Prepare(deleteDatabaseStmt)
if err != nil {
log.Printf("%sError on delete jid %s", LogError, jid, err)
@ -113,11 +114,11 @@ func RemoveLine(jid string) bool {
return false
}
if affect == 0 {
log.Printf("%sNo line affected", LogDebug)
return false
}
return true
*/
}
func GetLine(jid string) *DatabaseLine {