| 1940 |
1940 |
| 1941 userserver = g_strsplit(username, "@", 2); |
1941 userserver = g_strsplit(username, "@", 2); |
| 1942 if (userserver[1] == NULL || userserver[1][0] == '\0') { |
1942 if (userserver[1] == NULL || userserver[1][0] == '\0') { |
| 1943 purple_connection_error_reason(gc, |
1943 purple_connection_error_reason(gc, |
| 1944 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
1944 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
| 1945 _("SIP connect server not specified")); |
1945 _("Unable to connect to server. Please enter the " |
| |
1946 "address of the server you wish to connect to.")); |
| 1946 return; |
1947 return; |
| 1947 } |
1948 } |
| 1948 |
1949 |
| 1949 purple_connection_set_display_name(gc, userserver[0]); |
1950 purple_connection_set_display_name(gc, userserver[0]); |
| 1950 sip->username = g_strdup(userserver[0]); |
1951 sip->username = g_strdup(userserver[0]); |