aboutsummaryrefslogtreecommitdiff
path: root/hid/main.go
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-08-06 12:09:18 +0200
committerPřemysl Janouch <p@janouch.name>2018-08-06 12:09:18 +0200
commitf32e2f14839e6560409897d9472fd6e3820e2568 (patch)
treea8fb2955d6e54b3c186fd15bc40fde79777a3a6f /hid/main.go
parent62418ebb543caf0da72e9f3a8ec77bc7b978cfa7 (diff)
downloadhaven-f32e2f14839e6560409897d9472fd6e3820e2568.tar.gz
haven-f32e2f14839e6560409897d9472fd6e3820e2568.tar.xz
haven-f32e2f14839e6560409897d9472fd6e3820e2568.zip
hid: port IRC tests from liberty, fix tag parsing
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 {