summaryrefslogtreecommitdiff
path: root/src/chanserv.c
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/chanserv.c
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/chanserv.c')
-rw-r--r--src/chanserv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/chanserv.c b/src/chanserv.c
index fd69ec8d0..b144df6f3 100644
--- a/src/chanserv.c
+++ b/src/chanserv.c
@@ -210,7 +210,7 @@ char *get_mlock_modes(ChannelInfo * ci, int complete)
{
cmp = dynamic_cast<ChannelModeParam *>(cm);
- ci->GetParam(cmp->Name, &param);
+ ci->GetParam(cmp->Name, param);
if (!param.empty())
{
@@ -252,13 +252,13 @@ void get_chanserv_stats(long *nrec, long *memuse)
mem += ci->GetAccessCount() * sizeof(ChanAccess);
mem += ci->GetAkickCount() * sizeof(AutoKick);
- if (ci->GetParam(CMODE_KEY, &param))
+ if (ci->GetParam(CMODE_KEY, param))
mem += param.length() + 1;
- if (ci->GetParam(CMODE_FLOOD, &param))
+ if (ci->GetParam(CMODE_FLOOD, param))
mem += param.length() + 1;
- if (ci->GetParam(CMODE_REDIRECT, &param))
+ if (ci->GetParam(CMODE_REDIRECT, param))
mem += param.length() + 1;
if (ci->last_topic)
@@ -379,7 +379,7 @@ void check_modes(Channel *c)
/* Add the eventual parameter and modify the Channel structure */
if (cm->Type == MODE_PARAM)
{
- if (ci->GetParam(cmp->Name, &param))
+ if (ci->GetParam(cmp->Name, param))
c->SetMode(NULL, cm, param);
}
else
@@ -388,8 +388,8 @@ void check_modes(Channel *c)
/* If this is a param mode and its mlocked, check to ensure it is set and set to the correct value */
else if (cm->Type == MODE_PARAM && ci->HasMLock(cm->Name, true))
{
- c->GetParam(cm->Name, &param);
- ci->GetParam(cm->Name, &ciparam);
+ c->GetParam(cm->Name, param);
+ ci->GetParam(cm->Name, ciparam);
/* If the channel doesnt have the mode, or it does and it isn't set correctly */
if (!c->HasMode(cm->Name) || (!param.empty() && !ciparam.empty() && param != ciparam))
@@ -413,7 +413,7 @@ void check_modes(Channel *c)
if (!cmp->MinusNoArg)
{
- if (c->GetParam(cmp->Name, &param))
+ if (c->GetParam(cmp->Name, param))
c->RemoveMode(NULL, cm, param);
}
}