From 2e4099e9f2bdcfab963c1e86a3f02d6b3c1b0048 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 28 Jun 2010 00:56:37 -0400 Subject: No need for BotInfo to have its own ChangeNick function --- include/bots.h | 4 ++-- src/bots.cpp | 2 +- src/core/bs_bot.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/bots.h b/include/bots.h index c1fd14450..cd95467b5 100644 --- a/include/bots.h +++ b/include/bots.h @@ -48,10 +48,10 @@ class CoreExport BotInfo : public User, public Flags */ virtual ~BotInfo(); - /** Change the nickname set on a bot. + /** Change the nickname for the bot. * @param newnick The nick to change to */ - void ChangeNick(const char *newnick); + void SetNewNick(const std::string &newnick); /** Rejoins all channels that this bot is assigned to. * Used on /kill, rename, etc. 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); -- cgit