summaryrefslogtreecommitdiff
path: root/src/modes
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes')
-rw-r--r--src/modes/cmode_v.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modes/cmode_v.cpp b/src/modes/cmode_v.cpp
index 66e58a479..8b94caf08 100644
--- a/src/modes/cmode_v.cpp
+++ b/src/modes/cmode_v.cpp
@@ -136,7 +136,9 @@ std::string ModeChannelVoice::DelVoice(User *user,const char *dest,Channel *chan
return "";
if (MOD_RESULT == ACR_DEFAULT)
{
- if ((status < STATUS_HOP) && (!ServerInstance->ULine(user->server)))
+ if ((status < STATUS_HOP) && (!ServerInstance->ULine(user->server)) ||
+ user == d && ServerInstance->Config->AllowDevoiceSelf
+ )
{
user->WriteServ("482 %s %s :You are not a channel (half)operator",user->nick, chan->name);
return "";