summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 08197da31..f91e579a8 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -542,9 +542,7 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int
return;
}
- char modelist[MAXBUF];
char outlist[MAXBUF];
- char outstr[MAXBUF];
char outpars[32][MAXBUF];
int param = 2;
int pc = 0;
@@ -569,7 +567,7 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int
log(DEBUG,"process_modes: start: parameters=%d",pcnt);
- strlcpy(modelist,parameters[1],MAXBUF); /* mode list, e.g. +oo-o *
+ char* modelist = parameters[1]; /* mode list, e.g. +oo-o *
* parameters[2] onwards are parameters for
* modes that require them :) */
*outlist = *modelist;
@@ -1113,7 +1111,6 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int
/* The mode change must be at least two characters long (+ or - and at least one mode) */
if (((*outl == '+') || (*outl == '-')) && *(outl+1))
{
- //strlcpy(outstr,outl,MAXBUF);
for (ptr = 0; ptr < pc; ptr++)
{
charlcat(outl,' ',MAXBUF);