]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/numeric.c
const'ify command name variable in _COMMAND strcuture
[ngircd-alex.git] / src / ngircd / numeric.c
index fa32097d027ef66e42f1667f3ca23f9d06e907a1..c3d94c3db7b53c5614fbfaf6cd6ddf1ebb60be65 100644 (file)
@@ -131,7 +131,7 @@ Announce_Server(CLIENT * Client, CLIENT * Server)
        if (Client_Hops(Server) == 1)
                c = Client_ThisServer();
        else
-               c = Client_Introducer(Server);
+               c = Client_TopServer(Server);
 
        /* Inform new server about the one already registered in the network */
        return IRC_WriteStrClientPrefix(Client, c, "SERVER %s %d %d :%s",
@@ -341,6 +341,10 @@ IRC_Num_ENDOFMOTD(CLIENT * Client, UNUSED REQUEST * Req)
        /* Announce all channels to the new server */
        chan = Channel_First();
        while (chan) {
+               if (Channel_IsLocal(chan)) {
+                       chan = Channel_Next(chan);
+                       continue;
+               }
 #ifdef IRCPLUS
                /* Send CHANINFO if the peer supports it */
                if (strchr(Client_Flags(Client), 'C')) {