Menu

#40 Show user IP in description

open
nobody
None
5
2004-12-26
2004-12-26
Anonymous
No

I would like to recognize users conecting to hub from
my local network and from internet. Can enybody help me?

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Can you be more specific?
    Currently, you can already do it using a simple script,
    sending the user ip to all admin/ops or to all users when
    the user enters the hub... (Because some clients that I know
    already show the user IP besides their description)

     
  • Nobody/Anonymous

    Logged In: NO

    Regarding that script that has the user PM the Admin/Op the
    IP, where can I find that script? Would you be able to
    provide me with a link or directions on how to get it?

     
  • Nobody/Anonymous

    Logged In: NO

    This will send a private msg to any op in main chat window,
    but could be easily modified to send a PVT msg instead

    here it goes...

    __BEGIN__
    my ($botname) = "doorman";

    sub main()
    {
    #odch::register_script_name($botname);
    }

    sub new_user_connected()
    {
    my($user) = @_;
    my($ip) = odch::get_ip($user);
    msg2ops("$user logged in. Ip is $ip|");
    }

    sub msg2ops()
    {
    my ($msg) = @_;
    my ($type,$user);
    foreach $user (split(/ /,odch::get_user_list())) {
    if ($user ne $botname) {
    $type = odch::get_type($user);
    if ($type =~ /(16|32|64)/) {
    odch::data_to_user($user,"<$botname> $msg|");
    }
    }
    }
    }
    __END__

    HTH

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.