diff -r f84f2b4ef0e5 -r 53a26c29d26c pidgin/plugins/xmppconsole/xmppconsole.c --- a/pidgin/plugins/xmppconsole/xmppconsole.c Thu Jan 14 21:20:10 2021 -0600 +++ b/pidgin/plugins/xmppconsole/xmppconsole.c Thu Jan 14 22:33:49 2021 -0600 @@ -252,8 +252,10 @@ gtk_text_buffer_get_bounds(console->entry_buffer, &start, &end); text = gtk_text_buffer_get_text(console->entry_buffer, &start, &end, FALSE); - if (protocol) - purple_protocol_server_iface_send_raw(protocol, gc, text, strlen(text)); + if(PURPLE_IS_PROTOCOL_SERVER(protocol)) { + purple_protocol_server_send_raw(PURPLE_PROTOCOL_SERVER(protocol), gc, + text, strlen(text)); + } g_free(text); gtk_text_buffer_set_text(console->entry_buffer, "", 0);