- dns_results_callback(parv[1], parv[2], parv[3], parv[4]);
- break;
- case 'W': /* Oper warning */
- if(parc != 3)
- {
- iwarn("authd sent a result with wrong number of arguments: got %d", parc);
- restart_authd();
- return;
- }
+static void
+cmd_oper_warn(int parc, char **parv)
+{
+ switch(*parv[2])
+ {
+ case 'D': /* Debug */
+ sendto_realops_snomask(SNO_DEBUG, L_ALL, "authd debug: %s", parv[3]);
+ idebug("authd: %s", parv[3]);
+ break;
+ case 'I': /* Info */
+ sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd info: %s", parv[3]);
+ inotice("authd: %s", parv[3]);
+ break;
+ case 'W': /* Warning */
+ sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd WARNING: %s", parv[3]);
+ iwarn("authd: %s", parv[3]);
+ break;
+ case 'C': /* Critical (error) */
+ sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd CRITICAL: %s", parv[3]);
+ ierror("authd: %s", parv[3]);
+ break;
+ default: /* idk */
+ sendto_realops_snomask(SNO_GENERAL, L_ALL, "authd sent us an unknown oper notice type (%s): %s", parv[2], parv[3]);
+ ilog(L_MAIN, "authd unknown oper notice type (%s): %s", parv[2], parv[3]);
+ break;
+ }
+}