aboutsummaryrefslogtreecommitdiff
path: root/hid/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'hid/main.go')
-rw-r--r--hid/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hid/main.go b/hid/main.go
index a7bd2e9..c49b2f6 100644
--- a/hid/main.go
+++ b/hid/main.go
@@ -420,7 +420,7 @@ func ircFnmatch(pattern string, s string) bool {
}
var reMsg = regexp.MustCompile(
- `^(@[^ ]* +)?(?::([^! ]*)(?:!([^@]*)@([^ ]*))? +)?([^ ]+)(.*)?$`)
+ `^(?:@([^ ]*) +)?(?::([^! ]*)(?:!([^@]*)@([^ ]*))? +)?([^ ]+)(.*)?$`)
var reArgs = regexp.MustCompile(`:.*| [^: ][^ ]*`)
type message struct {