summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-06-28 00:56:37 -0400
committerAdam <Adam@anope.org>2010-06-28 00:56:37 -0400
commit2e4099e9f2bdcfab963c1e86a3f02d6b3c1b0048 (patch)
tree046bb44235866c1cea25a362f4d16039a51bb711 /src
parent00aa4a0ad4ad0da50619b0df3dd7f312b20a1353 (diff)
No need for BotInfo to have its own ChangeNick function
Diffstat (limited to 'src')
-rw-r--r--src/bots.cpp2
-rw-r--r--src/core/bs_bot.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index 31cfe04b7..19ef256c2 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -74,7 +74,7 @@ BotInfo::~BotInfo()
}
-void BotInfo::ChangeNick(const char *newnick)
+void BotInfo::SetNewNick(const std::string &newnick)
{
UserListByNick.erase(this->nick.c_str());
BotListByNick.erase(this->nick.c_str());
diff --git a/src/core/bs_bot.cpp b/src/core/bs_bot.cpp
index 5217ecbc8..3af9fa685 100644
--- a/src/core/bs_bot.cpp
+++ b/src/core/bs_bot.cpp
@@ -245,7 +245,7 @@ class CommandBSBot : public Command
}
if (bi->nick != nick)
- bi->ChangeNick(nick);
+ bi->SetNewNick(nick);
if (user && bi->GetIdent() != user)
bi->SetIdent(user);