From 8509727e16f1d9ce6c9719c8d62c7715d3699858 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 2 Feb 2008 22:57:28 +0000 Subject: Cache User::GetIPString() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8795 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/cmode_v.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modes/cmode_v.cpp') 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 ""; -- cgit v1.2.3