From ae3bb9c7a39202ba462b3b8a0a564804a5517cf4 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 14 Jun 2019 21:01:24 +0300 Subject: Add pm command --- ui/command-processor.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'ui/command-processor.go') diff --git a/ui/command-processor.go b/ui/command-processor.go index 0692ae3..96b1ada 100644 --- a/ui/command-processor.go +++ b/ui/command-processor.go @@ -76,12 +76,15 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor { Gomuks: parent.gmx, }, aliases: map[string]*Alias{ - "part": {"leave"}, - "send": {"sendevent"}, - "msend": {"msendevent"}, - "state": {"setstate"}, - "mstate": {"msetstate"}, - "rb": {"rainbow"}, + "part": {"leave"}, + "send": {"sendevent"}, + "msend": {"msendevent"}, + "state": {"setstate"}, + "mstate": {"msetstate"}, + "rb": {"rainbow"}, + "createroom": {"create"}, + "dm": {"pm"}, + "query": {"pm"}, }, commands: map[string]CommandHandler{ "unknown-command": cmdUnknownCommand, @@ -91,6 +94,7 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor { "clearcache": cmdClearCache, "leave": cmdLeave, "create": cmdCreateRoom, + "pm": cmdPrivateMessage, "join": cmdJoin, "kick": cmdKick, "ban": cmdBan, -- cgit v1.2.3