]> jfr.im git - solanum.git/blobdiff - src/s_serv.c
Allow the final parameter of MLOCK to be empty, to remove an existing mlock
[solanum.git] / src / s_serv.c
index 684e3a1696d911ff17d81acd6242d0b4d7ab8bde..3b4778b6be893dba96559eaad4a4afa620dd326b 100644 (file)
@@ -659,9 +659,9 @@ burst_TS6(struct Client *client_p)
                                   chptr->topic);
 
                if(IsCapable(client_p, CAP_MLOCK))
-                       sendto_one(client_p, ":%s MLOCK %ld %s %s",
+                       sendto_one(client_p, ":%s MLOCK %ld %s :%s",
                                   me.id, (long) chptr->channelts, chptr->chname,
-                                  channel_mlock(chptr, client_p));
+                                  EmptyString(chptr->mode_lock) ? "" : chptr->mode_lock);
 
                hchaninfo.chptr = chptr;
                call_hook(h_burst_channel, &hchaninfo);