aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_setname.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_setname.cpp')
-rw-r--r--src/modules/m_setname.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp
index 352b3bff2..012ca3a2e 100644
--- a/src/modules/m_setname.cpp
+++ b/src/modules/m_setname.cpp
@@ -50,13 +50,13 @@ public:
{
if (parameters[0].size() > ServerInstance->Config->Limits.MaxReal)
{
- fail.SendIfCap(user, cap, this, "INVALID_REALNAME", "Real name is too long");
+ fail.SendIfCap(user, &cap, this, "INVALID_REALNAME", "Real name is too long");
return CmdResult::FAILURE;
}
if (!user->ChangeRealName(parameters[0]))
{
- fail.SendIfCap(user, cap, this, "CANNOT_CHANGE_REALNAME", "Unable to change your real name");
+ fail.SendIfCap(user, &cap, this, "CANNOT_CHANGE_REALNAME", "Unable to change your real name");
return CmdResult::FAILURE;
}