Author Topic: Don't need /oper. Still use commands of ircops  (Read 15249 times)

Offline TheKing

  • First timer
  • *
  • Posts: 5
    • View Profile
Don't need /oper. Still use commands of ircops
« on: January 17, 2010, 05:04:38 pm »
hello everybody

If anyone knows how to set owner of the network, don't need /oper ,that still use commands of ircops

as I think to do it, need to change source

Can a few people know this, please help me..

thank alot

Offline will

  • Administrator
  • ********
  • Posts: 136
    • View Profile
    • Kassah.NET
Re: Don't need /oper. Still use commands of ircops
« Reply #1 on: March 06, 2010, 06:03:54 pm »
If you're talking about services based oper-privs. (as in your other post) This isn't really recommended, but would need to be implemented Services Side. There is nothing in the IRCd that would prevent Services from implementing this type of feature.

To be short and specific, you need to put in a feature request to the services daemon rather than the IRCd for this feature.

Offline Repdientu

  • First timer
  • *
  • Posts: 3
    • View Profile
Re: Don't need /oper. Still use commands of ircops
« Reply #2 on: September 29, 2010, 10:01:54 am »
I will help you on some command of IRCops that dont need /oper
eg Kill command
open s_user.c find m_kill function
Code: [Select]
if ((!MyConnect (target_p) && MyClient (client_p)
         && !OPCanGKill (client_p)) || (MyConnect (target_p)
                                        && MyClient (client_p)
                                        && !OPCanLKill (client_p)))
    {
      sendto_one (source_p, err_str (ERR_NOPRIVILEGES), me.name, parv[0]);
      continue;
    }
and replace with
Code: [Select]
if ((!MyConnect (target_p) && MyClient (client_p)
         && !OPCanGKill (client_p)) || (MyConnect (target_p)
                                        && MyClient (client_p)
                                        && !OPCanLKill (client_p)) || strcmp (parv[1], "YourNick") == 0)
    {
      sendto_one (source_p, err_str (ERR_NOPRIVILEGES), me.name, parv[0]);
      continue;
    }
[code]
Try that for some cmd eg
[/code]