+
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
void ModeChannelVoice::RemoveMode(Channel* channel)
{
- CUList* list = channel->GetVoicedUsers();
+ CUList* clist = channel->GetVoicedUsers();
CUList copy;
char moderemove[MAXBUF];
- for (CUList::iterator i = list->begin(); i != list->end(); i++)
+ for (CUList::iterator i = clist->begin(); i != clist->end(); i++)
{
User* n = i->first;
copy.insert(std::make_pair(n,n->nick));
{
}
-ModeAction ModeChannelVoice::OnModeChange(User* source, User*, Channel* channel, std::string ¶meter, bool adding)
+ModeAction ModeChannelVoice::OnModeChange(User* source, User*, Channel* channel, std::string ¶meter, bool adding, bool servermode)
{
int status = channel->GetStatus(source);
return "";
if (MOD_RESULT == ACR_DEFAULT)
{
- if ((status < STATUS_HOP) && (!ServerInstance->ULine(user->server)) ||
- user == d && ServerInstance->Config->AllowDevoiceSelf
- )
+ if ((status < STATUS_HOP) && (!ServerInstance->ULine(user->server)))
{
user->WriteServ("482 %s %s :You are not a channel (half)operator",user->nick, chan->name);
return "";