From 12a5722d3b438cad42b14ea6e9bf7263b8de77c3 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Tue, 8 Oct 2019 12:51:33 -0400 Subject: [PATCH] New clean command for messed up windows --- cmdClean.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cmdClean.go diff --git a/cmdClean.go b/cmdClean.go new file mode 100644 index 0000000..aeb2eed --- /dev/null +++ b/cmdClean.go @@ -0,0 +1,20 @@ +// +build !rm_basic_commands allcommands cleancmd + +package main + +func init() { + command := Command{ + Cmd: []string{"clean", "c"}, + Description: "- Clean, or redraw chat view", + Help: "", + Exec: cmdClean, + } + + RegisterCommand(command) +} + +func cmdClean(cmd []string) { + clearView("Chat") + go populateChat() + +}