summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/lrstanley/girc/format.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-05-09 22:48:39 +0200
committerWim <wim@42.be>2018-05-09 22:48:39 +0200
commit521a7ed7b0b70d886f5863d453963dc35bc0c850 (patch)
tree3fbc5ebdff573fc4bfd8941895959672f8931b4b /vendor/github.com/lrstanley/girc/format.go
parent529b188164b7b0f18ca31a43410898e73a22ed03 (diff)
downloadmatterbridge-msglm-521a7ed7b0b70d886f5863d453963dc35bc0c850.tar.gz
matterbridge-msglm-521a7ed7b0b70d886f5863d453963dc35bc0c850.tar.bz2
matterbridge-msglm-521a7ed7b0b70d886f5863d453963dc35bc0c850.zip
Update vendor lrstanley/girc
Diffstat (limited to 'vendor/github.com/lrstanley/girc/format.go')
-rw-r--r--vendor/github.com/lrstanley/girc/format.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/lrstanley/girc/format.go b/vendor/github.com/lrstanley/girc/format.go
index 78a1f7bb..b974c3bd 100644
--- a/vendor/github.com/lrstanley/girc/format.go
+++ b/vendor/github.com/lrstanley/girc/format.go
@@ -136,7 +136,7 @@ func TrimFmt(text string) string {
return text
}
-// This is really the only fastest way of doing this (marginably better than
+// This is really the only fastest way of doing this (marginally better than
// actually trying to parse it manually.)
var reStripColor = regexp.MustCompile(`\x03([019]?[0-9](,[019]?[0-9])?)?`)
@@ -154,7 +154,7 @@ func StripRaw(text string) string {
return text
}
-// IsValidChannel validates if channel is an RFC complaint channel or not.
+// IsValidChannel validates if channel is an RFC compliant channel or not.
//
// NOTE: If you are using this to validate a channel that contains a channel
// ID, (!<channelid>NAME), this only supports the standard 5 character length.
@@ -271,7 +271,7 @@ func IsValidUser(name string) bool {
}
// Check to see if the first index is alphanumeric.
- if (name[0] < 'A' || name[0] > 'J') && (name[0] < 'a' || name[0] > 'z') && (name[0] < '0' || name[0] > '9') {
+ if (name[0] < 'A' || name[0] > 'Z') && (name[0] < 'a' || name[0] > 'z') && (name[0] < '0' || name[0] > '9') {
return false
}