aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_cloaking.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2014-02-05 13:49:16 +0000
committerGravatar Attila Molnar2014-02-06 23:10:01 +0100
commitdb0e78c5d2e0998591b274c027fef26e1ac6ce6a (patch)
treef87b58008e0b3ccb44c4c4088e913de95cf1dcb3 /src/modules/m_cloaking.cpp
parentm_cap Instead of using case insensitive compare convert the subcommand to upp... (diff)
Fix various cases of UUID exposure.
- Introduce WriteCommand which sends * when the user has not registered. - Switch a ton of code to use WriteCommand instead of WriteServ. - Convert WriteNotice to be a wrapper around WriteCommand. - Only send * when NICK has not been sent instead of before registration.
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r--src/modules/m_cloaking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index d83786a20..5d62c9cf6 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -301,7 +301,7 @@ class ModuleCloaking : public Module
if (u->IsModeSet(cu))
{
u->SetMode(cu, false);
- u->WriteServ("MODE %s -%c", u->nick.c_str(), cu.GetModeChar());
+ u->WriteCommand("MODE", "-" + ConvToStr(cu.GetModeChar()));
}
}