X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Firc-write.c;h=a3700c8351e789f74d5229e16fbfd5c2329c1f21;hb=HEAD;hp=c6a3dce23c00b42a7363a0857c162502e4247dd3;hpb=259c314d142abd6f9295047c116235cfdd119563;p=ngircd-alex.git diff --git a/src/ngircd/irc-write.c b/src/ngircd/irc-write.c index c6a3dce2..a3700c83 100644 --- a/src/ngircd/irc-write.c +++ b/src/ngircd/irc-write.c @@ -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 #endif #include -#include -#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 */