From ad0cb076e4cf03c42245a173a3dd9f1149bd3000 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Thu, 24 May 2018 03:38:32 +0200
Subject: [PATCH] Minor fixes

---
 main.go    |  1 -
 schema.sql | 10 ++++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/main.go b/main.go
index ec8d0c9..52e8f23 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 c1cd69e..9e58e39 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,
-- 
GitLab