diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-04 23:07:52 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-04 23:07:52 +0000 |
commit | 72e9b7442816a4dad6f5bf6c3e9045f496788dee (patch) | |
tree | 72576a6e07524c9efde4a04b7c5ec20bd382626c /src/modules | |
parent | 9300d6381c88e214a68d71ddce4e6d3be690d39a (diff) |
Convert this one too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9618 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_auditorium.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 0ed4566e8..264418c5b 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -160,8 +160,7 @@ class ModuleAuditorium : public Module void OnUserQuit(User* user, const std::string &reason, const std::string &oper_message) { Command* parthandler = ServerInstance->Parser->GetHandler("PART"); - std::vector<std::string> to_leave; - const char* parameters[2]; + std::vector<std::string> to_leave, parameters; if (parthandler) { for (UCListIter f = user->chans.begin(); f != user->chans.end(); f++) @@ -172,9 +171,9 @@ class ModuleAuditorium : public Module /* We cant do this neatly in one loop, as we are modifying the map we are iterating */ for (std::vector<std::string>::iterator n = to_leave.begin(); n != to_leave.end(); n++) { - parameters[0] = n->c_str(); + parameters[0] = *n; /* This triggers our OnUserPart, above, making the PART silent */ - parthandler->Handle(parameters, 1, user); + parthandler->Handle(parameters, user); } } } |