X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-write.c;h=ea9b9a02836a0c8f5c617c6cf6f5b2f7c2a5ff79;hp=16aac9a081859aa27904e116252d009ba02d3176;hb=139f5961a078dfd23a469d98c3942f42595854aa;hpb=2a7dd06ebd9cc72d45a6a4becdbef5213d7b7800 diff --git a/src/ngircd/irc-write.c b/src/ngircd/irc-write.c index 16aac9a0..ea9b9a02 100644 --- a/src/ngircd/irc-write.c +++ b/src/ngircd/irc-write.c @@ -311,7 +311,7 @@ IRC_WriteStrServersPrefixFlag_CB(CLIENT *ExceptOf, CLIENT *Prefix, char Flag, if (Client_Type(c) == CLIENT_SERVER && Client_Conn(c) > NONE && c != Client_ThisServer() && c != ExceptOf) { /* Found a target server, do the flags match? */ - if (Flag == '\0' || strchr(Client_Flags(c), Flag)) + if (Flag == '\0' || Client_HasFlag(c, Flag)) callback(c, Prefix, cb_data); } c = Client_Next(c); @@ -321,7 +321,7 @@ IRC_WriteStrServersPrefixFlag_CB(CLIENT *ExceptOf, CLIENT *Prefix, char Flag, /** * send message to all clients that are in the same channels as the client sending this message. - * only send message once per reote server. + * only send message once per remote server. */ #ifdef PROTOTYPES GLOBAL bool