diff --git a/irc/channel.go b/irc/channel.go index 07b52913..fa18b62d 100644 --- a/irc/channel.go +++ b/irc/channel.go @@ -449,7 +449,7 @@ func (channel *Channel) Persist() (err error) { channel.lists[ExceptMask].String(), channel.lists[InviteMask].String()) } else { _, err = channel.server.db.Exec(` - DELETE FROM channel WHERE name = ?`, channel.name) + DELETE FROM channel WHERE name = ?`, channel.name.String()) } return }