3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

fix channel insert statement

This commit is contained in:
Jeremy Latt 2014-02-25 21:59:32 -08:00
parent 9dc229b98f
commit 0d277025c1
2 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ func (channel *Channel) Persist() {
if channel.flags[Persistent] { if channel.flags[Persistent] {
channel.server.db.Exec(` channel.server.db.Exec(`
INSERT OR REPLACE INTO channel INSERT OR REPLACE INTO channel
(name, flags, key, topic) (name, flags, key, topic, user_list)
VALUES (?, ?, ?, ?, ?)`, VALUES (?, ?, ?, ?, ?)`,
channel.name, channel.flags.String(), channel.key, channel.topic, channel.name, channel.flags.String(), channel.key, channel.topic,
channel.userLimit) channel.userLimit)

View File

@ -23,7 +23,7 @@ var (
) )
const ( const (
SEM_VER = "ergonomadic-1.2.1" SEM_VER = "ergonomadic-1.2.2"
CRLF = "\r\n" CRLF = "\r\n"
MAX_REPLY_LEN = 512 - len(CRLF) MAX_REPLY_LEN = 512 - len(CRLF)