diff options
Diffstat (limited to 'commands/msg/unsubscribe.go')
-rw-r--r-- | commands/msg/unsubscribe.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/commands/msg/unsubscribe.go b/commands/msg/unsubscribe.go index c6a0b23f..7ba497b4 100644 --- a/commands/msg/unsubscribe.go +++ b/commands/msg/unsubscribe.go @@ -9,6 +9,7 @@ import ( "time" "git.sr.ht/~rjarry/aerc/app" + "git.sr.ht/~rjarry/aerc/commands" "git.sr.ht/~rjarry/aerc/config" "git.sr.ht/~rjarry/aerc/lib" "git.sr.ht/~rjarry/aerc/log" @@ -23,7 +24,11 @@ type Unsubscribe struct { } func init() { - register(Unsubscribe{}) + commands.Register(Unsubscribe{}) +} + +func (Unsubscribe) Context() commands.CommandContext { + return commands.MESSAGE } // Aliases returns a list of aliases for the :unsubscribe command |