1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 15:43:13 +02:00

Made mode lock del check status of the mode lock before removing it

This commit is contained in:
Adam
2012-02-18 15:47:16 -05:00
parent ee5cd8493e
commit f2ce9cd85c
4 changed files with 17 additions and 7 deletions
+2 -1
View File
@@ -363,10 +363,11 @@ class CoreExport ChannelInfo : public Extensible, public Flags<ChannelInfoFlag,
/** Remove a mlock
* @param mode The mode
* @param status True for mlock on, false for mlock off
* @param param The param of the mode, required if it is a list or status mode
* @return true on success, false on failure
*/
bool RemoveMLock(ChannelMode *mode, const Anope::string &param = "");
bool RemoveMLock(ChannelMode *mode, bool status, const Anope::string &param = "");
/** Clear all mlocks on the channel
*/