Userfriendly

Author Topic: Help Needed with hiding links,map from normal users  (Read 4028 times)

Offline wassa

  • First timer
  • *
  • Posts: 6
    • View Profile
Help Needed with hiding links,map from normal users
« on: August 06, 2005, 12:12:43 am »
Evening all
i just installed the latest version of UltimatIRCd
running with anope services

I`m trying to find out how to stop normal users doing a /links or /map
is this possible, if so where is it hiding
thanks

Offline wassa

  • First timer
  • *
  • Posts: 6
    • View Profile
Help Needed with hiding links,map from normal users
« Reply #1 on: August 06, 2005, 02:29:45 am »
very hard question then ?

# Do you want to hide U lined servers from /LIST's for non Opers?
# Generally a good idea and required on many Networks.
#
Set hideulinedservs ............: 1

well it cant be that can it ?

i thought the idea of a U line added to a server is to give
services access NO !
if so why adding a U line to all my servers are they not hidden from the public view when they do /links or /map

Offline Radiant

  • Codemonkey
  • ****
  • Posts: 102
    • View Profile
Help Needed with hiding links,map from normal users
« Reply #2 on: August 06, 2005, 04:27:17 am »
If you want takeovers happening on netsplits and other fun things, go on and add U:Lines for all your servers. Believe me, you don't want to do it.

Furthermore, we're all volenteers and not slamming F5 on the forums all day so be a little patient.

If you want to block links and map for users you'll need to make some source modifications.. Just check wether the user is an oper or not (IsOper(client_p) or something) at the top of the links and map functions.

Offline wassa

  • First timer
  • *
  • Posts: 6
    • View Profile
Help Needed with hiding links,map from normal users
« Reply #3 on: August 07, 2005, 09:04:45 pm »
Sorry bud i was just frustrated

What i ment was by adding U:lines for (services)
on each box, not servers, i was under the impression that
i needed to add U:lines << just for services Only on each box

so your answer is that we need to get some 1 to tinker with the source ?



Cheers Gaz

Offline erich

  • Needs to get out more
  • ****
  • Posts: 132
    • View Profile
Help Needed with hiding links,map from normal users
« Reply #4 on: August 08, 2005, 01:21:02 pm »
You want to hide servers from /LINKS and /MAP right ??

This means you have to modify alot of commands.

WHOIS
WHOWAS
WHO
LINKS
MAP

etc.

I'll give you a few examples of codes you need to alter.
Locate: src/whowas.c
Find the section:
Code: [Select]

          sendto_one (source_p, rpl_str (RPL_WHOISSERVER),
                      me.name, parv[0], temp->name,
                      temp->servername, myctime (temp->logoff));

and replace it with something like this below:
Code: [Select]

        /* erich - In case of whowas, only show the real server to opers */
        if (IsAnOper (source_p)) {
          sendto_one (source_p, rpl_str (RPL_WHOISSERVER),
                      me.name, parv[0], temp->name,
                      temp->servername, myctime (temp->logoff));
        } else {
          sendto_one (source_p, rpl_str (RPL_WHOISSERVER),
                      me.name, parv[0], temp->name,
                      "irc.After-All.org", myctime (temp->logoff));
        }


LINKS is in src/s_serv.c around line 2120-2150. I've done it so that it only shows the round robin dns names. Like this:
Code: [Select]

    sendto_one (source_p, rpl_str (RPL_LINKS),
                me.name, parv[0], "irc.After-All.org", "irc.After-All.org",
                1, "(Unknown Location)");
    sendto_one (source_p, rpl_str (RPL_LINKS),
                me.name, parv[0], "eu.After-All.org", "irc.After-All.org",
                1, "Europe");
    sendto_one (source_p, rpl_str (RPL_LINKS),
                me.name, parv[0], "us.After-All.org", "irc.After-All.org",
                1, "USA");


WHOIS is in src/s_user.c around line 2700. Again I've modified the function to work normally for OPERs but only show "irc.After-All.org" as connected to for a normal user.

But thats up to you how you like it to act. Modifying the code isn't very hard. Just give it a GO!!
Network Founder @ After-All.org
http://www.After-All.org

 

SimplePortal 2.3.7 © 2008-2021, SimplePortal