diff options
author | Adam <Adam@Anope.org> | 2010-05-26 02:53:08 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 21:04:08 -0400 |
commit | 1394c96173cec02d148dfece563bb186cf2f33b6 (patch) | |
tree | 19afb8a2fde62477701c1d21510bc3c6fe4fd7ae /src/core/cs_akick.cpp | |
parent | f0a44ba89471e006ab10e398e9635adbc73eb674 (diff) |
Removed a lot of unnecessary .c_str() calls in the find* functions
Diffstat (limited to 'src/core/cs_akick.cpp')
-rw-r--r-- | src/core/cs_akick.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/cs_akick.cpp b/src/core/cs_akick.cpp index 0333a5042..047ec2cd4 100644 --- a/src/core/cs_akick.cpp +++ b/src/core/cs_akick.cpp @@ -171,7 +171,7 @@ class CommandCSAKick : public Command { ci::string mask = params[2]; ci::string reason = params.size() > 3 ? params[3] : ""; - NickAlias *na = findnick(mask.c_str()); + NickAlias *na = findnick(mask); NickCore *nc = NULL; AutoKick *akick; @@ -300,7 +300,7 @@ class CommandCSAKick : public Command return; } - na = findnick(mask.c_str()); + na = findnick(mask); nc = (na ? na->nc : NULL); for (i = 0; i < ci->GetAkickCount(); ++i) @@ -340,7 +340,7 @@ class CommandCSAKick : public Command return; } - na = findnick(mask.c_str()); + na = findnick(mask); nc = (na ? na->nc : NULL); for (i = 0; i < ci->GetAkickCount(); ++i) @@ -380,7 +380,7 @@ class CommandCSAKick : public Command (new AkickDelCallback(u, ci, mask.c_str()))->Process(); else { - NickAlias *na = findnick(mask.c_str()); + NickAlias *na = findnick(mask); NickCore *nc = (na ? na->nc : NULL); for (i = 0; i < ci->GetAkickCount(); ++i) @@ -530,7 +530,7 @@ class CommandCSAKick : public Command ci::string cmd = params[1]; ci::string mask = params.size() > 2 ? params[2] : ""; - ChannelInfo *ci = cs_findchan(chan.c_str()); + ChannelInfo *ci = cs_findchan(chan); if (mask.empty() && (cmd == "ADD" || cmd == "STICK" || cmd == "UNSTICK" || cmd == "DEL")) this->OnSyntaxError(u, cmd); |