aboutsummaryrefslogtreecommitdiff
path: root/ui/command-processor.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/command-processor.go')
-rw-r--r--ui/command-processor.go16
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,