- user->WriteServ( "NOTICE %s :*** The user %s is not on channel %s", user->nick, target->nick, channel->name);
- return;
- }
-
- /* This is adding support for the +q and +a channel modes, basically if they are enabled, and the remover has them set.
- * Then we change the @|%|+ to & if they are +a, or ~ if they are +q */
- protectkey = "cm_protect_" + std::string(channel->name);
- founderkey = "cm_founder_" + std::string(channel->name);
-
- if (ServerInstance->is_uline(user->server) || ServerInstance->is_uline(user->nick))
- {
- ServerInstance->Log(DEBUG, "Setting ulevel to U");
- ulevel = chartolevel("U");
- }
- if (user->GetExt(founderkey))
- {
- ServerInstance->Log(DEBUG, "Setting ulevel to ~");
- ulevel = chartolevel("~");
- }
- else if (user->GetExt(protectkey))
- {
- ServerInstance->Log(DEBUG, "Setting ulevel to &");
- ulevel = chartolevel("&");
- }
- else
- {
- ServerInstance->Log(DEBUG, "Setting ulevel to %s", channel->GetStatusChar(user));
- ulevel = chartolevel(channel->GetStatusChar(user));
- }
-
- /* Now it's the same idea, except for the target. If they're ulined make sure they get a higher level than the sender can */
- if (ServerInstance->is_uline(target->server) || ServerInstance->is_uline(target->nick))
- {
- ServerInstance->Log(DEBUG, "Setting tlevel to U");
- tlevel = chartolevel("U");