From 9c9a0e768f3788c97651f05deda76b2cd7d81418 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 6 Mar 2006 00:40:15 +0000 Subject: Removed redundant strlcpy git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3476 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mode.cpp b/src/mode.cpp index 1f808099c..08197da31 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -1113,17 +1113,17 @@ 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); + //strlcpy(outstr,outl,MAXBUF); for (ptr = 0; ptr < pc; ptr++) { - charlcat(outstr,' ',MAXBUF); - strlcat(outstr,outpars[ptr],MAXBUF); + charlcat(outl,' ',MAXBUF); + strlcat(outl,outpars[ptr],MAXBUF); } if (local) { log(DEBUG,"Local mode change"); - WriteChannelLocal(chan, user, "MODE %s %s",chan->name,outstr); - FOREACH_MOD(I_OnMode,OnMode(user, chan, TYPE_CHANNEL, outstr)); + WriteChannelLocal(chan, user, "MODE %s %s",chan->name,outl); + FOREACH_MOD(I_OnMode,OnMode(user, chan, TYPE_CHANNEL, outl)); } else { @@ -1131,7 +1131,7 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int { if (!silent) { - WriteChannelWithServ(Config->ServerName,chan,"MODE %s %s",chan->name,outstr); + WriteChannelWithServ(Config->ServerName,chan,"MODE %s %s",chan->name,outl); } } @@ -1139,8 +1139,8 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int { if (!silent) { - WriteChannel(chan,user,"MODE %s %s",chan->name,outstr); - FOREACH_MOD(I_OnMode,OnMode(user, chan, TYPE_CHANNEL, outstr)); + WriteChannel(chan,user,"MODE %s %s",chan->name,outl); + FOREACH_MOD(I_OnMode,OnMode(user, chan, TYPE_CHANNEL, outl)); } } } -- cgit v1.2.3