]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-write.c
ngIRCd Release 27
[ngircd-alex.git] / src / ngircd / irc-write.c
index c6a3dce23c00b42a7363a0857c162502e4247dd3..a3700c8351e789f74d5229e16fbfd5c2329c1f21 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2018 Alexander Barton (alex@barton.de) and Contributors.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,9 +23,7 @@
 #      include <varargs.h>
 #endif
 #include <stdio.h>
-#include <string.h>
 
-#include "defines.h"
 #include "conn-func.h"
 #include "channel.h"
 
@@ -382,11 +380,10 @@ va_dcl
  * Send a message to all the servers in the network using a specific prefix
  * and matching a "client flag" using a callback function.
  *
- * @param Client The sending client, excluded while forwarding the message.
+ * @param ExceptOf The sending client, excluded while forwarding the message.
  * @param Prefix The prefix to use.
  * @param Flag Client flag that must be set on the target.
  * @param callback Callback function.
- * @param Format Format string.
  */
 GLOBAL void
 IRC_WriteStrServersPrefixFlag_CB(CLIENT *ExceptOf, CLIENT *Prefix, char Flag,
@@ -409,7 +406,7 @@ IRC_WriteStrServersPrefixFlag_CB(CLIENT *ExceptOf, CLIENT *Prefix, char Flag,
 /**
  * Send a message to all "related" clients.
  *
- * Related clients are the one that share one ore more channels with the client
+ * Related clients are the one that share one or more channels with the client
  * sending this message.
  *
  * The message is only sent once per remote server.
@@ -523,12 +520,12 @@ va_dcl
                        if (Client_HasMode(to, 'w'))
                                IRC_WriteStrClientPrefix(to, From,
                                                         "WALLOPS :%s", msg);
-                               break;
+                       break;
                case CLIENT_SERVER:
                        if (to != Client)
                                IRC_WriteStrClientPrefix(to, From,
                                                         "WALLOPS :%s", msg);
-                               break;
+                       break;
                }
        }
 } /* IRC_SendWallops */