summaryrefslogtreecommitdiff
path: root/src/channels.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-02 04:55:43 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-02 04:55:43 +0000
commit3617d7978899f830d952d9bac70ed14bb0cc0fd6 (patch)
treefa5fe5d8f8f3bd87f649e2467f60e1d87ba2a71c /src/channels.c
parent657e1deb590eaba38ea3e9a9fb353dc0e23c1a41 (diff)
Convert 'const char *' and 'char *' function arguments to 'const std::string &' instead, done in actions.c along with chain reactions in other files.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2723 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/channels.c')
-rw-r--r--src/channels.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/channels.c b/src/channels.c
index aa01b99e0..79f956581 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -153,10 +153,10 @@ void Channel::SetModeInternal(ChannelMode *cm, const std::string &param, bool En
}
/* We don't track bots */
- if (findbot(param.c_str()))
+ if (findbot(param))
return;
- User *u = finduser(param.c_str());
+ User *u = finduser(param);
if (!u)
{
if (debug)
@@ -285,10 +285,10 @@ void Channel::RemoveModeInternal(ChannelMode *cm, const std::string &param, bool
}
/* We don't track bots */
- if (findbot(param.c_str()))
+ if (findbot(param))
return;
- User *u = finduser(param.c_str());
+ User *u = finduser(param);
if (!u)
{
alog("Channel::RemoveModeInternal() MODE %s +%c for nonexistant user %s", this->name, cm->ModeChar, param.c_str());
@@ -354,7 +354,7 @@ void Channel::RemoveModeInternal(ChannelMode *cm, const std::string &param, bool
/* Non registered channel, no mlock */
if (!ci || !EnforceMLock || MOD_RESULT == EVENT_STOP)
return;
-
+
/* This channel has this the mode locked on */
if (ci->HasMLock(cm->Name, true))
{
@@ -656,7 +656,7 @@ void ChanSetInternalModes(Channel *c, int ac, const char **av)
{
if (!ac)
return;
-
+
int k = 0, j = 0, add = -1;
for (unsigned int i = 0; i < strlen(av[0]); ++i)
{