]> jfr.im git - solanum.git/blobdiff - modules/core/m_mode.c
Keep propagated bans in a dictionary, not a list
[solanum.git] / modules / core / m_mode.c
index 848d0b45f92fb01ef55a4b7648587a1d2f35a253..ab054fd80009a6b3eb53b1c04f11a70b0226a597 100644 (file)
@@ -138,13 +138,6 @@ m_mode(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
        {
                msptr = find_channel_membership(chptr, source_p);
 
-               /* Finish the flood grace period... */
-               if(MyClient(source_p) && !IsFloodDone(source_p))
-               {
-                       if(!((parc == 3) && (parv[2][0] == 'b' || parv[2][0] == 'q') && (parv[2][1] == '\0')))
-                               flood_endgrace(source_p);
-               }
-
                set_channel_mode(client_p, source_p, chptr, msptr, parc - n, parv + n);
        }
 }
@@ -248,7 +241,7 @@ possibly_remove_lower_forward(struct Client *fakesource_p, int mems,
                                (actualBan->forward == NULL ||
                                 irccmp(actualBan->forward, forward) < 0))
                {
-                       sendto_channel_local(mems, chptr, ":%s MODE %s -%c %s%s%s",
+                       sendto_channel_local(fakesource_p, mems, chptr, ":%s MODE %s -%c %s%s%s",
                                        fakesource_p->name,
                                        chptr->chname,
                                        mchar,
@@ -383,7 +376,7 @@ ms_bmask(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
                        {
                                *mbuf = '\0';
                                *(pbuf - 1) = '\0';
-                               sendto_channel_local(mems, chptr, "%s %s", modebuf, parabuf);
+                               sendto_channel_local(fakesource_p, mems, chptr, "%s %s", modebuf, parabuf);
 
                                mbuf = modebuf + mlen;
                                pbuf = parabuf;
@@ -419,7 +412,7 @@ ms_bmask(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
        {
                *mbuf = '\0';
                *(pbuf - 1) = '\0';
-               sendto_channel_local(mems, chptr, "%s %s", modebuf, parabuf);
+               sendto_channel_local(fakesource_p, mems, chptr, "%s %s", modebuf, parabuf);
        }
 
        sendto_server(client_p, chptr, CAP_TS6 | needcap, NOCAPS, ":%s BMASK %ld %s %s :%s",