20 lines
334 B
20 lines
334 B
// +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() |
|
|
|
}
|
|
|