summaryrefslogtreecommitdiff
path: root/include/mode.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-08 15:05:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-08 15:05:33 +0000
commit2f32d647909e3b07ef1c35d66b7b5ee876435f1b (patch)
treeea1a8c3e48702f548126ff8963d5ff577d1a97f8 /include/mode.h
parented351d92cfb70de7c3214195cac286a9607e1606 (diff)
Add cmode +o (op/deop) and in the process change a lot of char* to const char* to avoid unneccessary casts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4165 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/mode.h')
-rw-r--r--include/mode.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/include/mode.h b/include/mode.h
index e32e7532a..40055ab4c 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -228,21 +228,23 @@ class ModeParser
* we have 256 lists of them.
*/
std::vector<ModeWatcher*> modewatchers[256];
-
- char* GiveOps(userrec *user,char *dest,chanrec *chan,int status);
- char* GiveHops(userrec *user,char *dest,chanrec *chan,int status);
+
+ /*char* GiveHops(userrec *user,char *dest,chanrec *chan,int status);
char* GiveVoice(userrec *user,char *dest,chanrec *chan,int status);
- char* TakeOps(userrec *user,char *dest,chanrec *chan,int status);
char* TakeHops(userrec *user,char *dest,chanrec *chan,int status);
- char* TakeVoice(userrec *user,char *dest,chanrec *chan,int status);
- userrec* SanityChecks(userrec *user,char *dest,chanrec *chan,int status);
- char* Grant(userrec *d,chanrec *chan,int MASK);
- char* Revoke(userrec *d,chanrec *chan,int MASK);
+ char* TakeVoice(userrec *user,char *dest,chanrec *chan,int status);*/
+
public:
+
ModeParser();
+
+ static userrec* SanityChecks(userrec *user,const char *dest,chanrec *chan,int status);
+ static const char* Grant(userrec *d,chanrec *chan,int MASK);
+ static const char* Revoke(userrec *d,chanrec *chan,int MASK);
+ static void CleanMask(std::string &mask);
+
bool AddMode(ModeHandler* mh, unsigned const char modeletter);
void Process(char **parameters, int pcnt, userrec *user, bool servermode);
- static void CleanMask(std::string &mask);
};
class cmd_mode : public command_t