summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui/buffers.go11
-rw-r--r--ui/ui.go11
2 files changed, 0 insertions, 22 deletions
diff --git a/ui/buffers.go b/ui/buffers.go
index 606a7ee..5620f60 100644
--- a/ui/buffers.go
+++ b/ui/buffers.go
@@ -9,17 +9,6 @@ import (
"github.com/gdamore/tcell"
)
-var Home = "home"
-
-var homeMessages = []string{
- "\x1dYou open an IRC client.",
- "Welcome to the Internet Relay Network!",
- "Mentions & cie go here.",
- "May the IRC be with you.",
- "Hey! I'm senpai, you everyday IRC student!",
- "Student? No, I'm an IRC \x02client\x02!",
-}
-
func IsSplitRune(r rune) bool {
return r == ' ' || r == '\t'
}
diff --git a/ui/ui.go b/ui/ui.go
index 8c8d0ec..dc6e73a 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -1,7 +1,6 @@
package ui
import (
- "math/rand"
"sync/atomic"
"time"
@@ -51,17 +50,8 @@ func New(config Config) (ui *UI, err error) {
ui.exit.Store(false)
- hmIdx := rand.Intn(len(homeMessages))
ui.bs = NewBufferList(w, h, ui.config.NickColWidth)
- ui.bs.Add(Home)
- ui.bs.AddLine("", false, Line{
- At: time.Now(),
- Head: "--",
- Body: homeMessages[hmIdx],
- })
-
ui.e = NewEditor(w, ui.config.AutoComplete)
-
ui.Resize()
return
@@ -187,7 +177,6 @@ func (ui *UI) Resize() {
w, h := ui.screen.Size()
ui.e.Resize(w)
ui.bs.Resize(w, h)
- ui.Draw()
}
func (ui *UI) Draw() {