diff options
author | Wim <wim@42.be> | 2017-11-30 00:27:31 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-11-30 00:27:31 +0100 |
commit | cc3c1681622ccbf304edc2fce05169ce983560ab (patch) | |
tree | 3a26d8bf6824e7ff33b476931fbe8610400ad71e /vendor/github.com/lrstanley/girc/cmdhandler | |
parent | 1ee6837f0e8e88aa02b6af8c29c1cc6c29ed0dd3 (diff) | |
download | matterbridge-msglm-cc3c1681622ccbf304edc2fce05169ce983560ab.tar.gz matterbridge-msglm-cc3c1681622ccbf304edc2fce05169ce983560ab.tar.bz2 matterbridge-msglm-cc3c1681622ccbf304edc2fce05169ce983560ab.zip |
Update vendor lrstanley/girc
Diffstat (limited to 'vendor/github.com/lrstanley/girc/cmdhandler')
-rw-r--r-- | vendor/github.com/lrstanley/girc/cmdhandler/cmd.go | 10 |
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) |