diff options
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 2b2e5963e..8fd510f7b 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -3,6 +3,11 @@ #include "inspircd.h" #include <stdio.h> #include <string> +#include <vector> + +using namespace std; + +vector<ModeParameter> custom_mode_params; chanrec::chanrec() { @@ -28,7 +33,7 @@ void chanrec::SetCustomMode(char mode,bool mode_on) log(DEBUG,"Custom mode %c set",mode); } else { - char temp[MAXMODES]; + char temp[MAXBUF]; int count = 0; for (int q = 0; q < strlen(custom_modes); q++) { if (custom_modes[q] != mode) { @@ -42,8 +47,6 @@ void chanrec::SetCustomMode(char mode,bool mode_on) } } -vector<ModeParameter> custom_mode_params; - void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) { |