Skip to content

Commit

Permalink
Dev (#1)
Browse files Browse the repository at this point in the history
* update
  • Loading branch information
LeeEirc authored Dec 7, 2020
1 parent 0ca50e5 commit 803e7ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ func (c *Client) handleLoginData(data []byte) AuthStatus {
return AuthSuccess
}

if c.conf.CustomSuccessRegex != nil && c.conf.CustomSuccessRegex.Match(data) {
traceLogf("Custom success pattern match: %s \r\n",
bytes.TrimSpace(data))
return AuthSuccess
}

if c.conf.LoginFailureRegex.Match(data) {
traceLogf("Incorrect pattern match:%s \r\n", bytes.TrimSpace(data))
return AuthFailed
Expand Down
1 change: 0 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ type Config struct {
LoginFailureRegex *regexp.Regexp
LoginSuccessRegex *regexp.Regexp

CustomSuccessRegex *regexp.Regexp
}

func (conf *Config) SetDefaults() {
Expand Down

0 comments on commit 803e7ae

Please sign in to comment.