summaryrefslogtreecommitdiff
path: root/src/cmd_nick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r--src/cmd_nick.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp
index 03bad2579..78483e2f2 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -74,7 +74,7 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user)
/* change the nick of the older user to nnn-overruled,
* where nnn is their file descriptor. We know this to be unique.
*/
- std::string changeback = ConvToStr(InUse->fd) + "-overruled";
+ std::string changeback = ConvToStr(InUse->GetFd()) + "-overruled";
InUse->UpdateNickHash(changeback.c_str());
strlcpy(InUse->nick, changeback.c_str(), NICKMAX - 1);
InUse->InvalidateCache();