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