diff --git a/client/boinc_cmd.cpp b/client/boinc_cmd.cpp index 38b8170a4c..fd05474f76 100644 --- a/client/boinc_cmd.cpp +++ b/client/boinc_cmd.cpp @@ -163,6 +163,30 @@ void acct_mgr_do_rpc( } } +// Get messages from client, and show any that are USER_ALERT priority. +// Intended use: show user that GUI RPCs are not password-protected. +// For now, do this after attach to project or AM +// +void show_alerts(RPC_CLIENT &rpc) { + MESSAGES messages; + int retval = rpc.get_messages(0, messages); + if (retval) { + fprintf(stderr, "Can't get alerts from client: %s\n", + boincerror(retval) + ); + return; + } + for (unsigned int j=0; j