summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-04 06:40:24 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-04 06:40:24 +0000
commitb462814760cb7c0830072275acc97291a9fb905b (patch)
tree56cfe6caee408eb852f728cd8aaa2d18e4365228 /src/misc.c
parent2708eea5d13c249143b83fbaa8b552992f0ac8b6 (diff)
Changed 'char *' fields in BotInfo to 'std::string', cleanup of bots.cpp, changed many other functions to use 'const std::string &' arguments as a chain reaction.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2733 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/misc.c b/src/misc.c
index 7f0c090c0..92dd28a36 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -753,7 +753,7 @@ void doCleanBuffer(char *str)
* @param killer whom is doing the killing
* @return void
*/
-void EnforceQlinedNick(const char *nick, const char *killer)
+void EnforceQlinedNick(const std::string &nick, const char *killer)
{
User *u2;
@@ -812,7 +812,8 @@ int nickIsServices(const char *tempnick, int bot)
int i;
for (i = 0; i < 256; i++) {
for (bi = botlists[i]; bi; bi = bi->next) {
- if (stricmp(nick, bi->nick) == 0) {
+ ci::string ci_bi_nick(bi->nick.c_str());
+ if (ci_bi_nick == nick) {
found++;
continue;
}
@@ -1043,7 +1044,7 @@ std::list<std::string> BuildStringList(const std::string &src)
while (tokens.GetToken(token))
Ret.push_back(token);
-
+
return Ret;
}