summaryrefslogtreecommitdiff
path: root/src/modes/cmode_v.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes/cmode_v.cpp')
-rw-r--r--src/modes/cmode_v.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes/cmode_v.cpp b/src/modes/cmode_v.cpp
index 76978d346..69f64d2da 100644
--- a/src/modes/cmode_v.cpp
+++ b/src/modes/cmode_v.cpp
@@ -81,7 +81,7 @@ std::string ModeChannelVoice::AddVoice(userrec *user,const char* dest,chanrec *c
{
if ((status < STATUS_HOP) && (!is_uline(user->server)))
{
- WriteServ(user->fd,"482 %s %s :You're not a channel (half)operator",user->nick, chan->name);
+ user->WriteServ("482 %s %s :You're not a channel (half)operator",user->nick, chan->name);
return "";
}
}
@@ -109,7 +109,7 @@ std::string ModeChannelVoice::DelVoice(userrec *user,const char *dest,chanrec *c
{
if ((status < STATUS_HOP) && (!is_uline(user->server)))
{
- WriteServ(user->fd,"482 %s %s :You are not a channel (half)operator",user->nick, chan->name);
+ user->WriteServ("482 %s %s :You are not a channel (half)operator",user->nick, chan->name);
return "";
}
}