diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-04-14 00:34:25 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-04-14 00:34:25 +0300 |
commit | e7bf5bd59fc0a43172b6ab5b338e1d60bd4b3bbb (patch) | |
tree | 67aacbe31ba2d95fd7a648254f5173d7f46b4dc1 /ui/view-main.go | |
parent | 69c163cfe9d353060896403a3e844848d4fd54eb (diff) |
Add basic HTML rendering (ref #16)
Diffstat (limited to 'ui/view-main.go')
-rw-r--r-- | ui/view-main.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/view-main.go b/ui/view-main.go index e5850d3..ccb3cc1 100644 --- a/ui/view-main.go +++ b/ui/view-main.go @@ -164,9 +164,7 @@ func (view *MainView) HandleCommand(roomView *RoomView, command string, args []s view.gmx.Stop() case "/panic": panic("This is a test panic.") - case "/part": - fallthrough - case "/leave": + case "/part", "/leave": debug.Print("Leave room result:", view.matrix.LeaveRoom(roomView.Room.ID)) case "/join": if len(args) == 0 { |