summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/lrstanley/girc/cmdhandler/cmd.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/lrstanley/girc/cmdhandler/cmd.go')
-rw-r--r--vendor/github.com/lrstanley/girc/cmdhandler/cmd.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/vendor/github.com/lrstanley/girc/cmdhandler/cmd.go b/vendor/github.com/lrstanley/girc/cmdhandler/cmd.go
index 71bb9f89..a45a42f3 100644
--- a/vendor/github.com/lrstanley/girc/cmdhandler/cmd.go
+++ b/vendor/github.com/lrstanley/girc/cmdhandler/cmd.go
@@ -12,8 +12,9 @@ import (
// Input is a wrapper for events, based around private messages.
type Input struct {
- Origin *girc.Event
- Args []string
+ Origin *girc.Event
+ Args []string
+ RawArgs string
}
// Command is an IRC command, supporting aliases, help documentation and easy
@@ -189,8 +190,9 @@ func (ch *CmdHandler) Execute(client *girc.Client, event girc.Event) {
}
in := &Input{
- Origin: &event,
- Args: args,
+ Origin: &event,
+ Args: args,
+ RawArgs: parsed[2],
}
go cmd.Fn(client, in)