summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-24 00:46:53 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-24 00:46:53 +0000
commit3ffd9179262242acc01ed93b749aa55a938cf381 (patch)
treef199314aa20920c5136206755786413ba5e809c0 /src/regchannel.cpp
parent14fc57d24b5b3ed622d0603011d33b06780ca071 (diff)
Rewrote arg parsing system, changed lots of std::string*s to std::string&, made --config arg, and made Anope print out a few lines of information when starting
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2833 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 6070441a2..706746422 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -510,15 +510,15 @@ const size_t ChannelInfo::GetMLockCount(bool status) const
* @param Target a string to put the param into
* @return true on success
*/
-const bool ChannelInfo::GetParam(ChannelModeName Name, std::string *Target)
+const bool ChannelInfo::GetParam(ChannelModeName Name, std::string &Target)
{
std::map<ChannelModeName, std::string>::iterator it = Params.find(Name);
- (*Target).clear();
+ Target.clear();
if (it != Params.end())
{
- *Target = it->second;
+ Target = it->second;
return true;
}