From e409bcec99531a517cc3374f8be4a5cddaa061c8 Mon Sep 17 00:00:00 2001 From: Jeremy Latt Date: Tue, 25 Feb 2014 13:12:11 -0800 Subject: [PATCH] simplify new channel insert --- irc/channel.go | 6 +----- irc/constants.go | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/irc/channel.go b/irc/channel.go index fb66073b..69e39077 100644 --- a/irc/channel.go +++ b/irc/channel.go @@ -35,11 +35,7 @@ func NewChannel(s *Server, name string) *Channel { } s.channels[name] = channel - s.db.Exec(`INSERT INTO channel - (name, flags, key, topic, user_limit) - VALUES (?, ?, ?, ?, ?)`, - channel.name, channel.flags.String(), channel.key, channel.topic, - channel.userLimit) + s.db.Exec(`INSERT INTO channel (name) VALUES (?)`, channel.name) return channel } diff --git a/irc/constants.go b/irc/constants.go index fbec13e2..35ff058c 100644 --- a/irc/constants.go +++ b/irc/constants.go @@ -209,7 +209,7 @@ const ( LocalOperator UserMode = 'O' Operator UserMode = 'o' Restricted UserMode = 'r' - ServerNotice UserMode = 's' + ServerNotice UserMode = 's' // deprecated WallOps UserMode = 'w' Anonymous ChannelMode = 'a' // flag