diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-06-14 21:01:24 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-06-14 21:01:24 +0300 |
commit | ae3bb9c7a39202ba462b3b8a0a564804a5517cf4 (patch) | |
tree | dfb4233137b9c4bebd74f052c890ea1f50fe0cfa /ui/command-processor.go | |
parent | 7c39729ada794aa2bfe91028ae3f3cfd3020de6f (diff) |
Add pm command
Diffstat (limited to 'ui/command-processor.go')
-rw-r--r-- | ui/command-processor.go | 16 |
1 files changed, 10 insertions, 6 deletions
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, |