diff -r 0da91f053305 -r f802660eaef2 pidgin/plugins/disco/gtkdisco.c --- a/pidgin/plugins/disco/gtkdisco.c Mon Dec 12 00:47:54 2022 -0600 +++ b/pidgin/plugins/disco/gtkdisco.c Mon Dec 12 00:57:49 2022 -0600 @@ -206,6 +206,7 @@ { PidginDiscoDialog *dialog = data; PurpleConnection *pc; + PurpleContactInfo *info = NULL; PidginDiscoList *pdl; const char *username; const char *at, *slash; @@ -234,7 +235,8 @@ gtk_widget_set_sensitive(dialog->account_chooser, FALSE); - username = purple_account_get_username(dialog->account); + info = PURPLE_CONTACT_INFO(dialog->account); + username = purple_contact_info_get_username(info); at = strchr(username, '@'); slash = strchr(username, '/'); if (at && !slash) {