forked from jshiffer/go-xmpp
attempt anonymous only when logging in without JID and password
This commit is contained in:
@@ -32,7 +32,9 @@ func main() {
|
||||
}
|
||||
flag.Parse()
|
||||
if *username == "" || *password == "" {
|
||||
flag.Usage()
|
||||
if *debug {
|
||||
fmt.Fprintf(os.Stderr, "no username or password were given; attempting ANONYMOUS auth\n")
|
||||
}
|
||||
}
|
||||
|
||||
if !*notls {
|
||||
|
||||
Reference in New Issue
Block a user