From 19b06df164b05bd9e5b44f7944cfe9a67cbe5ff0 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Thu, 9 Jul 2015 14:04:00 +0200 Subject: [PATCH] remove sendto_failops, sendto_failops_whoare_opers, sendto_locfailops --- src/send.c | 79 +----------------------------------------------------- 1 file changed, 1 insertion(+), 78 deletions(-) diff --git a/src/send.c b/src/send.c index 61c150054..a4bc73baf 100644 --- a/src/send.c +++ b/src/send.c @@ -84,7 +84,7 @@ int dead_link(aClient *to, char *notice) to->flags |= FLAGS_DEADSOCKET; if (!IsPerson(to) && !IsUnknown(to) && !(to->flags & FLAGS_CLOSING)) - (void)sendto_failops_whoare_opers("Closing link: %s - %s", + sendto_umode(UMODE_OPER, "Closing link: %s - %s", notice, get_client_name(to, FALSE)); Debug((DEBUG_ERROR, "dead_link: %s - %s", notice, get_client_name(to, FALSE))); to->error_str = strdup(notice); @@ -774,30 +774,6 @@ void sendto_ops(char *pattern, ...) } } -/* - * sendto_failops - * - * Send to *local* mode +g ops only. - */ -void sendto_failops(char *pattern, ...) -{ - va_list vl; - aClient *cptr; - char nbuf[1024]; - - list_for_each_entry(cptr, &lclient_list, lclient_node) - if (!IsServer(cptr) && !IsMe(cptr) && SendFailops(cptr)) - { - (void)ircsnprintf(nbuf, sizeof(nbuf), ":%s NOTICE %s :*** Global -- ", - me.name, cptr->name); - (void)strlcat(nbuf, pattern, sizeof nbuf); - - va_start(vl, pattern); - vsendto_one(cptr, nbuf, vl); - va_end(vl); - } -} - /* * sendto_umode * @@ -995,59 +971,6 @@ void sendto_snomask_normal_global(int snomask, char *pattern, ...) sendto_server(&me, 0, 0, ":%s SENDSNO %s :%s", me.name, snobuf, nbuf); } - -/* - * sendto_failops_whoare_opers - * - * Send to *local* mode +g ops only who are also +o. - */ -void sendto_failops_whoare_opers(char *pattern, ...) -{ - va_list vl; - aClient *cptr; - char nbuf[1024]; - - list_for_each_entry(cptr, &oper_list, special_node) - { - if (SendFailops(cptr)) - { - (void)ircsnprintf(nbuf, sizeof(nbuf), ":%s NOTICE %s :*** Global -- ", - me.name, cptr->name); - (void)strlcat(nbuf, pattern, sizeof nbuf); - - va_start(vl, pattern); - vsendto_one(cptr, nbuf, vl); - va_end(vl); - } - } -} - -/* - * sendto_locfailops - * - * Send to *local* mode +g ops only who are also +o. - */ -void sendto_locfailops(char *pattern, ...) -{ - va_list vl; - aClient *cptr; - int i; - char nbuf[1024]; - - list_for_each_entry(cptr, &oper_list, special_node) - { - if (SendFailops(cptr)) - { - (void)ircsnprintf(nbuf, sizeof(nbuf), ":%s NOTICE %s :*** LocOps -- ", - me.name, cptr->name); - (void)strlcat(nbuf, pattern, sizeof nbuf); - - va_start(vl, pattern); - vsendto_one(cptr, nbuf, vl); - va_end(vl); - } - } -} /* * sendto_opers *