summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-06 00:40:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-06 00:40:15 +0000
commit9c9a0e768f3788c97651f05deda76b2cd7d81418 (patch)
treede3e11bd495254bcc645e929adc2ac6010bf1a87
parent102cea3ab2947da96dfa13c1938d7e44a3e4fea1 (diff)
Removed redundant strlcpy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3476 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/mode.cpp16
1 files 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));
}
}
}