]> jfr.im git - irc/rizon/plexus4.git/commitdiff
Whitespace cleanup
authorAdam <redacted>
Mon, 7 Nov 2016 01:50:00 +0000 (20:50 -0500)
committerAdam <redacted>
Mon, 7 Nov 2016 01:50:09 +0000 (20:50 -0500)
14 files changed:
modules/core/m_message.c
modules/core/m_mode.c
modules/core/m_nick.c
modules/m_chghost.c
modules/m_chgident.c
modules/m_set.c
modules/m_whois.c
src/cloak.c
src/conf_parser.y
src/dnsbl.c
src/irc_res.c
src/listener.c
src/s_auth.c
src/send.c

index af09b58f37c2e25ba97abd531941acc7e0fcac0a..136008469c1c6bc66dbccc0d68d77d0eed58272d 100644 (file)
@@ -604,7 +604,7 @@ handle_special(int p_or_n, const char *command, struct Client *client_p,
       sendto_one(source_p, form_str(ERR_NOPRIVILEGES), me.name, source_p->name);
       return;
     }
-    
+
     sendto_match_butone(IsServer(client_p) ? client_p : NULL, source_p,
                         nick + 1, (*nick == '#') ? MATCH_HOST : MATCH_SERVER,
                         "%s $%s :%s", command, nick, text);
index 3f85ace1ee01de3c4ca8723213bb4a33cb1c8c89..9470e2ae3870c3ef4631f8b659f990bce0f06a9f 100644 (file)
@@ -318,7 +318,7 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, char *parv[
   {
     *mbuf = *(pbuf - 1) = '\0';
     sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s %s %s",
-        (IsHidden(source_p) || ConfigServerHide.hide_servers) ? me.name : source_p->name, 
+        (IsHidden(source_p) || ConfigServerHide.hide_servers) ? me.name : source_p->name,
         modebuf, parabuf);
     sendto_server(client_p, NOCAPS, CAP_TS6,
                   ":%s %s %s", source_p->name, modebuf, parabuf);
index 66e8272738001eb2ae046f2c044b771e954c140e..c532d46f380fbddcef4140378561400d452539d5 100644 (file)
@@ -492,7 +492,7 @@ perform_nick_collides(struct Client *source_p, struct Client *client_p,
       else
         sameuser = !irccmp(target_p->username, parv[5]) &&
                  !irccmp(target_p->host, host);
-   
+
       /*
        * If the users are the same (loaded a client on a different server)
        * and the new users ts is older, or the users are different and the
index 08941abed4dda36790baed26de7f86a58363a03d..16eb6e1f693fdc46f4658ffa80d47f5a81efa26a 100644 (file)
@@ -72,8 +72,8 @@ mo_chghost(struct Client *client_p, struct Client *source_p, int parc, char *par
   }
 
   if(parc < 3)
-  { 
-    sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), me.name, source_p->name, "CHGHOST"); 
+  {
+    sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), me.name, source_p->name, "CHGHOST");
     return;
   }
 
@@ -83,7 +83,7 @@ mo_chghost(struct Client *client_p, struct Client *source_p, int parc, char *par
     sendto_one(source_p, form_str(ERR_NOSUCHNICK),
          me.name, source_p->name, parv[1]);
     return;
-  } 
+  }
 
   if(strlen(parv[2]) > HOSTLEN)
   {
@@ -102,7 +102,7 @@ mo_chghost(struct Client *client_p, struct Client *source_p, int parc, char *par
   sendto_server(NULL, CAP_ENCAP, NOCAPS,
           ":%s ENCAP * CHGHOST %s %s",
           me.name, target_p->name, parv[2]);
-  
+
   if(strcmp(target_p->host, parv[2]))
     user_set_hostmask(target_p, NULL, parv[2]);
 }
index 45f4111b3c303dcff569c1250359c0e2f622601e..437df777f3090e80285101547f8251c01a3a77a1 100644 (file)
@@ -68,8 +68,8 @@ mo_chgident(struct Client *client_p, struct Client *source_p, int parc, char *pa
   }
 
   if(parc < 3)
-  { 
-    sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), me.name, source_p->name, "CHGIDENT"); 
+  {
+    sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), me.name, source_p->name, "CHGIDENT");
     return;
   }
 
@@ -78,7 +78,7 @@ mo_chgident(struct Client *client_p, struct Client *source_p, int parc, char *pa
     sendto_one(source_p, form_str(ERR_NOSUCHNICK),
          me.name, source_p->name, parv[1]);
     return;
-  } 
+  }
 
   if(strlen(parv[2]) > USERLEN)
   {
index 1c6e3dec9c2a8efef057c1e01811bbdff3c4d37a..3b1f91c331c22f3a004070d131eb1c9d2c985e80 100644 (file)
@@ -278,8 +278,8 @@ quote_splitmode(struct Client *source_p, char *charval)
      * pull values back out of, splitmode can be four states - but you can
      * only set to three, which means we cant use the same table --fl_
      */
-    sendto_one(source_p, ":%s NOTICE %s :SPLITMODE is currently %s", 
-               me.name, source_p->name, 
+    sendto_one(source_p, ":%s NOTICE %s :SPLITMODE is currently %s",
+               me.name, source_p->name,
                splitmode_status[(splitchecking + (splitmode * 2))]);
 }
 
@@ -290,7 +290,7 @@ quote_splitnum(struct Client *source_p, int newval)
   if (newval >= 0)
   {
     sendto_snomask(SNO_ALL, L_ALL,
-                   "%s has changed SPLITNUM to %i", 
+                   "%s has changed SPLITNUM to %i",
                    get_oper_name(source_p), newval);
     split_servers = newval;
 
@@ -298,7 +298,7 @@ quote_splitnum(struct Client *source_p, int newval)
       check_splitmode(NULL);
   }
   else
-    sendto_one(source_p, ":%s NOTICE %s :SPLITNUM is currently %i", 
+    sendto_one(source_p, ":%s NOTICE %s :SPLITNUM is currently %i",
                me.name, source_p->name, split_servers);
 }
 
@@ -309,7 +309,7 @@ quote_splitusers(struct Client *source_p, int newval)
   if (newval >= 0)
   {
     sendto_snomask(SNO_ALL, L_ALL,
-                   "%s has changed SPLITUSERS to %i", 
+                   "%s has changed SPLITUSERS to %i",
                    get_oper_name(source_p), newval);
     split_users = newval;
 
@@ -317,7 +317,7 @@ quote_splitusers(struct Client *source_p, int newval)
       check_splitmode(NULL);
   }
   else
-    sendto_one(source_p, ":%s NOTICE %s :SPLITUSERS is currently %i", 
+    sendto_one(source_p, ":%s NOTICE %s :SPLITUSERS is currently %i",
                me.name, source_p->name, split_users);
 }
 
@@ -328,12 +328,12 @@ quote_jfloodtime(struct Client *source_p, int newval)
   if (newval >= 0)
   {
     sendto_snomask(SNO_ALL, L_ALL,
-                   "%s has changed JFLOODTIME to %i", 
+                   "%s has changed JFLOODTIME to %i",
                    get_oper_name(source_p), newval);
     GlobalSetOptions.joinfloodtime = newval;
   }
   else
-    sendto_one(source_p, ":%s NOTICE %s :JFLOODTIME is currently %i", 
+    sendto_one(source_p, ":%s NOTICE %s :JFLOODTIME is currently %i",
                me.name, source_p->name, GlobalSetOptions.joinfloodtime);
 }
 
@@ -344,12 +344,12 @@ quote_jfloodcount(struct Client *source_p, int newval)
   if (newval >= 0)
   {
     sendto_snomask(SNO_ALL, L_ALL,
-                   "%s has changed JFLOODCOUNT to %i", 
+                   "%s has changed JFLOODCOUNT to %i",
                    get_oper_name(source_p), newval);
     GlobalSetOptions.joinfloodcount = newval;
   }
   else
-    sendto_one(source_p, ":%s NOTICE %s :JFLOODCOUNT is currently %i", 
+    sendto_one(source_p, ":%s NOTICE %s :JFLOODCOUNT is currently %i",
                me.name, source_p->name, GlobalSetOptions.joinfloodcount);
 }
 
index f2930f8ab93e26f83f931942716093c77a2266f2..150c54125df74df4e7724cfc6eb81ddfe8d7d1e5 100644 (file)
@@ -128,7 +128,7 @@ whois_person(struct Client *source_p, struct Client *target_p)
   if (HasUMode(target_p, UMODE_OPER))
   {
     buf[0] = 0;
-    
+
     strcat(buf, "is an IRC Operator");
 
     if (HasFlag(target_p, FLAGS_SERVICE) || HasUMode(target_p, UMODE_SERVICE))
index d14eb50fb641445c4353ad3afc3b259f84da9188..93fa8f9cbc77e4700a9bcb932ddb46efd7f961ab 100644 (file)
@@ -187,7 +187,7 @@ hidehost_ipv4(const char *host)
 
   a = b = c = d = 0;
 
-  /* 
+  /*
    * Output: ALPHA.BETA.GAMMA.IP
    * ALPHA is unique for a.b.c.d
    * BETA  is unique for a.b.c.*
index ae1e1b6c82ac6e450ec5357fa972ef0e5e8fad06..3e2535094832874f18f7d64a2a71edd85e08ad0b 100644 (file)
@@ -425,7 +425,7 @@ conf_item:        admin_entry
                 | logging_entry
                 | oper_entry
                 | channel_entry
-                | class_entry 
+                | class_entry
                 | listen_entry
                 | auth_entry
                 | serverinfo_entry
@@ -2888,8 +2888,8 @@ general_item:       general_hide_spoof_ips | general_ignore_bogus_ts |
                     general_opers_bypass_callerid | general_default_floodcount |
                     general_min_nonwildcard | general_min_nonwildcard_simple |
                     general_throttle_num | general_throttle_time | general_havent_read_conf |
-                    general_ping_cookie | general_nick_collide_realhost | 
-                    general_disable_auth | 
+                    general_ping_cookie | general_nick_collide_realhost |
+                    general_disable_auth |
                     general_tkline_expire_notices | general_gline_enable |
                     general_gline_duration | general_gline_request_duration |
                     general_gline_min_cidr |
index 1f81353051b746c88752c8c7991fab85db91bc2c..723b96d3ee7b7c300f43d668badd4fddc6af1019 100644 (file)
@@ -187,7 +187,7 @@ start_dnsbl_lookup(struct Client *cptr)
     struct dnsbl_entry *dentry = ptr->data;
     char hostbuf[RFC1035_MAX_DOMAIN_LENGTH + 1];
     struct DnsblLookup *info;
-    
+
     info = MyMalloc(sizeof(struct DnsblLookup));
     dlinkAdd(info, &info->node, &cptr->localClient->dnsbl_queries);
     dlinkAdd(info, &info->enode, &dentry->lookups);
index af51a4d6aa0e6a9701869e005dee9a4946c36d4b..78bbd087b88c2b6cd9e0794a8018581ec9b714d3 100644 (file)
@@ -372,7 +372,7 @@ make_request(dns_handle *handle, dns_callback_fnc callback, void *ctx)
     callback(ctx, NULL, NULL);
     return NULL;
   }
-  
+
   request = mp_pool_get(dns_pool);
 
   memset(request, 0, sizeof(*request));
index 6150f89cee66880b71b5976d66464f20ae10ca98..c50327eeccf8df8a5d52cdde7d9e42d0193b3fc8 100644 (file)
@@ -395,7 +395,7 @@ close_listeners(void)
     close_listener(ptr->data);
 }
 
-static void 
+static void
 accept_connection(fde_t *pfd, void *data)
 {
   static time_t last_oper_notice = 0;
index 058981e22a8c8b3878718489132e3dfe5526b839..d250734cd7f3e6d5a0622eefc00817cfb37f4f48 100644 (file)
@@ -272,7 +272,7 @@ start_auth_query(struct AuthRequest *auth)
   /* The auth system has its own timeout check, using an ordered queue,
    * so a timeout here is not necessary
    */
-  comm_connect_tcp(&auth->fd, auth->client->sockhost, 113, 
+  comm_connect_tcp(&auth->fd, auth->client->sockhost, 113,
       (struct sockaddr *) &localaddr, localaddr.ss_len,
       auth_connect_callback, auth, auth->client->localClient->ip.ss.ss_family, 0);
   return 1; /* We suceed here for now */
index ef6cac229974d2d2337bcec522713d0ef2ab953c..9a291c1977bac9177072182086aa9f875ac2b9b8 100644 (file)
@@ -102,7 +102,7 @@ send_message(struct Client *to, struct dbuf_block *buf)
     dead_link_on_write(to, 0);
     return;
   }
+
   if (IsServer(to) && HasSFlag(to, SERVER_FLAGS_MIGRATING_QUEUE_WRITE))
     dbuf_add(&to->serv->migrate_sendq, buf);
   else
@@ -339,7 +339,7 @@ sendto_channel_butone(struct Client *one, struct Client *from,
     dbuf_put_fmt(local_buf, ":%s ", from->name);
 
   dbuf_put_fmt(remote_buf, ":%s ", from->name);
-  
+
   dbuf_put_fmt(uid_buf, ":%s ", ID(from));
 
   va_start(alocal, pattern);
@@ -590,12 +590,12 @@ sendto_channel_local_butone(struct Client *one, unsigned int type,
 
   buffer = dbuf_alloc();
 
-  va_start(args, pattern); 
+  va_start(args, pattern);
   send_format(buffer, pattern, args);
   va_end(args);
 
-  DLINK_FOREACH(ptr, chptr->localmembers.head)       
-  {   
+  DLINK_FOREACH(ptr, chptr->localmembers.head)
+  {
     struct Membership *ms = ptr->data;
     struct Client *target_p = ms->client_p;
 
@@ -1078,7 +1078,7 @@ kill_client_serv_butone(struct Client *one, struct Client *source_p,
 
   dbuf_ref_free(uid_buffer);
   dbuf_ref_free(nick_buffer);
-} 
+}
 
 void
 announce(const char *pattern, ...)