attempt anonymous only when logging in without JID and password

This commit is contained in:
James Andariese
2015-04-12 22:12:16 -07:00
parent cc56ae0810
commit e8c25dcffe
2 changed files with 101 additions and 79 deletions

View File

@@ -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 {