diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-09 15:34:23 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-09 15:34:23 +0000 |
commit | 91fdf6fdb7a65508f4d7eb61ce0b478d2aff29f3 (patch) | |
tree | d85b6955a18d9fb4d776af2c4a2d2a14f7802b87 /src | |
parent | be60fccc6ca656636924d28eb1fa870f7e8f0144 (diff) |
Tidier string building
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5185 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/mode.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index ddc2d4d16..27fcf6d5b 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -510,17 +510,11 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool { targetchannel->WriteChannelWithServ(ServerInstance->Config->ServerName, "MODE %s %s%s", targetchannel->name, output_sequence.c_str(), parameter_list.str().c_str()); this->LastParse = targetchannel->name; - LastParse.append(" "); - LastParse.append(output_sequence); - LastParse.append(parameter_list.str()); } else { targetuser->WriteServ("MODE %s %s%s",targetuser->nick,output_sequence.c_str(), parameter_list.str().c_str()); this->LastParse = targetuser->nick; - LastParse.append(" "); - LastParse.append(output_sequence); - LastParse.append(parameter_list.str()); } } else @@ -531,20 +525,18 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool targetchannel->WriteChannel(user,"MODE %s %s%s",targetchannel->name,output_sequence.c_str(),parameter_list.str().c_str()); FOREACH_MOD(I_OnMode,OnMode(user, targetchannel, TYPE_CHANNEL, output_sequence + parameter_list.str())); this->LastParse = targetchannel->name; - LastParse.append(" "); - LastParse.append(output_sequence); - LastParse.append(parameter_list.str()); } else { user->WriteTo(targetuser,"MODE %s %s%s",targetuser->nick,output_sequence.c_str(), parameter_list.str().c_str()); FOREACH_MOD(I_OnMode,OnMode(user, targetuser, TYPE_USER, output_sequence)); this->LastParse = targetuser->nick; - LastParse.append(" "); - LastParse.append(output_sequence); - LastParse.append(parameter_list.str()); } } + + LastParse.append(" "); + LastParse.append(output_sequence); + LastParse.append(parameter_list.str()); } } } |