extern void sendto_anywhere(struct Client *, struct Client *, const char *,
const char *, ...) AFP(4, 5);
-extern void sendto_realops_flags(int, int, const char *, ...) AFP(3, 4);
extern void sendto_realops_snomask(int, int, const char *, ...) AFP(3, 4);
extern void sendto_realops_snomask_from(int, int, struct Client *, const char *, ...) AFP(4, 5);
/* NOT REACHED */
break;
case -5:
- sendto_realops_flags(SNO_GENERAL, L_ALL,\r
+ sendto_realops_snomask(SNO_GENERAL, L_ALL,\r
"Connection from servername %s requires SSL/TLS but is plaintext",\r
name);\r
ilog(L_SERVER, "Access denied, requires SSL/TLS but is plaintext from %s", \r
*/
if((last_oper_notice + 20) <= rb_current_time())
{
- sendto_realops_flags(SNO_GENERAL, L_ALL,
+ sendto_realops_snomask(SNO_GENERAL, L_ALL,
"All connections in use. (%s)",
get_listener_name(listener));
last_oper_notice = rb_current_time();
rb_linebuf_donebuf(&linebuf);
}
-/* sendto_realops_flags()
- *
- * inputs - umode needed, level (opers/admin), va_args
- * output -
- * side effects - message is sent to opers with matching umodes
- */
-void
-sendto_realops_flags(int flags, int level, const char *pattern, ...)
-{
- struct Client *client_p;
- rb_dlink_node *ptr;
- rb_dlink_node *next_ptr;
- va_list args;
- buf_head_t linebuf;
-
- rb_linebuf_newbuf(&linebuf);
-
- va_start(args, pattern);
- rb_linebuf_putmsg(&linebuf, pattern, &args,
- ":%s NOTICE * :*** Notice -- ", me.name);
- va_end(args);
-
- RB_DLINK_FOREACH_SAFE(ptr, next_ptr, local_oper_list.head)
- {
- client_p = ptr->data;
-
- /* If we're sending it to opers and theyre an admin, skip.
- * If we're sending it to admins, and theyre not, skip.
- */
- if(((level == L_ADMIN) && !IsOperAdmin(client_p)) ||
- ((level == L_OPER) && IsOperAdmin(client_p)))
- continue;
-
- if(client_p->umodes & flags)
- _send_linebuf(client_p, &linebuf);
- }
-
- rb_linebuf_donebuf(&linebuf);
-}
-
/* sendto_realops_snomask()
*
* inputs - snomask needed, level (opers/admin), va_args