summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-10 12:45:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-10 12:45:40 +0000
commit3c272bcc1f53c2a8ebbf5b399118d33b5640cf9b (patch)
tree4b821300de413c13a7fcc56ba8ffcbbb91554cf2
parent984b2282806c29bc7ade875f26791b952d25d8de (diff)
More fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3863 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/mode.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/mode.h b/include/mode.h
index 381145319..27b06087d 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -96,7 +96,7 @@ class ModeParser
/**
* Mode watcher classes
*/
- std::vector<ModeWatcher*> modewatchers[65];
+ std::vector<ModeWatcher*> modewatchers[64];
char* GiveOps(userrec *user,char *dest,chanrec *chan,int status);
char* GiveHops(userrec *user,char *dest,chanrec *chan,int status);
@@ -110,7 +110,8 @@ class ModeParser
char* Grant(userrec *d,chanrec *chan,int MASK);
char* Revoke(userrec *d,chanrec *chan,int MASK);
public:
- void Process(char **parameters, int pcnt, userrec *user);
+ void Process(char **parameters, int pcnt, userrec *user, bool servermode);
+
std::string CompressModes(std::string modes,bool channelmodes);
void ProcessModes(char **parameters,userrec* user,chanrec *chan,int status, int pcnt, bool servermode, bool silent, bool local);
bool AllowedUmode(char umode, char* sourcemodes,bool adding,bool serveroverride);