]> jfr.im git - solanum.git/blobdiff - src/s_serv.c
Add MLOCK message to netjoin burst.
[solanum.git] / src / s_serv.c
index 90f2c6c25547d2d18bb311b6752bc624ff35b794..ec7d38811498c92d4792f375239ff083143a43bc 100644 (file)
@@ -89,6 +89,7 @@ struct Capability captab[] = {
        { "EUID",       CAP_EUID },
        { "EOPMOD",     CAP_EOPMOD },
        { "BAN",        CAP_BAN },
+       { "MLOCK",      CAP_MLOCK },
        {0, 0}
 };
 
@@ -657,6 +658,11 @@ burst_TS6(struct Client *client_p)
                                   ConfigChannel.burst_topicwho ? " " : "",
                                   chptr->topic);
 
+               if(IsCapable(client_p, CAP_MLOCK))
+                       sendto_one(client_p, ":%s MLOCK %ld %s %s",
+                                  me.id, (long) chptr->channelts, chptr->chname,
+                                  channel_mlock(client_p, chptr));
+
                hchaninfo.chptr = chptr;
                call_hook(h_burst_channel, &hchaninfo);
        }