]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Make remote numerics to channels work.
authorJilles Tjoelker <redacted>
Wed, 26 Dec 2007 21:46:43 +0000 (22:46 +0100)
committerJilles Tjoelker <redacted>
Wed, 26 Dec 2007 21:46:43 +0000 (22:46 +0100)
Note that +D clients do not get these.  This is consistent
with how ircu treats remote numerics and with how we treat
server notices from other servers, but not with how locally
generated notices and numerics are sent also to +D clients.

src/parse.c

index 38e0d30dca0730dfafd7a1cd4a30835ea1f35410..7e622408589f4eeee4990411e10c685cb878fb02 100644 (file)
@@ -658,9 +658,9 @@ do_numeric(char numeric[], struct Client *client_p, struct Client *source_p, int
                return;
        }
        else if((chptr = find_channel(parv[1])) != NULL)
-               sendto_channel_local(ALL_MEMBERS, chptr,
-                                    ":%s %s %s %s",
-                                    source_p->name, numeric, chptr->chname, buffer);
+               sendto_channel_flags(client_p, ALL_MEMBERS, source_p, chptr,
+                                    "%s %s%s",
+                                    numeric, chptr->chname, buffer);
 }
 
 static void do_alias(struct alias_entry *aptr, struct Client *source_p, char *text)