|
|
@ -217,6 +217,12 @@ func main() {
|
|
|
|
if *flagPassword != "" {
|
|
|
|
if *flagPassword != "" {
|
|
|
|
password = *flagPassword
|
|
|
|
password = *flagPassword
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// If no server part is specified in the username but a server is specified
|
|
|
|
|
|
|
|
// just assume the server is identical to the server part and hope for the
|
|
|
|
|
|
|
|
// best. This is for compatibility with the old perl sendxmpp config files.
|
|
|
|
|
|
|
|
if !strings.Contains(user, "@") && server != "" {
|
|
|
|
|
|
|
|
user = user + "@" + server
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
switch {
|
|
|
|
switch {
|
|
|
|
// Use "go-sendxmpp" if no nick is specified via config or command line flag.
|
|
|
|
// Use "go-sendxmpp" if no nick is specified via config or command line flag.
|
|
|
|