summaryrefslogtreecommitdiff
path: root/src/modules/m_sajoin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_sajoin.cpp')
-rw-r--r--src/modules/m_sajoin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp
index 0c7387213..b32ba58ab 100644
--- a/src/modules/m_sajoin.cpp
+++ b/src/modules/m_sajoin.cpp
@@ -43,13 +43,13 @@ class cmd_sajoin : public command_t
{
if (Srv->IsUlined(dest->server))
{
- WriteServ(user->fd,"990 %s :Cannot use an SA command on a u-lined client",user->nick);
+ user->WriteServ("990 %s :Cannot use an SA command on a u-lined client",user->nick);
return;
}
if (!IsValidChannelName(parameters[1]))
{
/* we didn't need to check this for each character ;) */
- Srv->SendTo(NULL,user,"NOTICE "+std::string(user->nick)+" :*** Invalid characters in channel name");
+ user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Invalid characters in channel name");
return;
}