summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-19 01:53:03 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-19 01:53:03 +0000
commite514a3793d251409428caf53cbb75f0be90a6f38 (patch)
tree349c4cfc9fc45735999fd81d39a515560ab0e083 /include/services.h
parent68381e69d94735010df986b22c8e758981b50995 (diff)
Changed the mode param handling code to be more into the general mode handling code, this cleans up and fixes some small problems with mlocking params. This also helps clarify that the ChannelInfo mode functions are for mlock only. Also, this adds the OnMLock and OnUnMLock events which can be used to control if something can be (un)mlocked
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2660 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
-rw-r--r--include/services.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/include/services.h b/include/services.h
index 5a8e84ee0..f8e48aa8a 100644
--- a/include/services.h
+++ b/include/services.h
@@ -989,14 +989,16 @@ class CoreExport Channel : public Extensible
/**
* Set a mode on a channel
* @param Name The mode name
+ * @param param Optional param arg for the mode
*/
- void SetMode(ChannelModeName Name);
+ void SetMode(ChannelModeName Name, const std::string param = "");
/**
* Set a mode on a channel
* @param Mode The mode
+ * @param param Optional param arg for the mode
*/
- void SetMode(char Mode);
+ void SetMode(char Mode, const std::string param = "");
/**
* Remove a mode from a channel
@@ -1030,18 +1032,6 @@ class CoreExport Channel : public Extensible
*/
void ClearInvites(char *client = NULL);
- /** Set a channel mode param on the channel
- * @param Name The mode
- * @param param The param
- * @param true on success
- */
- bool SetParam(ChannelModeName Name, std::string &param);
-
- /** Unset a param from the channel
- * @param Name The mode
- */
- void UnsetParam(ChannelModeName Name);
-
/** Get a param from the channel
* @param Name The mode
* @param Target a string to put the param into