diff --git a/main.go b/main.go index ec8d0c96824bc38664d63057dd74b795a467668d..52e8f23650605e74355223fae12df17e45b46c89 100644 --- a/main.go +++ b/main.go @@ -126,7 +126,6 @@ func main() { Nick: config.Irc.Nick, User: config.Irc.Ident, Name: config.Irc.Realname, - Debug: os.Stdout, } if config.Irc.SaslEnabled { ircConfig.SASL = &girc.SASLPlain{ diff --git a/schema.sql b/schema.sql index c1cd69e6e85b3ea140d4c183e37b8c14b81a0b85..9e58e397c0c6ea76c993fdc8c18ff23edf72681a 100644 --- a/schema.sql +++ b/schema.sql @@ -1,3 +1,13 @@ +create table channels ( + id serial not null + constraint channels_pkey primary key, + channel text not null, + salt text not null +); + +create unique index channels_channel_uindex + on channels (channel); + create table messages ( id serial not null constraint messages_pkey primary key,